ffmpeg-codecs.html 341 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Created by , GNU Texinfo 7.1.1 -->
  4. <head>
  5. <meta charset="utf-8">
  6. <title>
  7. FFmpeg Codecs Documentation
  8. </title>
  9. <meta name="viewport" content="width=device-width,initial-scale=1.0">
  10. <link rel="stylesheet" type="text/css" href="bootstrap.min.css">
  11. <link rel="stylesheet" type="text/css" href="style.min.css">
  12. </head>
  13. <body>
  14. <div class="container">
  15. <h1>
  16. FFmpeg Codecs Documentation
  17. </h1>
  18. <a name="SEC_Top"></a>
  19. <div class="element-contents" id="SEC_Contents">
  20. <h2 class="contents-heading">Table of Contents</h2>
  21. <div class="contents">
  22. <ul class="toc-numbered-mark">
  23. <li><a id="toc-Description" href="#Description">1 Description</a></li>
  24. <li><a id="toc-Codec-Options" href="#Codec-Options">2 Codec Options</a></li>
  25. <li><a id="toc-Decoders" href="#Decoders">3 Decoders</a></li>
  26. <li><a id="toc-Video-Decoders" href="#Video-Decoders">4 Video Decoders</a>
  27. <ul class="toc-numbered-mark">
  28. <li><a id="toc-av1" href="#av1">4.1 av1</a>
  29. <ul class="toc-numbered-mark">
  30. <li><a id="toc-Options" href="#Options">4.1.1 Options</a></li>
  31. </ul></li>
  32. <li><a id="toc-hevc" href="#hevc">4.2 hevc</a>
  33. <ul class="toc-numbered-mark">
  34. <li><a id="toc-Options-1" href="#Options-1">4.2.1 Options</a></li>
  35. </ul></li>
  36. <li><a id="toc-rawvideo" href="#rawvideo">4.3 rawvideo</a>
  37. <ul class="toc-numbered-mark">
  38. <li><a id="toc-Options-2" href="#Options-2">4.3.1 Options</a></li>
  39. </ul></li>
  40. <li><a id="toc-libdav1d" href="#libdav1d">4.4 libdav1d</a>
  41. <ul class="toc-numbered-mark">
  42. <li><a id="toc-Options-3" href="#Options-3">4.4.1 Options</a></li>
  43. </ul></li>
  44. <li><a id="toc-libdavs2" href="#libdavs2">4.5 libdavs2</a></li>
  45. <li><a id="toc-libuavs3d" href="#libuavs3d">4.6 libuavs3d</a>
  46. <ul class="toc-numbered-mark">
  47. <li><a id="toc-Options-4" href="#Options-4">4.6.1 Options</a></li>
  48. </ul></li>
  49. <li><a id="toc-libxevd" href="#libxevd">4.7 libxevd</a>
  50. <ul class="toc-numbered-mark">
  51. <li><a id="toc-Options-5" href="#Options-5">4.7.1 Options</a></li>
  52. </ul></li>
  53. <li><a id="toc-QSV-Decoders" href="#QSV-Decoders">4.8 QSV Decoders</a>
  54. <ul class="toc-numbered-mark">
  55. <li><a id="toc-Common-Options" href="#Common-Options">4.8.1 Common Options</a></li>
  56. <li><a id="toc-HEVC-Options" href="#HEVC-Options">4.8.2 HEVC Options</a></li>
  57. </ul></li>
  58. <li><a id="toc-v210" href="#v210">4.9 v210</a>
  59. <ul class="toc-numbered-mark">
  60. <li><a id="toc-Options-6" href="#Options-6">4.9.1 Options</a></li>
  61. </ul></li>
  62. </ul></li>
  63. <li><a id="toc-Audio-Decoders" href="#Audio-Decoders">5 Audio Decoders</a>
  64. <ul class="toc-numbered-mark">
  65. <li><a id="toc-ac3" href="#ac3">5.1 ac3</a>
  66. <ul class="toc-numbered-mark">
  67. <li><a id="toc-AC_002d3-Decoder-Options" href="#AC_002d3-Decoder-Options">5.1.1 AC-3 Decoder Options</a></li>
  68. </ul></li>
  69. <li><a id="toc-flac-1" href="#flac-1">5.2 flac</a>
  70. <ul class="toc-numbered-mark">
  71. <li><a id="toc-FLAC-Decoder-options" href="#FLAC-Decoder-options">5.2.1 FLAC Decoder options</a></li>
  72. </ul></li>
  73. <li><a id="toc-ffwavesynth" href="#ffwavesynth">5.3 ffwavesynth</a></li>
  74. <li><a id="toc-libcelt" href="#libcelt">5.4 libcelt</a></li>
  75. <li><a id="toc-libgsm" href="#libgsm">5.5 libgsm</a></li>
  76. <li><a id="toc-libilbc" href="#libilbc">5.6 libilbc</a>
  77. <ul class="toc-numbered-mark">
  78. <li><a id="toc-Options-7" href="#Options-7">5.6.1 Options</a></li>
  79. </ul></li>
  80. <li><a id="toc-libmpeghdec" href="#libmpeghdec">5.7 libmpeghdec</a></li>
  81. <li><a id="toc-libopencore_002damrnb" href="#libopencore_002damrnb">5.8 libopencore-amrnb</a></li>
  82. <li><a id="toc-libopencore_002damrwb" href="#libopencore_002damrwb">5.9 libopencore-amrwb</a></li>
  83. <li><a id="toc-libopus" href="#libopus">5.10 libopus</a></li>
  84. </ul></li>
  85. <li><a id="toc-Subtitles-Decoders" href="#Subtitles-Decoders">6 Subtitles Decoders</a>
  86. <ul class="toc-numbered-mark">
  87. <li><a id="toc-libaribb24" href="#libaribb24">6.1 libaribb24</a>
  88. <ul class="toc-numbered-mark">
  89. <li><a id="toc-libaribb24-Decoder-Options" href="#libaribb24-Decoder-Options">6.1.1 libaribb24 Decoder Options</a></li>
  90. </ul></li>
  91. <li><a id="toc-libaribcaption" href="#libaribcaption">6.2 libaribcaption</a>
  92. <ul class="toc-numbered-mark">
  93. <li><a id="toc-libaribcaption-Decoder-Options" href="#libaribcaption-Decoder-Options">6.2.1 libaribcaption Decoder Options</a></li>
  94. <li><a id="toc-libaribcaption-decoder-usage-examples" href="#libaribcaption-decoder-usage-examples">6.2.2 libaribcaption decoder usage examples</a></li>
  95. </ul></li>
  96. <li><a id="toc-dvbsub" href="#dvbsub">6.3 dvbsub</a>
  97. <ul class="toc-numbered-mark">
  98. <li><a id="toc-Options-8" href="#Options-8">6.3.1 Options</a></li>
  99. </ul></li>
  100. <li><a id="toc-dvdsub" href="#dvdsub">6.4 dvdsub</a>
  101. <ul class="toc-numbered-mark">
  102. <li><a id="toc-Options-9" href="#Options-9">6.4.1 Options</a></li>
  103. </ul></li>
  104. <li><a id="toc-libzvbi_002dteletext" href="#libzvbi_002dteletext">6.5 libzvbi-teletext</a>
  105. <ul class="toc-numbered-mark">
  106. <li><a id="toc-Options-10" href="#Options-10">6.5.1 Options</a></li>
  107. </ul></li>
  108. </ul></li>
  109. <li><a id="toc-Encoders" href="#Encoders">7 Encoders</a></li>
  110. <li><a id="toc-Audio-Encoders" href="#Audio-Encoders">8 Audio Encoders</a>
  111. <ul class="toc-numbered-mark">
  112. <li><a id="toc-aac" href="#aac">8.1 aac</a>
  113. <ul class="toc-numbered-mark">
  114. <li><a id="toc-Options-11" href="#Options-11">8.1.1 Options</a></li>
  115. </ul></li>
  116. <li><a id="toc-ac3-and-ac3_005ffixed" href="#ac3-and-ac3_005ffixed">8.2 ac3 and ac3_fixed</a>
  117. <ul class="toc-numbered-mark">
  118. <li><a id="toc-AC_002d3-Metadata" href="#AC_002d3-Metadata">8.2.1 AC-3 Metadata</a>
  119. <ul class="toc-numbered-mark">
  120. <li><a id="toc-Metadata-Control-Options" href="#Metadata-Control-Options">8.2.1.1 Metadata Control Options</a></li>
  121. <li><a id="toc-Downmix-Levels" href="#Downmix-Levels">8.2.1.2 Downmix Levels</a></li>
  122. <li><a id="toc-Audio-Production-Information" href="#Audio-Production-Information">8.2.1.3 Audio Production Information</a></li>
  123. <li><a id="toc-Other-Metadata-Options" href="#Other-Metadata-Options">8.2.1.4 Other Metadata Options</a></li>
  124. </ul></li>
  125. <li><a id="toc-Extended-Bitstream-Information" href="#Extended-Bitstream-Information">8.2.2 Extended Bitstream Information</a>
  126. <ul class="toc-numbered-mark">
  127. <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>
  128. <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>
  129. </ul></li>
  130. <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>
  131. <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>
  132. </ul></li>
  133. <li><a id="toc-flac-2" href="#flac-2">8.3 flac</a>
  134. <ul class="toc-numbered-mark">
  135. <li><a id="toc-Options-12" href="#Options-12">8.3.1 Options</a></li>
  136. </ul></li>
  137. <li><a id="toc-opus" href="#opus">8.4 opus</a>
  138. <ul class="toc-numbered-mark">
  139. <li><a id="toc-Options-13" href="#Options-13">8.4.1 Options</a></li>
  140. </ul></li>
  141. <li><a id="toc-libfdk_005faac" href="#libfdk_005faac">8.5 libfdk_aac</a>
  142. <ul class="toc-numbered-mark">
  143. <li><a id="toc-Options-14" href="#Options-14">8.5.1 Options</a></li>
  144. <li><a id="toc-Examples" href="#Examples">8.5.2 Examples</a></li>
  145. </ul></li>
  146. <li><a id="toc-liblc3" href="#liblc3">8.6 liblc3</a>
  147. <ul class="toc-numbered-mark">
  148. <li><a id="toc-Options-15" href="#Options-15">8.6.1 Options</a></li>
  149. </ul></li>
  150. <li><a id="toc-libmp3lame-1" href="#libmp3lame-1">8.7 libmp3lame</a>
  151. <ul class="toc-numbered-mark">
  152. <li><a id="toc-Options-16" href="#Options-16">8.7.1 Options</a></li>
  153. </ul></li>
  154. <li><a id="toc-libopencore_002damrnb-1" href="#libopencore_002damrnb-1">8.8 libopencore-amrnb</a>
  155. <ul class="toc-numbered-mark">
  156. <li><a id="toc-Options-17" href="#Options-17">8.8.1 Options</a></li>
  157. </ul></li>
  158. <li><a id="toc-libopus-1" href="#libopus-1">8.9 libopus</a>
  159. <ul class="toc-numbered-mark">
  160. <li><a id="toc-Option-Mapping" href="#Option-Mapping">8.9.1 Option Mapping</a></li>
  161. </ul></li>
  162. <li><a id="toc-libshine-1" href="#libshine-1">8.10 libshine</a>
  163. <ul class="toc-numbered-mark">
  164. <li><a id="toc-Options-18" href="#Options-18">8.10.1 Options</a></li>
  165. </ul></li>
  166. <li><a id="toc-libtwolame" href="#libtwolame">8.11 libtwolame</a>
  167. <ul class="toc-numbered-mark">
  168. <li><a id="toc-Options-19" href="#Options-19">8.11.1 Options</a></li>
  169. </ul></li>
  170. <li><a id="toc-libvo_002damrwbenc" href="#libvo_002damrwbenc">8.12 libvo-amrwbenc</a>
  171. <ul class="toc-numbered-mark">
  172. <li><a id="toc-Options-20" href="#Options-20">8.12.1 Options</a></li>
  173. </ul></li>
  174. <li><a id="toc-libvorbis" href="#libvorbis">8.13 libvorbis</a>
  175. <ul class="toc-numbered-mark">
  176. <li><a id="toc-Options-21" href="#Options-21">8.13.1 Options</a></li>
  177. </ul></li>
  178. <li><a id="toc-mjpeg" href="#mjpeg">8.14 mjpeg</a>
  179. <ul class="toc-numbered-mark">
  180. <li><a id="toc-Options-22" href="#Options-22">8.14.1 Options</a></li>
  181. </ul></li>
  182. <li><a id="toc-wavpack" href="#wavpack">8.15 wavpack</a>
  183. <ul class="toc-numbered-mark">
  184. <li><a id="toc-Options-23" href="#Options-23">8.15.1 Options</a>
  185. <ul class="toc-numbered-mark">
  186. <li><a id="toc-Shared-options" href="#Shared-options">8.15.1.1 Shared options</a></li>
  187. <li><a id="toc-Private-options" href="#Private-options">8.15.1.2 Private options</a></li>
  188. </ul></li>
  189. </ul></li>
  190. </ul></li>
  191. <li><a id="toc-Video-Encoders" href="#Video-Encoders">9 Video Encoders</a>
  192. <ul class="toc-numbered-mark">
  193. <li><a id="toc-a64_005fmulti_002c-a64_005fmulti5" href="#a64_005fmulti_002c-a64_005fmulti5">9.1 a64_multi, a64_multi5</a></li>
  194. <li><a id="toc-Cinepak" href="#Cinepak">9.2 Cinepak</a>
  195. <ul class="toc-numbered-mark">
  196. <li><a id="toc-Options-24" href="#Options-24">9.2.1 Options</a></li>
  197. </ul></li>
  198. <li><a id="toc-ffv1-1" href="#ffv1-1">9.3 ffv1</a>
  199. <ul class="toc-numbered-mark">
  200. <li><a id="toc-Options-25" href="#Options-25">9.3.1 Options</a></li>
  201. </ul></li>
  202. <li><a id="toc-GIF" href="#GIF">9.4 GIF</a>
  203. <ul class="toc-numbered-mark">
  204. <li><a id="toc-Options-26" href="#Options-26">9.4.1 Options</a></li>
  205. </ul></li>
  206. <li><a id="toc-Hap" href="#Hap">9.5 Hap</a>
  207. <ul class="toc-numbered-mark">
  208. <li><a id="toc-Options-27" href="#Options-27">9.5.1 Options</a></li>
  209. </ul></li>
  210. <li><a id="toc-jpeg2000" href="#jpeg2000">9.6 jpeg2000</a>
  211. <ul class="toc-numbered-mark">
  212. <li><a id="toc-Options-28" href="#Options-28">9.6.1 Options</a></li>
  213. </ul></li>
  214. <li><a id="toc-librav1e" href="#librav1e">9.7 librav1e</a>
  215. <ul class="toc-numbered-mark">
  216. <li><a id="toc-Options-29" href="#Options-29">9.7.1 Options</a></li>
  217. </ul></li>
  218. <li><a id="toc-libaom_002dav1" href="#libaom_002dav1">9.8 libaom-av1</a>
  219. <ul class="toc-numbered-mark">
  220. <li><a id="toc-Options-30" href="#Options-30">9.8.1 Options</a></li>
  221. </ul></li>
  222. <li><a id="toc-liboapv" href="#liboapv">9.9 liboapv</a>
  223. <ul class="toc-numbered-mark">
  224. <li><a id="toc-Options-31" href="#Options-31">9.9.1 Options</a></li>
  225. </ul></li>
  226. <li><a id="toc-libsvtav1" href="#libsvtav1">9.10 libsvtav1</a>
  227. <ul class="toc-numbered-mark">
  228. <li><a id="toc-Options-32" href="#Options-32">9.10.1 Options</a></li>
  229. </ul></li>
  230. <li><a id="toc-libsvtjpegxs" href="#libsvtjpegxs">9.11 libsvtjpegxs</a>
  231. <ul class="toc-numbered-mark">
  232. <li><a id="toc-Options-33" href="#Options-33">9.11.1 Options</a></li>
  233. </ul></li>
  234. <li><a id="toc-libjxl" href="#libjxl">9.12 libjxl</a>
  235. <ul class="toc-numbered-mark">
  236. <li><a id="toc-Options-34" href="#Options-34">9.12.1 Options</a></li>
  237. </ul></li>
  238. <li><a id="toc-libkvazaar" href="#libkvazaar">9.13 libkvazaar</a>
  239. <ul class="toc-numbered-mark">
  240. <li><a id="toc-Options-35" href="#Options-35">9.13.1 Options</a></li>
  241. </ul></li>
  242. <li><a id="toc-libopenh264" href="#libopenh264">9.14 libopenh264</a>
  243. <ul class="toc-numbered-mark">
  244. <li><a id="toc-Options-36" href="#Options-36">9.14.1 Options</a></li>
  245. </ul></li>
  246. <li><a id="toc-libtheora" href="#libtheora">9.15 libtheora</a>
  247. <ul class="toc-numbered-mark">
  248. <li><a id="toc-Options-37" href="#Options-37">9.15.1 Options</a></li>
  249. <li><a id="toc-Examples-1" href="#Examples-1">9.15.2 Examples</a></li>
  250. </ul></li>
  251. <li><a id="toc-libvpx" href="#libvpx">9.16 libvpx</a>
  252. <ul class="toc-numbered-mark">
  253. <li><a id="toc-Options-38" href="#Options-38">9.16.1 Options</a></li>
  254. </ul></li>
  255. <li><a id="toc-libvvenc" href="#libvvenc">9.17 libvvenc</a>
  256. <ul class="toc-numbered-mark">
  257. <li><a id="toc-Supported-Pixel-Formats" href="#Supported-Pixel-Formats">9.17.1 Supported Pixel Formats</a></li>
  258. <li><a id="toc-Options-39" href="#Options-39">9.17.2 Options</a></li>
  259. </ul></li>
  260. <li><a id="toc-libwebp" href="#libwebp">9.18 libwebp</a>
  261. <ul class="toc-numbered-mark">
  262. <li><a id="toc-Pixel-Format" href="#Pixel-Format">9.18.1 Pixel Format</a></li>
  263. <li><a id="toc-Options-40" href="#Options-40">9.18.2 Options</a></li>
  264. </ul></li>
  265. <li><a id="toc-libx264_002c-libx264rgb" href="#libx264_002c-libx264rgb">9.19 libx264, libx264rgb</a>
  266. <ul class="toc-numbered-mark">
  267. <li><a id="toc-Supported-Pixel-Formats-1" href="#Supported-Pixel-Formats-1">9.19.1 Supported Pixel Formats</a></li>
  268. <li><a id="toc-Options-41" href="#Options-41">9.19.2 Options</a></li>
  269. </ul></li>
  270. <li><a id="toc-libx265" href="#libx265">9.20 libx265</a>
  271. <ul class="toc-numbered-mark">
  272. <li><a id="toc-Options-42" href="#Options-42">9.20.1 Options</a></li>
  273. </ul></li>
  274. <li><a id="toc-libxavs2" href="#libxavs2">9.21 libxavs2</a>
  275. <ul class="toc-numbered-mark">
  276. <li><a id="toc-Options-43" href="#Options-43">9.21.1 Options</a></li>
  277. </ul></li>
  278. <li><a id="toc-libxeve" href="#libxeve">9.22 libxeve</a>
  279. <ul class="toc-numbered-mark">
  280. <li><a id="toc-Options-44" href="#Options-44">9.22.1 Options</a></li>
  281. </ul></li>
  282. <li><a id="toc-libxvid" href="#libxvid">9.23 libxvid</a>
  283. <ul class="toc-numbered-mark">
  284. <li><a id="toc-Options-45" href="#Options-45">9.23.1 Options</a></li>
  285. </ul></li>
  286. <li><a id="toc-MediaCodec" href="#MediaCodec">9.24 MediaCodec</a></li>
  287. <li><a id="toc-MediaFoundation" href="#MediaFoundation">9.25 MediaFoundation</a>
  288. <ul class="toc-numbered-mark">
  289. <li><a id="toc-Options-46" href="#Options-46">9.25.1 Options</a></li>
  290. <li><a id="toc-Examples-2" href="#Examples-2">9.25.2 Examples</a></li>
  291. </ul></li>
  292. <li><a id="toc-Microsoft-RLE" href="#Microsoft-RLE">9.26 Microsoft RLE</a>
  293. <ul class="toc-numbered-mark">
  294. <li><a id="toc-Options-47" href="#Options-47">9.26.1 Options</a></li>
  295. </ul></li>
  296. <li><a id="toc-mpeg2" href="#mpeg2">9.27 mpeg2</a>
  297. <ul class="toc-numbered-mark">
  298. <li><a id="toc-Options-48" href="#Options-48">9.27.1 Options</a></li>
  299. </ul></li>
  300. <li><a id="toc-png" href="#png">9.28 png</a>
  301. <ul class="toc-numbered-mark">
  302. <li><a id="toc-Options-49" href="#Options-49">9.28.1 Options</a></li>
  303. <li><a id="toc-Private-options-1" href="#Private-options-1">9.28.2 Private options</a></li>
  304. </ul></li>
  305. <li><a id="toc-ProRes" href="#ProRes">9.29 ProRes</a>
  306. <ul class="toc-numbered-mark">
  307. <li><a id="toc-Private-Options-for-prores_002dks" href="#Private-Options-for-prores_002dks">9.29.1 Private Options for prores-ks</a></li>
  308. <li><a id="toc-Speed-considerations" href="#Speed-considerations">9.29.2 Speed considerations</a></li>
  309. </ul></li>
  310. <li><a id="toc-QSV-Encoders" href="#QSV-Encoders">9.30 QSV Encoders</a>
  311. <ul class="toc-numbered-mark">
  312. <li><a id="toc-Ratecontrol-Method" href="#Ratecontrol-Method">9.30.1 Ratecontrol Method</a></li>
  313. <li><a id="toc-Global-Options-_002d_003e-MSDK-Options" href="#Global-Options-_002d_003e-MSDK-Options">9.30.2 Global Options -&gt; MSDK Options</a></li>
  314. <li><a id="toc-Common-Options-1" href="#Common-Options-1">9.30.3 Common Options</a></li>
  315. <li><a id="toc-Runtime-Options" href="#Runtime-Options">9.30.4 Runtime Options</a></li>
  316. <li><a id="toc-H264-options" href="#H264-options">9.30.5 H264 options</a></li>
  317. <li><a id="toc-HEVC-Options-1" href="#HEVC-Options-1">9.30.6 HEVC Options</a></li>
  318. <li><a id="toc-MPEG2-Options" href="#MPEG2-Options">9.30.7 MPEG2 Options</a></li>
  319. <li><a id="toc-VP9-Options" href="#VP9-Options">9.30.8 VP9 Options</a></li>
  320. <li><a id="toc-AV1-Options" href="#AV1-Options">9.30.9 AV1 Options</a></li>
  321. </ul></li>
  322. <li><a id="toc-snow" href="#snow">9.31 snow</a>
  323. <ul class="toc-numbered-mark">
  324. <li><a id="toc-Options-50" href="#Options-50">9.31.1 Options</a></li>
  325. </ul></li>
  326. <li><a id="toc-VAAPI-encoders" href="#VAAPI-encoders">9.32 VAAPI encoders</a></li>
  327. <li><a id="toc-vbn" href="#vbn">9.33 vbn</a>
  328. <ul class="toc-numbered-mark">
  329. <li><a id="toc-Options-51" href="#Options-51">9.33.1 Options</a></li>
  330. </ul></li>
  331. <li><a id="toc-vc2" href="#vc2">9.34 vc2</a>
  332. <ul class="toc-numbered-mark">
  333. <li><a id="toc-Options-52" href="#Options-52">9.34.1 Options</a></li>
  334. </ul></li>
  335. </ul></li>
  336. <li><a id="toc-Subtitles-Encoders" href="#Subtitles-Encoders">10 Subtitles Encoders</a>
  337. <ul class="toc-numbered-mark">
  338. <li><a id="toc-dvbsub-1" href="#dvbsub-1">10.1 dvbsub</a>
  339. <ul class="toc-numbered-mark">
  340. <li><a id="toc-Options-53" href="#Options-53">10.1.1 Options</a></li>
  341. </ul></li>
  342. <li><a id="toc-dvdsub-1" href="#dvdsub-1">10.2 dvdsub</a>
  343. <ul class="toc-numbered-mark">
  344. <li><a id="toc-Options-54" href="#Options-54">10.2.1 Options</a></li>
  345. </ul></li>
  346. <li><a id="toc-lrc" href="#lrc">10.3 lrc</a>
  347. <ul class="toc-numbered-mark">
  348. <li><a id="toc-Options-55" href="#Options-55">10.3.1 Options</a></li>
  349. </ul></li>
  350. </ul></li>
  351. <li><a id="toc-See-Also" href="#See-Also">11 See Also</a></li>
  352. <li><a id="toc-Authors" href="#Authors">12 Authors</a></li>
  353. </ul>
  354. </div>
  355. </div>
  356. <a name="Description"></a>
  357. <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>
  358. <p>This document describes the codecs (decoders and encoders) provided by
  359. the libavcodec library.
  360. </p>
  361. <a class="anchor" id="codec_002doptions"></a><a name="Codec-Options"></a>
  362. <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>
  363. <p>libavcodec provides some generic global options, which can be set on
  364. all the encoders and decoders. In addition, each codec may support
  365. so-called private options, which are specific for a given codec.
  366. </p>
  367. <p>Sometimes, a global option may only affect a specific kind of codec,
  368. and may be nonsensical or ignored by another, so you need to be aware
  369. of the meaning of the specified options. Also some options are
  370. meant only for decoding or encoding.
  371. </p>
  372. <p>Options may be set by specifying -<var class="var">option</var> <var class="var">value</var> in the
  373. FFmpeg tools, or by setting the value explicitly in the
  374. <code class="code">AVCodecContext</code> options or using the <samp class="file">libavutil/opt.h</samp> API
  375. for programmatic use.
  376. </p>
  377. <p>The list of supported options follow:
  378. </p>
  379. <dl class="table">
  380. <dt><samp class="option">b <var class="var">integer</var> (<em class="emph">encoding,audio,video</em>)</samp></dt>
  381. <dd><p>Set bitrate in bits/s. Default value is 200K.
  382. </p>
  383. </dd>
  384. <dt><samp class="option">ab <var class="var">integer</var> (<em class="emph">encoding,audio</em>)</samp></dt>
  385. <dd><p>Set audio bitrate (in bits/s). Default value is 128K.
  386. </p>
  387. </dd>
  388. <dt><samp class="option">bt <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  389. <dd><p>Set video bitrate tolerance (in bits/s). In 1-pass mode, bitrate
  390. tolerance specifies how far ratecontrol is willing to deviate from the
  391. target average bitrate value. This is not related to min/max
  392. bitrate. Lowering tolerance too much has an adverse effect on quality.
  393. </p>
  394. </dd>
  395. <dt><samp class="option">flags <var class="var">flags</var> (<em class="emph">decoding/encoding,audio,video,subtitles</em>)</samp></dt>
  396. <dd><p>Set generic flags.
  397. </p>
  398. <p>Possible values:
  399. </p><dl class="table">
  400. <dt>&lsquo;<samp class="samp">mv4</samp>&rsquo;</dt>
  401. <dd><p>Use four motion vector by macroblock (mpeg4).
  402. </p></dd>
  403. <dt>&lsquo;<samp class="samp">qpel</samp>&rsquo;</dt>
  404. <dd><p>Use 1/4 pel motion compensation.
  405. </p></dd>
  406. <dt>&lsquo;<samp class="samp">loop</samp>&rsquo;</dt>
  407. <dd><p>Use loop filter.
  408. </p></dd>
  409. <dt>&lsquo;<samp class="samp">qscale</samp>&rsquo;</dt>
  410. <dd><p>Use fixed qscale.
  411. </p></dd>
  412. <dt>&lsquo;<samp class="samp">pass1</samp>&rsquo;</dt>
  413. <dd><p>Use internal 2pass ratecontrol in first pass mode.
  414. </p></dd>
  415. <dt>&lsquo;<samp class="samp">pass2</samp>&rsquo;</dt>
  416. <dd><p>Use internal 2pass ratecontrol in second pass mode.
  417. </p></dd>
  418. <dt>&lsquo;<samp class="samp">gray</samp>&rsquo;</dt>
  419. <dd><p>Only decode/encode grayscale.
  420. </p></dd>
  421. <dt>&lsquo;<samp class="samp">psnr</samp>&rsquo;</dt>
  422. <dd><p>Set error[?] variables during encoding.
  423. </p></dd>
  424. <dt>&lsquo;<samp class="samp">truncated</samp>&rsquo;</dt>
  425. <dd><p>Input bitstream might be randomly truncated.
  426. </p></dd>
  427. <dt>&lsquo;<samp class="samp">drop_changed</samp>&rsquo;</dt>
  428. <dd><p>Don&rsquo;t output frames whose parameters differ from first decoded frame in stream.
  429. Error AVERROR_INPUT_CHANGED is returned when a frame is dropped.
  430. </p>
  431. </dd>
  432. <dt>&lsquo;<samp class="samp">ildct</samp>&rsquo;</dt>
  433. <dd><p>Use interlaced DCT.
  434. </p></dd>
  435. <dt>&lsquo;<samp class="samp">low_delay</samp>&rsquo;</dt>
  436. <dd><p>Force low delay.
  437. </p></dd>
  438. <dt>&lsquo;<samp class="samp">global_header</samp>&rsquo;</dt>
  439. <dd><p>Place global headers in extradata instead of every keyframe.
  440. </p></dd>
  441. <dt>&lsquo;<samp class="samp">bitexact</samp>&rsquo;</dt>
  442. <dd><p>Only write platform-, build- and time-independent data. (except (I)DCT).
  443. This ensures that file and data checksums are reproducible and match between
  444. platforms. Its primary use is for regression testing.
  445. </p></dd>
  446. <dt>&lsquo;<samp class="samp">aic</samp>&rsquo;</dt>
  447. <dd><p>Apply H263 advanced intra coding / mpeg4 ac prediction.
  448. </p></dd>
  449. <dt>&lsquo;<samp class="samp">ilme</samp>&rsquo;</dt>
  450. <dd><p>Apply interlaced motion estimation.
  451. </p></dd>
  452. <dt>&lsquo;<samp class="samp">cgop</samp>&rsquo;</dt>
  453. <dd><p>Use closed gop.
  454. </p></dd>
  455. <dt>&lsquo;<samp class="samp">output_corrupt</samp>&rsquo;</dt>
  456. <dd><p>Output even potentially corrupted frames.
  457. </p></dd>
  458. </dl>
  459. </dd>
  460. <dt><samp class="option">time_base <var class="var">rational number</var></samp></dt>
  461. <dd><p>Set codec time base.
  462. </p>
  463. <p>It is the fundamental unit of time (in seconds) in terms of which
  464. frame timestamps are represented. For fixed-fps content, timebase
  465. should be <code class="code">1 / frame_rate</code> and timestamp increments should be
  466. identically 1.
  467. </p>
  468. </dd>
  469. <dt><samp class="option">g <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  470. <dd><p>Set the group of picture (GOP) size. Default value is 12.
  471. </p>
  472. </dd>
  473. <dt><samp class="option">ar <var class="var">integer</var> (<em class="emph">decoding/encoding,audio</em>)</samp></dt>
  474. <dd><p>Set audio sampling rate (in Hz).
  475. </p>
  476. </dd>
  477. <dt><samp class="option">ac <var class="var">integer</var> (<em class="emph">decoding/encoding,audio</em>)</samp></dt>
  478. <dd><p>Set number of audio channels.
  479. </p>
  480. </dd>
  481. <dt><samp class="option">cutoff <var class="var">integer</var> (<em class="emph">encoding,audio</em>)</samp></dt>
  482. <dd><p>Set cutoff bandwidth. (Supported only by selected encoders, see
  483. their respective documentation sections.)
  484. </p>
  485. </dd>
  486. <dt><samp class="option">frame_size <var class="var">integer</var> (<em class="emph">encoding,audio</em>)</samp></dt>
  487. <dd><p>Set audio frame size.
  488. </p>
  489. <p>Each submitted frame except the last must contain exactly frame_size
  490. samples per channel. May be 0 when the codec has
  491. CODEC_CAP_VARIABLE_FRAME_SIZE set, in that case the frame size is not
  492. restricted. It is set by some decoders to indicate constant frame
  493. size.
  494. </p>
  495. </dd>
  496. <dt><samp class="option">frame_number <var class="var">integer</var></samp></dt>
  497. <dd><p>Set the frame number.
  498. </p>
  499. </dd>
  500. <dt><samp class="option">delay <var class="var">integer</var></samp></dt>
  501. <dt><samp class="option">qcomp <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  502. <dd><p>Set video quantizer scale compression (VBR). It is used as a constant
  503. in the ratecontrol equation. Recommended range for default rc_eq:
  504. 0.0-1.0.
  505. </p>
  506. </dd>
  507. <dt><samp class="option">qblur <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  508. <dd><p>Set video quantizer scale blur (VBR).
  509. </p>
  510. </dd>
  511. <dt><samp class="option">qmin <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  512. <dd><p>Set min video quantizer scale (VBR). Must be included between -1 and
  513. 69, default value is 2.
  514. </p>
  515. </dd>
  516. <dt><samp class="option">qmax <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  517. <dd><p>Set max video quantizer scale (VBR). Must be included between -1 and
  518. 1024, default value is 31.
  519. </p>
  520. </dd>
  521. <dt><samp class="option">qdiff <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  522. <dd><p>Set max difference between the quantizer scale (VBR).
  523. </p>
  524. </dd>
  525. <dt><samp class="option">bf <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  526. <dd><p>Set max number of B frames between non-B-frames.
  527. </p>
  528. <p>Must be an integer between -1 and 16. 0 means that B-frames are
  529. disabled. If a value of -1 is used, it will choose an automatic value
  530. depending on the encoder.
  531. </p>
  532. <p>Default value is 0.
  533. </p>
  534. </dd>
  535. <dt><samp class="option">b_qfactor <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  536. <dd><p>Set qp factor between P and B frames.
  537. </p>
  538. </dd>
  539. <dt><samp class="option">codec_tag <var class="var">integer</var></samp></dt>
  540. <dt><samp class="option">bug <var class="var">flags</var> (<em class="emph">decoding,video</em>)</samp></dt>
  541. <dd><p>Workaround not auto detected encoder bugs.
  542. </p>
  543. <p>Possible values:
  544. </p><dl class="table">
  545. <dt>&lsquo;<samp class="samp">autodetect</samp>&rsquo;</dt>
  546. <dt>&lsquo;<samp class="samp">xvid_ilace</samp>&rsquo;</dt>
  547. <dd><p>Xvid interlacing bug (autodetected if fourcc==XVIX)
  548. </p></dd>
  549. <dt>&lsquo;<samp class="samp">ump4</samp>&rsquo;</dt>
  550. <dd><p>(autodetected if fourcc==UMP4)
  551. </p></dd>
  552. <dt>&lsquo;<samp class="samp">no_padding</samp>&rsquo;</dt>
  553. <dd><p>padding bug (autodetected)
  554. </p></dd>
  555. <dt>&lsquo;<samp class="samp">amv</samp>&rsquo;</dt>
  556. <dt>&lsquo;<samp class="samp">qpel_chroma</samp>&rsquo;</dt>
  557. <dt>&lsquo;<samp class="samp">std_qpel</samp>&rsquo;</dt>
  558. <dd><p>old standard qpel (autodetected per fourcc/version)
  559. </p></dd>
  560. <dt>&lsquo;<samp class="samp">qpel_chroma2</samp>&rsquo;</dt>
  561. <dt>&lsquo;<samp class="samp">direct_blocksize</samp>&rsquo;</dt>
  562. <dd><p>direct-qpel-blocksize bug (autodetected per fourcc/version)
  563. </p></dd>
  564. <dt>&lsquo;<samp class="samp">edge</samp>&rsquo;</dt>
  565. <dd><p>edge padding bug (autodetected per fourcc/version)
  566. </p></dd>
  567. <dt>&lsquo;<samp class="samp">hpel_chroma</samp>&rsquo;</dt>
  568. <dt>&lsquo;<samp class="samp">dc_clip</samp>&rsquo;</dt>
  569. <dt>&lsquo;<samp class="samp">ms</samp>&rsquo;</dt>
  570. <dd><p>Workaround various bugs in microsoft broken decoders.
  571. </p></dd>
  572. <dt>&lsquo;<samp class="samp">trunc</samp>&rsquo;</dt>
  573. <dd><p>trancated frames
  574. </p></dd>
  575. </dl>
  576. </dd>
  577. <dt><samp class="option">strict <var class="var">integer</var> (<em class="emph">decoding/encoding,audio,video</em>)</samp></dt>
  578. <dd><p>Specify how strictly to follow the standards.
  579. </p>
  580. <p>Possible values:
  581. </p><dl class="table">
  582. <dt>&lsquo;<samp class="samp">very</samp>&rsquo;</dt>
  583. <dd><p>strictly conform to an older more strict version of the spec or reference software
  584. </p></dd>
  585. <dt>&lsquo;<samp class="samp">strict</samp>&rsquo;</dt>
  586. <dd><p>strictly conform to all the things in the spec no matter what consequences
  587. </p></dd>
  588. <dt>&lsquo;<samp class="samp">normal</samp>&rsquo;</dt>
  589. <dt>&lsquo;<samp class="samp">unofficial</samp>&rsquo;</dt>
  590. <dd><p>allow unofficial extensions
  591. </p></dd>
  592. <dt>&lsquo;<samp class="samp">experimental</samp>&rsquo;</dt>
  593. <dd><p>allow non standardized experimental things, experimental
  594. (unfinished/work in progress/not well tested) decoders and encoders.
  595. Note: experimental decoders can pose a security risk, do not use this for
  596. decoding untrusted input.
  597. </p></dd>
  598. </dl>
  599. </dd>
  600. <dt><samp class="option">b_qoffset <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  601. <dd><p>Set QP offset between P and B frames.
  602. </p>
  603. </dd>
  604. <dt><samp class="option">err_detect <var class="var">flags</var> (<em class="emph">decoding,audio,video</em>)</samp></dt>
  605. <dd><p>Set error detection flags.
  606. </p>
  607. <p>Possible values:
  608. </p><dl class="table">
  609. <dt>&lsquo;<samp class="samp">crccheck</samp>&rsquo;</dt>
  610. <dd><p>verify embedded CRCs
  611. </p></dd>
  612. <dt>&lsquo;<samp class="samp">bitstream</samp>&rsquo;</dt>
  613. <dd><p>detect bitstream specification deviations
  614. </p></dd>
  615. <dt>&lsquo;<samp class="samp">buffer</samp>&rsquo;</dt>
  616. <dd><p>detect improper bitstream length
  617. </p></dd>
  618. <dt>&lsquo;<samp class="samp">explode</samp>&rsquo;</dt>
  619. <dd><p>abort decoding on minor error detection
  620. </p></dd>
  621. <dt>&lsquo;<samp class="samp">ignore_err</samp>&rsquo;</dt>
  622. <dd><p>ignore decoding errors, and continue decoding.
  623. This is useful if you want to analyze the content of a video and thus want
  624. everything to be decoded no matter what. This option will not result in a video
  625. that is pleasing to watch in case of errors.
  626. </p></dd>
  627. <dt>&lsquo;<samp class="samp">careful</samp>&rsquo;</dt>
  628. <dd><p>consider things that violate the spec and have not been seen in the wild as errors
  629. </p></dd>
  630. <dt>&lsquo;<samp class="samp">compliant</samp>&rsquo;</dt>
  631. <dd><p>consider all spec non compliancies as errors
  632. </p></dd>
  633. <dt>&lsquo;<samp class="samp">aggressive</samp>&rsquo;</dt>
  634. <dd><p>consider things that a sane encoder should not do as an error
  635. </p></dd>
  636. </dl>
  637. </dd>
  638. <dt><samp class="option">has_b_frames <var class="var">integer</var></samp></dt>
  639. <dt><samp class="option">block_align <var class="var">integer</var></samp></dt>
  640. <dt><samp class="option">rc_override_count <var class="var">integer</var></samp></dt>
  641. <dt><samp class="option">maxrate <var class="var">integer</var> (<em class="emph">encoding,audio,video</em>)</samp></dt>
  642. <dd><p>Set max bitrate tolerance (in bits/s). Requires bufsize to be set.
  643. </p>
  644. </dd>
  645. <dt><samp class="option">minrate <var class="var">integer</var> (<em class="emph">encoding,audio,video</em>)</samp></dt>
  646. <dd><p>Set min bitrate tolerance (in bits/s). Most useful in setting up a CBR
  647. encode. It is of little use elsewise.
  648. </p>
  649. </dd>
  650. <dt><samp class="option">bufsize <var class="var">integer</var> (<em class="emph">encoding,audio,video</em>)</samp></dt>
  651. <dd><p>Set ratecontrol buffer size (in bits).
  652. </p>
  653. </dd>
  654. <dt><samp class="option">i_qfactor <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  655. <dd><p>Set QP factor between P and I frames.
  656. </p>
  657. </dd>
  658. <dt><samp class="option">i_qoffset <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  659. <dd><p>Set QP offset between P and I frames.
  660. </p>
  661. </dd>
  662. <dt><samp class="option">dct <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  663. <dd><p>Set DCT algorithm.
  664. </p>
  665. <p>Possible values:
  666. </p><dl class="table">
  667. <dt>&lsquo;<samp class="samp">auto</samp>&rsquo;</dt>
  668. <dd><p>autoselect a good one (default)
  669. </p></dd>
  670. <dt>&lsquo;<samp class="samp">fastint</samp>&rsquo;</dt>
  671. <dd><p>fast integer
  672. </p></dd>
  673. <dt>&lsquo;<samp class="samp">int</samp>&rsquo;</dt>
  674. <dd><p>accurate integer
  675. </p></dd>
  676. <dt>&lsquo;<samp class="samp">mmx</samp>&rsquo;</dt>
  677. <dt>&lsquo;<samp class="samp">altivec</samp>&rsquo;</dt>
  678. <dt>&lsquo;<samp class="samp">faan</samp>&rsquo;</dt>
  679. <dd><p>floating point AAN DCT
  680. </p></dd>
  681. </dl>
  682. </dd>
  683. <dt><samp class="option">lumi_mask <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  684. <dd><p>Compress bright areas stronger than medium ones.
  685. </p>
  686. </dd>
  687. <dt><samp class="option">tcplx_mask <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  688. <dd><p>Set temporal complexity masking.
  689. </p>
  690. </dd>
  691. <dt><samp class="option">scplx_mask <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  692. <dd><p>Set spatial complexity masking.
  693. </p>
  694. </dd>
  695. <dt><samp class="option">p_mask <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  696. <dd><p>Set inter masking.
  697. </p>
  698. </dd>
  699. <dt><samp class="option">dark_mask <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  700. <dd><p>Compress dark areas stronger than medium ones.
  701. </p>
  702. </dd>
  703. <dt><samp class="option">idct <var class="var">integer</var> (<em class="emph">decoding/encoding,video</em>)</samp></dt>
  704. <dd><p>Select IDCT implementation.
  705. </p>
  706. <p>Possible values:
  707. </p><dl class="table">
  708. <dt>&lsquo;<samp class="samp">auto</samp>&rsquo;</dt>
  709. <dt>&lsquo;<samp class="samp">int</samp>&rsquo;</dt>
  710. <dt>&lsquo;<samp class="samp">simple</samp>&rsquo;</dt>
  711. <dt>&lsquo;<samp class="samp">simplemmx</samp>&rsquo;</dt>
  712. <dt>&lsquo;<samp class="samp">simpleauto</samp>&rsquo;</dt>
  713. <dd><p>Automatically pick a IDCT compatible with the simple one
  714. </p>
  715. </dd>
  716. <dt>&lsquo;<samp class="samp">arm</samp>&rsquo;</dt>
  717. <dt>&lsquo;<samp class="samp">altivec</samp>&rsquo;</dt>
  718. <dt>&lsquo;<samp class="samp">sh4</samp>&rsquo;</dt>
  719. <dt>&lsquo;<samp class="samp">simplearm</samp>&rsquo;</dt>
  720. <dt>&lsquo;<samp class="samp">simplearmv5te</samp>&rsquo;</dt>
  721. <dt>&lsquo;<samp class="samp">simplearmv6</samp>&rsquo;</dt>
  722. <dt>&lsquo;<samp class="samp">simpleneon</samp>&rsquo;</dt>
  723. <dt>&lsquo;<samp class="samp">xvid</samp>&rsquo;</dt>
  724. <dt>&lsquo;<samp class="samp">faani</samp>&rsquo;</dt>
  725. <dd><p>floating point AAN IDCT
  726. </p></dd>
  727. </dl>
  728. </dd>
  729. <dt><samp class="option">slice_count <var class="var">integer</var></samp></dt>
  730. <dt><samp class="option">ec <var class="var">flags</var> (<em class="emph">decoding,video</em>)</samp></dt>
  731. <dd><p>Set error concealment strategy.
  732. </p>
  733. <p>Possible values:
  734. </p><dl class="table">
  735. <dt>&lsquo;<samp class="samp">guess_mvs</samp>&rsquo;</dt>
  736. <dd><p>iterative motion vector (MV) search (slow)
  737. </p></dd>
  738. <dt>&lsquo;<samp class="samp">deblock</samp>&rsquo;</dt>
  739. <dd><p>use strong deblock filter for damaged MBs
  740. </p></dd>
  741. <dt>&lsquo;<samp class="samp">favor_inter</samp>&rsquo;</dt>
  742. <dd><p>favor predicting from the previous frame instead of the current
  743. </p></dd>
  744. </dl>
  745. </dd>
  746. <dt><samp class="option">bits_per_coded_sample <var class="var">integer</var></samp></dt>
  747. <dt><samp class="option">aspect <var class="var">rational number</var> (<em class="emph">encoding,video</em>)</samp></dt>
  748. <dd><p>Set sample aspect ratio.
  749. </p>
  750. </dd>
  751. <dt><samp class="option">sar <var class="var">rational number</var> (<em class="emph">encoding,video</em>)</samp></dt>
  752. <dd><p>Set sample aspect ratio. Alias to <var class="var">aspect</var>.
  753. </p>
  754. </dd>
  755. <dt><samp class="option">debug <var class="var">flags</var> (<em class="emph">decoding/encoding,audio,video,subtitles</em>)</samp></dt>
  756. <dd><p>Print specific debug info.
  757. </p>
  758. <p>Possible values:
  759. </p><dl class="table">
  760. <dt>&lsquo;<samp class="samp">pict</samp>&rsquo;</dt>
  761. <dd><p>picture info
  762. </p></dd>
  763. <dt>&lsquo;<samp class="samp">rc</samp>&rsquo;</dt>
  764. <dd><p>rate control
  765. </p></dd>
  766. <dt>&lsquo;<samp class="samp">bitstream</samp>&rsquo;</dt>
  767. <dt>&lsquo;<samp class="samp">mb_type</samp>&rsquo;</dt>
  768. <dd><p>macroblock (MB) type
  769. </p></dd>
  770. <dt>&lsquo;<samp class="samp">qp</samp>&rsquo;</dt>
  771. <dd><p>per-block quantization parameter (QP)
  772. </p></dd>
  773. <dt>&lsquo;<samp class="samp">dct_coeff</samp>&rsquo;</dt>
  774. <dt>&lsquo;<samp class="samp">green_metadata</samp>&rsquo;</dt>
  775. <dd><p>display complexity metadata for the upcoming frame, GoP or for a given duration.
  776. </p>
  777. </dd>
  778. <dt>&lsquo;<samp class="samp">skip</samp>&rsquo;</dt>
  779. <dt>&lsquo;<samp class="samp">startcode</samp>&rsquo;</dt>
  780. <dt>&lsquo;<samp class="samp">er</samp>&rsquo;</dt>
  781. <dd><p>error recognition
  782. </p></dd>
  783. <dt>&lsquo;<samp class="samp">mmco</samp>&rsquo;</dt>
  784. <dd><p>memory management control operations (H.264)
  785. </p></dd>
  786. <dt>&lsquo;<samp class="samp">bugs</samp>&rsquo;</dt>
  787. <dt>&lsquo;<samp class="samp">buffers</samp>&rsquo;</dt>
  788. <dd><p>picture buffer allocations
  789. </p></dd>
  790. <dt>&lsquo;<samp class="samp">thread_ops</samp>&rsquo;</dt>
  791. <dd><p>threading operations
  792. </p></dd>
  793. <dt>&lsquo;<samp class="samp">nomc</samp>&rsquo;</dt>
  794. <dd><p>skip motion compensation
  795. </p></dd>
  796. </dl>
  797. </dd>
  798. <dt><samp class="option">cmp <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  799. <dd><p>Set full pel me compare function.
  800. </p>
  801. <p>Possible values:
  802. </p><dl class="table">
  803. <dt>&lsquo;<samp class="samp">sad</samp>&rsquo;</dt>
  804. <dd><p>sum of absolute differences, fast (default)
  805. </p></dd>
  806. <dt>&lsquo;<samp class="samp">sse</samp>&rsquo;</dt>
  807. <dd><p>sum of squared errors
  808. </p></dd>
  809. <dt>&lsquo;<samp class="samp">satd</samp>&rsquo;</dt>
  810. <dd><p>sum of absolute Hadamard transformed differences
  811. </p></dd>
  812. <dt>&lsquo;<samp class="samp">dct</samp>&rsquo;</dt>
  813. <dd><p>sum of absolute DCT transformed differences
  814. </p></dd>
  815. <dt>&lsquo;<samp class="samp">psnr</samp>&rsquo;</dt>
  816. <dd><p>sum of squared quantization errors (avoid, low quality)
  817. </p></dd>
  818. <dt>&lsquo;<samp class="samp">bit</samp>&rsquo;</dt>
  819. <dd><p>number of bits needed for the block
  820. </p></dd>
  821. <dt>&lsquo;<samp class="samp">rd</samp>&rsquo;</dt>
  822. <dd><p>rate distortion optimal, slow
  823. </p></dd>
  824. <dt>&lsquo;<samp class="samp">zero</samp>&rsquo;</dt>
  825. <dd><p>0
  826. </p></dd>
  827. <dt>&lsquo;<samp class="samp">vsad</samp>&rsquo;</dt>
  828. <dd><p>sum of absolute vertical differences
  829. </p></dd>
  830. <dt>&lsquo;<samp class="samp">vsse</samp>&rsquo;</dt>
  831. <dd><p>sum of squared vertical differences
  832. </p></dd>
  833. <dt>&lsquo;<samp class="samp">nsse</samp>&rsquo;</dt>
  834. <dd><p>noise preserving sum of squared differences
  835. </p></dd>
  836. <dt>&lsquo;<samp class="samp">w53</samp>&rsquo;</dt>
  837. <dd><p>5/3 wavelet, only used in snow
  838. </p></dd>
  839. <dt>&lsquo;<samp class="samp">w97</samp>&rsquo;</dt>
  840. <dd><p>9/7 wavelet, only used in snow
  841. </p></dd>
  842. <dt>&lsquo;<samp class="samp">dctmax</samp>&rsquo;</dt>
  843. <dt>&lsquo;<samp class="samp">chroma</samp>&rsquo;</dt>
  844. </dl>
  845. </dd>
  846. <dt><samp class="option">subcmp <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  847. <dd><p>Set sub pel me compare function.
  848. </p>
  849. <p>Possible values:
  850. </p><dl class="table">
  851. <dt>&lsquo;<samp class="samp">sad</samp>&rsquo;</dt>
  852. <dd><p>sum of absolute differences, fast (default)
  853. </p></dd>
  854. <dt>&lsquo;<samp class="samp">sse</samp>&rsquo;</dt>
  855. <dd><p>sum of squared errors
  856. </p></dd>
  857. <dt>&lsquo;<samp class="samp">satd</samp>&rsquo;</dt>
  858. <dd><p>sum of absolute Hadamard transformed differences
  859. </p></dd>
  860. <dt>&lsquo;<samp class="samp">dct</samp>&rsquo;</dt>
  861. <dd><p>sum of absolute DCT transformed differences
  862. </p></dd>
  863. <dt>&lsquo;<samp class="samp">psnr</samp>&rsquo;</dt>
  864. <dd><p>sum of squared quantization errors (avoid, low quality)
  865. </p></dd>
  866. <dt>&lsquo;<samp class="samp">bit</samp>&rsquo;</dt>
  867. <dd><p>number of bits needed for the block
  868. </p></dd>
  869. <dt>&lsquo;<samp class="samp">rd</samp>&rsquo;</dt>
  870. <dd><p>rate distortion optimal, slow
  871. </p></dd>
  872. <dt>&lsquo;<samp class="samp">zero</samp>&rsquo;</dt>
  873. <dd><p>0
  874. </p></dd>
  875. <dt>&lsquo;<samp class="samp">vsad</samp>&rsquo;</dt>
  876. <dd><p>sum of absolute vertical differences
  877. </p></dd>
  878. <dt>&lsquo;<samp class="samp">vsse</samp>&rsquo;</dt>
  879. <dd><p>sum of squared vertical differences
  880. </p></dd>
  881. <dt>&lsquo;<samp class="samp">nsse</samp>&rsquo;</dt>
  882. <dd><p>noise preserving sum of squared differences
  883. </p></dd>
  884. <dt>&lsquo;<samp class="samp">w53</samp>&rsquo;</dt>
  885. <dd><p>5/3 wavelet, only used in snow
  886. </p></dd>
  887. <dt>&lsquo;<samp class="samp">w97</samp>&rsquo;</dt>
  888. <dd><p>9/7 wavelet, only used in snow
  889. </p></dd>
  890. <dt>&lsquo;<samp class="samp">dctmax</samp>&rsquo;</dt>
  891. <dt>&lsquo;<samp class="samp">chroma</samp>&rsquo;</dt>
  892. </dl>
  893. </dd>
  894. <dt><samp class="option">mbcmp <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  895. <dd><p>Set macroblock compare function.
  896. </p>
  897. <p>Possible values:
  898. </p><dl class="table">
  899. <dt>&lsquo;<samp class="samp">sad</samp>&rsquo;</dt>
  900. <dd><p>sum of absolute differences, fast (default)
  901. </p></dd>
  902. <dt>&lsquo;<samp class="samp">sse</samp>&rsquo;</dt>
  903. <dd><p>sum of squared errors
  904. </p></dd>
  905. <dt>&lsquo;<samp class="samp">satd</samp>&rsquo;</dt>
  906. <dd><p>sum of absolute Hadamard transformed differences
  907. </p></dd>
  908. <dt>&lsquo;<samp class="samp">dct</samp>&rsquo;</dt>
  909. <dd><p>sum of absolute DCT transformed differences
  910. </p></dd>
  911. <dt>&lsquo;<samp class="samp">psnr</samp>&rsquo;</dt>
  912. <dd><p>sum of squared quantization errors (avoid, low quality)
  913. </p></dd>
  914. <dt>&lsquo;<samp class="samp">bit</samp>&rsquo;</dt>
  915. <dd><p>number of bits needed for the block
  916. </p></dd>
  917. <dt>&lsquo;<samp class="samp">rd</samp>&rsquo;</dt>
  918. <dd><p>rate distortion optimal, slow
  919. </p></dd>
  920. <dt>&lsquo;<samp class="samp">zero</samp>&rsquo;</dt>
  921. <dd><p>0
  922. </p></dd>
  923. <dt>&lsquo;<samp class="samp">vsad</samp>&rsquo;</dt>
  924. <dd><p>sum of absolute vertical differences
  925. </p></dd>
  926. <dt>&lsquo;<samp class="samp">vsse</samp>&rsquo;</dt>
  927. <dd><p>sum of squared vertical differences
  928. </p></dd>
  929. <dt>&lsquo;<samp class="samp">nsse</samp>&rsquo;</dt>
  930. <dd><p>noise preserving sum of squared differences
  931. </p></dd>
  932. <dt>&lsquo;<samp class="samp">w53</samp>&rsquo;</dt>
  933. <dd><p>5/3 wavelet, only used in snow
  934. </p></dd>
  935. <dt>&lsquo;<samp class="samp">w97</samp>&rsquo;</dt>
  936. <dd><p>9/7 wavelet, only used in snow
  937. </p></dd>
  938. <dt>&lsquo;<samp class="samp">dctmax</samp>&rsquo;</dt>
  939. <dt>&lsquo;<samp class="samp">chroma</samp>&rsquo;</dt>
  940. </dl>
  941. </dd>
  942. <dt><samp class="option">ildctcmp <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  943. <dd><p>Set interlaced dct compare function.
  944. </p>
  945. <p>Possible values:
  946. </p><dl class="table">
  947. <dt>&lsquo;<samp class="samp">sad</samp>&rsquo;</dt>
  948. <dd><p>sum of absolute differences, fast (default)
  949. </p></dd>
  950. <dt>&lsquo;<samp class="samp">sse</samp>&rsquo;</dt>
  951. <dd><p>sum of squared errors
  952. </p></dd>
  953. <dt>&lsquo;<samp class="samp">satd</samp>&rsquo;</dt>
  954. <dd><p>sum of absolute Hadamard transformed differences
  955. </p></dd>
  956. <dt>&lsquo;<samp class="samp">dct</samp>&rsquo;</dt>
  957. <dd><p>sum of absolute DCT transformed differences
  958. </p></dd>
  959. <dt>&lsquo;<samp class="samp">psnr</samp>&rsquo;</dt>
  960. <dd><p>sum of squared quantization errors (avoid, low quality)
  961. </p></dd>
  962. <dt>&lsquo;<samp class="samp">bit</samp>&rsquo;</dt>
  963. <dd><p>number of bits needed for the block
  964. </p></dd>
  965. <dt>&lsquo;<samp class="samp">rd</samp>&rsquo;</dt>
  966. <dd><p>rate distortion optimal, slow
  967. </p></dd>
  968. <dt>&lsquo;<samp class="samp">zero</samp>&rsquo;</dt>
  969. <dd><p>0
  970. </p></dd>
  971. <dt>&lsquo;<samp class="samp">vsad</samp>&rsquo;</dt>
  972. <dd><p>sum of absolute vertical differences
  973. </p></dd>
  974. <dt>&lsquo;<samp class="samp">vsse</samp>&rsquo;</dt>
  975. <dd><p>sum of squared vertical differences
  976. </p></dd>
  977. <dt>&lsquo;<samp class="samp">nsse</samp>&rsquo;</dt>
  978. <dd><p>noise preserving sum of squared differences
  979. </p></dd>
  980. <dt>&lsquo;<samp class="samp">w53</samp>&rsquo;</dt>
  981. <dd><p>5/3 wavelet, only used in snow
  982. </p></dd>
  983. <dt>&lsquo;<samp class="samp">w97</samp>&rsquo;</dt>
  984. <dd><p>9/7 wavelet, only used in snow
  985. </p></dd>
  986. <dt>&lsquo;<samp class="samp">dctmax</samp>&rsquo;</dt>
  987. <dt>&lsquo;<samp class="samp">chroma</samp>&rsquo;</dt>
  988. </dl>
  989. </dd>
  990. <dt><samp class="option">dia_size <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  991. <dd><p>Set diamond type &amp; size for motion estimation.
  992. </p><dl class="table">
  993. <dt>&lsquo;<samp class="samp">(1024, INT_MAX)</samp>&rsquo;</dt>
  994. <dd><p>full motion estimation(slowest)
  995. </p></dd>
  996. <dt>&lsquo;<samp class="samp">(768, 1024]</samp>&rsquo;</dt>
  997. <dd><p>umh motion estimation
  998. </p></dd>
  999. <dt>&lsquo;<samp class="samp">(512, 768]</samp>&rsquo;</dt>
  1000. <dd><p>hex motion estimation
  1001. </p></dd>
  1002. <dt>&lsquo;<samp class="samp">(256, 512]</samp>&rsquo;</dt>
  1003. <dd><p>l2s diamond motion estimation
  1004. </p></dd>
  1005. <dt>&lsquo;<samp class="samp">[2,256]</samp>&rsquo;</dt>
  1006. <dd><p>var diamond motion estimation
  1007. </p></dd>
  1008. <dt>&lsquo;<samp class="samp">(-1, 2)</samp>&rsquo;</dt>
  1009. <dd><p>small diamond motion estimation
  1010. </p></dd>
  1011. <dt>&lsquo;<samp class="samp">-1</samp>&rsquo;</dt>
  1012. <dd><p>funny diamond motion estimation
  1013. </p></dd>
  1014. <dt>&lsquo;<samp class="samp">(INT_MIN, -1)</samp>&rsquo;</dt>
  1015. <dd><p>sab diamond motion estimation
  1016. </p></dd>
  1017. </dl>
  1018. </dd>
  1019. <dt><samp class="option">last_pred <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1020. <dd><p>Set amount of motion predictors from the previous frame.
  1021. </p>
  1022. </dd>
  1023. <dt><samp class="option">precmp <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1024. <dd><p>Set pre motion estimation compare function.
  1025. </p>
  1026. <p>Possible values:
  1027. </p><dl class="table">
  1028. <dt>&lsquo;<samp class="samp">sad</samp>&rsquo;</dt>
  1029. <dd><p>sum of absolute differences, fast (default)
  1030. </p></dd>
  1031. <dt>&lsquo;<samp class="samp">sse</samp>&rsquo;</dt>
  1032. <dd><p>sum of squared errors
  1033. </p></dd>
  1034. <dt>&lsquo;<samp class="samp">satd</samp>&rsquo;</dt>
  1035. <dd><p>sum of absolute Hadamard transformed differences
  1036. </p></dd>
  1037. <dt>&lsquo;<samp class="samp">dct</samp>&rsquo;</dt>
  1038. <dd><p>sum of absolute DCT transformed differences
  1039. </p></dd>
  1040. <dt>&lsquo;<samp class="samp">psnr</samp>&rsquo;</dt>
  1041. <dd><p>sum of squared quantization errors (avoid, low quality)
  1042. </p></dd>
  1043. <dt>&lsquo;<samp class="samp">bit</samp>&rsquo;</dt>
  1044. <dd><p>number of bits needed for the block
  1045. </p></dd>
  1046. <dt>&lsquo;<samp class="samp">rd</samp>&rsquo;</dt>
  1047. <dd><p>rate distortion optimal, slow
  1048. </p></dd>
  1049. <dt>&lsquo;<samp class="samp">zero</samp>&rsquo;</dt>
  1050. <dd><p>0
  1051. </p></dd>
  1052. <dt>&lsquo;<samp class="samp">vsad</samp>&rsquo;</dt>
  1053. <dd><p>sum of absolute vertical differences
  1054. </p></dd>
  1055. <dt>&lsquo;<samp class="samp">vsse</samp>&rsquo;</dt>
  1056. <dd><p>sum of squared vertical differences
  1057. </p></dd>
  1058. <dt>&lsquo;<samp class="samp">nsse</samp>&rsquo;</dt>
  1059. <dd><p>noise preserving sum of squared differences
  1060. </p></dd>
  1061. <dt>&lsquo;<samp class="samp">w53</samp>&rsquo;</dt>
  1062. <dd><p>5/3 wavelet, only used in snow
  1063. </p></dd>
  1064. <dt>&lsquo;<samp class="samp">w97</samp>&rsquo;</dt>
  1065. <dd><p>9/7 wavelet, only used in snow
  1066. </p></dd>
  1067. <dt>&lsquo;<samp class="samp">dctmax</samp>&rsquo;</dt>
  1068. <dt>&lsquo;<samp class="samp">chroma</samp>&rsquo;</dt>
  1069. </dl>
  1070. </dd>
  1071. <dt><samp class="option">pre_dia_size <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1072. <dd><p>Set diamond type &amp; size for motion estimation pre-pass.
  1073. </p>
  1074. </dd>
  1075. <dt><samp class="option">subq <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1076. <dd><p>Set sub pel motion estimation quality.
  1077. </p>
  1078. </dd>
  1079. <dt><samp class="option">me_range <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1080. <dd><p>Set limit motion vectors range (1023 for DivX player).
  1081. </p>
  1082. </dd>
  1083. <dt><samp class="option">global_quality <var class="var">integer</var> (<em class="emph">encoding,audio,video</em>)</samp></dt>
  1084. <dt><samp class="option">slice_flags <var class="var">integer</var></samp></dt>
  1085. <dt><samp class="option">mbd <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1086. <dd><p>Set macroblock decision algorithm (high quality mode).
  1087. </p>
  1088. <p>Possible values:
  1089. </p><dl class="table">
  1090. <dt>&lsquo;<samp class="samp">simple</samp>&rsquo;</dt>
  1091. <dd><p>use mbcmp (default)
  1092. </p></dd>
  1093. <dt>&lsquo;<samp class="samp">bits</samp>&rsquo;</dt>
  1094. <dd><p>use fewest bits
  1095. </p></dd>
  1096. <dt>&lsquo;<samp class="samp">rd</samp>&rsquo;</dt>
  1097. <dd><p>use best rate distortion
  1098. </p></dd>
  1099. </dl>
  1100. </dd>
  1101. <dt><samp class="option">rc_init_occupancy <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1102. <dd><p>Set number of bits which should be loaded into the rc buffer before
  1103. decoding starts.
  1104. </p>
  1105. </dd>
  1106. <dt><samp class="option">flags2 <var class="var">flags</var> (<em class="emph">decoding/encoding,audio,video,subtitles</em>)</samp></dt>
  1107. <dd>
  1108. <p>Possible values:
  1109. </p><dl class="table">
  1110. <dt>&lsquo;<samp class="samp">fast</samp>&rsquo;</dt>
  1111. <dd><p>Allow non spec compliant speedup tricks.
  1112. </p></dd>
  1113. <dt>&lsquo;<samp class="samp">noout</samp>&rsquo;</dt>
  1114. <dd><p>Skip bitstream encoding.
  1115. </p></dd>
  1116. <dt>&lsquo;<samp class="samp">ignorecrop</samp>&rsquo;</dt>
  1117. <dd><p>Ignore cropping information from sps.
  1118. </p></dd>
  1119. <dt>&lsquo;<samp class="samp">local_header</samp>&rsquo;</dt>
  1120. <dd><p>Place global headers at every keyframe instead of in extradata.
  1121. </p></dd>
  1122. <dt>&lsquo;<samp class="samp">chunks</samp>&rsquo;</dt>
  1123. <dd><p>Frame data might be split into multiple chunks.
  1124. </p></dd>
  1125. <dt>&lsquo;<samp class="samp">showall</samp>&rsquo;</dt>
  1126. <dd><p>Show all frames before the first keyframe.
  1127. </p></dd>
  1128. <dt>&lsquo;<samp class="samp">export_mvs</samp>&rsquo;</dt>
  1129. <dd><p>Export motion vectors into frame side-data (see <code class="code">AV_FRAME_DATA_MOTION_VECTORS</code>)
  1130. for codecs that support it. See also <samp class="file">doc/examples/export_mvs.c</samp>.
  1131. </p></dd>
  1132. <dt>&lsquo;<samp class="samp">skip_manual</samp>&rsquo;</dt>
  1133. <dd><p>Do not skip samples and export skip information as frame side data.
  1134. </p></dd>
  1135. <dt>&lsquo;<samp class="samp">ass_ro_flush_noop</samp>&rsquo;</dt>
  1136. <dd><p>Do not reset ASS ReadOrder field on flush.
  1137. </p></dd>
  1138. <dt>&lsquo;<samp class="samp">icc_profiles</samp>&rsquo;</dt>
  1139. <dd><p>Generate/parse embedded ICC profiles from/to colorimetry tags.
  1140. </p></dd>
  1141. </dl>
  1142. </dd>
  1143. <dt><samp class="option">export_side_data <var class="var">flags</var> (<em class="emph">decoding/encoding,audio,video,subtitles</em>)</samp></dt>
  1144. <dd>
  1145. <p>Possible values:
  1146. </p><dl class="table">
  1147. <dt>&lsquo;<samp class="samp">mvs</samp>&rsquo;</dt>
  1148. <dd><p>Export motion vectors into frame side-data (see <code class="code">AV_FRAME_DATA_MOTION_VECTORS</code>)
  1149. for codecs that support it. See also <samp class="file">doc/examples/export_mvs.c</samp>.
  1150. </p></dd>
  1151. <dt>&lsquo;<samp class="samp">prft</samp>&rsquo;</dt>
  1152. <dd><p>Export encoder Producer Reference Time into packet side-data (see <code class="code">AV_PKT_DATA_PRFT</code>)
  1153. for codecs that support it.
  1154. </p></dd>
  1155. <dt>&lsquo;<samp class="samp">venc_params</samp>&rsquo;</dt>
  1156. <dd><p>Export video encoding parameters through frame side data (see <code class="code">AV_FRAME_DATA_VIDEO_ENC_PARAMS</code>)
  1157. for codecs that support it. At present, those are H.264 and VP9.
  1158. </p></dd>
  1159. <dt>&lsquo;<samp class="samp">film_grain</samp>&rsquo;</dt>
  1160. <dd><p>Export film grain parameters through frame side data (see <code class="code">AV_FRAME_DATA_FILM_GRAIN_PARAMS</code>).
  1161. Supported at present by AV1 decoders.
  1162. </p></dd>
  1163. <dt>&lsquo;<samp class="samp">enhancements</samp>&rsquo;</dt>
  1164. <dd><p>Export picture enhancement metadata through frame side data, e.g. LCEVC (see <code class="code">AV_FRAME_DATA_LCEVC</code>).
  1165. </p></dd>
  1166. </dl>
  1167. </dd>
  1168. <dt><samp class="option">threads <var class="var">integer</var> (<em class="emph">decoding/encoding,video</em>)</samp></dt>
  1169. <dd><p>Set the number of threads to be used, in case the selected codec
  1170. implementation supports multi-threading.
  1171. </p>
  1172. <p>Possible values:
  1173. </p><dl class="table">
  1174. <dt>&lsquo;<samp class="samp">auto, 0</samp>&rsquo;</dt>
  1175. <dd><p>automatically select the number of threads to set
  1176. </p></dd>
  1177. </dl>
  1178. <p>Default value is &lsquo;<samp class="samp">auto</samp>&rsquo;.
  1179. </p>
  1180. </dd>
  1181. <dt><samp class="option">dc <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1182. <dd><p>Set intra_dc_precision.
  1183. </p>
  1184. </dd>
  1185. <dt><samp class="option">nssew <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1186. <dd><p>Set nsse weight.
  1187. </p>
  1188. </dd>
  1189. <dt><samp class="option">skip_top <var class="var">integer</var> (<em class="emph">decoding,video</em>)</samp></dt>
  1190. <dd><p>Set number of macroblock rows at the top which are skipped.
  1191. </p>
  1192. </dd>
  1193. <dt><samp class="option">skip_bottom <var class="var">integer</var> (<em class="emph">decoding,video</em>)</samp></dt>
  1194. <dd><p>Set number of macroblock rows at the bottom which are skipped.
  1195. </p>
  1196. </dd>
  1197. <dt><samp class="option">profile <var class="var">integer</var> (<em class="emph">encoding,audio,video</em>)</samp></dt>
  1198. <dd>
  1199. <p>Set encoder codec profile. Default value is &lsquo;<samp class="samp">unknown</samp>&rsquo;. Encoder specific
  1200. profiles are documented in the relevant encoder documentation.
  1201. </p>
  1202. </dd>
  1203. <dt><samp class="option">level <var class="var">integer</var> (<em class="emph">encoding,audio,video</em>)</samp></dt>
  1204. <dd>
  1205. <p>Set the encoder level. This level depends on the specific codec, and
  1206. might correspond to the profile level. It is set by default to
  1207. &lsquo;<samp class="samp">unknown</samp>&rsquo;.
  1208. </p>
  1209. <p>Possible values:
  1210. </p><dl class="table">
  1211. <dt>&lsquo;<samp class="samp">unknown</samp>&rsquo;</dt>
  1212. </dl>
  1213. </dd>
  1214. <dt><samp class="option">lowres <var class="var">integer</var> (<em class="emph">decoding,audio,video</em>)</samp></dt>
  1215. <dd><p>Decode at 1= 1/2, 2=1/4, 3=1/8 resolutions.
  1216. </p>
  1217. </dd>
  1218. <dt><samp class="option">mblmin <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1219. <dd><p>Set min macroblock lagrange factor (VBR).
  1220. </p>
  1221. </dd>
  1222. <dt><samp class="option">mblmax <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1223. <dd><p>Set max macroblock lagrange factor (VBR).
  1224. </p>
  1225. </dd>
  1226. <dt><samp class="option">skip_loop_filter <var class="var">integer</var> (<em class="emph">decoding,video</em>)</samp></dt>
  1227. <dt><samp class="option">skip_idct <var class="var">integer</var> (<em class="emph">decoding,video</em>)</samp></dt>
  1228. <dt><samp class="option">skip_frame <var class="var">integer</var> (<em class="emph">decoding,video</em>)</samp></dt>
  1229. <dd>
  1230. <p>Make decoder discard processing depending on the frame type selected
  1231. by the option value.
  1232. </p>
  1233. <p><samp class="option">skip_loop_filter</samp> skips frame loop filtering, <samp class="option">skip_idct</samp>
  1234. skips frame IDCT/dequantization, <samp class="option">skip_frame</samp> skips decoding.
  1235. </p>
  1236. <p>Possible values:
  1237. </p><dl class="table">
  1238. <dt>&lsquo;<samp class="samp">none</samp>&rsquo;</dt>
  1239. <dd><p>Discard no frame.
  1240. </p>
  1241. </dd>
  1242. <dt>&lsquo;<samp class="samp">default</samp>&rsquo;</dt>
  1243. <dd><p>Discard useless frames like 0-sized frames.
  1244. </p>
  1245. </dd>
  1246. <dt>&lsquo;<samp class="samp">noref</samp>&rsquo;</dt>
  1247. <dd><p>Discard all non-reference frames.
  1248. </p>
  1249. </dd>
  1250. <dt>&lsquo;<samp class="samp">bidir</samp>&rsquo;</dt>
  1251. <dd><p>Discard all bidirectional frames.
  1252. </p>
  1253. </dd>
  1254. <dt>&lsquo;<samp class="samp">nokey</samp>&rsquo;</dt>
  1255. <dd><p>Discard all frames excepts keyframes.
  1256. </p>
  1257. </dd>
  1258. <dt>&lsquo;<samp class="samp">nointra</samp>&rsquo;</dt>
  1259. <dd><p>Discard all frames except I frames.
  1260. </p>
  1261. </dd>
  1262. <dt>&lsquo;<samp class="samp">all</samp>&rsquo;</dt>
  1263. <dd><p>Discard all frames.
  1264. </p></dd>
  1265. </dl>
  1266. <p>Default value is &lsquo;<samp class="samp">default</samp>&rsquo;.
  1267. </p>
  1268. </dd>
  1269. <dt><samp class="option">bidir_refine <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1270. <dd><p>Refine the two motion vectors used in bidirectional macroblocks.
  1271. </p>
  1272. </dd>
  1273. <dt><samp class="option">keyint_min <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1274. <dd><p>Set minimum interval between IDR-frames.
  1275. </p>
  1276. </dd>
  1277. <dt><samp class="option">refs <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1278. <dd><p>Set reference frames to consider for motion compensation.
  1279. </p>
  1280. </dd>
  1281. <dt><samp class="option">trellis <var class="var">integer</var> (<em class="emph">encoding,audio,video</em>)</samp></dt>
  1282. <dd><p>Set rate-distortion optimal quantization.
  1283. </p>
  1284. </dd>
  1285. <dt><samp class="option">mv0_threshold <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1286. <dt><samp class="option">compression_level <var class="var">integer</var> (<em class="emph">encoding,audio,video</em>)</samp></dt>
  1287. <dt><samp class="option">bits_per_raw_sample <var class="var">integer</var></samp></dt>
  1288. <dt><samp class="option">channel_layout <var class="var">integer</var> (<em class="emph">decoding/encoding,audio</em>)</samp></dt>
  1289. <dd><p>See <a data-manual="ffmpeg-utils" href="ffmpeg-utils.html#channel-layout-syntax">the Channel Layout section in the ffmpeg-utils(1) manual</a>
  1290. for the required syntax.
  1291. </p>
  1292. </dd>
  1293. <dt><samp class="option">rc_max_vbv_use <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1294. <dt><samp class="option">rc_min_vbv_use <var class="var">float</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1295. <dt><samp class="option">color_primaries <var class="var">integer</var> (<em class="emph">decoding/encoding,video</em>)</samp></dt>
  1296. <dd><p>Possible values:
  1297. </p><dl class="table">
  1298. <dt>&lsquo;<samp class="samp">bt709</samp>&rsquo;</dt>
  1299. <dd><p>BT.709
  1300. </p></dd>
  1301. <dt>&lsquo;<samp class="samp">bt470m</samp>&rsquo;</dt>
  1302. <dd><p>BT.470 M
  1303. </p></dd>
  1304. <dt>&lsquo;<samp class="samp">bt470bg</samp>&rsquo;</dt>
  1305. <dd><p>BT.470 BG
  1306. </p></dd>
  1307. <dt>&lsquo;<samp class="samp">smpte170m</samp>&rsquo;</dt>
  1308. <dd><p>SMPTE 170 M
  1309. </p></dd>
  1310. <dt>&lsquo;<samp class="samp">smpte240m</samp>&rsquo;</dt>
  1311. <dd><p>SMPTE 240 M
  1312. </p></dd>
  1313. <dt>&lsquo;<samp class="samp">film</samp>&rsquo;</dt>
  1314. <dd><p>Film
  1315. </p></dd>
  1316. <dt>&lsquo;<samp class="samp">bt2020</samp>&rsquo;</dt>
  1317. <dd><p>BT.2020
  1318. </p></dd>
  1319. <dt>&lsquo;<samp class="samp">smpte428</samp>&rsquo;</dt>
  1320. <dt>&lsquo;<samp class="samp">smpte428_1</samp>&rsquo;</dt>
  1321. <dd><p>SMPTE ST 428-1
  1322. </p></dd>
  1323. <dt>&lsquo;<samp class="samp">smpte431</samp>&rsquo;</dt>
  1324. <dd><p>SMPTE 431-2
  1325. </p></dd>
  1326. <dt>&lsquo;<samp class="samp">smpte432</samp>&rsquo;</dt>
  1327. <dd><p>SMPTE 432-1
  1328. </p></dd>
  1329. <dt>&lsquo;<samp class="samp">jedec-p22</samp>&rsquo;</dt>
  1330. <dd><p>JEDEC P22
  1331. </p></dd>
  1332. </dl>
  1333. </dd>
  1334. <dt><samp class="option">color_trc <var class="var">integer</var> (<em class="emph">decoding/encoding,video</em>)</samp></dt>
  1335. <dd><p>Possible values:
  1336. </p><dl class="table">
  1337. <dt>&lsquo;<samp class="samp">bt709</samp>&rsquo;</dt>
  1338. <dd><p>BT.709
  1339. </p></dd>
  1340. <dt>&lsquo;<samp class="samp">gamma22</samp>&rsquo;</dt>
  1341. <dd><p>BT.470 M
  1342. </p></dd>
  1343. <dt>&lsquo;<samp class="samp">gamma28</samp>&rsquo;</dt>
  1344. <dd><p>BT.470 BG
  1345. </p></dd>
  1346. <dt>&lsquo;<samp class="samp">smpte170m</samp>&rsquo;</dt>
  1347. <dd><p>SMPTE 170 M
  1348. </p></dd>
  1349. <dt>&lsquo;<samp class="samp">smpte240m</samp>&rsquo;</dt>
  1350. <dd><p>SMPTE 240 M
  1351. </p></dd>
  1352. <dt>&lsquo;<samp class="samp">linear</samp>&rsquo;</dt>
  1353. <dd><p>Linear
  1354. </p></dd>
  1355. <dt>&lsquo;<samp class="samp">log</samp>&rsquo;</dt>
  1356. <dt>&lsquo;<samp class="samp">log100</samp>&rsquo;</dt>
  1357. <dd><p>Log
  1358. </p></dd>
  1359. <dt>&lsquo;<samp class="samp">log_sqrt</samp>&rsquo;</dt>
  1360. <dt>&lsquo;<samp class="samp">log316</samp>&rsquo;</dt>
  1361. <dd><p>Log square root
  1362. </p></dd>
  1363. <dt>&lsquo;<samp class="samp">iec61966_2_4</samp>&rsquo;</dt>
  1364. <dt>&lsquo;<samp class="samp">iec61966-2-4</samp>&rsquo;</dt>
  1365. <dd><p>IEC 61966-2-4
  1366. </p></dd>
  1367. <dt>&lsquo;<samp class="samp">bt1361</samp>&rsquo;</dt>
  1368. <dt>&lsquo;<samp class="samp">bt1361e</samp>&rsquo;</dt>
  1369. <dd><p>BT.1361
  1370. </p></dd>
  1371. <dt>&lsquo;<samp class="samp">iec61966_2_1</samp>&rsquo;</dt>
  1372. <dt>&lsquo;<samp class="samp">iec61966-2-1</samp>&rsquo;</dt>
  1373. <dd><p>IEC 61966-2-1
  1374. </p></dd>
  1375. <dt>&lsquo;<samp class="samp">bt2020_10</samp>&rsquo;</dt>
  1376. <dt>&lsquo;<samp class="samp">bt2020_10bit</samp>&rsquo;</dt>
  1377. <dd><p>BT.2020 - 10 bit
  1378. </p></dd>
  1379. <dt>&lsquo;<samp class="samp">bt2020_12</samp>&rsquo;</dt>
  1380. <dt>&lsquo;<samp class="samp">bt2020_12bit</samp>&rsquo;</dt>
  1381. <dd><p>BT.2020 - 12 bit
  1382. </p></dd>
  1383. <dt>&lsquo;<samp class="samp">smpte2084</samp>&rsquo;</dt>
  1384. <dd><p>SMPTE ST 2084
  1385. </p></dd>
  1386. <dt>&lsquo;<samp class="samp">smpte428</samp>&rsquo;</dt>
  1387. <dt>&lsquo;<samp class="samp">smpte428_1</samp>&rsquo;</dt>
  1388. <dd><p>SMPTE ST 428-1
  1389. </p></dd>
  1390. <dt>&lsquo;<samp class="samp">arib-std-b67</samp>&rsquo;</dt>
  1391. <dd><p>ARIB STD-B67
  1392. </p></dd>
  1393. </dl>
  1394. </dd>
  1395. <dt><samp class="option">colorspace <var class="var">integer</var> (<em class="emph">decoding/encoding,video</em>)</samp></dt>
  1396. <dd><p>Possible values:
  1397. </p><dl class="table">
  1398. <dt>&lsquo;<samp class="samp">rgb</samp>&rsquo;</dt>
  1399. <dd><p>RGB
  1400. </p></dd>
  1401. <dt>&lsquo;<samp class="samp">bt709</samp>&rsquo;</dt>
  1402. <dd><p>BT.709
  1403. </p></dd>
  1404. <dt>&lsquo;<samp class="samp">fcc</samp>&rsquo;</dt>
  1405. <dd><p>FCC
  1406. </p></dd>
  1407. <dt>&lsquo;<samp class="samp">bt470bg</samp>&rsquo;</dt>
  1408. <dd><p>BT.470 BG
  1409. </p></dd>
  1410. <dt>&lsquo;<samp class="samp">smpte170m</samp>&rsquo;</dt>
  1411. <dd><p>SMPTE 170 M
  1412. </p></dd>
  1413. <dt>&lsquo;<samp class="samp">smpte240m</samp>&rsquo;</dt>
  1414. <dd><p>SMPTE 240 M
  1415. </p></dd>
  1416. <dt>&lsquo;<samp class="samp">ycocg</samp>&rsquo;</dt>
  1417. <dd><p>YCOCG
  1418. </p></dd>
  1419. <dt>&lsquo;<samp class="samp">bt2020nc</samp>&rsquo;</dt>
  1420. <dt>&lsquo;<samp class="samp">bt2020_ncl</samp>&rsquo;</dt>
  1421. <dd><p>BT.2020 NCL
  1422. </p></dd>
  1423. <dt>&lsquo;<samp class="samp">bt2020c</samp>&rsquo;</dt>
  1424. <dt>&lsquo;<samp class="samp">bt2020_cl</samp>&rsquo;</dt>
  1425. <dd><p>BT.2020 CL
  1426. </p></dd>
  1427. <dt>&lsquo;<samp class="samp">smpte2085</samp>&rsquo;</dt>
  1428. <dd><p>SMPTE 2085
  1429. </p></dd>
  1430. <dt>&lsquo;<samp class="samp">chroma-derived-nc</samp>&rsquo;</dt>
  1431. <dd><p>Chroma-derived NCL
  1432. </p></dd>
  1433. <dt>&lsquo;<samp class="samp">chroma-derived-c</samp>&rsquo;</dt>
  1434. <dd><p>Chroma-derived CL
  1435. </p></dd>
  1436. <dt>&lsquo;<samp class="samp">ictcp</samp>&rsquo;</dt>
  1437. <dd><p>ICtCp
  1438. </p></dd>
  1439. </dl>
  1440. </dd>
  1441. <dt><samp class="option">color_range <var class="var">integer</var> (<em class="emph">decoding/encoding,video</em>)</samp></dt>
  1442. <dd><p>If used as input parameter, it serves as a hint to the decoder, which
  1443. color_range the input has.
  1444. Possible values:
  1445. </p><dl class="table">
  1446. <dt>&lsquo;<samp class="samp">tv</samp>&rsquo;</dt>
  1447. <dt>&lsquo;<samp class="samp">mpeg</samp>&rsquo;</dt>
  1448. <dt>&lsquo;<samp class="samp">limited</samp>&rsquo;</dt>
  1449. <dd><p>MPEG (219*2^(n-8))
  1450. </p></dd>
  1451. <dt>&lsquo;<samp class="samp">pc</samp>&rsquo;</dt>
  1452. <dt>&lsquo;<samp class="samp">jpeg</samp>&rsquo;</dt>
  1453. <dt>&lsquo;<samp class="samp">full</samp>&rsquo;</dt>
  1454. <dd><p>JPEG (2^n-1)
  1455. </p></dd>
  1456. </dl>
  1457. </dd>
  1458. <dt><samp class="option">chroma_sample_location <var class="var">integer</var> (<em class="emph">decoding/encoding,video</em>)</samp></dt>
  1459. <dd><p>Possible values:
  1460. </p><dl class="table">
  1461. <dt>&lsquo;<samp class="samp">left</samp>&rsquo;</dt>
  1462. <dt>&lsquo;<samp class="samp">center</samp>&rsquo;</dt>
  1463. <dt>&lsquo;<samp class="samp">topleft</samp>&rsquo;</dt>
  1464. <dt>&lsquo;<samp class="samp">top</samp>&rsquo;</dt>
  1465. <dt>&lsquo;<samp class="samp">bottomleft</samp>&rsquo;</dt>
  1466. <dt>&lsquo;<samp class="samp">bottom</samp>&rsquo;</dt>
  1467. </dl>
  1468. </dd>
  1469. <dt><samp class="option">alpha_mode <var class="var">integer</var> (<em class="emph">decoding/encoding,video</em>)</samp></dt>
  1470. <dd><p>Possible values:
  1471. </p><dl class="table">
  1472. <dt>&lsquo;<samp class="samp">premultiplied</samp>&rsquo;</dt>
  1473. <dt>&lsquo;<samp class="samp">straight</samp>&rsquo;</dt>
  1474. </dl>
  1475. </dd>
  1476. <dt><samp class="option">log_level_offset <var class="var">integer</var></samp></dt>
  1477. <dd><p>Set the log level offset.
  1478. </p>
  1479. </dd>
  1480. <dt><samp class="option">slices <var class="var">integer</var> (<em class="emph">encoding,video</em>)</samp></dt>
  1481. <dd><p>Number of slices, used in parallelized encoding.
  1482. </p>
  1483. </dd>
  1484. <dt><samp class="option">thread_type <var class="var">flags</var> (<em class="emph">decoding/encoding,video</em>)</samp></dt>
  1485. <dd><p>Select which multithreading methods to use.
  1486. </p>
  1487. <p>Use of &lsquo;<samp class="samp">frame</samp>&rsquo; will increase decoding delay by one frame per
  1488. thread, so clients which cannot provide future frames should not use
  1489. it.
  1490. </p>
  1491. <p>Possible values:
  1492. </p><dl class="table">
  1493. <dt>&lsquo;<samp class="samp">slice</samp>&rsquo;</dt>
  1494. <dd><p>Decode more than one part of a single frame at once.
  1495. </p>
  1496. <p>Multithreading using slices works only when the video was encoded with
  1497. slices.
  1498. </p>
  1499. </dd>
  1500. <dt>&lsquo;<samp class="samp">frame</samp>&rsquo;</dt>
  1501. <dd><p>Decode more than one frame at once.
  1502. </p></dd>
  1503. </dl>
  1504. <p>Default value is &lsquo;<samp class="samp">slice+frame</samp>&rsquo;.
  1505. </p>
  1506. </dd>
  1507. <dt><samp class="option">audio_service_type <var class="var">integer</var> (<em class="emph">encoding,audio</em>)</samp></dt>
  1508. <dd><p>Set audio service type.
  1509. </p>
  1510. <p>Possible values:
  1511. </p><dl class="table">
  1512. <dt>&lsquo;<samp class="samp">ma</samp>&rsquo;</dt>
  1513. <dd><p>Main Audio Service
  1514. </p></dd>
  1515. <dt>&lsquo;<samp class="samp">ef</samp>&rsquo;</dt>
  1516. <dd><p>Effects
  1517. </p></dd>
  1518. <dt>&lsquo;<samp class="samp">vi</samp>&rsquo;</dt>
  1519. <dd><p>Visually Impaired
  1520. </p></dd>
  1521. <dt>&lsquo;<samp class="samp">hi</samp>&rsquo;</dt>
  1522. <dd><p>Hearing Impaired
  1523. </p></dd>
  1524. <dt>&lsquo;<samp class="samp">di</samp>&rsquo;</dt>
  1525. <dd><p>Dialogue
  1526. </p></dd>
  1527. <dt>&lsquo;<samp class="samp">co</samp>&rsquo;</dt>
  1528. <dd><p>Commentary
  1529. </p></dd>
  1530. <dt>&lsquo;<samp class="samp">em</samp>&rsquo;</dt>
  1531. <dd><p>Emergency
  1532. </p></dd>
  1533. <dt>&lsquo;<samp class="samp">vo</samp>&rsquo;</dt>
  1534. <dd><p>Voice Over
  1535. </p></dd>
  1536. <dt>&lsquo;<samp class="samp">ka</samp>&rsquo;</dt>
  1537. <dd><p>Karaoke
  1538. </p></dd>
  1539. </dl>
  1540. </dd>
  1541. <dt><samp class="option">request_sample_fmt <var class="var">sample_fmt</var> (<em class="emph">decoding,audio</em>)</samp></dt>
  1542. <dd><p>Set sample format audio decoders should prefer. Default value is
  1543. <code class="code">none</code>.
  1544. </p>
  1545. </dd>
  1546. <dt><samp class="option">pkt_timebase <var class="var">rational number</var></samp></dt>
  1547. <dt><samp class="option">sub_charenc <var class="var">encoding</var> (<em class="emph">decoding,subtitles</em>)</samp></dt>
  1548. <dd><p>Set the input subtitles character encoding.
  1549. </p>
  1550. </dd>
  1551. <dt><samp class="option">field_order <var class="var">field_order</var> (<em class="emph">video</em>)</samp></dt>
  1552. <dd><p>Set/override the field order of the video.
  1553. Possible values:
  1554. </p><dl class="table">
  1555. <dt>&lsquo;<samp class="samp">progressive</samp>&rsquo;</dt>
  1556. <dd><p>Progressive video
  1557. </p></dd>
  1558. <dt>&lsquo;<samp class="samp">tt</samp>&rsquo;</dt>
  1559. <dd><p>Interlaced video, top field coded and displayed first
  1560. </p></dd>
  1561. <dt>&lsquo;<samp class="samp">bb</samp>&rsquo;</dt>
  1562. <dd><p>Interlaced video, bottom field coded and displayed first
  1563. </p></dd>
  1564. <dt>&lsquo;<samp class="samp">tb</samp>&rsquo;</dt>
  1565. <dd><p>Interlaced video, top coded first, bottom displayed first
  1566. </p></dd>
  1567. <dt>&lsquo;<samp class="samp">bt</samp>&rsquo;</dt>
  1568. <dd><p>Interlaced video, bottom coded first, top displayed first
  1569. </p></dd>
  1570. </dl>
  1571. </dd>
  1572. <dt><samp class="option">skip_alpha <var class="var">bool</var> (<em class="emph">decoding,video</em>)</samp></dt>
  1573. <dd><p>Set to 1 to disable processing alpha (transparency). This works like the
  1574. &lsquo;<samp class="samp">gray</samp>&rsquo; flag in the <samp class="option">flags</samp> option which skips chroma information
  1575. instead of alpha. Default is 0.
  1576. </p>
  1577. </dd>
  1578. <dt><samp class="option">codec_whitelist <var class="var">list</var> (<em class="emph">input</em>)</samp></dt>
  1579. <dd><p>&quot;,&quot; separated list of allowed decoders. By default all are allowed.
  1580. </p>
  1581. </dd>
  1582. <dt><samp class="option">dump_separator <var class="var">string</var> (<em class="emph">input</em>)</samp></dt>
  1583. <dd><p>Separator used to separate the fields printed on the command line about the
  1584. Stream parameters.
  1585. For example, to separate the fields with newlines and indentation:
  1586. </p><div class="example">
  1587. <pre class="example-preformatted">ffprobe -dump_separator &quot;
  1588. &quot; -i ~/videos/matrixbench_mpeg2.mpg
  1589. </pre></div>
  1590. </dd>
  1591. <dt><samp class="option">max_pixels <var class="var">integer</var> (<em class="emph">decoding/encoding,video</em>)</samp></dt>
  1592. <dd><p>Maximum number of pixels per image. This value can be used to avoid out of
  1593. memory failures due to large images.
  1594. </p>
  1595. </dd>
  1596. <dt><samp class="option">apply_cropping <var class="var">bool</var> (<em class="emph">decoding,video</em>)</samp></dt>
  1597. <dd><p>Enable cropping if cropping parameters are multiples of the required
  1598. alignment for the left and top parameters. If the alignment is not met the
  1599. cropping will be partially applied to maintain alignment.
  1600. Default is 1 (enabled).
  1601. Note: The required alignment depends on if <code class="code">AV_CODEC_FLAG_UNALIGNED</code> is set and the
  1602. CPU. <code class="code">AV_CODEC_FLAG_UNALIGNED</code> cannot be changed from the command line. Also hardware
  1603. decoders will not apply left/top Cropping.
  1604. </p>
  1605. </dd>
  1606. </dl>
  1607. <a name="Decoders"></a>
  1608. <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>
  1609. <p>Decoders are configured elements in FFmpeg which allow the decoding of
  1610. multimedia streams.
  1611. </p>
  1612. <p>When you configure your FFmpeg build, all the supported native decoders
  1613. are enabled by default. Decoders requiring an external library must be enabled
  1614. manually via the corresponding <code class="code">--enable-lib</code> option. You can list all
  1615. available decoders using the configure option <code class="code">--list-decoders</code>.
  1616. </p>
  1617. <p>You can disable all the decoders with the configure option
  1618. <code class="code">--disable-decoders</code> and selectively enable / disable single decoders
  1619. with the options <code class="code">--enable-decoder=<var class="var">DECODER</var></code> /
  1620. <code class="code">--disable-decoder=<var class="var">DECODER</var></code>.
  1621. </p>
  1622. <p>The option <code class="code">-decoders</code> of the ff* tools will display the list of
  1623. enabled decoders.
  1624. </p>
  1625. <a name="Video-Decoders"></a>
  1626. <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>
  1627. <p>A description of some of the currently available video decoders
  1628. follows.
  1629. </p>
  1630. <a name="av1"></a>
  1631. <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>
  1632. <p>AOMedia Video 1 (AV1) decoder.
  1633. </p>
  1634. <a name="Options"></a>
  1635. <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>
  1636. <dl class="table">
  1637. <dt><samp class="option">operating_point</samp></dt>
  1638. <dd><p>Select an operating point of a scalable AV1 bitstream (0 - 31). Default is 0.
  1639. </p>
  1640. </dd>
  1641. </dl>
  1642. <a name="hevc"></a>
  1643. <h3 class="section">4.2 hevc<span class="pull-right"><a class="anchor hidden-xs" href="#hevc" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-hevc" aria-hidden="true">TOC</a></span></h3>
  1644. <p>HEVC (AKA ITU-T H.265 or ISO/IEC 23008-2) decoder.
  1645. </p>
  1646. <p>The decoder supports MV-HEVC multiview streams with at most two views. Views to
  1647. be output are selected by supplying a list of view IDs to the decoder (the
  1648. <samp class="option">view_ids</samp> option). This option may be set either statically before
  1649. decoder init, or from the <code class="code">get_format()</code> callback - useful for the case
  1650. when the view count or IDs change dynamically during decoding.
  1651. </p>
  1652. <p>Only the base layer is decoded by default.
  1653. </p>
  1654. <p>Note that if you are using the <code class="code">ffmpeg</code> CLI tool, you should be using view
  1655. specifiers as documented in its manual, rather than the options documented here.
  1656. </p>
  1657. <a name="Options-1"></a>
  1658. <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>
  1659. <dl class="table">
  1660. <dt><samp class="option">view_ids (MV-HEVC)</samp></dt>
  1661. <dd><p>Specify a list of view IDs that should be output. This option can also be set to
  1662. a single &rsquo;-1&rsquo;, which will cause all views defined in the VPS to be decoded and
  1663. output.
  1664. </p>
  1665. </dd>
  1666. <dt><samp class="option">view_ids_available (MV-HEVC)</samp></dt>
  1667. <dd><p>This option may be read by the caller to retrieve an array of view IDs available
  1668. in the active VPS. The array is empty for single-layer video.
  1669. </p>
  1670. <p>The value of this option is guaranteed to be accurate when read from the
  1671. <code class="code">get_format()</code> callback. It may also be set at other times (e.g. after
  1672. opening the decoder), but the value is informational only and may be incorrect
  1673. (e.g. when the stream contains multiple distinct VPS NALUs).
  1674. </p>
  1675. </dd>
  1676. <dt><samp class="option">view_pos_available (MV-HEVC)</samp></dt>
  1677. <dd><p>This option may be read by the caller to retrieve an array of view positions
  1678. (left, right, or unspecified) available in the active VPS, as
  1679. <code class="code">AVStereo3DView</code> values. When the array is available, its elements apply to
  1680. the corresponding elements of <samp class="option">view_ids_available</samp>, i.e.
  1681. <code class="code">view_pos_available[i]</code> contains the position of view with ID
  1682. <code class="code">view_ids_available[i]</code>.
  1683. </p>
  1684. <p>Same validity restrictions as for <samp class="option">view_ids_available</samp> apply to
  1685. this option.
  1686. </p>
  1687. </dd>
  1688. </dl>
  1689. <a name="rawvideo"></a>
  1690. <h3 class="section">4.3 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>
  1691. <p>Raw video decoder.
  1692. </p>
  1693. <p>This decoder decodes rawvideo streams.
  1694. </p>
  1695. <a name="Options-2"></a>
  1696. <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>
  1697. <dl class="table">
  1698. <dt><samp class="option">top <var class="var">top_field_first</var></samp></dt>
  1699. <dd><p>Specify the assumed field type of the input video.
  1700. </p><dl class="table">
  1701. <dt><samp class="option">-1</samp></dt>
  1702. <dd><p>the video is assumed to be progressive (default)
  1703. </p></dd>
  1704. <dt><samp class="option">0</samp></dt>
  1705. <dd><p>bottom-field-first is assumed
  1706. </p></dd>
  1707. <dt><samp class="option">1</samp></dt>
  1708. <dd><p>top-field-first is assumed
  1709. </p></dd>
  1710. </dl>
  1711. </dd>
  1712. </dl>
  1713. <a name="libdav1d"></a>
  1714. <h3 class="section">4.4 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>
  1715. <p>dav1d AV1 decoder.
  1716. </p>
  1717. <p>libdav1d allows libavcodec to decode the AOMedia Video 1 (AV1) codec.
  1718. Requires the presence of the libdav1d headers and library during configuration.
  1719. You need to explicitly configure the build with <code class="code">--enable-libdav1d</code>.
  1720. </p>
  1721. <a name="Options-3"></a>
  1722. <h4 class="subsection">4.4.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>
  1723. <p>The following options are supported by the libdav1d wrapper.
  1724. </p>
  1725. <dl class="table">
  1726. <dt><samp class="option">max_frame_delay</samp></dt>
  1727. <dd><p>Set max amount of frames the decoder may buffer internally. The default value is 0
  1728. (autodetect).
  1729. </p>
  1730. </dd>
  1731. <dt><samp class="option">filmgrain</samp></dt>
  1732. <dd><p>Apply film grain to the decoded video if present in the bitstream. Defaults to the
  1733. internal default of the library.
  1734. This option is deprecated and will be removed in the future. See the global option
  1735. <code class="code">export_side_data</code> to export Film Grain parameters instead of applying it.
  1736. </p>
  1737. </dd>
  1738. <dt><samp class="option">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 class="option">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.5 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.6 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 class="code">--enable-libuavs3d</code>.
  1761. </p>
  1762. <a name="Options-4"></a>
  1763. <h4 class="subsection">4.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>
  1764. <p>The following option is supported by the libuavs3d wrapper.
  1765. </p>
  1766. <dl class="table">
  1767. <dt><samp class="option">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="libxevd"></a>
  1773. <h3 class="section">4.7 libxevd<span class="pull-right"><a class="anchor hidden-xs" href="#libxevd" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libxevd" aria-hidden="true">TOC</a></span></h3>
  1774. <p>eXtra-fast Essential Video Decoder (XEVD) MPEG-5 EVC decoder wrapper.
  1775. </p>
  1776. <p>This decoder requires the presence of the libxevd headers and library
  1777. during configuration. You need to explicitly configure the build with
  1778. <samp class="option">--enable-libxevd</samp>.
  1779. </p>
  1780. <p>The xevd project website is at <a class="url" href="https://github.com/mpeg5/xevd">https://github.com/mpeg5/xevd</a>.
  1781. </p>
  1782. <a name="Options-5"></a>
  1783. <h4 class="subsection">4.7.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>
  1784. <p>The following options are supported by the libxevd wrapper.
  1785. The xevd-equivalent options or values are listed in parentheses for easy migration.
  1786. </p>
  1787. <p>To get a more accurate and extensive documentation of the libxevd options,
  1788. invoke the command <code class="code">xevd_app --help</code> or consult the libxevd documentation.
  1789. </p>
  1790. <dl class="table">
  1791. <dt><samp class="option">threads (<em class="emph">threads</em>)</samp></dt>
  1792. <dd><p>Force to use a specific number of threads
  1793. </p>
  1794. </dd>
  1795. </dl>
  1796. <a name="QSV-Decoders"></a>
  1797. <h3 class="section">4.8 QSV Decoders<span class="pull-right"><a class="anchor hidden-xs" href="#QSV-Decoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-QSV-Decoders" aria-hidden="true">TOC</a></span></h3>
  1798. <p>The family of Intel QuickSync Video decoders (VC1, MPEG-2, H.264, HEVC,
  1799. JPEG/MJPEG, VP8, VP9, AV1, VVC).
  1800. </p>
  1801. <a name="Common-Options"></a>
  1802. <h4 class="subsection">4.8.1 Common Options<span class="pull-right"><a class="anchor hidden-xs" href="#Common-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Common-Options" aria-hidden="true">TOC</a></span></h4>
  1803. <p>The following options are supported by all qsv decoders.
  1804. </p>
  1805. <dl class="table">
  1806. <dt><samp class="option"><var class="var">async_depth</var></samp></dt>
  1807. <dd><p>Internal parallelization depth, the higher the value the higher the latency.
  1808. </p>
  1809. </dd>
  1810. <dt><samp class="option"><var class="var">gpu_copy</var></samp></dt>
  1811. <dd><p>A GPU-accelerated copy between video and system memory
  1812. </p><dl class="table">
  1813. <dt>&lsquo;<samp class="samp">default</samp>&rsquo;</dt>
  1814. <dt>&lsquo;<samp class="samp">on</samp>&rsquo;</dt>
  1815. <dt>&lsquo;<samp class="samp">off</samp>&rsquo;</dt>
  1816. </dl>
  1817. </dd>
  1818. </dl>
  1819. <a name="HEVC-Options"></a>
  1820. <h4 class="subsection">4.8.2 HEVC Options<span class="pull-right"><a class="anchor hidden-xs" href="#HEVC-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-HEVC-Options" aria-hidden="true">TOC</a></span></h4>
  1821. <p>Extra options for hevc_qsv.
  1822. </p>
  1823. <dl class="table">
  1824. <dt><samp class="option"><var class="var">load_plugin</var></samp></dt>
  1825. <dd><p>A user plugin to load in an internal session
  1826. </p><dl class="table">
  1827. <dt>&lsquo;<samp class="samp">none</samp>&rsquo;</dt>
  1828. <dt>&lsquo;<samp class="samp">hevc_sw</samp>&rsquo;</dt>
  1829. <dt>&lsquo;<samp class="samp">hevc_hw</samp>&rsquo;</dt>
  1830. </dl>
  1831. </dd>
  1832. <dt><samp class="option"><var class="var">load_plugins</var></samp></dt>
  1833. <dd><p>A :-separate list of hexadecimal plugin UIDs to load in an internal session
  1834. </p>
  1835. </dd>
  1836. </dl>
  1837. <a name="v210"></a>
  1838. <h3 class="section">4.9 v210<span class="pull-right"><a class="anchor hidden-xs" href="#v210" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-v210" aria-hidden="true">TOC</a></span></h3>
  1839. <p>Uncompressed 4:2:2 10-bit decoder.
  1840. </p>
  1841. <a name="Options-6"></a>
  1842. <h4 class="subsection">4.9.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>
  1843. <dl class="table">
  1844. <dt><samp class="option">custom_stride</samp></dt>
  1845. <dd><p>Set the line size of the v210 data in bytes. The default value is 0
  1846. (autodetect). You can use the special -1 value for a strideless v210 as seen in
  1847. BOXX files.
  1848. </p>
  1849. </dd>
  1850. </dl>
  1851. <a name="Audio-Decoders"></a>
  1852. <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>
  1853. <p>A description of some of the currently available audio decoders
  1854. follows.
  1855. </p>
  1856. <a name="ac3"></a>
  1857. <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>
  1858. <p>AC-3 audio decoder.
  1859. </p>
  1860. <p>This decoder implements part of ATSC A/52:2010 and ETSI TS 102 366, as well as
  1861. the undocumented RealAudio 3 (a.k.a. dnet).
  1862. </p>
  1863. <a name="AC_002d3-Decoder-Options"></a>
  1864. <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>
  1865. <dl class="table">
  1866. <dt><samp class="option">-drc_scale <var class="var">value</var></samp></dt>
  1867. <dd><p>Dynamic Range Scale Factor. The factor to apply to dynamic range values
  1868. from the AC-3 stream. This factor is applied exponentially. The default value is 1.
  1869. There are 3 notable scale factor ranges:
  1870. </p><dl class="table">
  1871. <dt><samp class="option">drc_scale == 0</samp></dt>
  1872. <dd><p>DRC disabled. Produces full range audio.
  1873. </p></dd>
  1874. <dt><samp class="option">0 &lt; drc_scale &lt;= 1</samp></dt>
  1875. <dd><p>DRC enabled. Applies a fraction of the stream DRC value.
  1876. Audio reproduction is between full range and full compression.
  1877. </p></dd>
  1878. <dt><samp class="option">drc_scale &gt; 1</samp></dt>
  1879. <dd><p>DRC enabled. Applies drc_scale asymmetrically.
  1880. Loud sounds are fully compressed. Soft sounds are enhanced.
  1881. </p></dd>
  1882. </dl>
  1883. </dd>
  1884. </dl>
  1885. <a name="flac-1"></a>
  1886. <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>
  1887. <p>FLAC audio decoder.
  1888. </p>
  1889. <p>This decoder aims to implement the complete FLAC specification from Xiph.
  1890. </p>
  1891. <a name="FLAC-Decoder-options"></a>
  1892. <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>
  1893. <dl class="table">
  1894. <dt><samp class="option">-use_buggy_lpc</samp></dt>
  1895. <dd><p>The lavc FLAC encoder used to produce buggy streams with high lpc values
  1896. (like the default value). This option makes it possible to decode such streams
  1897. correctly by using lavc&rsquo;s old buggy lpc logic for decoding.
  1898. </p>
  1899. </dd>
  1900. </dl>
  1901. <a name="ffwavesynth"></a>
  1902. <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>
  1903. <p>Internal wave synthesizer.
  1904. </p>
  1905. <p>This decoder generates wave patterns according to predefined sequences. Its
  1906. use is purely internal and the format of the data it accepts is not publicly
  1907. documented.
  1908. </p>
  1909. <a name="libcelt"></a>
  1910. <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>
  1911. <p>libcelt decoder wrapper.
  1912. </p>
  1913. <p>libcelt allows libavcodec to decode the Xiph CELT ultra-low delay audio codec.
  1914. Requires the presence of the libcelt headers and library during configuration.
  1915. You need to explicitly configure the build with <code class="code">--enable-libcelt</code>.
  1916. </p>
  1917. <a name="libgsm"></a>
  1918. <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>
  1919. <p>libgsm decoder wrapper.
  1920. </p>
  1921. <p>libgsm allows libavcodec to decode the GSM full rate audio codec. Requires
  1922. the presence of the libgsm headers and library during configuration. You need
  1923. to explicitly configure the build with <code class="code">--enable-libgsm</code>.
  1924. </p>
  1925. <p>This decoder supports both the ordinary GSM and the Microsoft variant.
  1926. </p>
  1927. <a name="libilbc"></a>
  1928. <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>
  1929. <p>libilbc decoder wrapper.
  1930. </p>
  1931. <p>libilbc allows libavcodec to decode the Internet Low Bitrate Codec (iLBC)
  1932. audio codec. Requires the presence of the libilbc headers and library during
  1933. configuration. You need to explicitly configure the build with
  1934. <code class="code">--enable-libilbc</code>.
  1935. </p>
  1936. <a name="Options-7"></a>
  1937. <h4 class="subsection">5.6.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>
  1938. <p>The following option is supported by the libilbc wrapper.
  1939. </p>
  1940. <dl class="table">
  1941. <dt><samp class="option">enhance</samp></dt>
  1942. <dd>
  1943. <p>Enable the enhancement of the decoded audio when set to 1. The default
  1944. value is 0 (disabled).
  1945. </p>
  1946. </dd>
  1947. </dl>
  1948. <a name="libmpeghdec"></a>
  1949. <h3 class="section">5.7 libmpeghdec<span class="pull-right"><a class="anchor hidden-xs" href="#libmpeghdec" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libmpeghdec" aria-hidden="true">TOC</a></span></h3>
  1950. <p>libmpeghdec decoder wrapper.
  1951. </p>
  1952. <p>libmpeghdec allows libmpeghdec to decode the MPEG-H 3D audio codec.
  1953. Requires the presence of the libmpeghdec headers and library during
  1954. configuration. You need to explicitly configure the build with
  1955. <code class="code">--enable-libmpeghdec --enable-nonfree</code>.
  1956. </p>
  1957. <a name="libopencore_002damrnb"></a>
  1958. <h3 class="section">5.8 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>
  1959. <p>libopencore-amrnb decoder wrapper.
  1960. </p>
  1961. <p>libopencore-amrnb allows libavcodec to decode the Adaptive Multi-Rate
  1962. Narrowband audio codec. Using it requires the presence of the
  1963. libopencore-amrnb headers and library during configuration. You need to
  1964. explicitly configure the build with <code class="code">--enable-libopencore-amrnb</code>.
  1965. </p>
  1966. <p>An FFmpeg native decoder for AMR-NB exists, so users can decode AMR-NB
  1967. without this library.
  1968. </p>
  1969. <a name="libopencore_002damrwb"></a>
  1970. <h3 class="section">5.9 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>
  1971. <p>libopencore-amrwb decoder wrapper.
  1972. </p>
  1973. <p>libopencore-amrwb allows libavcodec to decode the Adaptive Multi-Rate
  1974. Wideband audio codec. Using it requires the presence of the
  1975. libopencore-amrwb headers and library during configuration. You need to
  1976. explicitly configure the build with <code class="code">--enable-libopencore-amrwb</code>.
  1977. </p>
  1978. <p>An FFmpeg native decoder for AMR-WB exists, so users can decode AMR-WB
  1979. without this library.
  1980. </p>
  1981. <a name="libopus"></a>
  1982. <h3 class="section">5.10 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>
  1983. <p>libopus decoder wrapper.
  1984. </p>
  1985. <p>libopus allows libavcodec to decode the Opus Interactive Audio Codec.
  1986. Requires the presence of the libopus headers and library during
  1987. configuration. You need to explicitly configure the build with
  1988. <code class="code">--enable-libopus</code>.
  1989. </p>
  1990. <p>An FFmpeg native decoder for Opus exists, so users can decode Opus
  1991. without this library.
  1992. </p>
  1993. <a name="Subtitles-Decoders"></a>
  1994. <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>
  1995. <a name="libaribb24"></a>
  1996. <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>
  1997. <p>ARIB STD-B24 caption decoder.
  1998. </p>
  1999. <p>Implements profiles A and C of the ARIB STD-B24 standard.
  2000. </p>
  2001. <a name="libaribb24-Decoder-Options"></a>
  2002. <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>
  2003. <dl class="table">
  2004. <dt><samp class="option">-aribb24-base-path <var class="var">path</var></samp></dt>
  2005. <dd><p>Sets the base path for the libaribb24 library. This is utilized for reading of
  2006. configuration files (for custom unicode conversions), and for dumping of
  2007. non-text symbols as images under that location.
  2008. </p>
  2009. <p>Unset by default.
  2010. </p>
  2011. </dd>
  2012. <dt><samp class="option">-aribb24-skip-ruby-text <var class="var">boolean</var></samp></dt>
  2013. <dd><p>Tells the decoder wrapper to skip text blocks that contain half-height ruby
  2014. text.
  2015. </p>
  2016. <p>Enabled by default.
  2017. </p>
  2018. </dd>
  2019. </dl>
  2020. <a name="libaribcaption"></a>
  2021. <h3 class="section">6.2 libaribcaption<span class="pull-right"><a class="anchor hidden-xs" href="#libaribcaption" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libaribcaption" aria-hidden="true">TOC</a></span></h3>
  2022. <p>Yet another ARIB STD-B24 caption decoder using external <em class="dfn">libaribcaption</em>
  2023. library.
  2024. </p>
  2025. <p>Implements profiles A and C of the Japanese ARIB STD-B24 standard,
  2026. Brazilian ABNT NBR 15606-1, and Philippines version of ISDB-T.
  2027. </p>
  2028. <p>Requires the presence of the libaribcaption headers and library
  2029. (<a class="url" href="https://github.com/xqq/libaribcaption">https://github.com/xqq/libaribcaption</a>) during configuration.
  2030. You need to explicitly configure the build with <code class="code">--enable-libaribcaption</code>.
  2031. If both <em class="dfn">libaribb24</em> and <em class="dfn">libaribcaption</em> are enabled, <em class="dfn">libaribcaption</em>
  2032. decoder precedes.
  2033. </p>
  2034. <a name="libaribcaption-Decoder-Options"></a>
  2035. <h4 class="subsection">6.2.1 libaribcaption Decoder Options<span class="pull-right"><a class="anchor hidden-xs" href="#libaribcaption-Decoder-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libaribcaption-Decoder-Options" aria-hidden="true">TOC</a></span></h4>
  2036. <dl class="table">
  2037. <dt><samp class="option">-sub_type <var class="var">subtitle_type</var></samp></dt>
  2038. <dd><p>Specifies the format of the decoded subtitles.
  2039. </p>
  2040. <dl class="table">
  2041. <dt>&lsquo;<samp class="samp">bitmap</samp>&rsquo;</dt>
  2042. <dd><p>Graphical image.
  2043. </p></dd>
  2044. <dt>&lsquo;<samp class="samp">ass</samp>&rsquo;</dt>
  2045. <dd><p>ASS formatted text.
  2046. </p></dd>
  2047. <dt>&lsquo;<samp class="samp">text</samp>&rsquo;</dt>
  2048. <dd><p>Simple text based output without formatting.
  2049. </p></dd>
  2050. </dl>
  2051. <p>The default is <em class="dfn">ass</em> as same as <em class="dfn">libaribb24</em> decoder.
  2052. Some present players (e.g., <em class="dfn">mpv</em>) expect ASS format for ARIB caption.
  2053. </p>
  2054. </dd>
  2055. <dt><samp class="option">-caption_encoding <var class="var">encoding_scheme</var></samp></dt>
  2056. <dd><p>Specifies the encoding scheme of input subtitle text.
  2057. </p>
  2058. <dl class="table">
  2059. <dt>&lsquo;<samp class="samp">auto</samp>&rsquo;</dt>
  2060. <dd><p>Automatically detect text encoding (default).
  2061. </p></dd>
  2062. <dt>&lsquo;<samp class="samp">jis</samp>&rsquo;</dt>
  2063. <dd><p>8bit-char JIS encoding defined in ARIB STD B24.
  2064. This encoding used in Japan for ISDB captions.
  2065. </p></dd>
  2066. <dt>&lsquo;<samp class="samp">utf8</samp>&rsquo;</dt>
  2067. <dd><p>UTF-8 encoding defined in ARIB STD B24.
  2068. This encoding is used in Philippines for ISDB-T captions.
  2069. </p></dd>
  2070. <dt>&lsquo;<samp class="samp">latin</samp>&rsquo;</dt>
  2071. <dd><p>Latin character encoding defined in ABNT NBR 15606-1.
  2072. This encoding is used in South America for SBTVD / ISDB-Tb captions.
  2073. </p></dd>
  2074. </dl>
  2075. </dd>
  2076. <dt><samp class="option">-font <var class="var">font_name[,font_name2,...]</var></samp></dt>
  2077. <dd><p>Specify comma-separated list of font family names to be used for <em class="dfn">bitmap</em>
  2078. or <em class="dfn">ass</em> type subtitle rendering.
  2079. Only first font name is used for <em class="dfn">ass</em> type subtitle.
  2080. </p>
  2081. <p>If not specified, use internally defined default font family.
  2082. </p>
  2083. </dd>
  2084. <dt><samp class="option">-ass_single_rect <var class="var">boolean</var></samp></dt>
  2085. <dd><p>ARIB STD-B24 specifies that some captions may be displayed at different
  2086. positions at a time (multi-rectangle subtitle).
  2087. Since some players (e.g., old <em class="dfn">mpv</em>) can&rsquo;t handle multiple ASS rectangles
  2088. in a single AVSubtitle, or multiple ASS rectangles of indeterminate duration
  2089. with the same start timestamp, this option can change the behavior so that
  2090. all the texts are displayed in a single ASS rectangle.
  2091. </p>
  2092. <p>The default is <var class="var">false</var>.
  2093. </p>
  2094. <p>If your player cannot handle AVSubtitles with multiple ASS rectangles properly,
  2095. set this option to <var class="var">true</var> or define <code class="env">ASS_SINGLE_RECT=1</code> to change
  2096. default behavior at compilation.
  2097. </p>
  2098. </dd>
  2099. <dt><samp class="option">-force_outline_text <var class="var">boolean</var></samp></dt>
  2100. <dd><p>Specify whether always render outline text for all characters regardless of
  2101. the indication by character style.
  2102. </p>
  2103. <p>The default is <var class="var">false</var>.
  2104. </p>
  2105. </dd>
  2106. <dt><samp class="option">-outline_width <var class="var">number</var> (0.0 - 3.0)</samp></dt>
  2107. <dd><p>Specify width for outline text, in dots (relative).
  2108. </p>
  2109. <p>The default is <var class="var">1.5</var>.
  2110. </p>
  2111. </dd>
  2112. <dt><samp class="option">-ignore_background <var class="var">boolean</var></samp></dt>
  2113. <dd><p>Specify whether to ignore background color rendering.
  2114. </p>
  2115. <p>The default is <var class="var">false</var>.
  2116. </p>
  2117. </dd>
  2118. <dt><samp class="option">-ignore_ruby <var class="var">boolean</var></samp></dt>
  2119. <dd><p>Specify whether to ignore rendering for ruby-like (furigana) characters.
  2120. </p>
  2121. <p>The default is <var class="var">false</var>.
  2122. </p>
  2123. </dd>
  2124. <dt><samp class="option">-replace_drcs <var class="var">boolean</var></samp></dt>
  2125. <dd><p>Specify whether to render replaced DRCS characters as Unicode characters.
  2126. </p>
  2127. <p>The default is <var class="var">true</var>.
  2128. </p>
  2129. </dd>
  2130. <dt><samp class="option">-replace_msz_ascii <var class="var">boolean</var></samp></dt>
  2131. <dd><p>Specify whether to replace MSZ (Middle Size; half width) fullwidth
  2132. alphanumerics with halfwidth alphanumerics.
  2133. </p>
  2134. <p>The default is <var class="var">true</var>.
  2135. </p>
  2136. </dd>
  2137. <dt><samp class="option">-replace_msz_japanese <var class="var">boolean</var></samp></dt>
  2138. <dd><p>Specify whether to replace some MSZ (Middle Size; half width) fullwidth
  2139. japanese special characters with halfwidth ones.
  2140. </p>
  2141. <p>The default is <var class="var">true</var>.
  2142. </p>
  2143. </dd>
  2144. <dt><samp class="option">-replace_msz_glyph <var class="var">boolean</var></samp></dt>
  2145. <dd><p>Specify whether to replace MSZ (Middle Size; half width) characters
  2146. with halfwidth glyphs if the fonts supports it.
  2147. This option works under FreeType or DirectWrite renderer
  2148. with Adobe-Japan1 compliant fonts.
  2149. e.g., IBM Plex Sans JP, Morisawa BIZ UDGothic, Morisawa BIZ UDMincho,
  2150. Yu Gothic, Yu Mincho, and Meiryo.
  2151. </p>
  2152. <p>The default is <var class="var">true</var>.
  2153. </p>
  2154. </dd>
  2155. <dt><samp class="option">-canvas_size <var class="var">image_size</var></samp></dt>
  2156. <dd><p>Specify the resolution of the canvas to render subtitles to; usually, this
  2157. should be frame size of input video.
  2158. This only applies when <code class="code">-subtitle_type</code> is set to <var class="var">bitmap</var>.
  2159. </p>
  2160. <p>The libaribcaption decoder assumes input frame size for bitmap rendering as below:
  2161. </p><ol class="enumerate">
  2162. <li> PROFILE_A : 1440 x 1080 with SAR (PAR) 4:3
  2163. </li><li> PROFILE_C : 320 x 180 with SAR (PAR) 1:1
  2164. </li></ol>
  2165. <p>If actual frame size of input video does not match above assumption,
  2166. the rendered captions may be distorted.
  2167. To make the captions undistorted, add <code class="code">-canvas_size</code> option to specify
  2168. actual input video size.
  2169. </p>
  2170. <p>Note that the <code class="code">-canvas_size</code> option is not required for video with
  2171. different size but same aspect ratio.
  2172. In such cases, the caption will be stretched or shrunk to actual video size
  2173. if <code class="code">-canvas_size</code> option is not specified.
  2174. If <code class="code">-canvas_size</code> option is specified with different size,
  2175. the caption will be stretched or shrunk as specified size with calculated SAR.
  2176. </p>
  2177. </dd>
  2178. </dl>
  2179. <a name="libaribcaption-decoder-usage-examples"></a>
  2180. <h4 class="subsection">6.2.2 libaribcaption decoder usage examples<span class="pull-right"><a class="anchor hidden-xs" href="#libaribcaption-decoder-usage-examples" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libaribcaption-decoder-usage-examples" aria-hidden="true">TOC</a></span></h4>
  2181. <p>Display MPEG-TS file with ARIB subtitle by <code class="code">ffplay</code> tool:
  2182. </p><div class="example">
  2183. <pre class="example-preformatted">ffplay -sub_type bitmap MPEG.TS
  2184. </pre></div>
  2185. <p>Display MPEG-TS file with input frame size 1920x1080 by <code class="code">ffplay</code> tool:
  2186. </p><div class="example">
  2187. <pre class="example-preformatted">ffplay -sub_type bitmap -canvas_size 1920x1080 MPEG.TS
  2188. </pre></div>
  2189. <p>Embed ARIB subtitle in transcoded video:
  2190. </p><div class="example">
  2191. <pre class="example-preformatted">ffmpeg -sub_type bitmap -i src.m2t -filter_complex &quot;[0:v][0:s]overlay&quot; -vcodec h264 dest.mp4
  2192. </pre></div>
  2193. <a name="dvbsub"></a>
  2194. <h3 class="section">6.3 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>
  2195. <a name="Options-8"></a>
  2196. <h4 class="subsection">6.3.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>
  2197. <dl class="table">
  2198. <dt><samp class="option">compute_clut</samp></dt>
  2199. <dd><dl class="table">
  2200. <dt><samp class="option">-2</samp></dt>
  2201. <dd><p>Compute clut once if no matching CLUT is in the stream.
  2202. </p></dd>
  2203. <dt><samp class="option">-1</samp></dt>
  2204. <dd><p>Compute clut if no matching CLUT is in the stream.
  2205. </p></dd>
  2206. <dt><samp class="option">0</samp></dt>
  2207. <dd><p>Never compute CLUT
  2208. </p></dd>
  2209. <dt><samp class="option">1</samp></dt>
  2210. <dd><p>Always compute CLUT and override the one provided in the stream.
  2211. </p></dd>
  2212. </dl>
  2213. </dd>
  2214. <dt><samp class="option">dvb_substream</samp></dt>
  2215. <dd><p>Selects the dvb substream, or all substreams if -1 which is default.
  2216. </p>
  2217. </dd>
  2218. </dl>
  2219. <a name="dvdsub"></a>
  2220. <h3 class="section">6.4 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>
  2221. <p>This codec decodes the bitmap subtitles used in DVDs; the same subtitles can
  2222. also be found in VobSub file pairs and in some Matroska files.
  2223. </p>
  2224. <a name="Options-9"></a>
  2225. <h4 class="subsection">6.4.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>
  2226. <dl class="table">
  2227. <dt><samp class="option">palette</samp></dt>
  2228. <dd><p>Specify the global palette used by the bitmaps. When stored in VobSub, the
  2229. palette is normally specified in the index file; in Matroska, the palette is
  2230. stored in the codec extra-data in the same format as in VobSub. In DVDs, the
  2231. palette is stored in the IFO file, and therefore not available when reading
  2232. from dumped VOB files.
  2233. </p>
  2234. <p>The format for this option is a string containing 16 24-bits hexadecimal
  2235. numbers (without 0x prefix) separated by commas, for example <code class="code">0d00ee,
  2236. ee450d, 101010, eaeaea, 0ce60b, ec14ed, ebff0b, 0d617a, 7b7b7b, d1d1d1,
  2237. 7b2a0e, 0d950c, 0f007b, cf0dec, cfa80c, 7c127b</code>.
  2238. </p>
  2239. </dd>
  2240. <dt><samp class="option">ifo_palette</samp></dt>
  2241. <dd><p>Specify the IFO file from which the global palette is obtained.
  2242. (experimental)
  2243. </p>
  2244. </dd>
  2245. <dt><samp class="option">forced_subs_only</samp></dt>
  2246. <dd><p>Only decode subtitle entries marked as forced. Some titles have forced
  2247. and non-forced subtitles in the same track. Setting this flag to <code class="code">1</code>
  2248. will only keep the forced subtitles. Default value is <code class="code">0</code>.
  2249. </p></dd>
  2250. </dl>
  2251. <a name="libzvbi_002dteletext"></a>
  2252. <h3 class="section">6.5 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>
  2253. <p>Libzvbi allows libavcodec to decode DVB teletext pages and DVB teletext
  2254. subtitles. Requires the presence of the libzvbi headers and library during
  2255. configuration. You need to explicitly configure the build with
  2256. <code class="code">--enable-libzvbi</code>.
  2257. </p>
  2258. <a name="Options-10"></a>
  2259. <h4 class="subsection">6.5.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>
  2260. <dl class="table">
  2261. <dt><samp class="option">txt_page</samp></dt>
  2262. <dd><p>List of teletext page numbers to decode. Pages that do not match the specified
  2263. list are dropped. You may use the special <code class="code">*</code> string to match all pages,
  2264. or <code class="code">subtitle</code> to match all subtitle pages.
  2265. Default value is *.
  2266. </p></dd>
  2267. <dt><samp class="option">txt_default_region</samp></dt>
  2268. <dd><p>Set default character set used for decoding, a value between 0 and 87 (see
  2269. ETS 300 706, Section 15, Table 32). Default value is -1, which does not
  2270. override the libzvbi default. This option is needed for some legacy level 1.0
  2271. transmissions which cannot signal the proper charset.
  2272. </p></dd>
  2273. <dt><samp class="option">txt_chop_top</samp></dt>
  2274. <dd><p>Discards the top teletext line. Default value is 1.
  2275. </p></dd>
  2276. <dt><samp class="option">txt_format</samp></dt>
  2277. <dd><p>Specifies the format of the decoded subtitles.
  2278. </p><dl class="table">
  2279. <dt><samp class="option">bitmap</samp></dt>
  2280. <dd><p>The default format, you should use this for teletext pages, because certain
  2281. graphics and colors cannot be expressed in simple text or even ASS.
  2282. </p></dd>
  2283. <dt><samp class="option">text</samp></dt>
  2284. <dd><p>Simple text based output without formatting.
  2285. </p></dd>
  2286. <dt><samp class="option">ass</samp></dt>
  2287. <dd><p>Formatted ASS output, subtitle pages and teletext pages are returned in
  2288. different styles, subtitle pages are stripped down to text, but an effort is
  2289. made to keep the text alignment and the formatting.
  2290. </p></dd>
  2291. </dl>
  2292. </dd>
  2293. <dt><samp class="option">txt_left</samp></dt>
  2294. <dd><p>X offset of generated bitmaps, default is 0.
  2295. </p></dd>
  2296. <dt><samp class="option">txt_top</samp></dt>
  2297. <dd><p>Y offset of generated bitmaps, default is 0.
  2298. </p></dd>
  2299. <dt><samp class="option">txt_chop_spaces</samp></dt>
  2300. <dd><p>Chops leading and trailing spaces and removes empty lines from the generated
  2301. text. This option is useful for teletext based subtitles where empty spaces may
  2302. be present at the start or at the end of the lines or empty lines may be
  2303. present between the subtitle lines because of double-sized teletext characters.
  2304. Default value is 1.
  2305. </p></dd>
  2306. <dt><samp class="option">txt_duration</samp></dt>
  2307. <dd><p>Sets the display duration of the decoded teletext pages or subtitles in
  2308. milliseconds. Default value is -1 which means infinity or until the next
  2309. subtitle event comes.
  2310. </p></dd>
  2311. <dt><samp class="option">txt_transparent</samp></dt>
  2312. <dd><p>Force transparent background of the generated teletext bitmaps. Default value
  2313. is 0 which means an opaque background.
  2314. </p></dd>
  2315. <dt><samp class="option">txt_opacity</samp></dt>
  2316. <dd><p>Sets the opacity (0-255) of the teletext background. If
  2317. <samp class="option">txt_transparent</samp> is not set, it only affects characters between a start
  2318. box and an end box, typically subtitles. Default value is 0 if
  2319. <samp class="option">txt_transparent</samp> is set, 255 otherwise.
  2320. </p>
  2321. </dd>
  2322. </dl>
  2323. <a name="Encoders"></a>
  2324. <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>
  2325. <p>Encoders are configured elements in FFmpeg which allow the encoding of
  2326. multimedia streams.
  2327. </p>
  2328. <p>When you configure your FFmpeg build, all the supported native encoders
  2329. are enabled by default. Encoders requiring an external library must be enabled
  2330. manually via the corresponding <code class="code">--enable-lib</code> option. You can list all
  2331. available encoders using the configure option <code class="code">--list-encoders</code>.
  2332. </p>
  2333. <p>You can disable all the encoders with the configure option
  2334. <code class="code">--disable-encoders</code> and selectively enable / disable single encoders
  2335. with the options <code class="code">--enable-encoder=<var class="var">ENCODER</var></code> /
  2336. <code class="code">--disable-encoder=<var class="var">ENCODER</var></code>.
  2337. </p>
  2338. <p>The option <code class="code">-encoders</code> of the ff* tools will display the list of
  2339. enabled encoders.
  2340. </p>
  2341. <a name="Audio-Encoders"></a>
  2342. <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>
  2343. <p>A description of some of the currently available audio encoders
  2344. follows.
  2345. </p>
  2346. <a class="anchor" id="aacenc"></a><a name="aac"></a>
  2347. <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>
  2348. <p>Advanced Audio Coding (AAC) encoder.
  2349. </p>
  2350. <p>This encoder is the default AAC encoder, natively implemented into FFmpeg.
  2351. </p>
  2352. <a name="Options-11"></a>
  2353. <h4 class="subsection">8.1.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>
  2354. <dl class="table">
  2355. <dt><samp class="option">b</samp></dt>
  2356. <dd><p>Set bit rate in bits/s. Setting this automatically activates constant bit rate
  2357. (CBR) mode. If this option is unspecified it is set to 128kbps.
  2358. </p>
  2359. </dd>
  2360. <dt><samp class="option">q</samp></dt>
  2361. <dd><p>Set quality for variable bit rate (VBR) mode. This option is valid only using
  2362. the <code class="command">ffmpeg</code> command-line tool. For library interface users, use
  2363. <samp class="option">global_quality</samp>.
  2364. </p>
  2365. </dd>
  2366. <dt><samp class="option">cutoff</samp></dt>
  2367. <dd><p>Set cutoff frequency. If unspecified will allow the encoder to dynamically
  2368. adjust the cutoff to improve clarity on low bitrates.
  2369. </p>
  2370. </dd>
  2371. <dt><samp class="option">aac_coder</samp></dt>
  2372. <dd><p>Set AAC encoder coding method. Possible values:
  2373. </p>
  2374. <dl class="table">
  2375. <dt>&lsquo;<samp class="samp">twoloop</samp>&rsquo;</dt>
  2376. <dd><p>Two loop searching (TLS) method. This is the default method.
  2377. </p>
  2378. <p>This method first sets quantizers depending on band thresholds and then tries
  2379. to find an optimal combination by adding or subtracting a specific value from
  2380. all quantizers and adjusting some individual quantizer a little. Will tune
  2381. itself based on whether <samp class="option">aac_is</samp>, <samp class="option">aac_ms</samp> and <samp class="option">aac_pns</samp>
  2382. are enabled.
  2383. </p>
  2384. </dd>
  2385. <dt>&lsquo;<samp class="samp">anmr</samp>&rsquo;</dt>
  2386. <dd><p>Average noise to mask ratio (ANMR) trellis-based solution.
  2387. </p>
  2388. <p>This is an experimental coder which currently produces a lower quality, is more
  2389. unstable and is slower than the default twoloop coder but has potential.
  2390. Currently has no support for the <samp class="option">aac_is</samp> or <samp class="option">aac_pns</samp> options.
  2391. Not currently recommended.
  2392. </p>
  2393. </dd>
  2394. <dt>&lsquo;<samp class="samp">fast</samp>&rsquo;</dt>
  2395. <dd><p>Constant quantizer method.
  2396. </p>
  2397. <p>Uses a cheaper version of twoloop algorithm that doesn&rsquo;t try to do as many
  2398. clever adjustments. Worse with low bitrates (less than 64kbps), but is better
  2399. and much faster at higher bitrates.
  2400. </p>
  2401. </dd>
  2402. </dl>
  2403. </dd>
  2404. <dt><samp class="option">aac_ms</samp></dt>
  2405. <dd><p>Sets mid/side coding mode. The default value of &quot;auto&quot; will automatically use
  2406. M/S with bands which will benefit from such coding. Can be forced for all bands
  2407. using the value &quot;enable&quot;, which is mainly useful for debugging or disabled using
  2408. &quot;disable&quot;.
  2409. </p>
  2410. </dd>
  2411. <dt><samp class="option">aac_is</samp></dt>
  2412. <dd><p>Sets intensity stereo coding tool usage. By default, it&rsquo;s enabled and will
  2413. automatically toggle IS for similar pairs of stereo bands if it&rsquo;s beneficial.
  2414. Can be disabled for debugging by setting the value to &quot;disable&quot;.
  2415. </p>
  2416. </dd>
  2417. <dt><samp class="option">aac_pns</samp></dt>
  2418. <dd><p>Uses perceptual noise substitution to replace low entropy high frequency bands
  2419. with imperceptible white noise during the decoding process. By default, it&rsquo;s
  2420. enabled, but can be disabled for debugging purposes by using &quot;disable&quot;.
  2421. </p>
  2422. </dd>
  2423. <dt><samp class="option">aac_tns</samp></dt>
  2424. <dd><p>Enables the use of a multitap FIR filter which spans through the high frequency
  2425. bands to hide quantization noise during the encoding process and is reverted
  2426. by the decoder. As well as decreasing unpleasant artifacts in the high range
  2427. this also reduces the entropy in the high bands and allows for more bits to
  2428. be used by the mid-low bands. By default it&rsquo;s enabled but can be disabled for
  2429. debugging by setting the option to &quot;disable&quot;.
  2430. </p>
  2431. </dd>
  2432. <dt><samp class="option">aac_ltp</samp></dt>
  2433. <dd><p>Enables the use of the long term prediction extension which increases coding
  2434. efficiency in very low bandwidth situations such as encoding of voice or
  2435. solo piano music by extending constant harmonic peaks in bands throughout
  2436. frames. This option is implied by profile:a aac_low.
  2437. Use in conjunction with <samp class="option">-ar</samp> to decrease the samplerate.
  2438. </p>
  2439. </dd>
  2440. <dt><samp class="option">profile</samp></dt>
  2441. <dd><p>Sets the encoding profile, possible values:
  2442. </p>
  2443. <dl class="table">
  2444. <dt>&lsquo;<samp class="samp">aac_low</samp>&rsquo;</dt>
  2445. <dd><p>The default, AAC &quot;Low-complexity&quot; profile. Is the most compatible and produces
  2446. decent quality.
  2447. </p>
  2448. </dd>
  2449. <dt>&lsquo;<samp class="samp">mpeg2_aac_low</samp>&rsquo;</dt>
  2450. <dd><p>Equivalent to <code class="code">-profile:a aac_low -aac_pns 0</code>. PNS was introduced with the
  2451. MPEG4 specifications.
  2452. </p>
  2453. </dd>
  2454. <dt>&lsquo;<samp class="samp">aac_ltp</samp>&rsquo;</dt>
  2455. <dd><p>Long term prediction profile, is enabled by and will enable the <samp class="option">aac_ltp</samp>
  2456. option. Introduced in MPEG4.
  2457. </p>
  2458. </dd>
  2459. </dl>
  2460. <p>If this option is unspecified it is set to &lsquo;<samp class="samp">aac_low</samp>&rsquo;.
  2461. </p></dd>
  2462. </dl>
  2463. <a name="ac3-and-ac3_005ffixed"></a>
  2464. <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>
  2465. <p>AC-3 audio encoders.
  2466. </p>
  2467. <p>These encoders implement part of ATSC A/52:2010 and ETSI TS 102 366.
  2468. </p>
  2469. <p>The <var class="var">ac3</var> encoder uses floating-point math, while the <var class="var">ac3_fixed</var>
  2470. encoder only uses fixed-point integer math. This does not mean that one is
  2471. always faster, just that one or the other may be better suited to a
  2472. particular system. The <var class="var">ac3_fixed</var> encoder is not the default codec for
  2473. any of the output formats, so it must be specified explicitly using the option
  2474. <code class="code">-acodec ac3_fixed</code> in order to use it.
  2475. </p>
  2476. <a name="AC_002d3-Metadata"></a>
  2477. <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>
  2478. <p>The AC-3 metadata options are used to set parameters that describe the audio,
  2479. but in most cases do not affect the audio encoding itself. Some of the options
  2480. do directly affect or influence the decoding and playback of the resulting
  2481. bitstream, while others are just for informational purposes. A few of the
  2482. options will add bits to the output stream that could otherwise be used for
  2483. audio data, and will thus affect the quality of the output. Those will be
  2484. indicated accordingly with a note in the option list below.
  2485. </p>
  2486. <p>These parameters are described in detail in several publicly-available
  2487. documents.
  2488. </p><ul class="itemize mark-bullet">
  2489. <li><a class="uref" href="http://www.atsc.org/cms/standards/a_52-2010.pdf">A/52:2010 - Digital Audio Compression (AC-3) (E-AC-3) Standard</a>
  2490. </li><li><a class="uref" href="http://www.atsc.org/cms/standards/a_54a_with_corr_1.pdf">A/54 - Guide to the Use of the ATSC Digital Television Standard</a>
  2491. </li><li><a class="uref" href="http://www.dolby.com/uploadedFiles/zz-_Shared_Assets/English_PDFs/Professional/18_Metadata.Guide.pdf">Dolby Metadata Guide</a>
  2492. </li><li><a class="uref" href="http://www.dolby.com/uploadedFiles/zz-_Shared_Assets/English_PDFs/Professional/46_DDEncodingGuidelines.pdf">Dolby Digital Professional Encoding Guidelines</a>
  2493. </li></ul>
  2494. <a name="Metadata-Control-Options"></a>
  2495. <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>
  2496. <dl class="table">
  2497. <dt><samp class="option">-per_frame_metadata <var class="var">boolean</var></samp></dt>
  2498. <dd><p>Allow Per-Frame Metadata. Specifies if the encoder should check for changing
  2499. metadata for each frame.
  2500. </p><dl class="table">
  2501. <dt><samp class="option">0</samp></dt>
  2502. <dd><p>The metadata values set at initialization will be used for every frame in the
  2503. stream. (default)
  2504. </p></dd>
  2505. <dt><samp class="option">1</samp></dt>
  2506. <dd><p>Metadata values can be changed before encoding each frame.
  2507. </p></dd>
  2508. </dl>
  2509. </dd>
  2510. </dl>
  2511. <a name="Downmix-Levels"></a>
  2512. <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>
  2513. <dl class="table">
  2514. <dt><samp class="option">-center_mixlev <var class="var">level</var></samp></dt>
  2515. <dd><p>Center Mix Level. The amount of gain the decoder should apply to the center
  2516. channel when downmixing to stereo. This field will only be written to the
  2517. bitstream if a center channel is present. The value is specified as a scale
  2518. factor. There are 3 valid values:
  2519. </p><dl class="table">
  2520. <dt><samp class="option">0.707</samp></dt>
  2521. <dd><p>Apply -3dB gain
  2522. </p></dd>
  2523. <dt><samp class="option">0.595</samp></dt>
  2524. <dd><p>Apply -4.5dB gain (default)
  2525. </p></dd>
  2526. <dt><samp class="option">0.500</samp></dt>
  2527. <dd><p>Apply -6dB gain
  2528. </p></dd>
  2529. </dl>
  2530. </dd>
  2531. <dt><samp class="option">-surround_mixlev <var class="var">level</var></samp></dt>
  2532. <dd><p>Surround Mix Level. The amount of gain the decoder should apply to the surround
  2533. channel(s) when downmixing to stereo. This field will only be written to the
  2534. bitstream if one or more surround channels are present. The value is specified
  2535. as a scale factor. There are 3 valid values:
  2536. </p><dl class="table">
  2537. <dt><samp class="option">0.707</samp></dt>
  2538. <dd><p>Apply -3dB gain
  2539. </p></dd>
  2540. <dt><samp class="option">0.500</samp></dt>
  2541. <dd><p>Apply -6dB gain (default)
  2542. </p></dd>
  2543. <dt><samp class="option">0.000</samp></dt>
  2544. <dd><p>Silence Surround Channel(s)
  2545. </p></dd>
  2546. </dl>
  2547. </dd>
  2548. </dl>
  2549. <a name="Audio-Production-Information"></a>
  2550. <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>
  2551. <p>Audio Production Information is optional information describing the mixing
  2552. environment. Either none or both of the fields are written to the bitstream.
  2553. </p>
  2554. <dl class="table">
  2555. <dt><samp class="option">-mixing_level <var class="var">number</var></samp></dt>
  2556. <dd><p>Mixing Level. Specifies peak sound pressure level (SPL) in the production
  2557. environment when the mix was mastered. Valid values are 80 to 111, or -1 for
  2558. unknown or not indicated. The default value is -1, but that value cannot be
  2559. used if the Audio Production Information is written to the bitstream. Therefore,
  2560. if the <code class="code">room_type</code> option is not the default value, the <code class="code">mixing_level</code>
  2561. option must not be -1.
  2562. </p>
  2563. </dd>
  2564. <dt><samp class="option">-room_type <var class="var">type</var></samp></dt>
  2565. <dd><p>Room Type. Describes the equalization used during the final mixing session at
  2566. the studio or on the dubbing stage. A large room is a dubbing stage with the
  2567. industry standard X-curve equalization; a small room has flat equalization.
  2568. This field will not be written to the bitstream if both the <code class="code">mixing_level</code>
  2569. option and the <code class="code">room_type</code> option have the default values.
  2570. </p><dl class="table">
  2571. <dt><samp class="option">0</samp></dt>
  2572. <dt><samp class="option">notindicated</samp></dt>
  2573. <dd><p>Not Indicated (default)
  2574. </p></dd>
  2575. <dt><samp class="option">1</samp></dt>
  2576. <dt><samp class="option">large</samp></dt>
  2577. <dd><p>Large Room
  2578. </p></dd>
  2579. <dt><samp class="option">2</samp></dt>
  2580. <dt><samp class="option">small</samp></dt>
  2581. <dd><p>Small Room
  2582. </p></dd>
  2583. </dl>
  2584. </dd>
  2585. </dl>
  2586. <a name="Other-Metadata-Options"></a>
  2587. <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>
  2588. <dl class="table">
  2589. <dt><samp class="option">-copyright <var class="var">boolean</var></samp></dt>
  2590. <dd><p>Copyright Indicator. Specifies whether a copyright exists for this audio.
  2591. </p><dl class="table">
  2592. <dt><samp class="option">0</samp></dt>
  2593. <dt><samp class="option">off</samp></dt>
  2594. <dd><p>No Copyright Exists (default)
  2595. </p></dd>
  2596. <dt><samp class="option">1</samp></dt>
  2597. <dt><samp class="option">on</samp></dt>
  2598. <dd><p>Copyright Exists
  2599. </p></dd>
  2600. </dl>
  2601. </dd>
  2602. <dt><samp class="option">-dialnorm <var class="var">value</var></samp></dt>
  2603. <dd><p>Dialogue Normalization. Indicates how far the average dialogue level of the
  2604. program is below digital 100% full scale (0 dBFS). This parameter determines a
  2605. level shift during audio reproduction that sets the average volume of the
  2606. dialogue to a preset level. The goal is to match volume level between program
  2607. sources. A value of -31dB will result in no volume level change, relative to
  2608. the source volume, during audio reproduction. Valid values are whole numbers in
  2609. the range -31 to -1, with -31 being the default.
  2610. </p>
  2611. </dd>
  2612. <dt><samp class="option">-dsur_mode <var class="var">mode</var></samp></dt>
  2613. <dd><p>Dolby Surround Mode. Specifies whether the stereo signal uses Dolby Surround
  2614. (Pro Logic). This field will only be written to the bitstream if the audio
  2615. stream is stereo. Using this option does <b class="b">NOT</b> mean the encoder will actually
  2616. apply Dolby Surround processing.
  2617. </p><dl class="table">
  2618. <dt><samp class="option">0</samp></dt>
  2619. <dt><samp class="option">notindicated</samp></dt>
  2620. <dd><p>Not Indicated (default)
  2621. </p></dd>
  2622. <dt><samp class="option">1</samp></dt>
  2623. <dt><samp class="option">off</samp></dt>
  2624. <dd><p>Not Dolby Surround Encoded
  2625. </p></dd>
  2626. <dt><samp class="option">2</samp></dt>
  2627. <dt><samp class="option">on</samp></dt>
  2628. <dd><p>Dolby Surround Encoded
  2629. </p></dd>
  2630. </dl>
  2631. </dd>
  2632. <dt><samp class="option">-original <var class="var">boolean</var></samp></dt>
  2633. <dd><p>Original Bit Stream Indicator. Specifies whether this audio is from the
  2634. original source and not a copy.
  2635. </p><dl class="table">
  2636. <dt><samp class="option">0</samp></dt>
  2637. <dt><samp class="option">off</samp></dt>
  2638. <dd><p>Not Original Source
  2639. </p></dd>
  2640. <dt><samp class="option">1</samp></dt>
  2641. <dt><samp class="option">on</samp></dt>
  2642. <dd><p>Original Source (default)
  2643. </p></dd>
  2644. </dl>
  2645. </dd>
  2646. </dl>
  2647. <a name="Extended-Bitstream-Information"></a>
  2648. <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>
  2649. <p>The extended bitstream options are part of the Alternate Bit Stream Syntax as
  2650. specified in Annex D of the A/52:2010 standard. It is grouped into 2 parts.
  2651. If any one parameter in a group is specified, all values in that group will be
  2652. written to the bitstream. Default values are used for those that are written
  2653. but have not been specified. If the mixing levels are written, the decoder
  2654. will use these values instead of the ones specified in the <code class="code">center_mixlev</code>
  2655. and <code class="code">surround_mixlev</code> options if it supports the Alternate Bit Stream
  2656. Syntax.
  2657. </p>
  2658. <a name="Extended-Bitstream-Information-_002d-Part-1"></a>
  2659. <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>
  2660. <dl class="table">
  2661. <dt><samp class="option">-dmix_mode <var class="var">mode</var></samp></dt>
  2662. <dd><p>Preferred Stereo Downmix Mode. Allows the user to select either Lt/Rt
  2663. (Dolby Surround) or Lo/Ro (normal stereo) as the preferred stereo downmix mode.
  2664. </p><dl class="table">
  2665. <dt><samp class="option">0</samp></dt>
  2666. <dt><samp class="option">notindicated</samp></dt>
  2667. <dd><p>Not Indicated (default)
  2668. </p></dd>
  2669. <dt><samp class="option">1</samp></dt>
  2670. <dt><samp class="option">ltrt</samp></dt>
  2671. <dd><p>Lt/Rt Downmix Preferred
  2672. </p></dd>
  2673. <dt><samp class="option">2</samp></dt>
  2674. <dt><samp class="option">loro</samp></dt>
  2675. <dd><p>Lo/Ro Downmix Preferred
  2676. </p></dd>
  2677. </dl>
  2678. </dd>
  2679. <dt><samp class="option">-ltrt_cmixlev <var class="var">level</var></samp></dt>
  2680. <dd><p>Lt/Rt Center Mix Level. The amount of gain the decoder should apply to the
  2681. center channel when downmixing to stereo in Lt/Rt mode.
  2682. </p><dl class="table">
  2683. <dt><samp class="option">1.414</samp></dt>
  2684. <dd><p>Apply +3dB gain
  2685. </p></dd>
  2686. <dt><samp class="option">1.189</samp></dt>
  2687. <dd><p>Apply +1.5dB gain
  2688. </p></dd>
  2689. <dt><samp class="option">1.000</samp></dt>
  2690. <dd><p>Apply 0dB gain
  2691. </p></dd>
  2692. <dt><samp class="option">0.841</samp></dt>
  2693. <dd><p>Apply -1.5dB gain
  2694. </p></dd>
  2695. <dt><samp class="option">0.707</samp></dt>
  2696. <dd><p>Apply -3.0dB gain
  2697. </p></dd>
  2698. <dt><samp class="option">0.595</samp></dt>
  2699. <dd><p>Apply -4.5dB gain (default)
  2700. </p></dd>
  2701. <dt><samp class="option">0.500</samp></dt>
  2702. <dd><p>Apply -6.0dB gain
  2703. </p></dd>
  2704. <dt><samp class="option">0.000</samp></dt>
  2705. <dd><p>Silence Center Channel
  2706. </p></dd>
  2707. </dl>
  2708. </dd>
  2709. <dt><samp class="option">-ltrt_surmixlev <var class="var">level</var></samp></dt>
  2710. <dd><p>Lt/Rt Surround Mix Level. The amount of gain the decoder should apply to the
  2711. surround channel(s) when downmixing to stereo in Lt/Rt mode.
  2712. </p><dl class="table">
  2713. <dt><samp class="option">0.841</samp></dt>
  2714. <dd><p>Apply -1.5dB gain
  2715. </p></dd>
  2716. <dt><samp class="option">0.707</samp></dt>
  2717. <dd><p>Apply -3.0dB gain
  2718. </p></dd>
  2719. <dt><samp class="option">0.595</samp></dt>
  2720. <dd><p>Apply -4.5dB gain
  2721. </p></dd>
  2722. <dt><samp class="option">0.500</samp></dt>
  2723. <dd><p>Apply -6.0dB gain (default)
  2724. </p></dd>
  2725. <dt><samp class="option">0.000</samp></dt>
  2726. <dd><p>Silence Surround Channel(s)
  2727. </p></dd>
  2728. </dl>
  2729. </dd>
  2730. <dt><samp class="option">-loro_cmixlev <var class="var">level</var></samp></dt>
  2731. <dd><p>Lo/Ro Center Mix Level. The amount of gain the decoder should apply to the
  2732. center channel when downmixing to stereo in Lo/Ro mode.
  2733. </p><dl class="table">
  2734. <dt><samp class="option">1.414</samp></dt>
  2735. <dd><p>Apply +3dB gain
  2736. </p></dd>
  2737. <dt><samp class="option">1.189</samp></dt>
  2738. <dd><p>Apply +1.5dB gain
  2739. </p></dd>
  2740. <dt><samp class="option">1.000</samp></dt>
  2741. <dd><p>Apply 0dB gain
  2742. </p></dd>
  2743. <dt><samp class="option">0.841</samp></dt>
  2744. <dd><p>Apply -1.5dB gain
  2745. </p></dd>
  2746. <dt><samp class="option">0.707</samp></dt>
  2747. <dd><p>Apply -3.0dB gain
  2748. </p></dd>
  2749. <dt><samp class="option">0.595</samp></dt>
  2750. <dd><p>Apply -4.5dB gain (default)
  2751. </p></dd>
  2752. <dt><samp class="option">0.500</samp></dt>
  2753. <dd><p>Apply -6.0dB gain
  2754. </p></dd>
  2755. <dt><samp class="option">0.000</samp></dt>
  2756. <dd><p>Silence Center Channel
  2757. </p></dd>
  2758. </dl>
  2759. </dd>
  2760. <dt><samp class="option">-loro_surmixlev <var class="var">level</var></samp></dt>
  2761. <dd><p>Lo/Ro Surround Mix Level. The amount of gain the decoder should apply to the
  2762. surround channel(s) when downmixing to stereo in Lo/Ro mode.
  2763. </p><dl class="table">
  2764. <dt><samp class="option">0.841</samp></dt>
  2765. <dd><p>Apply -1.5dB gain
  2766. </p></dd>
  2767. <dt><samp class="option">0.707</samp></dt>
  2768. <dd><p>Apply -3.0dB gain
  2769. </p></dd>
  2770. <dt><samp class="option">0.595</samp></dt>
  2771. <dd><p>Apply -4.5dB gain
  2772. </p></dd>
  2773. <dt><samp class="option">0.500</samp></dt>
  2774. <dd><p>Apply -6.0dB gain (default)
  2775. </p></dd>
  2776. <dt><samp class="option">0.000</samp></dt>
  2777. <dd><p>Silence Surround Channel(s)
  2778. </p></dd>
  2779. </dl>
  2780. </dd>
  2781. </dl>
  2782. <a name="Extended-Bitstream-Information-_002d-Part-2"></a>
  2783. <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>
  2784. <dl class="table">
  2785. <dt><samp class="option">-dsurex_mode <var class="var">mode</var></samp></dt>
  2786. <dd><p>Dolby Surround EX Mode. Indicates whether the stream uses Dolby Surround EX
  2787. (7.1 matrixed to 5.1). Using this option does <b class="b">NOT</b> mean the encoder will actually
  2788. apply Dolby Surround EX processing.
  2789. </p><dl class="table">
  2790. <dt><samp class="option">0</samp></dt>
  2791. <dt><samp class="option">notindicated</samp></dt>
  2792. <dd><p>Not Indicated (default)
  2793. </p></dd>
  2794. <dt><samp class="option">1</samp></dt>
  2795. <dt><samp class="option">on</samp></dt>
  2796. <dd><p>Dolby Surround EX Off
  2797. </p></dd>
  2798. <dt><samp class="option">2</samp></dt>
  2799. <dt><samp class="option">off</samp></dt>
  2800. <dd><p>Dolby Surround EX On
  2801. </p></dd>
  2802. </dl>
  2803. </dd>
  2804. <dt><samp class="option">-dheadphone_mode <var class="var">mode</var></samp></dt>
  2805. <dd><p>Dolby Headphone Mode. Indicates whether the stream uses Dolby Headphone
  2806. encoding (multi-channel matrixed to 2.0 for use with headphones). Using this
  2807. option does <b class="b">NOT</b> mean the encoder will actually apply Dolby Headphone
  2808. processing.
  2809. </p><dl class="table">
  2810. <dt><samp class="option">0</samp></dt>
  2811. <dt><samp class="option">notindicated</samp></dt>
  2812. <dd><p>Not Indicated (default)
  2813. </p></dd>
  2814. <dt><samp class="option">1</samp></dt>
  2815. <dt><samp class="option">on</samp></dt>
  2816. <dd><p>Dolby Headphone Off
  2817. </p></dd>
  2818. <dt><samp class="option">2</samp></dt>
  2819. <dt><samp class="option">off</samp></dt>
  2820. <dd><p>Dolby Headphone On
  2821. </p></dd>
  2822. </dl>
  2823. </dd>
  2824. <dt><samp class="option">-ad_conv_type <var class="var">type</var></samp></dt>
  2825. <dd><p>A/D Converter Type. Indicates whether the audio has passed through HDCD A/D
  2826. conversion.
  2827. </p><dl class="table">
  2828. <dt><samp class="option">0</samp></dt>
  2829. <dt><samp class="option">standard</samp></dt>
  2830. <dd><p>Standard A/D Converter (default)
  2831. </p></dd>
  2832. <dt><samp class="option">1</samp></dt>
  2833. <dt><samp class="option">hdcd</samp></dt>
  2834. <dd><p>HDCD A/D Converter
  2835. </p></dd>
  2836. </dl>
  2837. </dd>
  2838. </dl>
  2839. <a name="Other-AC_002d3-Encoding-Options"></a>
  2840. <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>
  2841. <dl class="table">
  2842. <dt><samp class="option">-stereo_rematrixing <var class="var">boolean</var></samp></dt>
  2843. <dd><p>Stereo Rematrixing. Enables/Disables use of rematrixing for stereo input. This
  2844. is an optional AC-3 feature that increases quality by selectively encoding
  2845. the left/right channels as mid/side. This option is enabled by default, and it
  2846. is highly recommended that it be left as enabled except for testing purposes.
  2847. </p>
  2848. </dd>
  2849. <dt><samp class="option">cutoff <var class="var">frequency</var></samp></dt>
  2850. <dd><p>Set lowpass cutoff frequency. If unspecified, the encoder selects a default
  2851. determined by various other encoding parameters.
  2852. </p>
  2853. </dd>
  2854. </dl>
  2855. <a name="Floating_002dPoint_002dOnly-AC_002d3-Encoding-Options"></a>
  2856. <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>
  2857. <p>These options are only valid for the floating-point encoder and do not exist
  2858. for the fixed-point encoder due to the corresponding features not being
  2859. implemented in fixed-point.
  2860. </p>
  2861. <dl class="table">
  2862. <dt><samp class="option">-channel_coupling <var class="var">boolean</var></samp></dt>
  2863. <dd><p>Enables/Disables use of channel coupling, which is an optional AC-3 feature
  2864. that increases quality by combining high frequency information from multiple
  2865. channels into a single channel. The per-channel high frequency information is
  2866. sent with less accuracy in both the frequency and time domains. This allows
  2867. more bits to be used for lower frequencies while preserving enough information
  2868. to reconstruct the high frequencies. This option is enabled by default for the
  2869. floating-point encoder and should generally be left as enabled except for
  2870. testing purposes or to increase encoding speed.
  2871. </p><dl class="table">
  2872. <dt><samp class="option">-1</samp></dt>
  2873. <dt><samp class="option">auto</samp></dt>
  2874. <dd><p>Selected by Encoder (default)
  2875. </p></dd>
  2876. <dt><samp class="option">0</samp></dt>
  2877. <dt><samp class="option">off</samp></dt>
  2878. <dd><p>Disable Channel Coupling
  2879. </p></dd>
  2880. <dt><samp class="option">1</samp></dt>
  2881. <dt><samp class="option">on</samp></dt>
  2882. <dd><p>Enable Channel Coupling
  2883. </p></dd>
  2884. </dl>
  2885. </dd>
  2886. <dt><samp class="option">-cpl_start_band <var class="var">number</var></samp></dt>
  2887. <dd><p>Coupling Start Band. Sets the channel coupling start band, from 1 to 15. If a
  2888. value higher than the bandwidth is used, it will be reduced to 1 less than the
  2889. coupling end band. If <var class="var">auto</var> is used, the start band will be determined by
  2890. the encoder based on the bit rate, sample rate, and channel layout. This option
  2891. has no effect if channel coupling is disabled.
  2892. </p><dl class="table">
  2893. <dt><samp class="option">-1</samp></dt>
  2894. <dt><samp class="option">auto</samp></dt>
  2895. <dd><p>Selected by Encoder (default)
  2896. </p></dd>
  2897. </dl>
  2898. </dd>
  2899. </dl>
  2900. <a class="anchor" id="flac"></a><a name="flac-2"></a>
  2901. <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>
  2902. <p>FLAC (Free Lossless Audio Codec) Encoder
  2903. </p>
  2904. <a name="Options-12"></a>
  2905. <h4 class="subsection">8.3.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>
  2906. <p>The following options are supported by FFmpeg&rsquo;s flac encoder.
  2907. </p>
  2908. <dl class="table">
  2909. <dt><samp class="option">compression_level</samp></dt>
  2910. <dd><p>Sets the compression level, which chooses defaults for many other options
  2911. if they are not set explicitly. Valid values are from 0 to 12, 5 is the
  2912. default.
  2913. </p>
  2914. </dd>
  2915. <dt><samp class="option">frame_size</samp></dt>
  2916. <dd><p>Sets the size of the frames in samples per channel.
  2917. </p>
  2918. </dd>
  2919. <dt><samp class="option">lpc_coeff_precision</samp></dt>
  2920. <dd><p>Sets the LPC coefficient precision, valid values are from 1 to 15, 15 is the
  2921. default.
  2922. </p>
  2923. </dd>
  2924. <dt><samp class="option">lpc_type</samp></dt>
  2925. <dd><p>Sets the first stage LPC algorithm
  2926. </p><dl class="table">
  2927. <dt>&lsquo;<samp class="samp">none</samp>&rsquo;</dt>
  2928. <dd><p>LPC is not used
  2929. </p>
  2930. </dd>
  2931. <dt>&lsquo;<samp class="samp">fixed</samp>&rsquo;</dt>
  2932. <dd><p>fixed LPC coefficients
  2933. </p>
  2934. </dd>
  2935. <dt>&lsquo;<samp class="samp">levinson</samp>&rsquo;</dt>
  2936. <dt>&lsquo;<samp class="samp">cholesky</samp>&rsquo;</dt>
  2937. </dl>
  2938. </dd>
  2939. <dt><samp class="option">lpc_passes</samp></dt>
  2940. <dd><p>Number of passes to use for Cholesky factorization during LPC analysis
  2941. </p>
  2942. </dd>
  2943. <dt><samp class="option">min_partition_order</samp></dt>
  2944. <dd><p>The minimum partition order
  2945. </p>
  2946. </dd>
  2947. <dt><samp class="option">max_partition_order</samp></dt>
  2948. <dd><p>The maximum partition order
  2949. </p>
  2950. </dd>
  2951. <dt><samp class="option">prediction_order_method</samp></dt>
  2952. <dd><dl class="table">
  2953. <dt>&lsquo;<samp class="samp">estimation</samp>&rsquo;</dt>
  2954. <dt>&lsquo;<samp class="samp">2level</samp>&rsquo;</dt>
  2955. <dt>&lsquo;<samp class="samp">4level</samp>&rsquo;</dt>
  2956. <dt>&lsquo;<samp class="samp">8level</samp>&rsquo;</dt>
  2957. <dt>&lsquo;<samp class="samp">search</samp>&rsquo;</dt>
  2958. <dd><p>Bruteforce search
  2959. </p></dd>
  2960. <dt>&lsquo;<samp class="samp">log</samp>&rsquo;</dt>
  2961. </dl>
  2962. </dd>
  2963. <dt><samp class="option">ch_mode</samp></dt>
  2964. <dd><p>Channel mode
  2965. </p><dl class="table">
  2966. <dt>&lsquo;<samp class="samp">auto</samp>&rsquo;</dt>
  2967. <dd><p>The mode is chosen automatically for each frame
  2968. </p></dd>
  2969. <dt>&lsquo;<samp class="samp">indep</samp>&rsquo;</dt>
  2970. <dd><p>Channels are independently coded
  2971. </p></dd>
  2972. <dt>&lsquo;<samp class="samp">left_side</samp>&rsquo;</dt>
  2973. <dt>&lsquo;<samp class="samp">right_side</samp>&rsquo;</dt>
  2974. <dt>&lsquo;<samp class="samp">mid_side</samp>&rsquo;</dt>
  2975. </dl>
  2976. </dd>
  2977. <dt><samp class="option">exact_rice_parameters</samp></dt>
  2978. <dd><p>Chooses if rice parameters are calculated exactly or approximately.
  2979. if set to 1 then they are chosen exactly, which slows the code down slightly and
  2980. improves compression slightly.
  2981. </p>
  2982. </dd>
  2983. <dt><samp class="option">multi_dim_quant</samp></dt>
  2984. <dd><p>Multi Dimensional Quantization. If set to 1 then a 2nd stage LPC algorithm is
  2985. applied after the first stage to finetune the coefficients. This is quite slow
  2986. and slightly improves compression.
  2987. </p>
  2988. </dd>
  2989. </dl>
  2990. <a class="anchor" id="opusenc"></a><a name="opus"></a>
  2991. <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>
  2992. <p>Opus encoder.
  2993. </p>
  2994. <p>This is a native FFmpeg encoder for the Opus format. Currently, it&rsquo;s in development and
  2995. only implements the CELT part of the codec. Its quality is usually worse and at best
  2996. is equal to the libopus encoder.
  2997. </p>
  2998. <a name="Options-13"></a>
  2999. <h4 class="subsection">8.4.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>
  3000. <dl class="table">
  3001. <dt><samp class="option">b</samp></dt>
  3002. <dd><p>Set bit rate in bits/s. If unspecified it uses the number of channels and the layout
  3003. to make a good guess.
  3004. </p>
  3005. </dd>
  3006. <dt><samp class="option">opus_delay</samp></dt>
  3007. <dd><p>Sets the maximum delay in milliseconds. Lower delays than 20ms will very quickly
  3008. decrease quality.
  3009. </p></dd>
  3010. </dl>
  3011. <a class="anchor" id="libfdk_002daac_002denc"></a><a name="libfdk_005faac"></a>
  3012. <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>
  3013. <p>libfdk-aac AAC (Advanced Audio Coding) encoder wrapper.
  3014. </p>
  3015. <p>The libfdk-aac library is based on the Fraunhofer FDK AAC code from
  3016. the Android project.
  3017. </p>
  3018. <p>Requires the presence of the libfdk-aac headers and library during
  3019. configuration. You need to explicitly configure the build with
  3020. <code class="code">--enable-libfdk-aac</code>. The library is also incompatible with GPL,
  3021. so if you allow the use of GPL, you should configure with
  3022. <code class="code">--enable-gpl --enable-nonfree --enable-libfdk-aac</code>.
  3023. </p>
  3024. <p>This encoder has support for the AAC-HE profiles.
  3025. </p>
  3026. <p>VBR encoding, enabled through the <samp class="option">vbr</samp> or <samp class="option">flags
  3027. +qscale</samp> options, is experimental and only works with some
  3028. combinations of parameters.
  3029. </p>
  3030. <p>Support for encoding 7.1 audio is only available with libfdk-aac 0.1.3 or
  3031. higher.
  3032. </p>
  3033. <p>For more information see the fdk-aac project at
  3034. <a class="url" href="http://sourceforge.net/p/opencore-amr/fdk-aac/">http://sourceforge.net/p/opencore-amr/fdk-aac/</a>.
  3035. </p>
  3036. <a name="Options-14"></a>
  3037. <h4 class="subsection">8.5.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>
  3038. <p>The following options are mapped on the shared FFmpeg codec options.
  3039. </p>
  3040. <dl class="table">
  3041. <dt><samp class="option">b</samp></dt>
  3042. <dd><p>Set bit rate in bits/s. If the bitrate is not explicitly specified, it
  3043. is automatically set to a suitable value depending on the selected
  3044. profile.
  3045. </p>
  3046. <p>In case VBR mode is enabled the option is ignored.
  3047. </p>
  3048. </dd>
  3049. <dt><samp class="option">ar</samp></dt>
  3050. <dd><p>Set audio sampling rate (in Hz).
  3051. </p>
  3052. </dd>
  3053. <dt><samp class="option">channels</samp></dt>
  3054. <dd><p>Set the number of audio channels.
  3055. </p>
  3056. </dd>
  3057. <dt><samp class="option">flags +qscale</samp></dt>
  3058. <dd><p>Enable fixed quality, VBR (Variable Bit Rate) mode.
  3059. Note that VBR is implicitly enabled when the <samp class="option">vbr</samp> value is
  3060. positive.
  3061. </p>
  3062. </dd>
  3063. <dt><samp class="option">cutoff</samp></dt>
  3064. <dd><p>Set cutoff frequency. If not specified (or explicitly set to 0) it
  3065. will use a value automatically computed by the library. Default value
  3066. is 0.
  3067. </p>
  3068. </dd>
  3069. <dt><samp class="option">profile</samp></dt>
  3070. <dd><p>Set audio profile.
  3071. </p>
  3072. <p>The following profiles are recognized:
  3073. </p><dl class="table">
  3074. <dt>&lsquo;<samp class="samp">aac_low</samp>&rsquo;</dt>
  3075. <dd><p>Low Complexity AAC (LC)
  3076. </p>
  3077. </dd>
  3078. <dt>&lsquo;<samp class="samp">aac_he</samp>&rsquo;</dt>
  3079. <dd><p>High Efficiency AAC (HE-AAC)
  3080. </p>
  3081. </dd>
  3082. <dt>&lsquo;<samp class="samp">aac_he_v2</samp>&rsquo;</dt>
  3083. <dd><p>High Efficiency AAC version 2 (HE-AACv2)
  3084. </p>
  3085. </dd>
  3086. <dt>&lsquo;<samp class="samp">aac_ld</samp>&rsquo;</dt>
  3087. <dd><p>Low Delay AAC (LD)
  3088. </p>
  3089. </dd>
  3090. <dt>&lsquo;<samp class="samp">aac_eld</samp>&rsquo;</dt>
  3091. <dd><p>Enhanced Low Delay AAC (ELD)
  3092. </p></dd>
  3093. </dl>
  3094. <p>If not specified it is set to &lsquo;<samp class="samp">aac_low</samp>&rsquo;.
  3095. </p></dd>
  3096. </dl>
  3097. <p>The following are private options of the libfdk_aac encoder.
  3098. </p>
  3099. <dl class="table">
  3100. <dt><samp class="option">afterburner</samp></dt>
  3101. <dd><p>Enable afterburner feature if set to 1, disabled if set to 0. This
  3102. improves the quality but also the required processing power.
  3103. </p>
  3104. <p>Default value is 1.
  3105. </p>
  3106. </dd>
  3107. <dt><samp class="option">eld_sbr</samp></dt>
  3108. <dd><p>Enable SBR (Spectral Band Replication) for ELD if set to 1, disabled
  3109. if set to 0.
  3110. </p>
  3111. <p>Default value is 0.
  3112. </p>
  3113. </dd>
  3114. <dt><samp class="option">eld_v2</samp></dt>
  3115. <dd><p>Enable ELDv2 (LD-MPS extension for ELD stereo signals) for ELDv2 if set to 1,
  3116. disabled if set to 0.
  3117. </p>
  3118. <p>Note that option is available when fdk-aac version (AACENCODER_LIB_VL0.AACENCODER_LIB_VL1.AACENCODER_LIB_VL2) &gt; (4.0.0).
  3119. </p>
  3120. <p>Default value is 0.
  3121. </p>
  3122. </dd>
  3123. <dt><samp class="option">signaling</samp></dt>
  3124. <dd><p>Set SBR/PS signaling style.
  3125. </p>
  3126. <p>It can assume one of the following values:
  3127. </p><dl class="table">
  3128. <dt>&lsquo;<samp class="samp">default</samp>&rsquo;</dt>
  3129. <dd><p>choose signaling implicitly (explicit hierarchical by default,
  3130. implicit if global header is disabled)
  3131. </p>
  3132. </dd>
  3133. <dt>&lsquo;<samp class="samp">implicit</samp>&rsquo;</dt>
  3134. <dd><p>implicit backwards compatible signaling
  3135. </p>
  3136. </dd>
  3137. <dt>&lsquo;<samp class="samp">explicit_sbr</samp>&rsquo;</dt>
  3138. <dd><p>explicit SBR, implicit PS signaling
  3139. </p>
  3140. </dd>
  3141. <dt>&lsquo;<samp class="samp">explicit_hierarchical</samp>&rsquo;</dt>
  3142. <dd><p>explicit hierarchical signaling
  3143. </p></dd>
  3144. </dl>
  3145. <p>Default value is &lsquo;<samp class="samp">default</samp>&rsquo;.
  3146. </p>
  3147. </dd>
  3148. <dt><samp class="option">latm</samp></dt>
  3149. <dd><p>Output LATM/LOAS encapsulated data if set to 1, disabled if set to 0.
  3150. </p>
  3151. <p>Default value is 0.
  3152. </p>
  3153. </dd>
  3154. <dt><samp class="option">header_period</samp></dt>
  3155. <dd><p>Set StreamMuxConfig and PCE repetition period (in frames) for sending
  3156. in-band configuration buffers within LATM/LOAS transport layer.
  3157. </p>
  3158. <p>Must be a 16-bits non-negative integer.
  3159. </p>
  3160. <p>Default value is 0.
  3161. </p>
  3162. </dd>
  3163. <dt><samp class="option">vbr</samp></dt>
  3164. <dd><p>Set VBR mode, from 1 to 5. 1 is lowest quality (though still pretty
  3165. good) and 5 is highest quality. A value of 0 will disable VBR, and CBR
  3166. (Constant Bit Rate) is enabled.
  3167. </p>
  3168. <p>Currently only the &lsquo;<samp class="samp">aac_low</samp>&rsquo; profile supports VBR encoding.
  3169. </p>
  3170. <p>VBR modes 1-5 correspond to roughly the following average bit rates:
  3171. </p>
  3172. <dl class="table">
  3173. <dt>&lsquo;<samp class="samp">1</samp>&rsquo;</dt>
  3174. <dd><p>32 kbps/channel
  3175. </p></dd>
  3176. <dt>&lsquo;<samp class="samp">2</samp>&rsquo;</dt>
  3177. <dd><p>40 kbps/channel
  3178. </p></dd>
  3179. <dt>&lsquo;<samp class="samp">3</samp>&rsquo;</dt>
  3180. <dd><p>48-56 kbps/channel
  3181. </p></dd>
  3182. <dt>&lsquo;<samp class="samp">4</samp>&rsquo;</dt>
  3183. <dd><p>64 kbps/channel
  3184. </p></dd>
  3185. <dt>&lsquo;<samp class="samp">5</samp>&rsquo;</dt>
  3186. <dd><p>about 80-96 kbps/channel
  3187. </p></dd>
  3188. </dl>
  3189. <p>Default value is 0.
  3190. </p>
  3191. </dd>
  3192. <dt><samp class="option">frame_length</samp></dt>
  3193. <dd><p>Set the audio frame length in samples. Default value is the internal
  3194. default of the library. Refer to the library&rsquo;s documentation for information
  3195. about supported values.
  3196. </p></dd>
  3197. </dl>
  3198. <a name="Examples"></a>
  3199. <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>
  3200. <ul class="itemize mark-bullet">
  3201. <li>Use <code class="command">ffmpeg</code> to convert an audio file to VBR AAC in an M4A (MP4)
  3202. container:
  3203. <div class="example">
  3204. <pre class="example-preformatted">ffmpeg -i input.wav -codec:a libfdk_aac -vbr 3 output.m4a
  3205. </pre></div>
  3206. </li><li>Use <code class="command">ffmpeg</code> to convert an audio file to CBR 64k kbps AAC, using the
  3207. High-Efficiency AAC profile:
  3208. <div class="example">
  3209. <pre class="example-preformatted">ffmpeg -i input.wav -c:a libfdk_aac -profile:a aac_he -b:a 64k output.m4a
  3210. </pre></div>
  3211. </li></ul>
  3212. <a class="anchor" id="liblc3_002denc"></a><a name="liblc3"></a>
  3213. <h3 class="section">8.6 liblc3<span class="pull-right"><a class="anchor hidden-xs" href="#liblc3" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-liblc3" aria-hidden="true">TOC</a></span></h3>
  3214. <p>liblc3 LC3 (Low Complexity Communication Codec) encoder wrapper.
  3215. </p>
  3216. <p>Requires the presence of the liblc3 headers and library during configuration.
  3217. You need to explicitly configure the build with <code class="code">--enable-liblc3</code>.
  3218. </p>
  3219. <p>This encoder has support for the Bluetooth SIG LC3 codec for the LE Audio
  3220. protocol, and the following features of LC3plus:
  3221. </p><ul class="itemize mark-bullet">
  3222. <li>Frame duration of 2.5 and 5ms.
  3223. </li><li>High-Resolution mode, 48 KHz, and 96 kHz sampling rates.
  3224. </li></ul>
  3225. <p>For more information see the liblc3 project at
  3226. <a class="url" href="https://github.com/google/liblc3">https://github.com/google/liblc3</a>.
  3227. </p>
  3228. <a name="Options-15"></a>
  3229. <h4 class="subsection">8.6.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>
  3230. <p>The following options are mapped on the shared FFmpeg codec options.
  3231. </p>
  3232. <dl class="table">
  3233. <dt><samp class="option">b <var class="var">bitrate</var></samp></dt>
  3234. <dd><p>Set the bit rate in bits/s. This will determine the fixed size of the encoded
  3235. frames, for a selected frame duration.
  3236. </p>
  3237. </dd>
  3238. <dt><samp class="option">ar <var class="var">frequency</var></samp></dt>
  3239. <dd><p>Set the audio sampling rate (in Hz).
  3240. </p>
  3241. </dd>
  3242. <dt><samp class="option">channels</samp></dt>
  3243. <dd><p>Set the number of audio channels.
  3244. </p>
  3245. </dd>
  3246. <dt><samp class="option">frame_duration</samp></dt>
  3247. <dd><p>Set the audio frame duration in milliseconds. Default value is 10ms.
  3248. Allowed frame durations are 2.5ms, 5ms, 7.5ms and 10ms.
  3249. LC3 (Bluetooth LE Audio), allows 7.5ms and 10ms; and LC3plus 2.5ms, 5ms
  3250. and 10ms.
  3251. </p>
  3252. <p>The 10ms frame duration is available in LC3 and LC3 plus standard.
  3253. In this mode, the produced bitstream can be referenced either as LC3 or LC3plus.
  3254. </p>
  3255. </dd>
  3256. <dt><samp class="option">high_resolution <var class="var">boolean</var></samp></dt>
  3257. <dd><p>Enable the high-resolution mode if set to 1. The high-resolution mode is
  3258. available with all LC3plus frame durations and for a sampling rate of 48 KHz,
  3259. and 96 KHz.
  3260. </p>
  3261. <p>The encoder automatically turns off this mode at lower sampling rates and
  3262. activates it at 96 KHz.
  3263. </p>
  3264. <p>This mode should be preferred at high bitrates. In this mode, the audio
  3265. bandwidth is always up to the Nyquist frequency, compared to LC3 at 48 KHz,
  3266. which limits the bandwidth to 20 KHz.
  3267. </p></dd>
  3268. </dl>
  3269. <a class="anchor" id="libmp3lame"></a><a name="libmp3lame-1"></a>
  3270. <h3 class="section">8.7 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>
  3271. <p>LAME (Lame Ain&rsquo;t an MP3 Encoder) MP3 encoder wrapper.
  3272. </p>
  3273. <p>Requires the presence of the libmp3lame headers and library during
  3274. configuration. You need to explicitly configure the build with
  3275. <code class="code">--enable-libmp3lame</code>.
  3276. </p>
  3277. <p>See <a class="ref" href="#libshine">libshine</a> for a fixed-point MP3 encoder, although with a
  3278. lower quality.
  3279. </p>
  3280. <a name="Options-16"></a>
  3281. <h4 class="subsection">8.7.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>
  3282. <p>The following options are supported by the libmp3lame wrapper. The
  3283. <code class="command">lame</code>-equivalent of the options are listed in parentheses.
  3284. </p>
  3285. <dl class="table">
  3286. <dt><samp class="option">b (<em class="emph">-b</em>)</samp></dt>
  3287. <dd><p>Set bitrate expressed in bits/s for CBR or ABR. LAME <code class="code">bitrate</code> is
  3288. expressed in kilobits/s.
  3289. </p>
  3290. </dd>
  3291. <dt><samp class="option">q (<em class="emph">-V</em>)</samp></dt>
  3292. <dd><p>Set constant quality setting for VBR. This option is valid only
  3293. using the <code class="command">ffmpeg</code> command-line tool. For library interface
  3294. users, use <samp class="option">global_quality</samp>.
  3295. </p>
  3296. </dd>
  3297. <dt><samp class="option">compression_level (<em class="emph">-q</em>)</samp></dt>
  3298. <dd><p>Set algorithm quality. Valid arguments are integers in the 0-9 range,
  3299. with 0 meaning highest quality but slowest, and 9 meaning fastest
  3300. while producing the worst quality.
  3301. </p>
  3302. </dd>
  3303. <dt><samp class="option">cutoff (<em class="emph">--lowpass</em>)</samp></dt>
  3304. <dd><p>Set lowpass cutoff frequency. If unspecified, the encoder dynamically
  3305. adjusts the cutoff.
  3306. </p>
  3307. </dd>
  3308. <dt><samp class="option">reservoir</samp></dt>
  3309. <dd><p>Enable use of bit reservoir when set to 1. Default value is 1. LAME
  3310. has this enabled by default, but can be overridden by use
  3311. <samp class="option">--nores</samp> option.
  3312. </p>
  3313. </dd>
  3314. <dt><samp class="option">joint_stereo (<em class="emph">-m j</em>)</samp></dt>
  3315. <dd><p>Enable the encoder to use (on a frame by frame basis) either L/R
  3316. stereo or mid/side stereo. Default value is 1.
  3317. </p>
  3318. </dd>
  3319. <dt><samp class="option">abr (<em class="emph">--abr</em>)</samp></dt>
  3320. <dd><p>Enable the encoder to use ABR when set to 1. The <code class="command">lame</code>
  3321. <samp class="option">--abr</samp> sets the target bitrate, while this options only
  3322. tells FFmpeg to use ABR still relies on <samp class="option">b</samp> to set bitrate.
  3323. </p>
  3324. </dd>
  3325. <dt><samp class="option">copyright (<em class="emph">-c</em>)</samp></dt>
  3326. <dd><p>Set MPEG audio copyright flag when set to 1. The default value is 0
  3327. (disabled).
  3328. </p>
  3329. </dd>
  3330. <dt><samp class="option">original (<em class="emph">-o</em>)</samp></dt>
  3331. <dd><p>Set MPEG audio original flag when set to 1. The default value is 1
  3332. (enabled).
  3333. </p></dd>
  3334. </dl>
  3335. <a name="libopencore_002damrnb-1"></a>
  3336. <h3 class="section">8.8 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>
  3337. <p>OpenCORE Adaptive Multi-Rate Narrowband encoder.
  3338. </p>
  3339. <p>Requires the presence of the libopencore-amrnb headers and library during
  3340. configuration. You need to explicitly configure the build with
  3341. <code class="code">--enable-libopencore-amrnb --enable-version3</code>.
  3342. </p>
  3343. <p>This is a mono-only encoder. Officially it only supports 8000Hz sample rate,
  3344. but you can override it by setting <samp class="option">strict</samp> to &lsquo;<samp class="samp">unofficial</samp>&rsquo; or
  3345. lower.
  3346. </p>
  3347. <a name="Options-17"></a>
  3348. <h4 class="subsection">8.8.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>
  3349. <dl class="table">
  3350. <dt><samp class="option">b</samp></dt>
  3351. <dd><p>Set bitrate in bits per second. Only the following bitrates are supported,
  3352. otherwise libavcodec will round to the nearest valid bitrate.
  3353. </p>
  3354. <dl class="table">
  3355. <dt><samp class="option">4750</samp></dt>
  3356. <dt><samp class="option">5150</samp></dt>
  3357. <dt><samp class="option">5900</samp></dt>
  3358. <dt><samp class="option">6700</samp></dt>
  3359. <dt><samp class="option">7400</samp></dt>
  3360. <dt><samp class="option">7950</samp></dt>
  3361. <dt><samp class="option">10200</samp></dt>
  3362. <dt><samp class="option">12200</samp></dt>
  3363. </dl>
  3364. </dd>
  3365. <dt><samp class="option">dtx</samp></dt>
  3366. <dd><p>Allow discontinuous transmission (generate comfort noise) when set to 1. The
  3367. default value is 0 (disabled).
  3368. </p>
  3369. </dd>
  3370. </dl>
  3371. <a name="libopus-1"></a>
  3372. <h3 class="section">8.9 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>
  3373. <p>libopus Opus Interactive Audio Codec encoder wrapper.
  3374. </p>
  3375. <p>Requires the presence of the libopus headers and library during
  3376. configuration. You need to explicitly configure the build with
  3377. <code class="code">--enable-libopus</code>.
  3378. </p>
  3379. <a name="Option-Mapping"></a>
  3380. <h4 class="subsection">8.9.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>
  3381. <p>Most libopus options are modelled after the <code class="command">opusenc</code> utility from
  3382. opus-tools. The following is an option mapping chart describing options
  3383. supported by the libopus wrapper, and their <code class="command">opusenc</code>-equivalent
  3384. in parentheses.
  3385. </p>
  3386. <dl class="table">
  3387. <dt><samp class="option">b (<em class="emph">bitrate</em>)</samp></dt>
  3388. <dd><p>Set the bit rate in bits/s. FFmpeg&rsquo;s <samp class="option">b</samp> option is
  3389. expressed in bits/s, while <code class="command">opusenc</code>&rsquo;s <samp class="option">bitrate</samp> in
  3390. kilobits/s.
  3391. </p>
  3392. </dd>
  3393. <dt><samp class="option">vbr (<em class="emph">vbr</em>, <em class="emph">hard-cbr</em>, and <em class="emph">cvbr</em>)</samp></dt>
  3394. <dd><p>Set VBR mode. The FFmpeg <samp class="option">vbr</samp> option has the following
  3395. valid arguments, with the <code class="command">opusenc</code> equivalent options
  3396. in parentheses:
  3397. </p>
  3398. <dl class="table">
  3399. <dt>&lsquo;<samp class="samp">off (<em class="emph">hard-cbr</em>)</samp>&rsquo;</dt>
  3400. <dd><p>Use constant bit rate encoding.
  3401. </p>
  3402. </dd>
  3403. <dt>&lsquo;<samp class="samp">on (<em class="emph">vbr</em>)</samp>&rsquo;</dt>
  3404. <dd><p>Use variable bit rate encoding (the default).
  3405. </p>
  3406. </dd>
  3407. <dt>&lsquo;<samp class="samp">constrained (<em class="emph">cvbr</em>)</samp>&rsquo;</dt>
  3408. <dd><p>Use constrained variable bit rate encoding.
  3409. </p></dd>
  3410. </dl>
  3411. </dd>
  3412. <dt><samp class="option">compression_level (<em class="emph">comp</em>)</samp></dt>
  3413. <dd><p>Set encoding algorithm complexity. Valid options are integers in
  3414. the 0-10 range. 0 gives the fastest encodes but lower quality, while 10
  3415. gives the highest quality but slowest encoding. The default is 10.
  3416. </p>
  3417. </dd>
  3418. <dt><samp class="option">frame_duration (<em class="emph">framesize</em>)</samp></dt>
  3419. <dd><p>Set maximum frame size, or duration of a frame in milliseconds. The
  3420. argument must be exactly the following: 2.5, 5, 10, 20, 40, 60. Smaller
  3421. frame sizes achieve lower latency but less quality at a given bitrate.
  3422. Sizes greater than 20ms are only interesting at fairly low bitrates.
  3423. The default is 20ms.
  3424. </p>
  3425. </dd>
  3426. <dt><samp class="option">packet_loss (<em class="emph">expect-loss</em>)</samp></dt>
  3427. <dd><p>Set expected packet loss percentage. The default is 0.
  3428. </p>
  3429. </dd>
  3430. <dt><samp class="option">fec (<em class="emph">n/a</em>)</samp></dt>
  3431. <dd><p>Enable inband forward error correction. <samp class="option">packet_loss</samp> must be non-zero
  3432. to take advantage - frequency of FEC &rsquo;side-data&rsquo; is proportional to expected packet loss.
  3433. Default is disabled.
  3434. </p>
  3435. </dd>
  3436. <dt><samp class="option">application (N.A.)</samp></dt>
  3437. <dd><p>Set intended application type. Valid options are listed below:
  3438. </p>
  3439. <dl class="table">
  3440. <dt>&lsquo;<samp class="samp">voip</samp>&rsquo;</dt>
  3441. <dd><p>Favor improved speech intelligibility.
  3442. </p></dd>
  3443. <dt>&lsquo;<samp class="samp">audio</samp>&rsquo;</dt>
  3444. <dd><p>Favor faithfulness to the input (the default).
  3445. </p></dd>
  3446. <dt>&lsquo;<samp class="samp">lowdelay</samp>&rsquo;</dt>
  3447. <dd><p>Restrict to only the lowest delay modes by disabling voice-optimized
  3448. modes.
  3449. </p></dd>
  3450. </dl>
  3451. </dd>
  3452. <dt><samp class="option">cutoff (N.A.)</samp></dt>
  3453. <dd><p>Set cutoff bandwidth in Hz. The argument must be exactly one of the
  3454. following: 4000, 6000, 8000, 12000, or 20000, corresponding to
  3455. narrowband, mediumband, wideband, super wideband, and fullband
  3456. respectively. The default is 0 (cutoff disabled). Note that libopus
  3457. forces a wideband cutoff for bitrates &lt; 15 kbps, unless CELT-only
  3458. (<samp class="option">application</samp> set to &lsquo;<samp class="samp">lowdelay</samp>&rsquo;) mode is used.
  3459. </p>
  3460. </dd>
  3461. <dt><samp class="option">mapping_family (<em class="emph">mapping_family</em>)</samp></dt>
  3462. <dd><p>Set channel mapping family to be used by the encoder. The default value of -1
  3463. uses mapping family 0 for mono and stereo inputs, and mapping family 1
  3464. otherwise. The default also disables the surround masking and LFE bandwidth
  3465. optimizations in libopus, and requires that the input contains 8 channels or
  3466. fewer.
  3467. </p>
  3468. <p>Other values include 0 for mono and stereo, 1 for surround sound with masking
  3469. and LFE bandwidth optimizations, and 255 for independent streams with an
  3470. unspecified channel layout.
  3471. </p>
  3472. </dd>
  3473. <dt><samp class="option">apply_phase_inv (N.A.) (requires libopus &gt;= 1.2)</samp></dt>
  3474. <dd><p>If set to 0, disables the use of phase inversion for intensity stereo,
  3475. improving the quality of mono downmixes, but slightly reducing normal stereo
  3476. quality. The default is 1 (phase inversion enabled).
  3477. </p>
  3478. </dd>
  3479. </dl>
  3480. <a class="anchor" id="libshine"></a><a name="libshine-1"></a>
  3481. <h3 class="section">8.10 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>
  3482. <p>Shine Fixed-Point MP3 encoder wrapper.
  3483. </p>
  3484. <p>Shine is a fixed-point MP3 encoder. It has a far better performance on
  3485. platforms without an FPU, e.g. armel CPUs, and some phones and tablets.
  3486. However, as it is more targeted on performance than quality, it is not on par
  3487. with LAME and other production-grade encoders quality-wise. Also, according to
  3488. the project&rsquo;s homepage, this encoder may not be free of bugs as the code was
  3489. written a long time ago and the project was dead for at least 5 years.
  3490. </p>
  3491. <p>This encoder only supports stereo and mono input. This is also CBR-only.
  3492. </p>
  3493. <p>The original project (last updated in early 2007) is at
  3494. <a class="url" href="http://sourceforge.net/projects/libshine-fxp/">http://sourceforge.net/projects/libshine-fxp/</a>. We only support the
  3495. updated fork by the Savonet/Liquidsoap project at <a class="url" href="https://github.com/savonet/shine">https://github.com/savonet/shine</a>.
  3496. </p>
  3497. <p>Requires the presence of the libshine headers and library during
  3498. configuration. You need to explicitly configure the build with
  3499. <code class="code">--enable-libshine</code>.
  3500. </p>
  3501. <p>See also <a class="ref" href="#libmp3lame">libmp3lame</a>.
  3502. </p>
  3503. <a name="Options-18"></a>
  3504. <h4 class="subsection">8.10.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>
  3505. <p>The following options are supported by the libshine wrapper. The
  3506. <code class="command">shineenc</code>-equivalent of the options are listed in parentheses.
  3507. </p>
  3508. <dl class="table">
  3509. <dt><samp class="option">b (<em class="emph">-b</em>)</samp></dt>
  3510. <dd><p>Set bitrate expressed in bits/s for CBR. <code class="command">shineenc</code> <samp class="option">-b</samp> option
  3511. is expressed in kilobits/s.
  3512. </p>
  3513. </dd>
  3514. </dl>
  3515. <a name="libtwolame"></a>
  3516. <h3 class="section">8.11 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>
  3517. <p>TwoLAME MP2 encoder wrapper.
  3518. </p>
  3519. <p>Requires the presence of the libtwolame headers and library during
  3520. configuration. You need to explicitly configure the build with
  3521. <code class="code">--enable-libtwolame</code>.
  3522. </p>
  3523. <a name="Options-19"></a>
  3524. <h4 class="subsection">8.11.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>
  3525. <p>The following options are supported by the libtwolame wrapper. The
  3526. <code class="command">twolame</code>-equivalent options follow the FFmpeg ones and are in
  3527. parentheses.
  3528. </p>
  3529. <dl class="table">
  3530. <dt><samp class="option">b (<em class="emph">-b</em>)</samp></dt>
  3531. <dd><p>Set bitrate expressed in bits/s for CBR. <code class="command">twolame</code> <samp class="option">b</samp>
  3532. option is expressed in kilobits/s. Default value is 128k.
  3533. </p>
  3534. </dd>
  3535. <dt><samp class="option">q (<em class="emph">-V</em>)</samp></dt>
  3536. <dd><p>Set quality for experimental VBR support. Maximum value range is
  3537. from -50 to 50, useful range is from -10 to 10. The higher the
  3538. value, the better the quality. This option is valid only using the
  3539. <code class="command">ffmpeg</code> command-line tool. For library interface users,
  3540. use <samp class="option">global_quality</samp>.
  3541. </p>
  3542. </dd>
  3543. <dt><samp class="option">mode (<em class="emph">--mode</em>)</samp></dt>
  3544. <dd><p>Set the mode of the resulting audio. Possible values:
  3545. </p>
  3546. <dl class="table">
  3547. <dt>&lsquo;<samp class="samp">auto</samp>&rsquo;</dt>
  3548. <dd><p>Choose mode automatically based on the input. This is the default.
  3549. </p></dd>
  3550. <dt>&lsquo;<samp class="samp">stereo</samp>&rsquo;</dt>
  3551. <dd><p>Stereo
  3552. </p></dd>
  3553. <dt>&lsquo;<samp class="samp">joint_stereo</samp>&rsquo;</dt>
  3554. <dd><p>Joint stereo
  3555. </p></dd>
  3556. <dt>&lsquo;<samp class="samp">dual_channel</samp>&rsquo;</dt>
  3557. <dd><p>Dual channel
  3558. </p></dd>
  3559. <dt>&lsquo;<samp class="samp">mono</samp>&rsquo;</dt>
  3560. <dd><p>Mono
  3561. </p></dd>
  3562. </dl>
  3563. </dd>
  3564. <dt><samp class="option">psymodel (<em class="emph">--psyc-mode</em>)</samp></dt>
  3565. <dd><p>Set psychoacoustic model to use in encoding. The argument must be
  3566. an integer between -1 and 4, inclusive. The higher the value, the
  3567. better the quality. The default value is 3.
  3568. </p>
  3569. </dd>
  3570. <dt><samp class="option">energy_levels (<em class="emph">--energy</em>)</samp></dt>
  3571. <dd><p>Enable energy levels extensions when set to 1. The default value is
  3572. 0 (disabled).
  3573. </p>
  3574. </dd>
  3575. <dt><samp class="option">error_protection (<em class="emph">--protect</em>)</samp></dt>
  3576. <dd><p>Enable CRC error protection when set to 1. The default value is 0
  3577. (disabled).
  3578. </p>
  3579. </dd>
  3580. <dt><samp class="option">copyright (<em class="emph">--copyright</em>)</samp></dt>
  3581. <dd><p>Set MPEG audio copyright flag when set to 1. The default value is 0
  3582. (disabled).
  3583. </p>
  3584. </dd>
  3585. <dt><samp class="option">original (<em class="emph">--original</em>)</samp></dt>
  3586. <dd><p>Set MPEG audio original flag when set to 1. The default value is 0
  3587. (disabled).
  3588. </p>
  3589. </dd>
  3590. </dl>
  3591. <a name="libvo_002damrwbenc"></a>
  3592. <h3 class="section">8.12 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>
  3593. <p>VisualOn Adaptive Multi-Rate Wideband encoder.
  3594. </p>
  3595. <p>Requires the presence of the libvo-amrwbenc headers and library during
  3596. configuration. You need to explicitly configure the build with
  3597. <code class="code">--enable-libvo-amrwbenc --enable-version3</code>.
  3598. </p>
  3599. <p>This is a mono-only encoder. Officially it only supports 16000Hz sample
  3600. rate, but you can override it by setting <samp class="option">strict</samp> to
  3601. &lsquo;<samp class="samp">unofficial</samp>&rsquo; or lower.
  3602. </p>
  3603. <a name="Options-20"></a>
  3604. <h4 class="subsection">8.12.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>
  3605. <dl class="table">
  3606. <dt><samp class="option">b</samp></dt>
  3607. <dd><p>Set bitrate in bits/s. Only the following bitrates are supported, otherwise
  3608. libavcodec will round to the nearest valid bitrate.
  3609. </p>
  3610. <dl class="table">
  3611. <dt>&lsquo;<samp class="samp">6600</samp>&rsquo;</dt>
  3612. <dt>&lsquo;<samp class="samp">8850</samp>&rsquo;</dt>
  3613. <dt>&lsquo;<samp class="samp">12650</samp>&rsquo;</dt>
  3614. <dt>&lsquo;<samp class="samp">14250</samp>&rsquo;</dt>
  3615. <dt>&lsquo;<samp class="samp">15850</samp>&rsquo;</dt>
  3616. <dt>&lsquo;<samp class="samp">18250</samp>&rsquo;</dt>
  3617. <dt>&lsquo;<samp class="samp">19850</samp>&rsquo;</dt>
  3618. <dt>&lsquo;<samp class="samp">23050</samp>&rsquo;</dt>
  3619. <dt>&lsquo;<samp class="samp">23850</samp>&rsquo;</dt>
  3620. </dl>
  3621. </dd>
  3622. <dt><samp class="option">dtx</samp></dt>
  3623. <dd><p>Allow discontinuous transmission (generate comfort noise) when set to 1. The
  3624. default value is 0 (disabled).
  3625. </p>
  3626. </dd>
  3627. </dl>
  3628. <a name="libvorbis"></a>
  3629. <h3 class="section">8.13 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>
  3630. <p>libvorbis encoder wrapper.
  3631. </p>
  3632. <p>Requires the presence of the libvorbisenc headers and library during
  3633. configuration. You need to explicitly configure the build with
  3634. <code class="code">--enable-libvorbis</code>.
  3635. </p>
  3636. <a name="Options-21"></a>
  3637. <h4 class="subsection">8.13.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>
  3638. <p>The following options are supported by the libvorbis wrapper. The
  3639. <code class="command">oggenc</code>-equivalent of the options are listed in parentheses.
  3640. </p>
  3641. <p>To get a more accurate and extensive documentation of the libvorbis
  3642. options, consult the libvorbisenc&rsquo;s and <code class="command">oggenc</code>&rsquo;s documentations.
  3643. See <a class="url" href="http://xiph.org/vorbis/">http://xiph.org/vorbis/</a>,
  3644. <a class="url" href="http://wiki.xiph.org/Vorbis-tools">http://wiki.xiph.org/Vorbis-tools</a>, and oggenc(1).
  3645. </p>
  3646. <dl class="table">
  3647. <dt><samp class="option">b (<em class="emph">-b</em>)</samp></dt>
  3648. <dd><p>Set bitrate expressed in bits/s for ABR. <code class="command">oggenc</code> <samp class="option">-b</samp> is
  3649. expressed in kilobits/s.
  3650. </p>
  3651. </dd>
  3652. <dt><samp class="option">q (<em class="emph">-q</em>)</samp></dt>
  3653. <dd><p>Set constant quality setting for VBR. The value should be a float
  3654. number in the range of -1.0 to 10.0. The higher the value, the better
  3655. the quality. The default value is &lsquo;<samp class="samp">3.0</samp>&rsquo;.
  3656. </p>
  3657. <p>This option is valid only using the <code class="command">ffmpeg</code> command-line tool.
  3658. For library interface users, use <samp class="option">global_quality</samp>.
  3659. </p>
  3660. </dd>
  3661. <dt><samp class="option">cutoff (<em class="emph">--advanced-encode-option lowpass_frequency=N</em>)</samp></dt>
  3662. <dd><p>Set cutoff bandwidth in Hz, a value of 0 disables cutoff. <code class="command">oggenc</code>&rsquo;s
  3663. related option is expressed in kHz. The default value is &lsquo;<samp class="samp">0</samp>&rsquo; (cutoff
  3664. disabled).
  3665. </p>
  3666. </dd>
  3667. <dt><samp class="option">minrate (<em class="emph">-m</em>)</samp></dt>
  3668. <dd><p>Set minimum bitrate expressed in bits/s. <code class="command">oggenc</code> <samp class="option">-m</samp> is
  3669. expressed in kilobits/s.
  3670. </p>
  3671. </dd>
  3672. <dt><samp class="option">maxrate (<em class="emph">-M</em>)</samp></dt>
  3673. <dd><p>Set maximum bitrate expressed in bits/s. <code class="command">oggenc</code> <samp class="option">-M</samp> is
  3674. expressed in kilobits/s. This only has effect on ABR mode.
  3675. </p>
  3676. </dd>
  3677. <dt><samp class="option">iblock (<em class="emph">--advanced-encode-option impulse_noisetune=N</em>)</samp></dt>
  3678. <dd><p>Set noise floor bias for impulse blocks. The value is a float number from
  3679. -15.0 to 0.0. A negative bias instructs the encoder to pay special attention
  3680. to the crispness of transients in the encoded audio. The tradeoff for better
  3681. transient response is a higher bitrate.
  3682. </p>
  3683. </dd>
  3684. </dl>
  3685. <a class="anchor" id="mjpegenc"></a><a name="mjpeg"></a>
  3686. <h3 class="section">8.14 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>
  3687. <p>Motion JPEG encoder.
  3688. </p>
  3689. <a name="Options-22"></a>
  3690. <h4 class="subsection">8.14.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>
  3691. <dl class="table">
  3692. <dt><samp class="option">huffman</samp></dt>
  3693. <dd><p>Set the huffman encoding strategy. Possible values:
  3694. </p>
  3695. <dl class="table">
  3696. <dt>&lsquo;<samp class="samp">default</samp>&rsquo;</dt>
  3697. <dd><p>Use the default huffman tables. This is the default strategy.
  3698. </p>
  3699. </dd>
  3700. <dt>&lsquo;<samp class="samp">optimal</samp>&rsquo;</dt>
  3701. <dd><p>Compute and use optimal huffman tables.
  3702. </p>
  3703. </dd>
  3704. </dl>
  3705. </dd>
  3706. </dl>
  3707. <a class="anchor" id="wavpackenc"></a><a name="wavpack"></a>
  3708. <h3 class="section">8.15 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>
  3709. <p>WavPack lossless audio encoder.
  3710. </p>
  3711. <a name="Options-23"></a>
  3712. <h4 class="subsection">8.15.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>
  3713. <p>The equivalent options for <code class="command">wavpack</code> command line utility are listed in
  3714. parentheses.
  3715. </p>
  3716. <a name="Shared-options"></a>
  3717. <h4 class="subsubsection">8.15.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>
  3718. <p>The following shared options are effective for this encoder. Only special notes
  3719. about this particular encoder will be documented here. For the general meaning
  3720. of the options, see <a class="ref" href="#codec_002doptions">the Codec Options chapter</a>.
  3721. </p>
  3722. <dl class="table">
  3723. <dt><samp class="option">frame_size (<em class="emph">--blocksize</em>)</samp></dt>
  3724. <dd><p>For this encoder, the range for this option is between 128 and 131072. Default
  3725. is automatically decided based on sample rate and number of channel.
  3726. </p>
  3727. <p>For the complete formula of calculating default, see
  3728. <samp class="file">libavcodec/wavpackenc.c</samp>.
  3729. </p>
  3730. </dd>
  3731. <dt><samp class="option">compression_level (<em class="emph">-f</em>, <em class="emph">-h</em>, <em class="emph">-hh</em>, and <em class="emph">-x</em>)</samp></dt>
  3732. </dl>
  3733. <a name="Private-options"></a>
  3734. <h4 class="subsubsection">8.15.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>
  3735. <dl class="table">
  3736. <dt><samp class="option">joint_stereo (<em class="emph">-j</em>)</samp></dt>
  3737. <dd><p>Set whether to enable joint stereo. Valid values are:
  3738. </p>
  3739. <dl class="table">
  3740. <dt>&lsquo;<samp class="samp">on (<em class="emph">1</em>)</samp>&rsquo;</dt>
  3741. <dd><p>Force mid/side audio encoding.
  3742. </p></dd>
  3743. <dt>&lsquo;<samp class="samp">off (<em class="emph">0</em>)</samp>&rsquo;</dt>
  3744. <dd><p>Force left/right audio encoding.
  3745. </p></dd>
  3746. <dt>&lsquo;<samp class="samp">auto</samp>&rsquo;</dt>
  3747. <dd><p>Let the encoder decide automatically.
  3748. </p></dd>
  3749. </dl>
  3750. </dd>
  3751. <dt><samp class="option">optimize_mono</samp></dt>
  3752. <dd><p>Set whether to enable optimization for mono. This option is only effective for
  3753. non-mono streams. Available values:
  3754. </p>
  3755. <dl class="table">
  3756. <dt>&lsquo;<samp class="samp">on</samp>&rsquo;</dt>
  3757. <dd><p>enabled
  3758. </p></dd>
  3759. <dt>&lsquo;<samp class="samp">off</samp>&rsquo;</dt>
  3760. <dd><p>disabled
  3761. </p></dd>
  3762. </dl>
  3763. </dd>
  3764. </dl>
  3765. <a name="Video-Encoders"></a>
  3766. <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>
  3767. <p>A description of some of the currently available video encoders
  3768. follows.
  3769. </p>
  3770. <a name="a64_005fmulti_002c-a64_005fmulti5"></a>
  3771. <h3 class="section">9.1 a64_multi, a64_multi5<span class="pull-right"><a class="anchor hidden-xs" href="#a64_005fmulti_002c-a64_005fmulti5" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-a64_005fmulti_002c-a64_005fmulti5" aria-hidden="true">TOC</a></span></h3>
  3772. <p>A64 / Commodore 64 multicolor charset encoder. <code class="code">a64_multi5</code> is extended with 5th color (colram).
  3773. </p>
  3774. <a name="Cinepak"></a>
  3775. <h3 class="section">9.2 Cinepak<span class="pull-right"><a class="anchor hidden-xs" href="#Cinepak" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Cinepak" aria-hidden="true">TOC</a></span></h3>
  3776. <p>Cinepak aka CVID encoder.
  3777. Compatible with Windows 3.1 and vintage MacOS.
  3778. </p>
  3779. <a name="Options-24"></a>
  3780. <h4 class="subsection">9.2.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>
  3781. <dl class="table">
  3782. <dt><samp class="option">g <var class="var">integer</var></samp></dt>
  3783. <dd><p>Keyframe interval.
  3784. A keyframe is inserted at least every <code class="code">-g</code> frames, sometimes sooner.
  3785. </p>
  3786. </dd>
  3787. <dt><samp class="option">q:v <var class="var">integer</var></samp></dt>
  3788. <dd><p>Quality factor. Lower is better. Higher gives lower bitrate.
  3789. The following table lists bitrates when encoding akiyo_cif.y4m for various values of <code class="code">-q:v</code> with <code class="code">-g 100</code>:
  3790. </p>
  3791. <dl class="table">
  3792. <dt><samp class="option"><code class="code">-q:v 1</code> 1918 kb/s</samp></dt>
  3793. <dt><samp class="option"><code class="code">-q:v 2</code> 1735 kb/s</samp></dt>
  3794. <dt><samp class="option"><code class="code">-q:v 4</code> 1500 kb/s</samp></dt>
  3795. <dt><samp class="option"><code class="code">-q:v 10</code> 1041 kb/s</samp></dt>
  3796. <dt><samp class="option"><code class="code">-q:v 20</code> 826 kb/s</samp></dt>
  3797. <dt><samp class="option"><code class="code">-q:v 40</code> 553 kb/s</samp></dt>
  3798. <dt><samp class="option"><code class="code">-q:v 100</code> 394 kb/s</samp></dt>
  3799. <dt><samp class="option"><code class="code">-q:v 200</code> 312 kb/s</samp></dt>
  3800. <dt><samp class="option"><code class="code">-q:v 400</code> 266 kb/s</samp></dt>
  3801. <dt><samp class="option"><code class="code">-q:v 1000</code> 237 kb/s</samp></dt>
  3802. </dl>
  3803. </dd>
  3804. <dt><samp class="option">max_extra_cb_iterations <var class="var">integer</var></samp></dt>
  3805. <dd><p>Max extra codebook recalculation passes, more is better and slower.
  3806. </p>
  3807. </dd>
  3808. <dt><samp class="option">skip_empty_cb <var class="var">boolean</var></samp></dt>
  3809. <dd><p>Avoid wasting bytes, ignore vintage MacOS decoder.
  3810. </p>
  3811. </dd>
  3812. <dt><samp class="option">max_strips <var class="var">integer</var></samp></dt>
  3813. <dt><samp class="option">min_strips <var class="var">integer</var></samp></dt>
  3814. <dd><p>The minimum and maximum number of strips to use.
  3815. Wider range sometimes improves quality.
  3816. More strips is generally better quality but costs more bits.
  3817. Fewer strips tend to yield more keyframes.
  3818. Vintage compatible is 1..3.
  3819. </p>
  3820. </dd>
  3821. <dt><samp class="option">strip_number_adaptivity <var class="var">integer</var></samp></dt>
  3822. <dd><p>How much number of strips is allowed to change between frames.
  3823. Higher is better but slower.
  3824. </p>
  3825. </dd>
  3826. </dl>
  3827. <a class="anchor" id="ffv1"></a><a name="ffv1-1"></a>
  3828. <h3 class="section">9.3 ffv1<span class="pull-right"><a class="anchor hidden-xs" href="#ffv1-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-ffv1-1" aria-hidden="true">TOC</a></span></h3>
  3829. <p>FFv1 Encoder
  3830. </p>
  3831. <a name="Options-25"></a>
  3832. <h4 class="subsection">9.3.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>
  3833. <p>The following options are supported by FFmpeg&rsquo;s FFv1 encoder.
  3834. </p>
  3835. <dl class="table">
  3836. <dt><samp class="option">context</samp></dt>
  3837. <dd><p>Sets the context size, 0 (default) is small, 1 is big.
  3838. </p>
  3839. </dd>
  3840. <dt><samp class="option">coder</samp></dt>
  3841. <dd><p>Set the coder,
  3842. </p><dl class="table">
  3843. <dt>&lsquo;<samp class="samp">rice</samp>&rsquo;</dt>
  3844. <dd><p>Golomb rice coder
  3845. </p></dd>
  3846. <dt>&lsquo;<samp class="samp">range_def</samp>&rsquo;</dt>
  3847. <dd><p>Range coder with default table
  3848. </p></dd>
  3849. <dt>&lsquo;<samp class="samp">range_tab</samp>&rsquo;</dt>
  3850. <dd><p>Range coder with custom table
  3851. </p></dd>
  3852. </dl>
  3853. </dd>
  3854. <dt><samp class="option">slicecrc</samp></dt>
  3855. <dd><p>-1 (default, automatic), 1 use crc with zero initial and final state, 2 use crc with non zero initial and final state
  3856. </p>
  3857. </dd>
  3858. <dt><samp class="option">qtable</samp></dt>
  3859. <dd><dl class="table">
  3860. <dt>&lsquo;<samp class="samp">default</samp>&rsquo;</dt>
  3861. <dd><p>default, automatic
  3862. </p></dd>
  3863. <dt>&lsquo;<samp class="samp">8bit</samp>&rsquo;</dt>
  3864. <dd><p>use 8bit default
  3865. </p></dd>
  3866. <dt>&lsquo;<samp class="samp">greater8bit</samp>&rsquo;</dt>
  3867. <dd><p>use &gt;8bit default
  3868. </p></dd>
  3869. </dl>
  3870. </dd>
  3871. <dt><samp class="option">remap_optimizer</samp></dt>
  3872. <dd><p>0 - 5, default 3, how much effort the encoder puts into optimizing the remap table.
  3873. </p>
  3874. </dd>
  3875. </dl>
  3876. <a name="GIF"></a>
  3877. <h3 class="section">9.4 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>
  3878. <p>GIF image/animation encoder.
  3879. </p>
  3880. <a name="Options-26"></a>
  3881. <h4 class="subsection">9.4.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>
  3882. <dl class="table">
  3883. <dt><samp class="option">gifflags <var class="var">integer</var></samp></dt>
  3884. <dd><p>Sets the flags used for GIF encoding.
  3885. </p>
  3886. <dl class="table">
  3887. <dt><samp class="option">offsetting</samp></dt>
  3888. <dd><p>Enables picture offsetting.
  3889. </p>
  3890. <p>Default is enabled.
  3891. </p>
  3892. </dd>
  3893. <dt><samp class="option">transdiff</samp></dt>
  3894. <dd><p>Enables transparency detection between frames.
  3895. </p>
  3896. <p>Default is enabled.
  3897. </p>
  3898. </dd>
  3899. </dl>
  3900. </dd>
  3901. <dt><samp class="option">gifimage <var class="var">integer</var></samp></dt>
  3902. <dd><p>Enables encoding one full GIF image per frame, rather than an animated GIF.
  3903. </p>
  3904. <p>Default value is <samp class="option">0</samp>.
  3905. </p>
  3906. </dd>
  3907. <dt><samp class="option">global_palette <var class="var">integer</var></samp></dt>
  3908. <dd><p>Writes a palette to the global GIF header where feasible.
  3909. </p>
  3910. <p>If disabled, every frame will always have a palette written, even if there
  3911. is a global palette supplied.
  3912. </p>
  3913. <p>Default value is <samp class="option">1</samp>.
  3914. </p>
  3915. </dd>
  3916. </dl>
  3917. <a name="Hap"></a>
  3918. <h3 class="section">9.5 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>
  3919. <p>Vidvox Hap video encoder.
  3920. </p>
  3921. <a name="Options-27"></a>
  3922. <h4 class="subsection">9.5.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>
  3923. <dl class="table">
  3924. <dt><samp class="option">format <var class="var">integer</var></samp></dt>
  3925. <dd><p>Specifies the Hap format to encode.
  3926. </p>
  3927. <dl class="table">
  3928. <dt><samp class="option">hap</samp></dt>
  3929. <dt><samp class="option">hap_alpha</samp></dt>
  3930. <dt><samp class="option">hap_q</samp></dt>
  3931. </dl>
  3932. <p>Default value is <samp class="option">hap</samp>.
  3933. </p>
  3934. </dd>
  3935. <dt><samp class="option">chunks <var class="var">integer</var></samp></dt>
  3936. <dd><p>Specifies the number of chunks to split frames into, between 1 and 64. This
  3937. permits multithreaded decoding of large frames, potentially at the cost of
  3938. data-rate. The encoder may modify this value to divide frames evenly.
  3939. </p>
  3940. <p>Default value is <var class="var">1</var>.
  3941. </p>
  3942. </dd>
  3943. <dt><samp class="option">compressor <var class="var">integer</var></samp></dt>
  3944. <dd><p>Specifies the second-stage compressor to use. If set to <samp class="option">none</samp>,
  3945. <samp class="option">chunks</samp> will be limited to 1, as chunked uncompressed frames offer no
  3946. benefit.
  3947. </p>
  3948. <dl class="table">
  3949. <dt><samp class="option">none</samp></dt>
  3950. <dt><samp class="option">snappy</samp></dt>
  3951. </dl>
  3952. <p>Default value is <samp class="option">snappy</samp>.
  3953. </p>
  3954. </dd>
  3955. </dl>
  3956. <a name="jpeg2000"></a>
  3957. <h3 class="section">9.6 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>
  3958. <p>The native jpeg 2000 encoder is lossy by default, the <code class="code">-q:v</code>
  3959. option can be used to set the encoding quality. Lossless encoding
  3960. can be selected with <code class="code">-pred 1</code>.
  3961. </p>
  3962. <a name="Options-28"></a>
  3963. <h4 class="subsection">9.6.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>
  3964. <dl class="table">
  3965. <dt><samp class="option">format <var class="var">integer</var></samp></dt>
  3966. <dd><p>Can be set to either <code class="code">j2k</code> or <code class="code">jp2</code> (the default) that
  3967. makes it possible to store non-rgb pix_fmts.
  3968. </p>
  3969. </dd>
  3970. <dt><samp class="option">tile_width <var class="var">integer</var></samp></dt>
  3971. <dd><p>Sets tile width. Range is 1 to 1073741824. Default is 256.
  3972. </p>
  3973. </dd>
  3974. <dt><samp class="option">tile_height <var class="var">integer</var></samp></dt>
  3975. <dd><p>Sets tile height. Range is 1 to 1073741824. Default is 256.
  3976. </p>
  3977. </dd>
  3978. <dt><samp class="option">pred <var class="var">integer</var></samp></dt>
  3979. <dd><p>Allows setting the discrete wavelet transform (DWT) type
  3980. </p><dl class="table">
  3981. <dt><samp class="option">dwt97int (Lossy)</samp></dt>
  3982. <dt><samp class="option">dwt53 (Lossless)</samp></dt>
  3983. </dl>
  3984. <p>Default is <code class="code">dwt97int</code>
  3985. </p>
  3986. </dd>
  3987. <dt><samp class="option">sop <var class="var">boolean</var></samp></dt>
  3988. <dd><p>Enable this to add SOP marker at the start of each packet. Disabled by default.
  3989. </p>
  3990. </dd>
  3991. <dt><samp class="option">eph <var class="var">boolean</var></samp></dt>
  3992. <dd><p>Enable this to add EPH marker at the end of each packet header. Disabled by default.
  3993. </p>
  3994. </dd>
  3995. <dt><samp class="option">prog <var class="var">integer</var></samp></dt>
  3996. <dd><p>Sets the progression order to be used by the encoder.
  3997. Possible values are:
  3998. </p><dl class="table">
  3999. <dt><samp class="option">lrcp</samp></dt>
  4000. <dt><samp class="option">rlcp</samp></dt>
  4001. <dt><samp class="option">rpcl</samp></dt>
  4002. <dt><samp class="option">pcrl</samp></dt>
  4003. <dt><samp class="option">cprl</samp></dt>
  4004. </dl>
  4005. <p>Set to <code class="code">lrcp</code> by default.
  4006. </p>
  4007. </dd>
  4008. <dt><samp class="option">layer_rates <var class="var">string</var></samp></dt>
  4009. <dd><p>By default, when this option is not used, compression is done using the quality metric.
  4010. This option allows for compression using compression ratio. The compression ratio for each
  4011. level could be specified. The compression ratio of a layer <code class="code">l</code> species the what ratio of
  4012. total file size is contained in the first <code class="code">l</code> layers.
  4013. </p>
  4014. <p>Example usage:
  4015. </p>
  4016. <div class="example">
  4017. <pre class="example-preformatted">ffmpeg -i input.bmp -c:v jpeg2000 -layer_rates &quot;100,10,1&quot; output.j2k
  4018. </pre></div>
  4019. <p>This would compress the image to contain 3 layers, where the data contained in the
  4020. first layer would be compressed by 1000 times, compressed by 100 in the first two layers,
  4021. and shall contain all data while using all 3 layers.
  4022. </p>
  4023. </dd>
  4024. </dl>
  4025. <a name="librav1e"></a>
  4026. <h3 class="section">9.7 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>
  4027. <p>rav1e AV1 encoder wrapper.
  4028. </p>
  4029. <p>Requires the presence of the rav1e headers and library during configuration.
  4030. You need to explicitly configure the build with <code class="code">--enable-librav1e</code>.
  4031. </p>
  4032. <a name="Options-29"></a>
  4033. <h4 class="subsection">9.7.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>
  4034. <dl class="table">
  4035. <dt><samp class="option">qmax</samp></dt>
  4036. <dd><p>Sets the maximum quantizer to use when using bitrate mode.
  4037. </p>
  4038. </dd>
  4039. <dt><samp class="option">qmin</samp></dt>
  4040. <dd><p>Sets the minimum quantizer to use when using bitrate mode.
  4041. </p>
  4042. </dd>
  4043. <dt><samp class="option">qp</samp></dt>
  4044. <dd><p>Uses quantizer mode to encode at the given quantizer (0-255).
  4045. </p>
  4046. </dd>
  4047. <dt><samp class="option">speed</samp></dt>
  4048. <dd><p>Selects the speed preset (0-10) to encode with.
  4049. </p>
  4050. </dd>
  4051. <dt><samp class="option">tiles</samp></dt>
  4052. <dd><p>Selects how many tiles to encode with.
  4053. </p>
  4054. </dd>
  4055. <dt><samp class="option">tile-rows</samp></dt>
  4056. <dd><p>Selects how many rows of tiles to encode with.
  4057. </p>
  4058. </dd>
  4059. <dt><samp class="option">tile-columns</samp></dt>
  4060. <dd><p>Selects how many columns of tiles to encode with.
  4061. </p>
  4062. </dd>
  4063. <dt><samp class="option">rav1e-params</samp></dt>
  4064. <dd><p>Set rav1e options using a list of <var class="var">key</var>=<var class="var">value</var> pairs separated
  4065. by &quot;:&quot;. See <code class="command">rav1e --help</code> for a list of options.
  4066. </p>
  4067. <p>For example to specify librav1e encoding options with <samp class="option">-rav1e-params</samp>:
  4068. </p>
  4069. <div class="example">
  4070. <pre class="example-preformatted">ffmpeg -i input -c:v librav1e -b:v 500K -rav1e-params speed=5:low_latency=true output.mp4
  4071. </pre></div>
  4072. </dd>
  4073. </dl>
  4074. <a name="libaom_002dav1"></a>
  4075. <h3 class="section">9.8 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>
  4076. <p>libaom AV1 encoder wrapper.
  4077. </p>
  4078. <p>Requires the presence of the libaom headers and library during
  4079. configuration. You need to explicitly configure the build with
  4080. <code class="code">--enable-libaom</code>.
  4081. </p>
  4082. <a name="Options-30"></a>
  4083. <h4 class="subsection">9.8.1 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>
  4084. <p>The wrapper supports the following standard libavcodec options:
  4085. </p>
  4086. <dl class="table">
  4087. <dt><samp class="option">b</samp></dt>
  4088. <dd><p>Set bitrate target in bits/second. By default this will use
  4089. variable-bitrate mode. If <samp class="option">maxrate</samp> and <samp class="option">minrate</samp> are
  4090. also set to the same value then it will use constant-bitrate mode,
  4091. otherwise if <samp class="option">crf</samp> is set as well then it will use
  4092. constrained-quality mode.
  4093. </p>
  4094. </dd>
  4095. <dt><samp class="option">g keyint_min</samp></dt>
  4096. <dd><p>Set key frame placement. The GOP size sets the maximum distance between
  4097. key frames; if zero the output stream will be intra-only. The minimum
  4098. distance is ignored unless it is the same as the GOP size, in which case
  4099. key frames will always appear at a fixed interval. Not set by default,
  4100. so without this option the library has completely free choice about
  4101. where to place key frames.
  4102. </p>
  4103. </dd>
  4104. <dt><samp class="option">qmin qmax</samp></dt>
  4105. <dd><p>Set minimum/maximum quantisation values. Valid range is from 0 to 63
  4106. (warning: this does not match the quantiser values actually used by AV1
  4107. - divide by four to map real quantiser values to this range). Defaults
  4108. to min/max (no constraint).
  4109. </p>
  4110. </dd>
  4111. <dt><samp class="option">minrate maxrate bufsize rc_init_occupancy</samp></dt>
  4112. <dd><p>Set rate control buffering parameters. Not used if not set - defaults
  4113. to unconstrained variable bitrate.
  4114. </p>
  4115. </dd>
  4116. <dt><samp class="option">threads</samp></dt>
  4117. <dd><p>Set the number of threads to use while encoding. This may require the
  4118. <samp class="option">tiles</samp> or <samp class="option">row-mt</samp> options to also be set to actually
  4119. use the specified number of threads fully. Defaults to the number of
  4120. hardware threads supported by the host machine.
  4121. </p>
  4122. </dd>
  4123. <dt><samp class="option">profile</samp></dt>
  4124. <dd><p>Set the encoding profile. Defaults to using the profile which matches
  4125. the bit depth and chroma subsampling of the input.
  4126. </p>
  4127. </dd>
  4128. </dl>
  4129. <p>The wrapper also has some specific options:
  4130. </p>
  4131. <dl class="table">
  4132. <dt><samp class="option">cpu-used</samp></dt>
  4133. <dd><p>Set the quality/encoding speed tradeoff. Valid range is from 0 to 8,
  4134. higher numbers indicating greater speed and lower quality. The default
  4135. value is 1, which will be slow and high quality.
  4136. </p>
  4137. </dd>
  4138. <dt><samp class="option">auto-alt-ref</samp></dt>
  4139. <dd><p>Enable use of alternate reference frames. Defaults to the internal
  4140. default of the library.
  4141. </p>
  4142. </dd>
  4143. <dt><samp class="option">arnr-max-frames (<em class="emph">frames</em>)</samp></dt>
  4144. <dd><p>Set altref noise reduction max frame count. Default is -1.
  4145. </p>
  4146. </dd>
  4147. <dt><samp class="option">arnr-strength (<em class="emph">strength</em>)</samp></dt>
  4148. <dd><p>Set altref noise reduction filter strength. Range is -1 to 6. Default is -1.
  4149. </p>
  4150. </dd>
  4151. <dt><samp class="option">aq-mode (<em class="emph">aq-mode</em>)</samp></dt>
  4152. <dd><p>Set adaptive quantization mode. Possible values:
  4153. </p>
  4154. <dl class="table">
  4155. <dt>&lsquo;<samp class="samp">none (<em class="emph">0</em>)</samp>&rsquo;</dt>
  4156. <dd><p>Disabled.
  4157. </p>
  4158. </dd>
  4159. <dt>&lsquo;<samp class="samp">variance (<em class="emph">1</em>)</samp>&rsquo;</dt>
  4160. <dd><p>Variance-based.
  4161. </p>
  4162. </dd>
  4163. <dt>&lsquo;<samp class="samp">complexity (<em class="emph">2</em>)</samp>&rsquo;</dt>
  4164. <dd><p>Complexity-based.
  4165. </p>
  4166. </dd>
  4167. <dt>&lsquo;<samp class="samp">cyclic (<em class="emph">3</em>)</samp>&rsquo;</dt>
  4168. <dd><p>Cyclic refresh.
  4169. </p></dd>
  4170. </dl>
  4171. </dd>
  4172. <dt><samp class="option">tune (<em class="emph">tune</em>)</samp></dt>
  4173. <dd><p>Set the distortion metric the encoder is tuned with. Default is <code class="code">psnr</code>.
  4174. </p>
  4175. <dl class="table">
  4176. <dt>&lsquo;<samp class="samp">psnr (<em class="emph">0</em>)</samp>&rsquo;</dt>
  4177. <dt>&lsquo;<samp class="samp">ssim (<em class="emph">1</em>)</samp>&rsquo;</dt>
  4178. </dl>
  4179. </dd>
  4180. <dt><samp class="option">lag-in-frames</samp></dt>
  4181. <dd><p>Set the maximum number of frames which the encoder may keep in flight
  4182. at any one time for lookahead purposes. Defaults to the internal
  4183. default of the library.
  4184. </p>
  4185. </dd>
  4186. <dt><samp class="option">error-resilience</samp></dt>
  4187. <dd><p>Enable error resilience features:
  4188. </p><dl class="table">
  4189. <dt><samp class="option">default</samp></dt>
  4190. <dd><p>Improve resilience against losses of whole frames.
  4191. </p></dd>
  4192. </dl>
  4193. <p>Not enabled by default.
  4194. </p>
  4195. </dd>
  4196. <dt><samp class="option">crf</samp></dt>
  4197. <dd><p>Set the quality/size tradeoff for constant-quality (no bitrate target)
  4198. and constrained-quality (with maximum bitrate target) modes. Valid
  4199. range is 0 to 63, higher numbers indicating lower quality and smaller
  4200. output size. Only used if set; by default only the bitrate target is
  4201. used.
  4202. </p>
  4203. </dd>
  4204. <dt><samp class="option">static-thresh</samp></dt>
  4205. <dd><p>Set a change threshold on blocks below which they will be skipped by
  4206. the encoder. Defined in arbitrary units as a nonnegative integer,
  4207. defaulting to zero (no blocks are skipped).
  4208. </p>
  4209. </dd>
  4210. <dt><samp class="option">drop-threshold</samp></dt>
  4211. <dd><p>Set a threshold for dropping frames when close to rate control bounds.
  4212. Defined as a percentage of the target buffer - when the rate control
  4213. buffer falls below this percentage, frames will be dropped until it
  4214. has refilled above the threshold. Defaults to zero (no frames are
  4215. dropped).
  4216. </p>
  4217. </dd>
  4218. <dt><samp class="option">denoise-noise-level (<em class="emph">level</em>)</samp></dt>
  4219. <dd><p>Amount of noise to be removed for grain synthesis. Grain synthesis is disabled if
  4220. this option is not set or set to 0.
  4221. </p>
  4222. </dd>
  4223. <dt><samp class="option">denoise-block-size (<em class="emph">pixels</em>)</samp></dt>
  4224. <dd><p>Block size used for denoising for grain synthesis. If not set, AV1 codec
  4225. uses the default value of 32.
  4226. </p>
  4227. </dd>
  4228. <dt><samp class="option">undershoot-pct (<em class="emph">pct</em>)</samp></dt>
  4229. <dd><p>Set datarate undershoot (min) percentage of the target bitrate. Range is -1 to 100.
  4230. Default is -1.
  4231. </p>
  4232. </dd>
  4233. <dt><samp class="option">overshoot-pct (<em class="emph">pct</em>)</samp></dt>
  4234. <dd><p>Set datarate overshoot (max) percentage of the target bitrate. Range is -1 to 1000.
  4235. Default is -1.
  4236. </p>
  4237. </dd>
  4238. <dt><samp class="option">minsection-pct (<em class="emph">pct</em>)</samp></dt>
  4239. <dd><p>Minimum percentage variation of the GOP bitrate from the target bitrate. If minsection-pct
  4240. is not set, the libaomenc wrapper computes it as follows: <code class="code">(minrate * 100 / bitrate)</code>.
  4241. Range is -1 to 100. Default is -1 (unset).
  4242. </p>
  4243. </dd>
  4244. <dt><samp class="option">maxsection-pct (<em class="emph">pct</em>)</samp></dt>
  4245. <dd><p>Maximum percentage variation of the GOP bitrate from the target bitrate. If maxsection-pct
  4246. is not set, the libaomenc wrapper computes it as follows: <code class="code">(maxrate * 100 / bitrate)</code>.
  4247. Range is -1 to 5000. Default is -1 (unset).
  4248. </p>
  4249. </dd>
  4250. <dt><samp class="option">frame-parallel (<em class="emph">boolean</em>)</samp></dt>
  4251. <dd><p>Enable frame parallel decodability features. Default is true.
  4252. </p>
  4253. </dd>
  4254. <dt><samp class="option">tiles</samp></dt>
  4255. <dd><p>Set the number of tiles to encode the input video with, as columns x
  4256. rows. Larger numbers allow greater parallelism in both encoding and
  4257. decoding, but may decrease coding efficiency. Defaults to the minimum
  4258. number of tiles required by the size of the input video (this is 1x1
  4259. (that is, a single tile) for sizes up to and including 4K).
  4260. </p>
  4261. </dd>
  4262. <dt><samp class="option">tile-columns tile-rows</samp></dt>
  4263. <dd><p>Set the number of tiles as log2 of the number of tile rows and columns.
  4264. Provided for compatibility with libvpx/VP9.
  4265. </p>
  4266. </dd>
  4267. <dt><samp class="option">row-mt (Requires libaom &gt;= 1.0.0-759-g90a15f4f2)</samp></dt>
  4268. <dd><p>Enable row based multi-threading. Disabled by default.
  4269. </p>
  4270. </dd>
  4271. <dt><samp class="option">enable-cdef (<em class="emph">boolean</em>)</samp></dt>
  4272. <dd><p>Enable Constrained Directional Enhancement Filter. The libaom-av1
  4273. encoder enables CDEF by default.
  4274. </p>
  4275. </dd>
  4276. <dt><samp class="option">enable-restoration (<em class="emph">boolean</em>)</samp></dt>
  4277. <dd><p>Enable Loop Restoration Filter. Default is true for libaom-av1.
  4278. </p>
  4279. </dd>
  4280. <dt><samp class="option">enable-global-motion (<em class="emph">boolean</em>)</samp></dt>
  4281. <dd><p>Enable the use of global motion for block prediction. Default is true.
  4282. </p>
  4283. </dd>
  4284. <dt><samp class="option">enable-intrabc (<em class="emph">boolean</em>)</samp></dt>
  4285. <dd><p>Enable block copy mode for intra block prediction. This mode is
  4286. useful for screen content. Default is true.
  4287. </p>
  4288. </dd>
  4289. <dt><samp class="option">enable-rect-partitions (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4290. <dd><p>Enable rectangular partitions. Default is true.
  4291. </p>
  4292. </dd>
  4293. <dt><samp class="option">enable-1to4-partitions (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4294. <dd><p>Enable 1:4/4:1 partitions. Default is true.
  4295. </p>
  4296. </dd>
  4297. <dt><samp class="option">enable-ab-partitions (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4298. <dd><p>Enable AB shape partitions. Default is true.
  4299. </p>
  4300. </dd>
  4301. <dt><samp class="option">enable-angle-delta (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4302. <dd><p>Enable angle delta intra prediction. Default is true.
  4303. </p>
  4304. </dd>
  4305. <dt><samp class="option">enable-cfl-intra (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4306. <dd><p>Enable chroma predicted from luma intra prediction. Default is true.
  4307. </p>
  4308. </dd>
  4309. <dt><samp class="option">enable-filter-intra (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4310. <dd><p>Enable filter intra predictor. Default is true.
  4311. </p>
  4312. </dd>
  4313. <dt><samp class="option">enable-intra-edge-filter (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4314. <dd><p>Enable intra edge filter. Default is true.
  4315. </p>
  4316. </dd>
  4317. <dt><samp class="option">enable-smooth-intra (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4318. <dd><p>Enable smooth intra prediction mode. Default is true.
  4319. </p>
  4320. </dd>
  4321. <dt><samp class="option">enable-paeth-intra (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4322. <dd><p>Enable paeth predictor in intra prediction. Default is true.
  4323. </p>
  4324. </dd>
  4325. <dt><samp class="option">enable-palette (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4326. <dd><p>Enable palette prediction mode. Default is true.
  4327. </p>
  4328. </dd>
  4329. <dt><samp class="option">enable-flip-idtx (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4330. <dd><p>Enable extended transform type, including FLIPADST_DCT, DCT_FLIPADST,
  4331. FLIPADST_FLIPADST, ADST_FLIPADST, FLIPADST_ADST, IDTX, V_DCT, H_DCT,
  4332. V_ADST, H_ADST, V_FLIPADST, H_FLIPADST. Default is true.
  4333. </p>
  4334. </dd>
  4335. <dt><samp class="option">enable-tx64 (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4336. <dd><p>Enable 64-pt transform. Default is true.
  4337. </p>
  4338. </dd>
  4339. <dt><samp class="option">reduced-tx-type-set (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4340. <dd><p>Use reduced set of transform types. Default is false.
  4341. </p>
  4342. </dd>
  4343. <dt><samp class="option">use-intra-dct-only (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4344. <dd><p>Use DCT only for INTRA modes. Default is false.
  4345. </p>
  4346. </dd>
  4347. <dt><samp class="option">use-inter-dct-only (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4348. <dd><p>Use DCT only for INTER modes. Default is false.
  4349. </p>
  4350. </dd>
  4351. <dt><samp class="option">use-intra-default-tx-only (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4352. <dd><p>Use Default-transform only for INTRA modes. Default is false.
  4353. </p>
  4354. </dd>
  4355. <dt><samp class="option">enable-ref-frame-mvs (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4356. <dd><p>Enable temporal mv prediction. Default is true.
  4357. </p>
  4358. </dd>
  4359. <dt><samp class="option">enable-reduced-reference-set (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4360. <dd><p>Use reduced set of single and compound references. Default is false.
  4361. </p>
  4362. </dd>
  4363. <dt><samp class="option">enable-obmc (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4364. <dd><p>Enable obmc. Default is true.
  4365. </p>
  4366. </dd>
  4367. <dt><samp class="option">enable-dual-filter (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4368. <dd><p>Enable dual filter. Default is true.
  4369. </p>
  4370. </dd>
  4371. <dt><samp class="option">enable-diff-wtd-comp (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4372. <dd><p>Enable difference-weighted compound. Default is true.
  4373. </p>
  4374. </dd>
  4375. <dt><samp class="option">enable-dist-wtd-comp (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4376. <dd><p>Enable distance-weighted compound. Default is true.
  4377. </p>
  4378. </dd>
  4379. <dt><samp class="option">enable-onesided-comp (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4380. <dd><p>Enable one sided compound. Default is true.
  4381. </p>
  4382. </dd>
  4383. <dt><samp class="option">enable-interinter-wedge (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4384. <dd><p>Enable interinter wedge compound. Default is true.
  4385. </p>
  4386. </dd>
  4387. <dt><samp class="option">enable-interintra-wedge (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4388. <dd><p>Enable interintra wedge compound. Default is true.
  4389. </p>
  4390. </dd>
  4391. <dt><samp class="option">enable-masked-comp (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4392. <dd><p>Enable masked compound. Default is true.
  4393. </p>
  4394. </dd>
  4395. <dt><samp class="option">enable-interintra-comp (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4396. <dd><p>Enable interintra compound. Default is true.
  4397. </p>
  4398. </dd>
  4399. <dt><samp class="option">enable-smooth-interintra (<em class="emph">boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></dt>
  4400. <dd><p>Enable smooth interintra mode. Default is true.
  4401. </p>
  4402. </dd>
  4403. <dt><samp class="option">aom-params</samp></dt>
  4404. <dd><p>Set libaom options using a list of <var class="var">key</var>=<var class="var">value</var> pairs separated
  4405. by &quot;:&quot;. For a list of supported options, see <code class="command">aomenc --help</code> under the
  4406. section &quot;AV1 Specific Options&quot;.
  4407. </p>
  4408. <p>For example to specify libaom encoding options with <samp class="option">-aom-params</samp>:
  4409. </p>
  4410. <div class="example">
  4411. <pre class="example-preformatted">ffmpeg -i input -c:v libaom-av1 -b:v 500K -aom-params tune=psnr:enable-tpl-model=1 output.mp4
  4412. </pre></div>
  4413. </dd>
  4414. </dl>
  4415. <a name="liboapv"></a>
  4416. <h3 class="section">9.9 liboapv<span class="pull-right"><a class="anchor hidden-xs" href="#liboapv" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-liboapv" aria-hidden="true">TOC</a></span></h3>
  4417. <p>Advanced Professional Video codec encoder wrapper.
  4418. </p>
  4419. <p>This encoder requires the presence of the liboapv headers and library
  4420. during configuration. You need to explicitly configure the build with
  4421. <samp class="option">--enable-liboapv</samp>.
  4422. </p>
  4423. <div class="info">
  4424. <p>Many liboapv encoder options are mapped to FFmpeg global codec options,
  4425. while unique encoder options are provided through private options.
  4426. </p></div>
  4427. <p>The apv project website is at <a class="url" href="https://github.com/AcademySoftwareFoundation/openapv">https://github.com/AcademySoftwareFoundation/openapv</a>.
  4428. </p>
  4429. <a name="Options-31"></a>
  4430. <h4 class="subsection">9.9.1 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>
  4431. <p>The following options are supported by the liboapv wrapper.
  4432. </p>
  4433. <div class="info">
  4434. <p>To get a more extensive documentation of the liboapv options, consult the
  4435. liboapv documentation.
  4436. </p></div>
  4437. <dl class="table">
  4438. <dt><samp class="option">preset</samp></dt>
  4439. <dd><p>Set the quality-speed tradeoff [fastest, fast, medium, slow, placebo, default]
  4440. </p>
  4441. </dd>
  4442. <dt><samp class="option">qp</samp></dt>
  4443. <dd><p>Set the quantization parameter value for CQP rate control mode.
  4444. </p>
  4445. </dd>
  4446. <dt><samp class="option">oapv-params (<em class="emph">parse_apv_params</em>)</samp></dt>
  4447. <dd><p>Set liboapvenc options using a list of <var class="var">key</var>=<var class="var">value</var> pairs separated
  4448. by &quot;:&quot;. See the liboapv encoder user guide for a list of accepted parameters.
  4449. </p></dd>
  4450. </dl>
  4451. <a name="libsvtav1"></a>
  4452. <h3 class="section">9.10 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>
  4453. <p>SVT-AV1 encoder wrapper.
  4454. </p>
  4455. <p>Requires the presence of the SVT-AV1 headers and library during configuration.
  4456. You need to explicitly configure the build with <code class="code">--enable-libsvtav1</code>.
  4457. </p>
  4458. <a name="Options-32"></a>
  4459. <h4 class="subsection">9.10.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>
  4460. <dl class="table">
  4461. <dt><samp class="option">profile</samp></dt>
  4462. <dd><p>Set the encoding profile.
  4463. </p><dl class="table">
  4464. <dt>&lsquo;<samp class="samp">main</samp>&rsquo;</dt>
  4465. <dt>&lsquo;<samp class="samp">high</samp>&rsquo;</dt>
  4466. <dt>&lsquo;<samp class="samp">professional</samp>&rsquo;</dt>
  4467. </dl>
  4468. </dd>
  4469. <dt><samp class="option">level</samp></dt>
  4470. <dd><p>Set the operating point level. For example: &rsquo;4.0&rsquo;
  4471. </p>
  4472. </dd>
  4473. <dt><samp class="option">hielevel</samp></dt>
  4474. <dd><p>Set the Hierarchical prediction levels.
  4475. </p><dl class="table">
  4476. <dt>&lsquo;<samp class="samp">3level</samp>&rsquo;</dt>
  4477. <dt>&lsquo;<samp class="samp">4level</samp>&rsquo;</dt>
  4478. <dd><p>This is the default.
  4479. </p></dd>
  4480. </dl>
  4481. </dd>
  4482. <dt><samp class="option">tier</samp></dt>
  4483. <dd><p>Set the operating point tier.
  4484. </p><dl class="table">
  4485. <dt>&lsquo;<samp class="samp">main</samp>&rsquo;</dt>
  4486. <dd><p>This is the default.
  4487. </p></dd>
  4488. <dt>&lsquo;<samp class="samp">high</samp>&rsquo;</dt>
  4489. </dl>
  4490. </dd>
  4491. <dt><samp class="option">qmax</samp></dt>
  4492. <dd><p>Set the maximum quantizer to use when using a bitrate mode.
  4493. </p>
  4494. </dd>
  4495. <dt><samp class="option">qmin</samp></dt>
  4496. <dd><p>Set the minimum quantizer to use when using a bitrate mode.
  4497. </p>
  4498. </dd>
  4499. <dt><samp class="option">crf</samp></dt>
  4500. <dd><p>Constant rate factor value used in crf rate control mode (0-63).
  4501. </p>
  4502. </dd>
  4503. <dt><samp class="option">qp</samp></dt>
  4504. <dd><p>Set the quantizer used in cqp rate control mode (0-63).
  4505. </p>
  4506. </dd>
  4507. <dt><samp class="option">sc_detection</samp></dt>
  4508. <dd><p>Enable scene change detection.
  4509. </p>
  4510. </dd>
  4511. <dt><samp class="option">la_depth</samp></dt>
  4512. <dd><p>Set number of frames to look ahead (0-120).
  4513. </p>
  4514. </dd>
  4515. <dt><samp class="option">preset</samp></dt>
  4516. <dd><p>Set the quality-speed tradeoff, in the range 0 to 13. Higher values are
  4517. faster but lower quality.
  4518. </p>
  4519. </dd>
  4520. <dt><samp class="option">tile_rows</samp></dt>
  4521. <dd><p>Set log2 of the number of rows of tiles to use (0-6).
  4522. </p>
  4523. </dd>
  4524. <dt><samp class="option">tile_columns</samp></dt>
  4525. <dd><p>Set log2 of the number of columns of tiles to use (0-4).
  4526. </p>
  4527. </dd>
  4528. <dt><samp class="option">svtav1-params</samp></dt>
  4529. <dd><p>Set SVT-AV1 options using a list of <var class="var">key</var>=<var class="var">value</var> pairs separated
  4530. by &quot;:&quot;. See the SVT-AV1 encoder user guide for a list of accepted parameters.
  4531. </p>
  4532. </dd>
  4533. </dl>
  4534. <a name="libsvtjpegxs"></a>
  4535. <h3 class="section">9.11 libsvtjpegxs<span class="pull-right"><a class="anchor hidden-xs" href="#libsvtjpegxs" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libsvtjpegxs" aria-hidden="true">TOC</a></span></h3>
  4536. <p>SVT-JPEG-XS encoder wrapper.
  4537. </p>
  4538. <p>Requires the presence of the SVT-JPEG-XS headers and library during configuration.
  4539. You need to explicitly configure the build with <code class="code">--enable-libsvtjpegxs</code>.
  4540. </p>
  4541. <a name="Options-33"></a>
  4542. <h4 class="subsection">9.11.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>
  4543. <dl class="table">
  4544. <dt><samp class="option">decomp_v</samp></dt>
  4545. <dd><p>Set vertical decomposition level
  4546. </p></dd>
  4547. <dt><samp class="option">decomp_h</samp></dt>
  4548. <dd><p>Set horizontal decomposition level
  4549. </p>
  4550. </dd>
  4551. <dt><samp class="option">quantization</samp></dt>
  4552. <dd><p>Set the quantization algorithm.
  4553. </p><dl class="table">
  4554. <dt>&lsquo;<samp class="samp">deadzone</samp>&rsquo;</dt>
  4555. <dt>&lsquo;<samp class="samp">uniform</samp>&rsquo;</dt>
  4556. </dl>
  4557. </dd>
  4558. <dt><samp class="option">coding-signs</samp></dt>
  4559. <dd><p>Enable Signs handling strategy
  4560. </p><dl class="table">
  4561. <dt>&lsquo;<samp class="samp">disable</samp>&rsquo;</dt>
  4562. <dt>&lsquo;<samp class="samp">fast</samp>&rsquo;</dt>
  4563. <dt>&lsquo;<samp class="samp">full</samp>&rsquo;</dt>
  4564. </dl>
  4565. </dd>
  4566. <dt><samp class="option">coding-sigf</samp></dt>
  4567. <dd><p>Enable Significance coding
  4568. </p>
  4569. </dd>
  4570. <dt><samp class="option">coding-vpred</samp></dt>
  4571. <dd><p>Enable Vertical Prediction coding
  4572. </p><dl class="table">
  4573. <dt>&lsquo;<samp class="samp">disable</samp>&rsquo;</dt>
  4574. <dt>&lsquo;<samp class="samp">no_residuals</samp>&rsquo;</dt>
  4575. <dt>&lsquo;<samp class="samp">no_coeffs</samp>&rsquo;</dt>
  4576. </dl>
  4577. </dd>
  4578. </dl>
  4579. <a name="libjxl"></a>
  4580. <h3 class="section">9.12 libjxl<span class="pull-right"><a class="anchor hidden-xs" href="#libjxl" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libjxl" aria-hidden="true">TOC</a></span></h3>
  4581. <p>libjxl JPEG XL encoder wrapper.
  4582. </p>
  4583. <p>Requires the presence of the libjxl headers and library during
  4584. configuration. You need to explicitly configure the build with
  4585. <code class="code">--enable-libjxl</code>.
  4586. </p>
  4587. <a name="Options-34"></a>
  4588. <h4 class="subsection">9.12.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>
  4589. <p>The libjxl wrapper supports the following options:
  4590. </p>
  4591. <dl class="table">
  4592. <dt><samp class="option">distance</samp></dt>
  4593. <dd><p>Set the target Butteraugli distance. This is a quality setting: lower
  4594. distance yields higher quality, with distance=1.0 roughly comparable to
  4595. libjpeg Quality 90 for photographic content. Setting distance=0.0 yields
  4596. true lossless encoding. Valid values range between 0.0 and 15.0, and sane
  4597. values rarely exceed 5.0. Setting distance=0.1 usually attains
  4598. transparency for most input. The default is 1.0.
  4599. </p>
  4600. </dd>
  4601. <dt><samp class="option">effort</samp></dt>
  4602. <dd><p>Set the encoding effort used. Higher effort values produce more consistent
  4603. quality and usually produces a better quality/bpp curve, at the cost of
  4604. more CPU time required. Valid values range from 1 to 9, and the default is 7.
  4605. </p>
  4606. </dd>
  4607. <dt><samp class="option">modular</samp></dt>
  4608. <dd><p>Force the encoder to use Modular mode instead of choosing automatically. The
  4609. default is to use VarDCT for lossy encoding and Modular for lossless. VarDCT
  4610. is generally superior to Modular for lossy encoding but does not support
  4611. lossless encoding.
  4612. </p>
  4613. </dd>
  4614. </dl>
  4615. <a name="libkvazaar"></a>
  4616. <h3 class="section">9.13 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>
  4617. <p>Kvazaar H.265/HEVC encoder.
  4618. </p>
  4619. <p>Requires the presence of the libkvazaar headers and library during
  4620. configuration. You need to explicitly configure the build with
  4621. <samp class="option">--enable-libkvazaar</samp>.
  4622. </p>
  4623. <a name="Options-35"></a>
  4624. <h4 class="subsection">9.13.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>
  4625. <dl class="table">
  4626. <dt><samp class="option">b</samp></dt>
  4627. <dd><p>Set target video bitrate in bit/s and enable rate control.
  4628. </p>
  4629. </dd>
  4630. <dt><samp class="option">kvazaar-params</samp></dt>
  4631. <dd><p>Set kvazaar parameters as a list of <var class="var">name</var>=<var class="var">value</var> pairs separated
  4632. by commas (,). See kvazaar documentation for a list of options.
  4633. </p>
  4634. </dd>
  4635. </dl>
  4636. <a name="libopenh264"></a>
  4637. <h3 class="section">9.14 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>
  4638. <p>Cisco libopenh264 H.264/MPEG-4 AVC encoder wrapper.
  4639. </p>
  4640. <p>This encoder requires the presence of the libopenh264 headers and
  4641. library during configuration. You need to explicitly configure the
  4642. build with <code class="code">--enable-libopenh264</code>. The library is detected using
  4643. <code class="command">pkg-config</code>.
  4644. </p>
  4645. <p>For more information about the library see
  4646. <a class="url" href="http://www.openh264.org">http://www.openh264.org</a>.
  4647. </p>
  4648. <a name="Options-36"></a>
  4649. <h4 class="subsection">9.14.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>
  4650. <p>The following FFmpeg global options affect the configurations of the
  4651. libopenh264 encoder.
  4652. </p>
  4653. <dl class="table">
  4654. <dt><samp class="option">b</samp></dt>
  4655. <dd><p>Set the bitrate (as a number of bits per second).
  4656. </p>
  4657. </dd>
  4658. <dt><samp class="option">g</samp></dt>
  4659. <dd><p>Set the GOP size.
  4660. </p>
  4661. </dd>
  4662. <dt><samp class="option">maxrate</samp></dt>
  4663. <dd><p>Set the max bitrate (as a number of bits per second).
  4664. </p>
  4665. </dd>
  4666. <dt><samp class="option">flags +global_header</samp></dt>
  4667. <dd><p>Set global header in the bitstream.
  4668. </p>
  4669. </dd>
  4670. <dt><samp class="option">slices</samp></dt>
  4671. <dd><p>Set the number of slices, used in parallelized encoding. Default value
  4672. is 0. This is only used when <samp class="option">slice_mode</samp> is set to
  4673. &lsquo;<samp class="samp">fixed</samp>&rsquo;.
  4674. </p>
  4675. </dd>
  4676. <dt><samp class="option">loopfilter</samp></dt>
  4677. <dd><p>Enable loop filter, if set to 1 (automatically enabled). To disable
  4678. set a value of 0.
  4679. </p>
  4680. </dd>
  4681. <dt><samp class="option">profile</samp></dt>
  4682. <dd><p>Set profile restrictions. If set to the value of &lsquo;<samp class="samp">main</samp>&rsquo; enable
  4683. CABAC (set the <code class="code">SEncParamExt.iEntropyCodingModeFlag</code> flag to 1).
  4684. </p>
  4685. </dd>
  4686. <dt><samp class="option">max_nal_size</samp></dt>
  4687. <dd><p>Set maximum NAL size in bytes.
  4688. </p>
  4689. </dd>
  4690. <dt><samp class="option">allow_skip_frames</samp></dt>
  4691. <dd><p>Allow skipping frames to hit the target bitrate if set to 1.
  4692. </p></dd>
  4693. </dl>
  4694. <a name="libtheora"></a>
  4695. <h3 class="section">9.15 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>
  4696. <p>libtheora Theora encoder wrapper.
  4697. </p>
  4698. <p>Requires the presence of the libtheora headers and library during
  4699. configuration. You need to explicitly configure the build with
  4700. <code class="code">--enable-libtheora</code>.
  4701. </p>
  4702. <p>For more information about the libtheora project see
  4703. <a class="url" href="http://www.theora.org/">http://www.theora.org/</a>.
  4704. </p>
  4705. <a name="Options-37"></a>
  4706. <h4 class="subsection">9.15.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>
  4707. <p>The following global options are mapped to internal libtheora options
  4708. which affect the quality and the bitrate of the encoded stream.
  4709. </p>
  4710. <dl class="table">
  4711. <dt><samp class="option">b</samp></dt>
  4712. <dd><p>Set the video bitrate in bit/s for CBR (Constant Bit Rate) mode. In
  4713. case VBR (Variable Bit Rate) mode is enabled this option is ignored.
  4714. </p>
  4715. </dd>
  4716. <dt><samp class="option">flags</samp></dt>
  4717. <dd><p>Used to enable constant quality mode (VBR) encoding through the
  4718. <samp class="option">qscale</samp> flag, and to enable the <code class="code">pass1</code> and <code class="code">pass2</code>
  4719. modes.
  4720. </p>
  4721. </dd>
  4722. <dt><samp class="option">g</samp></dt>
  4723. <dd><p>Set the GOP size.
  4724. </p>
  4725. </dd>
  4726. <dt><samp class="option">global_quality</samp></dt>
  4727. <dd><p>Set the global quality as an integer in lambda units.
  4728. </p>
  4729. <p>Only relevant when VBR mode is enabled with <code class="code">flags +qscale</code>. The
  4730. value is converted to QP units by dividing it by <code class="code">FF_QP2LAMBDA</code>,
  4731. clipped in the [0 - 10] range, and then multiplied by 6.3 to get a
  4732. value in the native libtheora range [0-63]. A higher value corresponds
  4733. to a higher quality.
  4734. </p>
  4735. </dd>
  4736. <dt><samp class="option">q</samp></dt>
  4737. <dd><p>Enable VBR mode when set to a non-negative value, and set constant
  4738. quality value as a double floating point value in QP units.
  4739. </p>
  4740. <p>The value is clipped in the [0-10] range, and then multiplied by 6.3
  4741. to get a value in the native libtheora range [0-63].
  4742. </p>
  4743. <p>This option is valid only using the <code class="command">ffmpeg</code> command-line
  4744. tool. For library interface users, use <samp class="option">global_quality</samp>.
  4745. </p></dd>
  4746. </dl>
  4747. <a name="Examples-1"></a>
  4748. <h4 class="subsection">9.15.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>
  4749. <ul class="itemize mark-bullet">
  4750. <li>Set maximum constant quality (VBR) encoding with <code class="command">ffmpeg</code>:
  4751. <div class="example">
  4752. <pre class="example-preformatted">ffmpeg -i INPUT -codec:v libtheora -q:v 10 OUTPUT.ogg
  4753. </pre></div>
  4754. </li><li>Use <code class="command">ffmpeg</code> to convert a CBR 1000 kbps Theora video stream:
  4755. <div class="example">
  4756. <pre class="example-preformatted">ffmpeg -i INPUT -codec:v libtheora -b:v 1000k OUTPUT.ogg
  4757. </pre></div>
  4758. </li></ul>
  4759. <a name="libvpx"></a>
  4760. <h3 class="section">9.16 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>
  4761. <p>VP8/VP9 format supported through libvpx.
  4762. </p>
  4763. <p>Requires the presence of the libvpx headers and library during configuration.
  4764. You need to explicitly configure the build with <code class="code">--enable-libvpx</code>.
  4765. </p>
  4766. <a name="Options-38"></a>
  4767. <h4 class="subsection">9.16.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>
  4768. <p>The following options are supported by the libvpx wrapper. The
  4769. <code class="command">vpxenc</code>-equivalent options or values are listed in parentheses
  4770. for easy migration.
  4771. </p>
  4772. <p>To reduce the duplication of documentation, only the private options
  4773. and some others requiring special attention are documented here. For
  4774. the documentation of the undocumented generic options, see
  4775. <a class="ref" href="#codec_002doptions">the Codec Options chapter</a>.
  4776. </p>
  4777. <p>To get more documentation of the libvpx options, invoke the command
  4778. <code class="command">ffmpeg -h encoder=libvpx</code>, <code class="command">ffmpeg -h encoder=libvpx-vp9</code> or
  4779. <code class="command">vpxenc --help</code>. Further information is available in the libvpx API
  4780. documentation.
  4781. </p>
  4782. <dl class="table">
  4783. <dt><samp class="option">b (<em class="emph">target-bitrate</em>)</samp></dt>
  4784. <dd><p>Set bitrate in bits/s. Note that FFmpeg&rsquo;s <samp class="option">b</samp> option is
  4785. expressed in bits/s, while <code class="command">vpxenc</code>&rsquo;s <samp class="option">target-bitrate</samp> is in
  4786. kilobits/s.
  4787. </p>
  4788. </dd>
  4789. <dt><samp class="option">g (<em class="emph">kf-max-dist</em>)</samp></dt>
  4790. <dt><samp class="option">keyint_min (<em class="emph">kf-min-dist</em>)</samp></dt>
  4791. <dt><samp class="option">qmin (<em class="emph">min-q</em>)</samp></dt>
  4792. <dd><p>Minimum (Best Quality) Quantizer.
  4793. </p>
  4794. </dd>
  4795. <dt><samp class="option">qmax (<em class="emph">max-q</em>)</samp></dt>
  4796. <dd><p>Maximum (Worst Quality) Quantizer.
  4797. Can be changed per-frame.
  4798. </p>
  4799. </dd>
  4800. <dt><samp class="option">bufsize (<em class="emph">buf-sz</em>, <em class="emph">buf-optimal-sz</em>)</samp></dt>
  4801. <dd><p>Set ratecontrol buffer size (in bits). Note <code class="command">vpxenc</code>&rsquo;s options are
  4802. specified in milliseconds, the libvpx wrapper converts this value as follows:
  4803. <code class="code">buf-sz = bufsize * 1000 / bitrate</code>,
  4804. <code class="code">buf-optimal-sz = bufsize * 1000 / bitrate * 5 / 6</code>.
  4805. </p>
  4806. </dd>
  4807. <dt><samp class="option">rc_init_occupancy (<em class="emph">buf-initial-sz</em>)</samp></dt>
  4808. <dd><p>Set number of bits which should be loaded into the rc buffer before decoding
  4809. starts. Note <code class="command">vpxenc</code>&rsquo;s option is specified in milliseconds, the libvpx
  4810. wrapper converts this value as follows:
  4811. <code class="code">rc_init_occupancy * 1000 / bitrate</code>.
  4812. </p>
  4813. </dd>
  4814. <dt><samp class="option">undershoot-pct</samp></dt>
  4815. <dd><p>Set datarate undershoot (min) percentage of the target bitrate.
  4816. </p>
  4817. </dd>
  4818. <dt><samp class="option">overshoot-pct</samp></dt>
  4819. <dd><p>Set datarate overshoot (max) percentage of the target bitrate.
  4820. </p>
  4821. </dd>
  4822. <dt><samp class="option">skip_threshold (<em class="emph">drop-frame</em>)</samp></dt>
  4823. <dt><samp class="option">qcomp (<em class="emph">bias-pct</em>)</samp></dt>
  4824. <dt><samp class="option">maxrate (<em class="emph">maxsection-pct</em>)</samp></dt>
  4825. <dd><p>Set GOP max bitrate in bits/s. Note <code class="command">vpxenc</code>&rsquo;s option is specified as a
  4826. percentage of the target bitrate, the libvpx wrapper converts this value as
  4827. follows: <code class="code">(maxrate * 100 / bitrate)</code>.
  4828. </p>
  4829. </dd>
  4830. <dt><samp class="option">minrate (<em class="emph">minsection-pct</em>)</samp></dt>
  4831. <dd><p>Set GOP min bitrate in bits/s. Note <code class="command">vpxenc</code>&rsquo;s option is specified as a
  4832. percentage of the target bitrate, the libvpx wrapper converts this value as
  4833. follows: <code class="code">(minrate * 100 / bitrate)</code>.
  4834. </p>
  4835. </dd>
  4836. <dt><samp class="option">minrate, maxrate, b <em class="emph">end-usage=cbr</em></samp></dt>
  4837. <dd><p><code class="code">(minrate == maxrate == bitrate)</code>.
  4838. </p>
  4839. </dd>
  4840. <dt><samp class="option">crf (<em class="emph">end-usage=cq</em>, <em class="emph">cq-level</em>)</samp></dt>
  4841. <dt><samp class="option">tune (<em class="emph">tune</em>)</samp></dt>
  4842. <dd><dl class="table">
  4843. <dt>&lsquo;<samp class="samp">psnr (<em class="emph">psnr</em>)</samp>&rsquo;</dt>
  4844. <dt>&lsquo;<samp class="samp">ssim (<em class="emph">ssim</em>)</samp>&rsquo;</dt>
  4845. </dl>
  4846. </dd>
  4847. <dt><samp class="option">quality, deadline (<em class="emph">deadline</em>)</samp></dt>
  4848. <dd><dl class="table">
  4849. <dt>&lsquo;<samp class="samp">best</samp>&rsquo;</dt>
  4850. <dd><p>Use best quality deadline. Poorly named and quite slow, this option should be
  4851. avoided as it may give worse quality output than good.
  4852. </p></dd>
  4853. <dt>&lsquo;<samp class="samp">good</samp>&rsquo;</dt>
  4854. <dd><p>Use good quality deadline. This is a good trade-off between speed and quality
  4855. when used with the <samp class="option">cpu-used</samp> option.
  4856. </p></dd>
  4857. <dt>&lsquo;<samp class="samp">realtime</samp>&rsquo;</dt>
  4858. <dd><p>Use realtime quality deadline.
  4859. </p></dd>
  4860. </dl>
  4861. </dd>
  4862. <dt><samp class="option">speed, cpu-used (<em class="emph">cpu-used</em>)</samp></dt>
  4863. <dd><p>Set quality/speed ratio modifier. Higher values speed up the encode at the cost
  4864. of quality.
  4865. </p>
  4866. </dd>
  4867. <dt><samp class="option">nr (<em class="emph">noise-sensitivity</em>)</samp></dt>
  4868. <dt><samp class="option">static-thresh</samp></dt>
  4869. <dd><p>Set a change threshold on blocks below which they will be skipped by the
  4870. encoder.
  4871. </p>
  4872. </dd>
  4873. <dt><samp class="option">slices (<em class="emph">token-parts</em>)</samp></dt>
  4874. <dd><p>Note that FFmpeg&rsquo;s <samp class="option">slices</samp> option gives the total number of partitions,
  4875. while <code class="command">vpxenc</code>&rsquo;s <samp class="option">token-parts</samp> is given as
  4876. <code class="code">log2(partitions)</code>.
  4877. </p>
  4878. </dd>
  4879. <dt><samp class="option">max-intra-rate</samp></dt>
  4880. <dd><p>Set maximum I-frame bitrate as a percentage of the target bitrate. A value of 0
  4881. means unlimited.
  4882. </p>
  4883. </dd>
  4884. <dt><samp class="option">force_key_frames</samp></dt>
  4885. <dd><p><code class="code">VPX_EFLAG_FORCE_KF</code>
  4886. </p>
  4887. </dd>
  4888. <dt><samp class="option">Alternate reference frame related</samp></dt>
  4889. <dd><dl class="table">
  4890. <dt><samp class="option">auto-alt-ref</samp></dt>
  4891. <dd><p>Enable use of alternate reference frames (2-pass only).
  4892. Values greater than 1 enable multi-layer alternate reference frames (VP9 only).
  4893. </p></dd>
  4894. <dt><samp class="option">arnr-maxframes</samp></dt>
  4895. <dd><p>Set altref noise reduction max frame count.
  4896. </p></dd>
  4897. <dt><samp class="option">arnr-type</samp></dt>
  4898. <dd><p>Set altref noise reduction filter type: backward, forward, centered.
  4899. </p></dd>
  4900. <dt><samp class="option">arnr-strength</samp></dt>
  4901. <dd><p>Set altref noise reduction filter strength.
  4902. </p></dd>
  4903. <dt><samp class="option">rc-lookahead, lag-in-frames (<em class="emph">lag-in-frames</em>)</samp></dt>
  4904. <dd><p>Set number of frames to look ahead for frametype and ratecontrol.
  4905. </p></dd>
  4906. <dt><samp class="option">min-gf-interval</samp></dt>
  4907. <dd><p>Set minimum golden/alternate reference frame interval (VP9 only).
  4908. </p></dd>
  4909. </dl>
  4910. </dd>
  4911. <dt><samp class="option">error-resilient</samp></dt>
  4912. <dd><p>Enable error resiliency features.
  4913. </p>
  4914. </dd>
  4915. <dt><samp class="option">sharpness <var class="var">integer</var></samp></dt>
  4916. <dd><p>Increase sharpness at the expense of lower PSNR.
  4917. The valid range is [0, 7].
  4918. </p>
  4919. </dd>
  4920. <dt><samp class="option">ts-parameters</samp></dt>
  4921. <dd><p>Sets the temporal scalability configuration using a :-separated list of
  4922. key=value pairs. For example, to specify temporal scalability parameters
  4923. with <code class="code">ffmpeg</code>:
  4924. </p><div class="example">
  4925. <pre class="example-preformatted">ffmpeg -i INPUT -c:v libvpx -ts-parameters ts_number_layers=3:\
  4926. ts_target_bitrate=250,500,1000:ts_rate_decimator=4,2,1:\
  4927. ts_periodicity=4:ts_layer_id=0,2,1,2:ts_layering_mode=3 OUTPUT
  4928. </pre></div>
  4929. <p>Below is a brief explanation of each of the parameters, please
  4930. refer to <code class="code">struct vpx_codec_enc_cfg</code> in <code class="code">vpx/vpx_encoder.h</code> for more
  4931. details.
  4932. </p><dl class="table">
  4933. <dt><samp class="option">ts_number_layers</samp></dt>
  4934. <dd><p>Number of temporal coding layers.
  4935. </p></dd>
  4936. <dt><samp class="option">ts_target_bitrate</samp></dt>
  4937. <dd><p>Target bitrate for each temporal layer (in kbps).
  4938. (bitrate should be inclusive of the lower temporal layer).
  4939. </p></dd>
  4940. <dt><samp class="option">ts_rate_decimator</samp></dt>
  4941. <dd><p>Frame rate decimation factor for each temporal layer.
  4942. </p></dd>
  4943. <dt><samp class="option">ts_periodicity</samp></dt>
  4944. <dd><p>Length of the sequence defining frame temporal layer membership.
  4945. </p></dd>
  4946. <dt><samp class="option">ts_layer_id</samp></dt>
  4947. <dd><p>Template defining the membership of frames to temporal layers.
  4948. </p></dd>
  4949. <dt><samp class="option">ts_layering_mode</samp></dt>
  4950. <dd><p>(optional) Selecting the temporal structure from a set of pre-defined temporal layering modes.
  4951. Currently supports the following options.
  4952. </p><dl class="table">
  4953. <dt><samp class="option">0</samp></dt>
  4954. <dd><p>No temporal layering flags are provided internally,
  4955. relies on flags being passed in using <code class="code">metadata</code> field in <code class="code">AVFrame</code>
  4956. with following keys.
  4957. </p><dl class="table">
  4958. <dt><samp class="option">vp8-flags</samp></dt>
  4959. <dd><p>Sets the flags passed into the encoder to indicate the referencing scheme for
  4960. the current frame.
  4961. Refer to function <code class="code">vpx_codec_encode</code> in <code class="code">vpx/vpx_encoder.h</code> for more
  4962. details.
  4963. </p></dd>
  4964. <dt><samp class="option">temporal_id</samp></dt>
  4965. <dd><p>Explicitly sets the temporal id of the current frame to encode.
  4966. </p></dd>
  4967. </dl>
  4968. </dd>
  4969. <dt><samp class="option">2</samp></dt>
  4970. <dd><p>Two temporal layers. 0-1...
  4971. </p></dd>
  4972. <dt><samp class="option">3</samp></dt>
  4973. <dd><p>Three temporal layers. 0-2-1-2...; with single reference frame.
  4974. </p></dd>
  4975. <dt><samp class="option">4</samp></dt>
  4976. <dd><p>Same as option &quot;3&quot;, except there is a dependency between
  4977. the two temporal layer 2 frames within the temporal period.
  4978. </p></dd>
  4979. </dl>
  4980. </dd>
  4981. </dl>
  4982. </dd>
  4983. <dt><samp class="option">VP8-specific options</samp></dt>
  4984. <dd><dl class="table">
  4985. <dt><samp class="option">screen-content-mode</samp></dt>
  4986. <dd><p>Screen content mode, one of: 0 (off), 1 (screen), 2 (screen with more aggressive rate control).
  4987. </p></dd>
  4988. </dl>
  4989. </dd>
  4990. <dt><samp class="option">VP9-specific options</samp></dt>
  4991. <dd><dl class="table">
  4992. <dt><samp class="option">lossless</samp></dt>
  4993. <dd><p>Enable lossless mode.
  4994. </p></dd>
  4995. <dt><samp class="option">tile-columns</samp></dt>
  4996. <dd><p>Set number of tile columns to use. Note this is given as
  4997. <code class="code">log2(tile_columns)</code>. For example, 8 tile columns would be requested by
  4998. setting the <samp class="option">tile-columns</samp> option to 3.
  4999. </p></dd>
  5000. <dt><samp class="option">tile-rows</samp></dt>
  5001. <dd><p>Set number of tile rows to use. Note this is given as <code class="code">log2(tile_rows)</code>.
  5002. For example, 4 tile rows would be requested by setting the <samp class="option">tile-rows</samp>
  5003. option to 2.
  5004. </p></dd>
  5005. <dt><samp class="option">frame-parallel</samp></dt>
  5006. <dd><p>Enable frame parallel decodability features.
  5007. </p></dd>
  5008. <dt><samp class="option">aq-mode</samp></dt>
  5009. <dd><p>Set adaptive quantization mode (0: off (default), 1: variance 2: complexity, 3:
  5010. cyclic refresh, 4: equator360).
  5011. </p></dd>
  5012. <dt><samp class="option">colorspace <em class="emph">color-space</em></samp></dt>
  5013. <dd><p>Set input color space. The VP9 bitstream supports signaling the following
  5014. colorspaces:
  5015. </p><dl class="table">
  5016. <dt><samp class="option">&lsquo;<samp class="samp">rgb</samp>&rsquo; <em class="emph">sRGB</em></samp></dt>
  5017. <dt><samp class="option">&lsquo;<samp class="samp">bt709</samp>&rsquo; <em class="emph">bt709</em></samp></dt>
  5018. <dt><samp class="option">&lsquo;<samp class="samp">unspecified</samp>&rsquo; <em class="emph">unknown</em></samp></dt>
  5019. <dt><samp class="option">&lsquo;<samp class="samp">bt470bg</samp>&rsquo; <em class="emph">bt601</em></samp></dt>
  5020. <dt><samp class="option">&lsquo;<samp class="samp">smpte170m</samp>&rsquo; <em class="emph">smpte170</em></samp></dt>
  5021. <dt><samp class="option">&lsquo;<samp class="samp">smpte240m</samp>&rsquo; <em class="emph">smpte240</em></samp></dt>
  5022. <dt><samp class="option">&lsquo;<samp class="samp">bt2020_ncl</samp>&rsquo; <em class="emph">bt2020</em></samp></dt>
  5023. </dl>
  5024. </dd>
  5025. <dt><samp class="option">row-mt <var class="var">boolean</var></samp></dt>
  5026. <dd><p>Enable row based multi-threading.
  5027. </p></dd>
  5028. <dt><samp class="option">tune-content</samp></dt>
  5029. <dd><p>Set content type: default (0), screen (1), film (2).
  5030. </p></dd>
  5031. <dt><samp class="option">corpus-complexity</samp></dt>
  5032. <dd><p>Corpus VBR mode is a variant of standard VBR where the complexity distribution
  5033. midpoint is passed in rather than calculated for a specific clip or chunk.
  5034. </p>
  5035. <p>The valid range is [0, 10000]. 0 (default) uses standard VBR.
  5036. </p></dd>
  5037. <dt><samp class="option">enable-tpl <var class="var">boolean</var></samp></dt>
  5038. <dd><p>Enable temporal dependency model.
  5039. </p></dd>
  5040. <dt><samp class="option">ref-frame-config</samp></dt>
  5041. <dd><p>Using per-frame metadata, set members of the structure <code class="code">vpx_svc_ref_frame_config_t</code> in <code class="code">vpx/vp8cx.h</code> to fine-control referencing schemes and frame buffer management.
  5042. <br>Use a :-separated list of key=value pairs.
  5043. For example,
  5044. </p><div class="example">
  5045. <pre class="example-preformatted">av_dict_set(&amp;av_frame-&gt;metadata, &quot;ref-frame-config&quot;, \
  5046. &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;);
  5047. </pre></div>
  5048. <dl class="table">
  5049. <dt><samp class="option">rfc_update_buffer_slot</samp></dt>
  5050. <dd><p>Indicates the buffer slot number to update
  5051. </p></dd>
  5052. <dt><samp class="option">rfc_update_last</samp></dt>
  5053. <dd><p>Indicates whether to update the LAST frame
  5054. </p></dd>
  5055. <dt><samp class="option">rfc_update_golden</samp></dt>
  5056. <dd><p>Indicates whether to update GOLDEN frame
  5057. </p></dd>
  5058. <dt><samp class="option">rfc_update_alt_ref</samp></dt>
  5059. <dd><p>Indicates whether to update ALT_REF frame
  5060. </p></dd>
  5061. <dt><samp class="option">rfc_lst_fb_idx</samp></dt>
  5062. <dd><p>LAST frame buffer index
  5063. </p></dd>
  5064. <dt><samp class="option">rfc_gld_fb_idx</samp></dt>
  5065. <dd><p>GOLDEN frame buffer index
  5066. </p></dd>
  5067. <dt><samp class="option">rfc_alt_fb_idx</samp></dt>
  5068. <dd><p>ALT_REF frame buffer index
  5069. </p></dd>
  5070. <dt><samp class="option">rfc_reference_last</samp></dt>
  5071. <dd><p>Indicates whether to reference LAST frame
  5072. </p></dd>
  5073. <dt><samp class="option">rfc_reference_golden</samp></dt>
  5074. <dd><p>Indicates whether to reference GOLDEN frame
  5075. </p></dd>
  5076. <dt><samp class="option">rfc_reference_alt_ref</samp></dt>
  5077. <dd><p>Indicates whether to reference ALT_REF frame
  5078. </p></dd>
  5079. <dt><samp class="option">rfc_reference_duration</samp></dt>
  5080. <dd><p>Indicates frame duration
  5081. </p></dd>
  5082. </dl>
  5083. </dd>
  5084. </dl>
  5085. </dd>
  5086. </dl>
  5087. <p>For more information about libvpx see:
  5088. <a class="url" href="http://www.webmproject.org/">http://www.webmproject.org/</a>
  5089. </p>
  5090. <a name="libvvenc"></a>
  5091. <h3 class="section">9.17 libvvenc<span class="pull-right"><a class="anchor hidden-xs" href="#libvvenc" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libvvenc" aria-hidden="true">TOC</a></span></h3>
  5092. <p>VVenC H.266/VVC encoder wrapper.
  5093. </p>
  5094. <p>This encoder requires the presence of the libvvenc headers and library
  5095. during configuration. You need to explicitly configure the build with
  5096. <samp class="option">--enable-libvvenc</samp>.
  5097. </p>
  5098. <p>The VVenC project website is at
  5099. <a class="url" href="https://github.com/fraunhoferhhi/vvenc">https://github.com/fraunhoferhhi/vvenc</a>.
  5100. </p>
  5101. <a name="Supported-Pixel-Formats"></a>
  5102. <h4 class="subsection">9.17.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>
  5103. <p>VVenC supports only 10-bit color spaces as input. But the internal (encoded)
  5104. bit depth can be set to 8-bit or 10-bit at runtime.
  5105. </p>
  5106. <a name="Options-39"></a>
  5107. <h4 class="subsection">9.17.2 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-39" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-39" aria-hidden="true">TOC</a></span></h4>
  5108. <dl class="table">
  5109. <dt><samp class="option">b</samp></dt>
  5110. <dd><p>Sets target video bitrate.
  5111. </p>
  5112. </dd>
  5113. <dt><samp class="option">g</samp></dt>
  5114. <dd><p>Set the GOP size. Currently support for g=1 (Intra only) or default.
  5115. </p>
  5116. </dd>
  5117. <dt><samp class="option">preset</samp></dt>
  5118. <dd><p>Set the VVenC preset.
  5119. </p>
  5120. </dd>
  5121. <dt><samp class="option">levelidc</samp></dt>
  5122. <dd><p>Set level idc.
  5123. </p>
  5124. </dd>
  5125. <dt><samp class="option">tier</samp></dt>
  5126. <dd><p>Set vvc tier.
  5127. </p>
  5128. </dd>
  5129. <dt><samp class="option">qp</samp></dt>
  5130. <dd><p>Set constant quantization parameter.
  5131. </p>
  5132. </dd>
  5133. <dt><samp class="option">subopt <var class="var">boolean</var></samp></dt>
  5134. <dd><p>Set subjective (perceptually motivated) optimization. Default is 1 (on).
  5135. </p>
  5136. </dd>
  5137. <dt><samp class="option">bitdepth8 <var class="var">boolean</var></samp></dt>
  5138. <dd><p>Set 8bit coding mode instead of using 10bit. Default is 0 (off).
  5139. </p>
  5140. </dd>
  5141. <dt><samp class="option">period</samp></dt>
  5142. <dd><p>set (intra) refresh period in seconds.
  5143. </p>
  5144. </dd>
  5145. <dt><samp class="option">vvenc-params</samp></dt>
  5146. <dd><p>Set vvenc options using a list of <var class="var">key</var>=<var class="var">value</var> couples separated
  5147. by &quot;:&quot;. See <code class="command">vvencapp --fullhelp</code> or <code class="command">vvencFFapp --fullhelp</code> for a list of options.
  5148. </p>
  5149. <p>For example, the options might be provided as:
  5150. </p>
  5151. <div class="example">
  5152. <pre class="example-preformatted">intraperiod=64:decodingrefreshtype=idr:poc0idr=1:internalbitdepth=8
  5153. </pre></div>
  5154. <p>For example the encoding options might be provided with <samp class="option">-vvenc-params</samp>:
  5155. </p>
  5156. <div class="example">
  5157. <pre class="example-preformatted">ffmpeg -i input -c:v libvvenc -b 1M -vvenc-params intraperiod=64:decodingrefreshtype=idr:poc0idr=1:internalbitdepth=8 output.mp4
  5158. </pre></div>
  5159. </dd>
  5160. </dl>
  5161. <a name="libwebp"></a>
  5162. <h3 class="section">9.18 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>
  5163. <p>libwebp WebP Image encoder wrapper
  5164. </p>
  5165. <p>libwebp is Google&rsquo;s official encoder for WebP images. It can encode in either
  5166. lossy or lossless mode. Lossy images are essentially a wrapper around a VP8
  5167. frame. Lossless images are a separate codec developed by Google.
  5168. </p>
  5169. <a name="Pixel-Format"></a>
  5170. <h4 class="subsection">9.18.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>
  5171. <p>Currently, libwebp only supports YUV420 for lossy and RGB for lossless due
  5172. to limitations of the format and libwebp. Alpha is supported for either mode.
  5173. Because of API limitations, if RGB is passed in when encoding lossy or YUV is
  5174. passed in for encoding lossless, the pixel format will automatically be
  5175. converted using functions from libwebp. This is not ideal and is done only for
  5176. convenience.
  5177. </p>
  5178. <a name="Options-40"></a>
  5179. <h4 class="subsection">9.18.2 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-40" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-40" aria-hidden="true">TOC</a></span></h4>
  5180. <dl class="table">
  5181. <dt><samp class="option">-lossless <var class="var">boolean</var></samp></dt>
  5182. <dd><p>Enables/Disables use of lossless mode. Default is 0.
  5183. </p>
  5184. </dd>
  5185. <dt><samp class="option">-compression_level <var class="var">integer</var></samp></dt>
  5186. <dd><p>For lossy, this is a quality/speed tradeoff. Higher values give better quality
  5187. for a given size at the cost of increased encoding time. For lossless, this is
  5188. a size/speed tradeoff. Higher values give smaller size at the cost of increased
  5189. encoding time. More specifically, it controls the number of extra algorithms
  5190. and compression tools used, and varies the combination of these tools. This
  5191. maps to the <var class="var">method</var> option in libwebp. The valid range is 0 to 6.
  5192. Default is 4.
  5193. </p>
  5194. </dd>
  5195. <dt><samp class="option">-quality <var class="var">float</var></samp></dt>
  5196. <dd><p>For lossy encoding, this controls image quality. For lossless encoding, this
  5197. controls the effort and time spent in compression.
  5198. Range is 0 to 100. Default is 75.
  5199. </p>
  5200. </dd>
  5201. <dt><samp class="option">-preset <var class="var">type</var></samp></dt>
  5202. <dd><p>Configuration preset. This does some automatic settings based on the general
  5203. type of the image.
  5204. </p><dl class="table">
  5205. <dt><samp class="option">none</samp></dt>
  5206. <dd><p>Do not use a preset.
  5207. </p></dd>
  5208. <dt><samp class="option">default</samp></dt>
  5209. <dd><p>Use the encoder default.
  5210. </p></dd>
  5211. <dt><samp class="option">picture</samp></dt>
  5212. <dd><p>Digital picture, like portrait, inner shot
  5213. </p></dd>
  5214. <dt><samp class="option">photo</samp></dt>
  5215. <dd><p>Outdoor photograph, with natural lighting
  5216. </p></dd>
  5217. <dt><samp class="option">drawing</samp></dt>
  5218. <dd><p>Hand or line drawing, with high-contrast details
  5219. </p></dd>
  5220. <dt><samp class="option">icon</samp></dt>
  5221. <dd><p>Small-sized colorful images
  5222. </p></dd>
  5223. <dt><samp class="option">text</samp></dt>
  5224. <dd><p>Text-like
  5225. </p></dd>
  5226. </dl>
  5227. </dd>
  5228. </dl>
  5229. <a name="libx264_002c-libx264rgb"></a>
  5230. <h3 class="section">9.19 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>
  5231. <p>x264 H.264/MPEG-4 AVC encoder wrapper.
  5232. </p>
  5233. <p>This encoder requires the presence of the libx264 headers and library
  5234. during configuration. You need to explicitly configure the build with
  5235. <code class="code">--enable-libx264</code>.
  5236. </p>
  5237. <p>libx264 supports an impressive number of features, including 8x8 and
  5238. 4x4 adaptive spatial transform, adaptive B-frame placement, CAVLC/CABAC
  5239. entropy coding, interlacing (MBAFF), lossless mode, psy optimizations
  5240. for detail retention (adaptive quantization, psy-RD, psy-trellis).
  5241. </p>
  5242. <p>Many libx264 encoder options are mapped to FFmpeg global codec
  5243. options, while unique encoder options are provided through private
  5244. options. Additionally the <samp class="option">x264opts</samp> and <samp class="option">x264-params</samp>
  5245. private options allows one to pass a list of key=value tuples as accepted
  5246. by the libx264 <code class="code">x264_param_parse</code> function.
  5247. </p>
  5248. <p>The x264 project website is at
  5249. <a class="url" href="http://www.videolan.org/developers/x264.html">http://www.videolan.org/developers/x264.html</a>.
  5250. </p>
  5251. <p>The libx264rgb encoder is the same as libx264, except it accepts packed RGB
  5252. pixel formats as input instead of YUV.
  5253. </p>
  5254. <a name="Supported-Pixel-Formats-1"></a>
  5255. <h4 class="subsection">9.19.1 Supported Pixel Formats<span class="pull-right"><a class="anchor hidden-xs" href="#Supported-Pixel-Formats-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Supported-Pixel-Formats-1" aria-hidden="true">TOC</a></span></h4>
  5256. <p>x264 supports 8- to 10-bit color spaces. The exact bit depth is controlled at
  5257. x264&rsquo;s configure time.
  5258. </p>
  5259. <a name="Options-41"></a>
  5260. <h4 class="subsection">9.19.2 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-41" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-41" aria-hidden="true">TOC</a></span></h4>
  5261. <p>The following options are supported by the libx264 wrapper. The
  5262. <code class="command">x264</code>-equivalent options or values are listed in parentheses
  5263. for easy migration.
  5264. </p>
  5265. <p>To reduce the duplication of documentation, only the private options
  5266. and some others requiring special attention are documented here. For
  5267. the documentation of the undocumented generic options, see
  5268. <a class="ref" href="#codec_002doptions">the Codec Options chapter</a>.
  5269. </p>
  5270. <p>To get a more accurate and extensive documentation of the libx264
  5271. options, invoke the command <code class="command">x264 --fullhelp</code> or consult
  5272. the libx264 documentation.
  5273. </p>
  5274. <p>In the list below, note that the <code class="command">x264</code> option name is shown
  5275. in parentheses after the libavcodec corresponding name, in case there
  5276. is a direct mapping.
  5277. </p>
  5278. <dl class="table">
  5279. <dt><samp class="option">b (<em class="emph">bitrate</em>)</samp></dt>
  5280. <dd><p>Set bitrate in bits/s. Note that FFmpeg&rsquo;s <samp class="option">b</samp> option is
  5281. expressed in bits/s, while <code class="command">x264</code>&rsquo;s <samp class="option">bitrate</samp> is in
  5282. kilobits/s.
  5283. </p>
  5284. </dd>
  5285. <dt><samp class="option">bf (<em class="emph">bframes</em>)</samp></dt>
  5286. <dd><p>Number of B-frames between I and P-frames
  5287. </p>
  5288. </dd>
  5289. <dt><samp class="option">g (<em class="emph">keyint</em>)</samp></dt>
  5290. <dd><p>Maximum GOP size
  5291. </p>
  5292. </dd>
  5293. <dt><samp class="option">qmin (<em class="emph">qpmin</em>)</samp></dt>
  5294. <dd><p>Minimum quantizer scale
  5295. </p>
  5296. </dd>
  5297. <dt><samp class="option">qmax (<em class="emph">qpmax</em>)</samp></dt>
  5298. <dd><p>Maximum quantizer scale
  5299. </p>
  5300. </dd>
  5301. <dt><samp class="option">qdiff (<em class="emph">qpstep</em>)</samp></dt>
  5302. <dd><p>Maximum difference between quantizer scales
  5303. </p>
  5304. </dd>
  5305. <dt><samp class="option">qblur (<em class="emph">qblur</em>)</samp></dt>
  5306. <dd><p>Quantizer curve blur
  5307. </p>
  5308. </dd>
  5309. <dt><samp class="option">qcomp (<em class="emph">qcomp</em>)</samp></dt>
  5310. <dd><p>Quantizer curve compression factor
  5311. </p>
  5312. </dd>
  5313. <dt><samp class="option">refs (<em class="emph">ref</em>)</samp></dt>
  5314. <dd><p>Number of reference frames each P-frame can use. The range is <var class="var">0-16</var>.
  5315. </p>
  5316. </dd>
  5317. <dt><samp class="option">level (<em class="emph">level</em>)</samp></dt>
  5318. <dd><p>Set the <code class="code">x264_param_t.i_level_idc</code> value in case the value is
  5319. positive, it is ignored otherwise.
  5320. </p>
  5321. <p>This value can be set using the <code class="code">AVCodecContext</code> API (e.g. by
  5322. setting the <code class="code">AVCodecContext</code> value directly), and is specified as
  5323. an integer mapped on a corresponding level (e.g. the value 31 maps
  5324. to H.264 level IDC &quot;3.1&quot;, as defined in the <code class="code">x264_levels</code>
  5325. table). It is ignored when set to a non positive value.
  5326. </p>
  5327. <p>Alternatively it can be set as a private option, overriding the value
  5328. set in <code class="code">AVCodecContext</code>, and in this case must be specified as
  5329. the level IDC identifier (e.g. &quot;3.1&quot;), as defined by H.264 Annex A.
  5330. </p>
  5331. </dd>
  5332. <dt><samp class="option">sc_threshold (<em class="emph">scenecut</em>)</samp></dt>
  5333. <dd><p>Sets the threshold for the scene change detection.
  5334. </p>
  5335. </dd>
  5336. <dt><samp class="option">trellis (<em class="emph">trellis</em>)</samp></dt>
  5337. <dd><p>Performs Trellis quantization to increase efficiency. Enabled by default.
  5338. </p>
  5339. </dd>
  5340. <dt><samp class="option">nr (<em class="emph">nr</em>)</samp></dt>
  5341. <dd><p>Noise reduction
  5342. </p>
  5343. </dd>
  5344. <dt><samp class="option">me_range (<em class="emph">merange</em>)</samp></dt>
  5345. <dd><p>Maximum range of the motion search in pixels.
  5346. </p>
  5347. </dd>
  5348. <dt><samp class="option">me_method (<em class="emph">me</em>)</samp></dt>
  5349. <dd><p>Set motion estimation method. Possible values in the decreasing order
  5350. of speed:
  5351. </p>
  5352. <dl class="table">
  5353. <dt>&lsquo;<samp class="samp">dia (<em class="emph">dia</em>)</samp>&rsquo;</dt>
  5354. <dt>&lsquo;<samp class="samp">epzs (<em class="emph">dia</em>)</samp>&rsquo;</dt>
  5355. <dd><p>Diamond search with radius 1 (fastest). &lsquo;<samp class="samp">epzs</samp>&rsquo; is an alias for
  5356. &lsquo;<samp class="samp">dia</samp>&rsquo;.
  5357. </p></dd>
  5358. <dt>&lsquo;<samp class="samp">hex (<em class="emph">hex</em>)</samp>&rsquo;</dt>
  5359. <dd><p>Hexagonal search with radius 2.
  5360. </p></dd>
  5361. <dt>&lsquo;<samp class="samp">umh (<em class="emph">umh</em>)</samp>&rsquo;</dt>
  5362. <dd><p>Uneven multi-hexagon search.
  5363. </p></dd>
  5364. <dt>&lsquo;<samp class="samp">esa (<em class="emph">esa</em>)</samp>&rsquo;</dt>
  5365. <dd><p>Exhaustive search.
  5366. </p></dd>
  5367. <dt>&lsquo;<samp class="samp">tesa (<em class="emph">tesa</em>)</samp>&rsquo;</dt>
  5368. <dd><p>Hadamard exhaustive search (slowest).
  5369. </p></dd>
  5370. </dl>
  5371. </dd>
  5372. <dt><samp class="option">forced-idr</samp></dt>
  5373. <dd><p>Normally, when forcing a I-frame type, the encoder can select any type
  5374. of I-frame. This option forces it to choose an IDR-frame.
  5375. </p>
  5376. </dd>
  5377. <dt><samp class="option">subq (<em class="emph">subme</em>)</samp></dt>
  5378. <dd><p>Sub-pixel motion estimation method.
  5379. </p>
  5380. </dd>
  5381. <dt><samp class="option">b_strategy (<em class="emph">b-adapt</em>)</samp></dt>
  5382. <dd><p>Adaptive B-frame placement decision algorithm. Use only on first-pass.
  5383. </p>
  5384. </dd>
  5385. <dt><samp class="option">keyint_min (<em class="emph">min-keyint</em>)</samp></dt>
  5386. <dd><p>Minimum GOP size.
  5387. </p>
  5388. </dd>
  5389. <dt><samp class="option">coder</samp></dt>
  5390. <dd><p>Set entropy encoder. Possible values:
  5391. </p>
  5392. <dl class="table">
  5393. <dt>&lsquo;<samp class="samp">ac</samp>&rsquo;</dt>
  5394. <dd><p>Enable CABAC.
  5395. </p>
  5396. </dd>
  5397. <dt>&lsquo;<samp class="samp">vlc</samp>&rsquo;</dt>
  5398. <dd><p>Enable CAVLC and disable CABAC. It generates the same effect as
  5399. <code class="command">x264</code>&rsquo;s <samp class="option">--no-cabac</samp> option.
  5400. </p></dd>
  5401. </dl>
  5402. </dd>
  5403. <dt><samp class="option">cmp</samp></dt>
  5404. <dd><p>Set full pixel motion estimation comparison algorithm. Possible values:
  5405. </p>
  5406. <dl class="table">
  5407. <dt>&lsquo;<samp class="samp">chroma</samp>&rsquo;</dt>
  5408. <dd><p>Enable chroma in motion estimation.
  5409. </p>
  5410. </dd>
  5411. <dt>&lsquo;<samp class="samp">sad</samp>&rsquo;</dt>
  5412. <dd><p>Ignore chroma in motion estimation. It generates the same effect as
  5413. <code class="command">x264</code>&rsquo;s <samp class="option">--no-chroma-me</samp> option.
  5414. </p></dd>
  5415. </dl>
  5416. </dd>
  5417. <dt><samp class="option">threads (<em class="emph">threads</em>)</samp></dt>
  5418. <dd><p>Number of encoding threads.
  5419. </p>
  5420. </dd>
  5421. <dt><samp class="option">thread_type</samp></dt>
  5422. <dd><p>Set multithreading technique. Possible values:
  5423. </p>
  5424. <dl class="table">
  5425. <dt>&lsquo;<samp class="samp">slice</samp>&rsquo;</dt>
  5426. <dd><p>Slice-based multithreading. It generates the same effect as
  5427. <code class="command">x264</code>&rsquo;s <samp class="option">--sliced-threads</samp> option.
  5428. </p></dd>
  5429. <dt>&lsquo;<samp class="samp">frame</samp>&rsquo;</dt>
  5430. <dd><p>Frame-based multithreading.
  5431. </p></dd>
  5432. </dl>
  5433. </dd>
  5434. <dt><samp class="option">flags</samp></dt>
  5435. <dd><p>Set encoding flags. It can be used to disable closed GOP and enable
  5436. open GOP by setting it to <code class="code">-cgop</code>. The result is similar to
  5437. the behavior of <code class="command">x264</code>&rsquo;s <samp class="option">--open-gop</samp> option.
  5438. </p>
  5439. </dd>
  5440. <dt><samp class="option">rc_init_occupancy (<em class="emph">vbv-init</em>)</samp></dt>
  5441. <dd><p>Initial VBV buffer occupancy
  5442. </p>
  5443. </dd>
  5444. <dt><samp class="option">preset (<em class="emph">preset</em>)</samp></dt>
  5445. <dd><p>Set the encoding preset.
  5446. </p>
  5447. </dd>
  5448. <dt><samp class="option">tune (<em class="emph">tune</em>)</samp></dt>
  5449. <dd><p>Set tuning of the encoding params.
  5450. </p>
  5451. </dd>
  5452. <dt><samp class="option">profile (<em class="emph">profile</em>)</samp></dt>
  5453. <dd><p>Set profile restrictions.
  5454. </p>
  5455. </dd>
  5456. <dt><samp class="option">fastfirstpass</samp></dt>
  5457. <dd><p>Enable fast settings when encoding first pass, when set to 1. When set
  5458. to 0, it has the same effect of <code class="command">x264</code>&rsquo;s
  5459. <samp class="option">--slow-firstpass</samp> option.
  5460. </p>
  5461. </dd>
  5462. <dt><samp class="option">crf (<em class="emph">crf</em>)</samp></dt>
  5463. <dd><p>Set the quality for constant quality mode.
  5464. </p>
  5465. </dd>
  5466. <dt><samp class="option">crf_max (<em class="emph">crf-max</em>)</samp></dt>
  5467. <dd><p>In CRF mode, prevents VBV from lowering quality beyond this point.
  5468. </p>
  5469. </dd>
  5470. <dt><samp class="option">qp (<em class="emph">qp</em>)</samp></dt>
  5471. <dd><p>Set constant quantization rate control method parameter.
  5472. </p>
  5473. </dd>
  5474. <dt><samp class="option">aq-mode (<em class="emph">aq-mode</em>)</samp></dt>
  5475. <dd><p>Set AQ method. Possible values:
  5476. </p>
  5477. <dl class="table">
  5478. <dt>&lsquo;<samp class="samp">none (<em class="emph">0</em>)</samp>&rsquo;</dt>
  5479. <dd><p>Disabled.
  5480. </p>
  5481. </dd>
  5482. <dt>&lsquo;<samp class="samp">variance (<em class="emph">1</em>)</samp>&rsquo;</dt>
  5483. <dd><p>Variance AQ (complexity mask).
  5484. </p>
  5485. </dd>
  5486. <dt>&lsquo;<samp class="samp">autovariance (<em class="emph">2</em>)</samp>&rsquo;</dt>
  5487. <dd><p>Auto-variance AQ (experimental).
  5488. </p></dd>
  5489. </dl>
  5490. </dd>
  5491. <dt><samp class="option">aq-strength (<em class="emph">aq-strength</em>)</samp></dt>
  5492. <dd><p>Set AQ strength, reduce blocking and blurring in flat and textured areas.
  5493. </p>
  5494. </dd>
  5495. <dt><samp class="option">psy</samp></dt>
  5496. <dd><p>Use psychovisual optimizations when set to 1. When set to 0, it has the
  5497. same effect as <code class="command">x264</code>&rsquo;s <samp class="option">--no-psy</samp> option.
  5498. </p>
  5499. </dd>
  5500. <dt><samp class="option">psy-rd (<em class="emph">psy-rd</em>)</samp></dt>
  5501. <dd><p>Set strength of psychovisual optimization, in
  5502. <var class="var">psy-rd</var>:<var class="var">psy-trellis</var> format.
  5503. </p>
  5504. </dd>
  5505. <dt><samp class="option">rc-lookahead (<em class="emph">rc-lookahead</em>)</samp></dt>
  5506. <dd><p>Set number of frames to look ahead for frametype and ratecontrol.
  5507. </p>
  5508. </dd>
  5509. <dt><samp class="option">weightb</samp></dt>
  5510. <dd><p>Enable weighted prediction for B-frames when set to 1. When set to 0,
  5511. it has the same effect as <code class="command">x264</code>&rsquo;s <samp class="option">--no-weightb</samp> option.
  5512. </p>
  5513. </dd>
  5514. <dt><samp class="option">weightp (<em class="emph">weightp</em>)</samp></dt>
  5515. <dd><p>Set weighted prediction method for P-frames. Possible values:
  5516. </p>
  5517. <dl class="table">
  5518. <dt>&lsquo;<samp class="samp">none (<em class="emph">0</em>)</samp>&rsquo;</dt>
  5519. <dd><p>Disabled
  5520. </p></dd>
  5521. <dt>&lsquo;<samp class="samp">simple (<em class="emph">1</em>)</samp>&rsquo;</dt>
  5522. <dd><p>Enable only weighted refs
  5523. </p></dd>
  5524. <dt>&lsquo;<samp class="samp">smart (<em class="emph">2</em>)</samp>&rsquo;</dt>
  5525. <dd><p>Enable both weighted refs and duplicates
  5526. </p></dd>
  5527. </dl>
  5528. </dd>
  5529. <dt><samp class="option">ssim (<em class="emph">ssim</em>)</samp></dt>
  5530. <dd><p>Enable calculation and printing SSIM stats after the encoding.
  5531. </p>
  5532. </dd>
  5533. <dt><samp class="option">intra-refresh (<em class="emph">intra-refresh</em>)</samp></dt>
  5534. <dd><p>Enable the use of Periodic Intra Refresh instead of IDR frames when set
  5535. to 1.
  5536. </p>
  5537. </dd>
  5538. <dt><samp class="option">avcintra-class (<em class="emph">class</em>)</samp></dt>
  5539. <dd><p>Configure the encoder to generate AVC-Intra.
  5540. Valid values are 50, 100 and 200
  5541. </p>
  5542. </dd>
  5543. <dt><samp class="option">bluray-compat (<em class="emph">bluray-compat</em>)</samp></dt>
  5544. <dd><p>Configure the encoder to be compatible with the bluray standard.
  5545. It is a shorthand for setting &quot;bluray-compat=1 force-cfr=1&quot;.
  5546. </p>
  5547. </dd>
  5548. <dt><samp class="option">b-bias (<em class="emph">b-bias</em>)</samp></dt>
  5549. <dd><p>Set the influence on how often B-frames are used.
  5550. </p>
  5551. </dd>
  5552. <dt><samp class="option">b-pyramid (<em class="emph">b-pyramid</em>)</samp></dt>
  5553. <dd><p>Set method for keeping of some B-frames as references. Possible values:
  5554. </p>
  5555. <dl class="table">
  5556. <dt>&lsquo;<samp class="samp">none (<em class="emph">none</em>)</samp>&rsquo;</dt>
  5557. <dd><p>Disabled.
  5558. </p></dd>
  5559. <dt>&lsquo;<samp class="samp">strict (<em class="emph">strict</em>)</samp>&rsquo;</dt>
  5560. <dd><p>Strictly hierarchical pyramid.
  5561. </p></dd>
  5562. <dt>&lsquo;<samp class="samp">normal (<em class="emph">normal</em>)</samp>&rsquo;</dt>
  5563. <dd><p>Non-strict (not Blu-ray compatible).
  5564. </p></dd>
  5565. </dl>
  5566. </dd>
  5567. <dt><samp class="option">mixed-refs</samp></dt>
  5568. <dd><p>Enable the use of one reference per partition, as opposed to one
  5569. reference per macroblock when set to 1. When set to 0, it has the
  5570. same effect as <code class="command">x264</code>&rsquo;s <samp class="option">--no-mixed-refs</samp> option.
  5571. </p>
  5572. </dd>
  5573. <dt><samp class="option">8x8dct</samp></dt>
  5574. <dd><p>Enable adaptive spatial transform (high profile 8x8 transform)
  5575. when set to 1. When set to 0, it has the same effect as
  5576. <code class="command">x264</code>&rsquo;s <samp class="option">--no-8x8dct</samp> option.
  5577. </p>
  5578. </dd>
  5579. <dt><samp class="option">fast-pskip</samp></dt>
  5580. <dd><p>Enable early SKIP detection on P-frames when set to 1. When set
  5581. to 0, it has the same effect as <code class="command">x264</code>&rsquo;s
  5582. <samp class="option">--no-fast-pskip</samp> option.
  5583. </p>
  5584. </dd>
  5585. <dt><samp class="option">aud (<em class="emph">aud</em>)</samp></dt>
  5586. <dd><p>Enable use of access unit delimiters when set to 1.
  5587. </p>
  5588. </dd>
  5589. <dt><samp class="option">mbtree</samp></dt>
  5590. <dd><p>Enable use macroblock tree ratecontrol when set to 1. When set
  5591. to 0, it has the same effect as <code class="command">x264</code>&rsquo;s
  5592. <samp class="option">--no-mbtree</samp> option.
  5593. </p>
  5594. </dd>
  5595. <dt><samp class="option">deblock (<em class="emph">deblock</em>)</samp></dt>
  5596. <dd><p>Set loop filter parameters, in <var class="var">alpha</var>:<var class="var">beta</var> form.
  5597. </p>
  5598. </dd>
  5599. <dt><samp class="option">cplxblur (<em class="emph">cplxblur</em>)</samp></dt>
  5600. <dd><p>Set fluctuations reduction in QP (before curve compression).
  5601. </p>
  5602. </dd>
  5603. <dt><samp class="option">partitions (<em class="emph">partitions</em>)</samp></dt>
  5604. <dd><p>Set partitions to consider as a comma-separated list of values.
  5605. Possible values in the list:
  5606. </p>
  5607. <dl class="table">
  5608. <dt>&lsquo;<samp class="samp">p8x8</samp>&rsquo;</dt>
  5609. <dd><p>8x8 P-frame partition.
  5610. </p></dd>
  5611. <dt>&lsquo;<samp class="samp">p4x4</samp>&rsquo;</dt>
  5612. <dd><p>4x4 P-frame partition.
  5613. </p></dd>
  5614. <dt>&lsquo;<samp class="samp">b8x8</samp>&rsquo;</dt>
  5615. <dd><p>4x4 B-frame partition.
  5616. </p></dd>
  5617. <dt>&lsquo;<samp class="samp">i8x8</samp>&rsquo;</dt>
  5618. <dd><p>8x8 I-frame partition.
  5619. </p></dd>
  5620. <dt>&lsquo;<samp class="samp">i4x4</samp>&rsquo;</dt>
  5621. <dd><p>4x4 I-frame partition.
  5622. (Enabling &lsquo;<samp class="samp">p4x4</samp>&rsquo; requires &lsquo;<samp class="samp">p8x8</samp>&rsquo; to be enabled. Enabling
  5623. &lsquo;<samp class="samp">i8x8</samp>&rsquo; requires adaptive spatial transform (<samp class="option">8x8dct</samp>
  5624. option) to be enabled.)
  5625. </p></dd>
  5626. <dt>&lsquo;<samp class="samp">none (<em class="emph">none</em>)</samp>&rsquo;</dt>
  5627. <dd><p>Do not consider any partitions.
  5628. </p></dd>
  5629. <dt>&lsquo;<samp class="samp">all (<em class="emph">all</em>)</samp>&rsquo;</dt>
  5630. <dd><p>Consider every partition.
  5631. </p></dd>
  5632. </dl>
  5633. </dd>
  5634. <dt><samp class="option">direct-pred (<em class="emph">direct</em>)</samp></dt>
  5635. <dd><p>Set direct MV prediction mode. Possible values:
  5636. </p>
  5637. <dl class="table">
  5638. <dt>&lsquo;<samp class="samp">none (<em class="emph">none</em>)</samp>&rsquo;</dt>
  5639. <dd><p>Disable MV prediction.
  5640. </p></dd>
  5641. <dt>&lsquo;<samp class="samp">spatial (<em class="emph">spatial</em>)</samp>&rsquo;</dt>
  5642. <dd><p>Enable spatial predicting.
  5643. </p></dd>
  5644. <dt>&lsquo;<samp class="samp">temporal (<em class="emph">temporal</em>)</samp>&rsquo;</dt>
  5645. <dd><p>Enable temporal predicting.
  5646. </p></dd>
  5647. <dt>&lsquo;<samp class="samp">auto (<em class="emph">auto</em>)</samp>&rsquo;</dt>
  5648. <dd><p>Automatically decided.
  5649. </p></dd>
  5650. </dl>
  5651. </dd>
  5652. <dt><samp class="option">slice-max-size (<em class="emph">slice-max-size</em>)</samp></dt>
  5653. <dd><p>Set the limit of the size of each slice in bytes. If not specified
  5654. but RTP payload size (<samp class="option">ps</samp>) is specified, that is used.
  5655. </p>
  5656. </dd>
  5657. <dt><samp class="option">stats (<em class="emph">stats</em>)</samp></dt>
  5658. <dd><p>Set the file name for multi-pass stats.
  5659. </p>
  5660. </dd>
  5661. <dt><samp class="option">nal-hrd (<em class="emph">nal-hrd</em>)</samp></dt>
  5662. <dd><p>Set signal HRD information (requires <samp class="option">vbv-bufsize</samp> to be set).
  5663. Possible values:
  5664. </p>
  5665. <dl class="table">
  5666. <dt>&lsquo;<samp class="samp">none (<em class="emph">none</em>)</samp>&rsquo;</dt>
  5667. <dd><p>Disable HRD information signaling.
  5668. </p></dd>
  5669. <dt>&lsquo;<samp class="samp">vbr (<em class="emph">vbr</em>)</samp>&rsquo;</dt>
  5670. <dd><p>Variable bit rate.
  5671. </p></dd>
  5672. <dt>&lsquo;<samp class="samp">cbr (<em class="emph">cbr</em>)</samp>&rsquo;</dt>
  5673. <dd><p>Constant bit rate (not allowed in MP4 container).
  5674. </p></dd>
  5675. </dl>
  5676. </dd>
  5677. <dt><samp class="option">x264opts <var class="var">opts</var></samp></dt>
  5678. <dt><samp class="option">x264-params <var class="var">opts</var></samp></dt>
  5679. <dd><p>Override the x264 configuration using a :-separated list of key=value
  5680. options.
  5681. </p>
  5682. <p>The argument for both options is a list of <var class="var">key</var>=<var class="var">value</var>
  5683. couples separated by &quot;:&quot;. With <samp class="option">x264opts</samp> the value can be
  5684. omitted, and the value <code class="code">1</code> is assumed in that case.
  5685. </p>
  5686. <p>For <var class="var">filter</var> and <var class="var">psy-rd</var> options values that use &quot;:&quot; as a
  5687. separator themselves, use &quot;,&quot; instead. They accept it as well since
  5688. long ago but this is kept undocumented for some reason.
  5689. </p>
  5690. <p>For example, the options might be provided as:
  5691. </p><div class="example">
  5692. <pre class="example-preformatted">level=30:bframes=0:weightp=0:cabac=0:ref=1:vbv-maxrate=768:vbv-bufsize=2000:analyse=all:me=umh:no-fast-pskip=1:subq=6:8x8dct=0:trellis=0
  5693. </pre></div>
  5694. <p>For example to specify libx264 encoding options with <code class="command">ffmpeg</code>:
  5695. </p><div class="example">
  5696. <pre class="example-preformatted">ffmpeg -i foo.mpg -c:v libx264 -x264opts keyint=123:min-keyint=20 -an out.mkv
  5697. </pre></div>
  5698. <p>To get the complete list of the libx264 options, invoke the command
  5699. <code class="command">x264 --fullhelp</code> or consult the libx264 documentation.
  5700. </p>
  5701. </dd>
  5702. <dt><samp class="option">a53cc <var class="var">boolean</var></samp></dt>
  5703. <dd><p>Import closed captions (which must be ATSC compatible format) into output.
  5704. Only the mpeg2 and h264 decoders provide these. Default is 1 (on).
  5705. </p>
  5706. </dd>
  5707. <dt><samp class="option">udu_sei <var class="var">boolean</var></samp></dt>
  5708. <dd><p>Import user data unregistered SEI if available into output. Default is 0 (off).
  5709. </p>
  5710. </dd>
  5711. <dt><samp class="option">mb_info <var class="var">boolean</var></samp></dt>
  5712. <dd><p>Set mb_info data through AVFrameSideData, only useful when used from the
  5713. API. Default is 0 (off).
  5714. </p></dd>
  5715. </dl>
  5716. <p>Encoding ffpresets for common usages are provided so they can be used with the
  5717. general presets system (e.g. passing the <samp class="option">pre</samp> option).
  5718. </p>
  5719. <a name="libx265"></a>
  5720. <h3 class="section">9.20 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>
  5721. <p>x265 H.265/HEVC encoder wrapper.
  5722. </p>
  5723. <p>This encoder requires the presence of the libx265 headers and library
  5724. during configuration. You need to explicitly configure the build with
  5725. <samp class="option">--enable-libx265</samp>.
  5726. </p>
  5727. <a name="Options-42"></a>
  5728. <h4 class="subsection">9.20.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-42" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-42" aria-hidden="true">TOC</a></span></h4>
  5729. <dl class="table">
  5730. <dt><samp class="option">b</samp></dt>
  5731. <dd><p>Sets target video bitrate.
  5732. </p>
  5733. </dd>
  5734. <dt><samp class="option">bf</samp></dt>
  5735. <dt><samp class="option">g</samp></dt>
  5736. <dd><p>Set the GOP size.
  5737. </p>
  5738. </dd>
  5739. <dt><samp class="option">keyint_min</samp></dt>
  5740. <dd><p>Minimum GOP size.
  5741. </p>
  5742. </dd>
  5743. <dt><samp class="option">refs</samp></dt>
  5744. <dd><p>Number of reference frames each P-frame can use. The range is from <var class="var">1-16</var>.
  5745. </p>
  5746. </dd>
  5747. <dt><samp class="option">preset</samp></dt>
  5748. <dd><p>Set the x265 preset.
  5749. </p>
  5750. </dd>
  5751. <dt><samp class="option">tune</samp></dt>
  5752. <dd><p>Set the x265 tune parameter.
  5753. </p>
  5754. </dd>
  5755. <dt><samp class="option">profile</samp></dt>
  5756. <dd><p>Set profile restrictions.
  5757. </p>
  5758. </dd>
  5759. <dt><samp class="option">crf</samp></dt>
  5760. <dd><p>Set the quality for constant quality mode.
  5761. </p>
  5762. </dd>
  5763. <dt><samp class="option">qp</samp></dt>
  5764. <dd><p>Set constant quantization rate control method parameter.
  5765. </p>
  5766. </dd>
  5767. <dt><samp class="option">qmin</samp></dt>
  5768. <dd><p>Minimum quantizer scale.
  5769. </p>
  5770. </dd>
  5771. <dt><samp class="option">qmax</samp></dt>
  5772. <dd><p>Maximum quantizer scale.
  5773. </p>
  5774. </dd>
  5775. <dt><samp class="option">qdiff</samp></dt>
  5776. <dd><p>Maximum difference between quantizer scales.
  5777. </p>
  5778. </dd>
  5779. <dt><samp class="option">qblur</samp></dt>
  5780. <dd><p>Quantizer curve blur
  5781. </p>
  5782. </dd>
  5783. <dt><samp class="option">qcomp</samp></dt>
  5784. <dd><p>Quantizer curve compression factor
  5785. </p>
  5786. </dd>
  5787. <dt><samp class="option">i_qfactor</samp></dt>
  5788. <dt><samp class="option">b_qfactor</samp></dt>
  5789. <dt><samp class="option">forced-idr</samp></dt>
  5790. <dd><p>Normally, when forcing a I-frame type, the encoder can select any type
  5791. of I-frame. This option forces it to choose an IDR-frame.
  5792. </p>
  5793. </dd>
  5794. <dt><samp class="option">x265-stats</samp></dt>
  5795. <dd><p>Specify the file name for 2-pass stats. This is set automatically when using
  5796. the <samp class="option">-passlogfile</samp> option.
  5797. </p>
  5798. </dd>
  5799. <dt><samp class="option">udu_sei <var class="var">boolean</var></samp></dt>
  5800. <dd><p>Import user data unregistered SEI if available into output. Default is 0 (off).
  5801. </p>
  5802. </dd>
  5803. <dt><samp class="option">x265-params</samp></dt>
  5804. <dd><p>Set x265 options using a list of <var class="var">key</var>=<var class="var">value</var> couples separated
  5805. by &quot;:&quot;. See <code class="command">x265 --help</code> for a list of options.
  5806. </p>
  5807. <p>For example to specify libx265 encoding options with <samp class="option">-x265-params</samp>:
  5808. </p>
  5809. <div class="example">
  5810. <pre class="example-preformatted">ffmpeg -i input -c:v libx265 -x265-params crf=26:psy-rd=1 output.mp4
  5811. </pre></div>
  5812. </dd>
  5813. </dl>
  5814. <a name="libxavs2"></a>
  5815. <h3 class="section">9.21 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>
  5816. <p>xavs2 AVS2-P2/IEEE1857.4 encoder wrapper.
  5817. </p>
  5818. <p>This encoder requires the presence of the libxavs2 headers and library
  5819. during configuration. You need to explicitly configure the build with
  5820. <samp class="option">--enable-libxavs2</samp>.
  5821. </p>
  5822. <p>The following standard libavcodec options are used:
  5823. </p><ul class="itemize mark-bullet">
  5824. <li><samp class="option">b</samp> / <samp class="option">bit_rate</samp>
  5825. </li><li><samp class="option">g</samp> / <samp class="option">gop_size</samp>
  5826. </li><li><samp class="option">bf</samp> / <samp class="option">max_b_frames</samp>
  5827. </li></ul>
  5828. <p>The encoder also has its own specific options:
  5829. </p><a name="Options-43"></a>
  5830. <h4 class="subsection">9.21.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-43" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-43" aria-hidden="true">TOC</a></span></h4>
  5831. <dl class="table">
  5832. <dt><samp class="option">lcu_row_threads</samp></dt>
  5833. <dd><p>Set the number of parallel threads for rows from 1 to 8 (default 5).
  5834. </p>
  5835. </dd>
  5836. <dt><samp class="option">initial_qp</samp></dt>
  5837. <dd><p>Set the xavs2 quantization parameter from 1 to 63 (default 34). This is
  5838. used to set the initial qp for the first frame.
  5839. </p>
  5840. </dd>
  5841. <dt><samp class="option">qp</samp></dt>
  5842. <dd><p>Set the xavs2 quantization parameter from 1 to 63 (default 34). This is
  5843. used to set the qp value under constant-QP mode.
  5844. </p>
  5845. </dd>
  5846. <dt><samp class="option">max_qp</samp></dt>
  5847. <dd><p>Set the max qp for rate control from 1 to 63 (default 55).
  5848. </p>
  5849. </dd>
  5850. <dt><samp class="option">min_qp</samp></dt>
  5851. <dd><p>Set the min qp for rate control from 1 to 63 (default 20).
  5852. </p>
  5853. </dd>
  5854. <dt><samp class="option">speed_level</samp></dt>
  5855. <dd><p>Set the Speed level from 0 to 9 (default 0). Higher is better but slower.
  5856. </p>
  5857. </dd>
  5858. <dt><samp class="option">log_level</samp></dt>
  5859. <dd><p>Set the log level from -1 to 3 (default 0). -1: none, 0: error,
  5860. 1: warning, 2: info, 3: debug.
  5861. </p>
  5862. </dd>
  5863. <dt><samp class="option">xavs2-params</samp></dt>
  5864. <dd><p>Set xavs2 options using a list of <var class="var">key</var>=<var class="var">value</var> couples separated
  5865. by &quot;:&quot;.
  5866. </p>
  5867. <p>For example to specify libxavs2 encoding options with <samp class="option">-xavs2-params</samp>:
  5868. </p>
  5869. <div class="example">
  5870. <pre class="example-preformatted">ffmpeg -i input -c:v libxavs2 -xavs2-params RdoqLevel=0 output.avs2
  5871. </pre></div>
  5872. </dd>
  5873. </dl>
  5874. <a name="libxeve"></a>
  5875. <h3 class="section">9.22 libxeve<span class="pull-right"><a class="anchor hidden-xs" href="#libxeve" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libxeve" aria-hidden="true">TOC</a></span></h3>
  5876. <p>eXtra-fast Essential Video Encoder (XEVE) MPEG-5 EVC encoder wrapper.
  5877. The xeve-equivalent options or values are listed in parentheses for easy migration.
  5878. </p>
  5879. <p>This encoder requires the presence of the libxeve headers and library
  5880. during configuration. You need to explicitly configure the build with
  5881. <samp class="option">--enable-libxeve</samp>.
  5882. </p>
  5883. <div class="info">
  5884. <p>Many libxeve encoder options are mapped to FFmpeg global codec options,
  5885. while unique encoder options are provided through private options.
  5886. Additionally the xeve-params private options allows one to pass a list
  5887. of key=value tuples as accepted by the libxeve <code class="code">parse_xeve_params</code> function.
  5888. </p></div>
  5889. <p>The xeve project website is at <a class="url" href="https://github.com/mpeg5/xeve">https://github.com/mpeg5/xeve</a>.
  5890. </p>
  5891. <a name="Options-44"></a>
  5892. <h4 class="subsection">9.22.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-44" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-44" aria-hidden="true">TOC</a></span></h4>
  5893. <p>The following options are supported by the libxeve wrapper.
  5894. The xeve-equivalent options or values are listed in parentheses for easy migration.
  5895. </p>
  5896. <div class="info">
  5897. <p>To reduce the duplication of documentation, only the private options
  5898. and some others requiring special attention are documented here. For
  5899. the documentation of the undocumented generic options, see
  5900. <a class="ref" href="#codec_002doptions">the Codec Options chapter</a>.
  5901. </p></div>
  5902. <div class="info">
  5903. <p>To get a more accurate and extensive documentation of the libxeve options,
  5904. invoke the command <code class="code">xeve_app --help</code> or consult the libxeve documentation.
  5905. </p></div>
  5906. <dl class="table">
  5907. <dt><samp class="option">b (<em class="emph">bitrate</em>)</samp></dt>
  5908. <dd><p>Set target video bitrate in bits/s.
  5909. Note that FFmpeg&rsquo;s b option is expressed in bits/s, while xeve&rsquo;s bitrate is in kilobits/s.
  5910. </p>
  5911. </dd>
  5912. <dt><samp class="option">bf (<em class="emph">bframes</em>)</samp></dt>
  5913. <dd><p>Set the maximum number of B frames (1,3,7,15).
  5914. </p>
  5915. </dd>
  5916. <dt><samp class="option">g (<em class="emph">keyint</em>)</samp></dt>
  5917. <dd><p>Set the GOP size (I-picture period).
  5918. </p>
  5919. </dd>
  5920. <dt><samp class="option">preset (<em class="emph">preset</em>)</samp></dt>
  5921. <dd><p>Set the xeve preset.
  5922. Set the encoder preset value to determine encoding speed [fast, medium, slow, placebo]
  5923. </p>
  5924. </dd>
  5925. <dt><samp class="option">tune (<em class="emph">tune</em>)</samp></dt>
  5926. <dd><p>Set the encoder tune parameter [psnr, zerolatency]
  5927. </p>
  5928. </dd>
  5929. <dt><samp class="option">profile (<em class="emph">profile</em>)</samp></dt>
  5930. <dd><p>Set the encoder profile [0: baseline; 1: main]
  5931. </p>
  5932. </dd>
  5933. <dt><samp class="option">crf (<em class="emph">crf</em>)</samp></dt>
  5934. <dd><p>Set the quality for constant quality mode.
  5935. Constant rate factor &lt;10..49&gt; [default: 32]
  5936. </p>
  5937. </dd>
  5938. <dt><samp class="option">qp (<em class="emph">qp</em>)</samp></dt>
  5939. <dd><p>Set constant quantization rate control method parameter.
  5940. Quantization parameter qp &lt;0..51&gt; [default: 32]
  5941. </p>
  5942. </dd>
  5943. <dt><samp class="option">threads (<em class="emph">threads</em>)</samp></dt>
  5944. <dd><p>Force to use a specific number of threads
  5945. </p>
  5946. </dd>
  5947. </dl>
  5948. <a name="libxvid"></a>
  5949. <h3 class="section">9.23 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>
  5950. <p>Xvid MPEG-4 Part 2 encoder wrapper.
  5951. </p>
  5952. <p>This encoder requires the presence of the libxvidcore headers and library
  5953. during configuration. You need to explicitly configure the build with
  5954. <code class="code">--enable-libxvid --enable-gpl</code>.
  5955. </p>
  5956. <p>The native <code class="code">mpeg4</code> encoder supports the MPEG-4 Part 2 format, so
  5957. users can encode to this format without this library.
  5958. </p>
  5959. <a name="Options-45"></a>
  5960. <h4 class="subsection">9.23.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-45" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-45" aria-hidden="true">TOC</a></span></h4>
  5961. <p>The following options are supported by the libxvid wrapper. Some of
  5962. the following options are listed but are not documented, and
  5963. correspond to shared codec options. See <a class="ref" href="#codec_002doptions">the Codec
  5964. Options chapter</a> for their documentation. The other shared options
  5965. which are not listed have no effect for the libxvid encoder.
  5966. </p>
  5967. <dl class="table">
  5968. <dt><samp class="option">b</samp></dt>
  5969. <dt><samp class="option">g</samp></dt>
  5970. <dt><samp class="option">qmin</samp></dt>
  5971. <dt><samp class="option">qmax</samp></dt>
  5972. <dt><samp class="option">mpeg_quant</samp></dt>
  5973. <dt><samp class="option">threads</samp></dt>
  5974. <dt><samp class="option">bf</samp></dt>
  5975. <dt><samp class="option">b_qfactor</samp></dt>
  5976. <dt><samp class="option">b_qoffset</samp></dt>
  5977. <dt><samp class="option">flags</samp></dt>
  5978. <dd><p>Set specific encoding flags. Possible values:
  5979. </p>
  5980. <dl class="table">
  5981. <dt>&lsquo;<samp class="samp">mv4</samp>&rsquo;</dt>
  5982. <dd><p>Use four motion vector by macroblock.
  5983. </p>
  5984. </dd>
  5985. <dt>&lsquo;<samp class="samp">aic</samp>&rsquo;</dt>
  5986. <dd><p>Enable high quality AC prediction.
  5987. </p>
  5988. </dd>
  5989. <dt>&lsquo;<samp class="samp">gray</samp>&rsquo;</dt>
  5990. <dd><p>Only encode grayscale.
  5991. </p>
  5992. </dd>
  5993. <dt>&lsquo;<samp class="samp">qpel</samp>&rsquo;</dt>
  5994. <dd><p>Enable quarter-pixel motion compensation.
  5995. </p>
  5996. </dd>
  5997. <dt>&lsquo;<samp class="samp">cgop</samp>&rsquo;</dt>
  5998. <dd><p>Enable closed GOP.
  5999. </p>
  6000. </dd>
  6001. <dt>&lsquo;<samp class="samp">global_header</samp>&rsquo;</dt>
  6002. <dd><p>Place global headers in extradata instead of every keyframe.
  6003. </p>
  6004. </dd>
  6005. </dl>
  6006. </dd>
  6007. <dt><samp class="option">gmc</samp></dt>
  6008. <dd><p>Enable the use of global motion compensation (GMC). Default is 0
  6009. (disabled).
  6010. </p>
  6011. </dd>
  6012. <dt><samp class="option">me_quality</samp></dt>
  6013. <dd><p>Set motion estimation quality level. Possible values in decreasing order of
  6014. speed and increasing order of quality:
  6015. </p>
  6016. <dl class="table">
  6017. <dt>&lsquo;<samp class="samp">0</samp>&rsquo;</dt>
  6018. <dd><p>Use no motion estimation (default).
  6019. </p>
  6020. </dd>
  6021. <dt>&lsquo;<samp class="samp">1, 2</samp>&rsquo;</dt>
  6022. <dd><p>Enable advanced diamond zonal search for 16x16 blocks and half-pixel
  6023. refinement for 16x16 blocks.
  6024. </p>
  6025. </dd>
  6026. <dt>&lsquo;<samp class="samp">3, 4</samp>&rsquo;</dt>
  6027. <dd><p>Enable all of the things described above, plus advanced diamond zonal
  6028. search for 8x8 blocks and half-pixel refinement for 8x8 blocks, also
  6029. enable motion estimation on chroma planes for P and B-frames.
  6030. </p>
  6031. </dd>
  6032. <dt>&lsquo;<samp class="samp">5, 6</samp>&rsquo;</dt>
  6033. <dd><p>Enable all of the things described above, plus extended 16x16 and 8x8
  6034. blocks search.
  6035. </p></dd>
  6036. </dl>
  6037. </dd>
  6038. <dt><samp class="option">mbd</samp></dt>
  6039. <dd><p>Set macroblock decision algorithm. Possible values in the increasing
  6040. order of quality:
  6041. </p>
  6042. <dl class="table">
  6043. <dt>&lsquo;<samp class="samp">simple</samp>&rsquo;</dt>
  6044. <dd><p>Use macroblock comparing function algorithm (default).
  6045. </p>
  6046. </dd>
  6047. <dt>&lsquo;<samp class="samp">bits</samp>&rsquo;</dt>
  6048. <dd><p>Enable rate distortion-based half pixel and quarter pixel refinement for
  6049. 16x16 blocks.
  6050. </p>
  6051. </dd>
  6052. <dt>&lsquo;<samp class="samp">rd</samp>&rsquo;</dt>
  6053. <dd><p>Enable all of the things described above, plus rate distortion-based
  6054. half pixel and quarter pixel refinement for 8x8 blocks, and rate
  6055. distortion-based search using square pattern.
  6056. </p></dd>
  6057. </dl>
  6058. </dd>
  6059. <dt><samp class="option">lumi_aq</samp></dt>
  6060. <dd><p>Enable lumi masking adaptive quantization when set to 1. Default is 0
  6061. (disabled).
  6062. </p>
  6063. </dd>
  6064. <dt><samp class="option">variance_aq</samp></dt>
  6065. <dd><p>Enable variance adaptive quantization when set to 1. Default is 0
  6066. (disabled).
  6067. </p>
  6068. <p>When combined with <samp class="option">lumi_aq</samp>, the resulting quality will not
  6069. be better than any of the two specified individually. In other
  6070. words, the resulting quality will be the worse one of the two
  6071. effects.
  6072. </p>
  6073. </dd>
  6074. <dt><samp class="option">trellis</samp></dt>
  6075. <dd><p>Set rate-distortion optimal quantization.
  6076. </p>
  6077. </dd>
  6078. <dt><samp class="option">ssim</samp></dt>
  6079. <dd><p>Set structural similarity (SSIM) displaying method. Possible values:
  6080. </p>
  6081. <dl class="table">
  6082. <dt>&lsquo;<samp class="samp">off</samp>&rsquo;</dt>
  6083. <dd><p>Disable displaying of SSIM information.
  6084. </p>
  6085. </dd>
  6086. <dt>&lsquo;<samp class="samp">avg</samp>&rsquo;</dt>
  6087. <dd><p>Output average SSIM at the end of encoding to stdout. The format of
  6088. showing the average SSIM is:
  6089. </p>
  6090. <div class="example">
  6091. <pre class="example-preformatted">Average SSIM: %f
  6092. </pre></div>
  6093. <p>For users who are not familiar with C, %f means a float number, or
  6094. a decimal (e.g. 0.939232).
  6095. </p>
  6096. </dd>
  6097. <dt>&lsquo;<samp class="samp">frame</samp>&rsquo;</dt>
  6098. <dd><p>Output both per-frame SSIM data during encoding and average SSIM at
  6099. the end of encoding to stdout. The format of per-frame information
  6100. is:
  6101. </p>
  6102. <div class="example">
  6103. <pre class="example-preformatted"> SSIM: avg: %1.3f min: %1.3f max: %1.3f
  6104. </pre></div>
  6105. <p>For users who are not familiar with C, %1.3f means a float number
  6106. rounded to 3 digits after the dot (e.g. 0.932).
  6107. </p>
  6108. </dd>
  6109. </dl>
  6110. </dd>
  6111. <dt><samp class="option">ssim_acc</samp></dt>
  6112. <dd><p>Set SSIM accuracy. Valid options are integers within the range of
  6113. 0-4, while 0 gives the most accurate result and 4 computes the
  6114. fastest.
  6115. </p>
  6116. </dd>
  6117. </dl>
  6118. <a name="MediaCodec"></a>
  6119. <h3 class="section">9.24 MediaCodec<span class="pull-right"><a class="anchor hidden-xs" href="#MediaCodec" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-MediaCodec" aria-hidden="true">TOC</a></span></h3>
  6120. <p>MediaCodec encoder wrapper enables hardware-accelerated video encoding on
  6121. Android device. It supports H.264, H.265 (HEVC), VP8, VP9, MPEG-4, and AV1
  6122. encoding (whether works or not is device dependent).
  6123. </p>
  6124. <p>Android provides two sets of APIs: Java MediaCodec and NDK MediaCodec. The
  6125. MediaCodec encoder wrapper supports both. Note that the NDK MediaCodec API
  6126. operates without requiring JVM, but may fail to function outside the JVM
  6127. environment due to dependencies on system framework services, particularly
  6128. after Android 15.
  6129. </p>
  6130. <dl class="table">
  6131. <dt><samp class="option">ndk_codec <var class="var">boolean</var></samp></dt>
  6132. <dd><p>Use the NDK-based MediaCodec API instead of the Java API. Enabled by default
  6133. if <code class="code">av_jni_get_java_vm()</code> return NULL.
  6134. </p>
  6135. </dd>
  6136. <dt><samp class="option">ndk_async <var class="var">boolean</var></samp></dt>
  6137. <dd><p>Use NDK MediaCodec in async mode. Async mode has less overhead than poll in a
  6138. loop in sync mode. The drawback of async mode is AV_CODEC_FLAG_GLOBAL_HEADER
  6139. doesn&rsquo;t work (use extract_extradata bsf when necessary). It doesn&rsquo;t work and
  6140. will be disabled automatically on devices below Android 8.0.
  6141. </p>
  6142. </dd>
  6143. <dt><samp class="option">codec_name <var class="var">string</var></samp></dt>
  6144. <dd><p>A codec type can have multiple implementations on a single device, this option
  6145. specify which backend to use (via MediaCodec createCodecByName API). It&rsquo;s NULL
  6146. by default, and encoder is created by createEncoderByType.
  6147. </p>
  6148. </dd>
  6149. <dt><samp class="option">bitrate_mode <var class="var">integer</var></samp></dt>
  6150. <dd>
  6151. <p>Possible values:
  6152. </p><dl class="table">
  6153. <dt>&lsquo;<samp class="samp">cq</samp>&rsquo;</dt>
  6154. <dd><p>Constant quality mode
  6155. </p></dd>
  6156. <dt>&lsquo;<samp class="samp">vbr</samp>&rsquo;</dt>
  6157. <dd><p>Variable bitrate mode
  6158. </p></dd>
  6159. <dt>&lsquo;<samp class="samp">cbr</samp>&rsquo;</dt>
  6160. <dd><p>Constant bitrate mode
  6161. </p></dd>
  6162. <dt>&lsquo;<samp class="samp">cbr_fd</samp>&rsquo;</dt>
  6163. <dd><p>Constant bitrate mode with frame drops
  6164. </p></dd>
  6165. </dl>
  6166. </dd>
  6167. <dt><samp class="option">pts_as_dts <var class="var">boolean</var></samp></dt>
  6168. <dd><p>Use PTS as DTS. This is a workaround since MediaCodec API doesn&rsquo;t provide
  6169. decoding timestamp. It is enabled automatically if B frame is 0.
  6170. </p>
  6171. </dd>
  6172. <dt><samp class="option">operating_rate <var class="var">integer</var></samp></dt>
  6173. <dd><p>The desired operating rate that the codec will need to operate at, zero for
  6174. unspecified. This is used for cases like high-speed/slow-motion video capture,
  6175. where the video encoder format contains the target playback rate (e.g. 30fps),
  6176. but the component must be able to handle the high operating capture rate (e.g.
  6177. 240fps). This rate will be used by codec for resource planning and setting the
  6178. operating points.
  6179. </p>
  6180. </dd>
  6181. <dt><samp class="option">qp_i_min <var class="var">integer</var></samp></dt>
  6182. <dd><p>Minimum quantization parameter for I frame.
  6183. </p></dd>
  6184. <dt><samp class="option">qp_p_min <var class="var">integer</var></samp></dt>
  6185. <dd><p>Minimum quantization parameter for P frame.
  6186. </p></dd>
  6187. <dt><samp class="option">qp_b_min <var class="var">integer</var></samp></dt>
  6188. <dd><p>Minimum quantization parameter for B frame.
  6189. </p></dd>
  6190. <dt><samp class="option">qp_i_max <var class="var">integer</var></samp></dt>
  6191. <dd><p>Maximum quantization parameter for I frame.
  6192. </p></dd>
  6193. <dt><samp class="option">qp_p_max <var class="var">integer</var></samp></dt>
  6194. <dd><p>Maximum quantization parameter for P frame.
  6195. </p></dd>
  6196. <dt><samp class="option">qp_b_max <var class="var">integer</var></samp></dt>
  6197. <dd><p>Maximum quantization parameter for B frame.
  6198. </p>
  6199. </dd>
  6200. </dl>
  6201. <a name="MediaFoundation"></a>
  6202. <h3 class="section">9.25 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>
  6203. <p>The following wrappers for encoders in the MediaFoundation framework are
  6204. available:
  6205. </p>
  6206. <ul class="itemize mark-bullet">
  6207. <li>h264_mf
  6208. </li><li>hevc_mf
  6209. </li><li>av1_mf
  6210. </li></ul>
  6211. <p>These support both software and hardware encoding.
  6212. </p>
  6213. <p>Video encoders can take input in either of nv12 or yuv420p form
  6214. (some encoders support both, some support only either - in practice,
  6215. nv12 is the safer choice, especially among HW encoders).
  6216. </p>
  6217. <p>Hardware-accelerated encoding requires D3D11, including hardware
  6218. scaling capabilities through the scale_d3d11 filter.
  6219. </p>
  6220. <p>To list all available options for the MediaFoundation encoders, use:
  6221. <code class="command">ffmpeg -h encoder=&lt;encoder&gt;</code> e.g. <code class="command">ffmpeg -h encoder=h264_mf</code>
  6222. </p>
  6223. <a name="Options-46"></a>
  6224. <h4 class="subsection">9.25.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-46" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-46" aria-hidden="true">TOC</a></span></h4>
  6225. <dl class="table">
  6226. <dt><samp class="option">rate_control</samp></dt>
  6227. <dd><p>Select rate control mode. Available modes:
  6228. </p>
  6229. <dl class="table">
  6230. <dt>&lsquo;<samp class="samp">default</samp>&rsquo;</dt>
  6231. <dd><p>Default mode
  6232. </p></dd>
  6233. <dt>&lsquo;<samp class="samp">cbr</samp>&rsquo;</dt>
  6234. <dd><p>CBR mode
  6235. </p></dd>
  6236. <dt>&lsquo;<samp class="samp">pc_vbr</samp>&rsquo;</dt>
  6237. <dd><p>Peak constrained VBR mode
  6238. </p></dd>
  6239. <dt>&lsquo;<samp class="samp">u_vbr</samp>&rsquo;</dt>
  6240. <dd><p>Unconstrained VBR mode
  6241. </p></dd>
  6242. <dt>&lsquo;<samp class="samp">quality</samp>&rsquo;</dt>
  6243. <dd><p>Quality mode
  6244. </p></dd>
  6245. <dt>&lsquo;<samp class="samp">ld_vbr</samp>&rsquo;</dt>
  6246. <dd><p>Low delay VBR mode (requires Windows 8+)
  6247. </p></dd>
  6248. <dt>&lsquo;<samp class="samp">g_vbr</samp>&rsquo;</dt>
  6249. <dd><p>Global VBR mode (requires Windows 8+)
  6250. </p></dd>
  6251. <dt>&lsquo;<samp class="samp">gld_vbr</samp>&rsquo;</dt>
  6252. <dd><p>Global low delay VBR mode (requires Windows 8+)
  6253. </p></dd>
  6254. </dl>
  6255. </dd>
  6256. <dt><samp class="option">scenario</samp></dt>
  6257. <dd><p>Select usage scenario. Available scenarios:
  6258. </p>
  6259. <dl class="table">
  6260. <dt>&lsquo;<samp class="samp">default</samp>&rsquo;</dt>
  6261. <dd><p>Default scenario
  6262. </p></dd>
  6263. <dt>&lsquo;<samp class="samp">display_remoting</samp>&rsquo;</dt>
  6264. <dd><p>Display remoting scenario
  6265. </p></dd>
  6266. <dt>&lsquo;<samp class="samp">video_conference</samp>&rsquo;</dt>
  6267. <dd><p>Video conference scenario
  6268. </p></dd>
  6269. <dt>&lsquo;<samp class="samp">archive</samp>&rsquo;</dt>
  6270. <dd><p>Archive scenario
  6271. </p></dd>
  6272. <dt>&lsquo;<samp class="samp">live_streaming</samp>&rsquo;</dt>
  6273. <dd><p>Live streaming scenario
  6274. </p></dd>
  6275. <dt>&lsquo;<samp class="samp">camera_record</samp>&rsquo;</dt>
  6276. <dd><p>Camera record scenario
  6277. </p></dd>
  6278. <dt>&lsquo;<samp class="samp">display_remoting_with_feature_map</samp>&rsquo;</dt>
  6279. <dd><p>Display remoting with feature map scenario
  6280. </p></dd>
  6281. </dl>
  6282. </dd>
  6283. <dt><samp class="option">quality</samp></dt>
  6284. <dd><p>Set encoding quality (0-100). -1 means default quality.
  6285. </p>
  6286. </dd>
  6287. <dt><samp class="option">hw_encoding</samp></dt>
  6288. <dd><p>Force hardware encoding (0-1). Default is 0 (disabled).
  6289. </p>
  6290. </dd>
  6291. </dl>
  6292. <a name="Examples-2"></a>
  6293. <h4 class="subsection">9.25.2 Examples<span class="pull-right"><a class="anchor hidden-xs" href="#Examples-2" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Examples-2" aria-hidden="true">TOC</a></span></h4>
  6294. <p>Hardware encoding:
  6295. </p><div class="example">
  6296. <pre class="example-preformatted">ffmpeg -i input.mp4 -c:v h264_mf -hw_encoding 1 output.mp4
  6297. </pre></div>
  6298. <p>Hardware-accelerated decoding with hardware encoding:
  6299. </p><div class="example">
  6300. <pre class="example-preformatted">ffmpeg -hwaccel d3d11va -i input.mp4 -c:v h264_mf -hw_encoding 1 output.mp4
  6301. </pre></div>
  6302. <p>Hardware-accelerated decoding, HW scaling and encoding with quality setting:
  6303. </p><div class="example">
  6304. <pre class="example-preformatted">ffmpeg -hwaccel d3d11va -hwaccel_output_format d3d11 -i input.mp4 -vf scale_d3d11=1920:1080 -c:v hevc_mf -hw_encoding 1 -quality 80 output.mp4
  6305. </pre></div>
  6306. <a name="Microsoft-RLE"></a>
  6307. <h3 class="section">9.26 Microsoft RLE<span class="pull-right"><a class="anchor hidden-xs" href="#Microsoft-RLE" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Microsoft-RLE" aria-hidden="true">TOC</a></span></h3>
  6308. <p>Microsoft RLE aka MSRLE encoder.
  6309. Only 8-bit palette mode supported.
  6310. Compatible with Windows 3.1 and Windows 95.
  6311. </p>
  6312. <a name="Options-47"></a>
  6313. <h4 class="subsection">9.26.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-47" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-47" aria-hidden="true">TOC</a></span></h4>
  6314. <dl class="table">
  6315. <dt><samp class="option">g <var class="var">integer</var></samp></dt>
  6316. <dd><p>Keyframe interval.
  6317. A keyframe is inserted at least every <code class="code">-g</code> frames, sometimes sooner.
  6318. </p></dd>
  6319. </dl>
  6320. <a name="mpeg2"></a>
  6321. <h3 class="section">9.27 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>
  6322. <p>MPEG-2 video encoder.
  6323. </p>
  6324. <a name="Options-48"></a>
  6325. <h4 class="subsection">9.27.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-48" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-48" aria-hidden="true">TOC</a></span></h4>
  6326. <dl class="table">
  6327. <dt><samp class="option">profile</samp></dt>
  6328. <dd><p>Select the mpeg2 profile to encode:
  6329. </p>
  6330. <dl class="table">
  6331. <dt>&lsquo;<samp class="samp">422</samp>&rsquo;</dt>
  6332. <dt>&lsquo;<samp class="samp">high</samp>&rsquo;</dt>
  6333. <dt>&lsquo;<samp class="samp">ss</samp>&rsquo;</dt>
  6334. <dd><p>Spatially Scalable
  6335. </p></dd>
  6336. <dt>&lsquo;<samp class="samp">snr</samp>&rsquo;</dt>
  6337. <dd><p>SNR Scalable
  6338. </p></dd>
  6339. <dt>&lsquo;<samp class="samp">main</samp>&rsquo;</dt>
  6340. <dt>&lsquo;<samp class="samp">simple</samp>&rsquo;</dt>
  6341. </dl>
  6342. </dd>
  6343. <dt><samp class="option">level</samp></dt>
  6344. <dd><p>Select the mpeg2 level to encode:
  6345. </p>
  6346. <dl class="table">
  6347. <dt>&lsquo;<samp class="samp">high</samp>&rsquo;</dt>
  6348. <dt>&lsquo;<samp class="samp">high1440</samp>&rsquo;</dt>
  6349. <dt>&lsquo;<samp class="samp">main</samp>&rsquo;</dt>
  6350. <dt>&lsquo;<samp class="samp">low</samp>&rsquo;</dt>
  6351. </dl>
  6352. </dd>
  6353. <dt><samp class="option">seq_disp_ext <var class="var">integer</var></samp></dt>
  6354. <dd><p>Specifies if the encoder should write a sequence_display_extension to the
  6355. output.
  6356. </p><dl class="table">
  6357. <dt><samp class="option">-1</samp></dt>
  6358. <dt><samp class="option">auto</samp></dt>
  6359. <dd><p>Decide automatically to write it or not (this is the default) by checking if
  6360. the data to be written is different from the default or unspecified values.
  6361. </p></dd>
  6362. <dt><samp class="option">0</samp></dt>
  6363. <dt><samp class="option">never</samp></dt>
  6364. <dd><p>Never write it.
  6365. </p></dd>
  6366. <dt><samp class="option">1</samp></dt>
  6367. <dt><samp class="option">always</samp></dt>
  6368. <dd><p>Always write it.
  6369. </p></dd>
  6370. </dl>
  6371. </dd>
  6372. <dt><samp class="option">video_format <var class="var">integer</var></samp></dt>
  6373. <dd><p>Specifies the video_format written into the sequence display extension
  6374. indicating the source of the video pictures. The default is &lsquo;<samp class="samp">unspecified</samp>&rsquo;,
  6375. can be &lsquo;<samp class="samp">component</samp>&rsquo;, &lsquo;<samp class="samp">pal</samp>&rsquo;, &lsquo;<samp class="samp">ntsc</samp>&rsquo;, &lsquo;<samp class="samp">secam</samp>&rsquo; or &lsquo;<samp class="samp">mac</samp>&rsquo;.
  6376. For maximum compatibility, use &lsquo;<samp class="samp">component</samp>&rsquo;.
  6377. </p></dd>
  6378. <dt><samp class="option">a53cc <var class="var">boolean</var></samp></dt>
  6379. <dd><p>Import closed captions (which must be ATSC compatible format) into output.
  6380. Default is 1 (on).
  6381. </p></dd>
  6382. </dl>
  6383. <a name="png"></a>
  6384. <h3 class="section">9.28 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>
  6385. <p>PNG image encoder.
  6386. </p>
  6387. <a name="Options-49"></a>
  6388. <h4 class="subsection">9.28.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-49" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-49" aria-hidden="true">TOC</a></span></h4>
  6389. <dl class="table">
  6390. <dt><samp class="option">compression_level</samp></dt>
  6391. <dd><p>Sets the compression level, from 0 to 9(default)
  6392. </p></dd>
  6393. </dl>
  6394. <a name="Private-options-1"></a>
  6395. <h4 class="subsection">9.28.2 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>
  6396. <dl class="table">
  6397. <dt><samp class="option">dpi <var class="var">integer</var></samp></dt>
  6398. <dd><p>Set physical density of pixels, in dots per inch, unset by default
  6399. </p></dd>
  6400. <dt><samp class="option">dpm <var class="var">integer</var></samp></dt>
  6401. <dd><p>Set physical density of pixels, in dots per meter, unset by default
  6402. </p></dd>
  6403. <dt><samp class="option">pred <var class="var">method</var></samp></dt>
  6404. <dd><p>Set prediction method (none, sub, up, avg, paeth, mixed), default is paeth
  6405. </p></dd>
  6406. </dl>
  6407. <a name="ProRes"></a>
  6408. <h3 class="section">9.29 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>
  6409. <p>Apple ProRes encoder.
  6410. </p>
  6411. <p>FFmpeg contains 2 ProRes encoders, the prores-aw and prores-ks encoder.
  6412. The used encoder can be chosen with the <code class="code">-vcodec</code> option.
  6413. </p>
  6414. <a name="Private-Options-for-prores_002dks"></a>
  6415. <h4 class="subsection">9.29.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>
  6416. <dl class="table">
  6417. <dt><samp class="option">profile <var class="var">integer</var></samp></dt>
  6418. <dd><p>Select the ProRes profile to encode
  6419. </p><dl class="table">
  6420. <dt>&lsquo;<samp class="samp">proxy</samp>&rsquo;</dt>
  6421. <dt>&lsquo;<samp class="samp">lt</samp>&rsquo;</dt>
  6422. <dt>&lsquo;<samp class="samp">standard</samp>&rsquo;</dt>
  6423. <dt>&lsquo;<samp class="samp">hq</samp>&rsquo;</dt>
  6424. <dt>&lsquo;<samp class="samp">4444</samp>&rsquo;</dt>
  6425. <dt>&lsquo;<samp class="samp">4444xq</samp>&rsquo;</dt>
  6426. </dl>
  6427. </dd>
  6428. <dt><samp class="option">quant_mat <var class="var">integer</var></samp></dt>
  6429. <dd><p>Select quantization matrix.
  6430. </p><dl class="table">
  6431. <dt>&lsquo;<samp class="samp">auto</samp>&rsquo;</dt>
  6432. <dt>&lsquo;<samp class="samp">default</samp>&rsquo;</dt>
  6433. <dt>&lsquo;<samp class="samp">proxy</samp>&rsquo;</dt>
  6434. <dt>&lsquo;<samp class="samp">lt</samp>&rsquo;</dt>
  6435. <dt>&lsquo;<samp class="samp">standard</samp>&rsquo;</dt>
  6436. <dt>&lsquo;<samp class="samp">hq</samp>&rsquo;</dt>
  6437. </dl>
  6438. <p>If set to <var class="var">auto</var>, the matrix matching the profile will be picked.
  6439. If not set, the matrix providing the highest quality, <var class="var">default</var>, will be
  6440. picked.
  6441. </p>
  6442. </dd>
  6443. <dt><samp class="option">bits_per_mb <var class="var">integer</var></samp></dt>
  6444. <dd><p>How many bits to allot for coding one macroblock. Different profiles use
  6445. between 200 and 2400 bits per macroblock, the maximum is 8000.
  6446. </p>
  6447. </dd>
  6448. <dt><samp class="option">mbs_per_slice <var class="var">integer</var></samp></dt>
  6449. <dd><p>Number of macroblocks in each slice (1-8); the default value (8)
  6450. should be good in almost all situations.
  6451. </p>
  6452. </dd>
  6453. <dt><samp class="option">vendor <var class="var">string</var></samp></dt>
  6454. <dd><p>Override the 4-byte vendor ID.
  6455. A custom vendor ID like <var class="var">apl0</var> would claim the stream was produced by
  6456. the Apple encoder.
  6457. </p>
  6458. </dd>
  6459. <dt><samp class="option">alpha_bits <var class="var">integer</var></samp></dt>
  6460. <dd><p>Specify number of bits for alpha component.
  6461. Possible values are <var class="var">0</var>, <var class="var">8</var> and <var class="var">16</var>.
  6462. Use <var class="var">0</var> to disable alpha plane coding.
  6463. </p>
  6464. </dd>
  6465. </dl>
  6466. <a name="Speed-considerations"></a>
  6467. <h4 class="subsection">9.29.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>
  6468. <p>In the default mode of operation the encoder has to honor frame constraints
  6469. (i.e. not produce frames with size bigger than requested) while still making
  6470. output picture as good as possible.
  6471. A frame containing a lot of small details is harder to compress and the encoder
  6472. would spend more time searching for appropriate quantizers for each slice.
  6473. </p>
  6474. <p>Setting a higher <samp class="option">bits_per_mb</samp> limit will improve the speed.
  6475. </p>
  6476. <p>For the fastest encoding speed set the <samp class="option">qscale</samp> parameter (4 is the
  6477. recommended value) and do not set a size constraint.
  6478. </p>
  6479. <a name="QSV-Encoders"></a>
  6480. <h3 class="section">9.30 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>
  6481. <p>The family of Intel QuickSync Video encoders (MPEG-2, H.264, HEVC, JPEG/MJPEG,
  6482. VP9, AV1)
  6483. </p>
  6484. <a name="Ratecontrol-Method"></a>
  6485. <h4 class="subsection">9.30.1 Ratecontrol Method<span class="pull-right"><a class="anchor hidden-xs" href="#Ratecontrol-Method" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Ratecontrol-Method" aria-hidden="true">TOC</a></span></h4>
  6486. <p>The ratecontrol method is selected as follows:
  6487. </p><ul class="itemize mark-bullet">
  6488. <li>When <samp class="option">global_quality</samp> is specified, a quality-based mode is used.
  6489. Specifically this means either
  6490. <ul class="itemize mark-minus">
  6491. <li><var class="var">CQP</var> - constant quantizer scale, when the <samp class="option">qscale</samp> codec flag is
  6492. also set (the <samp class="option">-qscale</samp> ffmpeg option).
  6493. </li><li><var class="var">LA_ICQ</var> - intelligent constant quality with lookahead, when the
  6494. <samp class="option">look_ahead</samp> option is also set.
  6495. </li><li><var class="var">ICQ</var> &ndash; intelligent constant quality otherwise. For the ICQ modes, global
  6496. quality range is 1 to 51, with 1 being the best quality.
  6497. </li></ul>
  6498. </li><li>Otherwise when the desired average bitrate is specified with the <samp class="option">b</samp>
  6499. option, a bitrate-based mode is used.
  6500. <ul class="itemize mark-minus">
  6501. <li><var class="var">LA</var> - VBR with lookahead, when the <samp class="option">look_ahead</samp> option is specified.
  6502. </li><li><var class="var">VCM</var> - video conferencing mode, when the <samp class="option">vcm</samp> option is set.
  6503. </li><li><var class="var">CBR</var> - constant bitrate, when <samp class="option">maxrate</samp> is specified and equal to
  6504. the average bitrate.
  6505. </li><li><var class="var">VBR</var> - variable bitrate, when <samp class="option">maxrate</samp> is specified, but is higher
  6506. than the average bitrate.
  6507. </li><li><var class="var">AVBR</var> - average VBR mode, when <samp class="option">maxrate</samp> is not specified, both
  6508. <samp class="option">avbr_accuracy</samp> and <samp class="option">avbr_convergence</samp> are set to non-zero. This
  6509. mode is available for H264 and HEVC on Windows.
  6510. </li></ul>
  6511. </li><li>Otherwise the default ratecontrol method <var class="var">CQP</var> is used.
  6512. </li></ul>
  6513. <p>Note that depending on your system, a different mode than the one you specified
  6514. may be selected by the encoder. Set the verbosity level to <var class="var">verbose</var> or
  6515. higher to see the actual settings used by the QSV runtime.
  6516. </p>
  6517. <a name="Global-Options-_002d_003e-MSDK-Options"></a>
  6518. <h4 class="subsection">9.30.2 Global Options -&gt; MSDK Options<span class="pull-right"><a class="anchor hidden-xs" href="#Global-Options-_002d_003e-MSDK-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Global-Options-_002d_003e-MSDK-Options" aria-hidden="true">TOC</a></span></h4>
  6519. <p>Additional libavcodec global options are mapped to MSDK options as follows:
  6520. </p>
  6521. <ul class="itemize mark-bullet">
  6522. <li><samp class="option">g/gop_size</samp> -&gt; <samp class="option">GopPicSize</samp>
  6523. </li><li><samp class="option">bf/max_b_frames</samp>+1 -&gt; <samp class="option">GopRefDist</samp>
  6524. </li><li><samp class="option">rc_init_occupancy/rc_initial_buffer_occupancy</samp> -&gt;
  6525. <samp class="option">InitialDelayInKB</samp>
  6526. </li><li><samp class="option">slices</samp> -&gt; <samp class="option">NumSlice</samp>
  6527. </li><li><samp class="option">refs</samp> -&gt; <samp class="option">NumRefFrame</samp>
  6528. </li><li><samp class="option">b_strategy/b_frame_strategy</samp> -&gt; <samp class="option">BRefType</samp>
  6529. </li><li><samp class="option">cgop/CLOSED_GOP</samp> codec flag -&gt; <samp class="option">GopOptFlag</samp>
  6530. </li><li>For the <var class="var">CQP</var> mode, the <samp class="option">i_qfactor/i_qoffset</samp> and
  6531. <samp class="option">b_qfactor/b_qoffset</samp> set the difference between <var class="var">QPP</var> and <var class="var">QPI</var>,
  6532. and <var class="var">QPP</var> and <var class="var">QPB</var> respectively.
  6533. </li><li>Setting the <samp class="option">coder</samp> option to the value <var class="var">vlc</var> will make the H.264
  6534. encoder use CAVLC instead of CABAC.
  6535. </li></ul>
  6536. <a name="Common-Options-1"></a>
  6537. <h4 class="subsection">9.30.3 Common Options<span class="pull-right"><a class="anchor hidden-xs" href="#Common-Options-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Common-Options-1" aria-hidden="true">TOC</a></span></h4>
  6538. <p>Following options are used by all qsv encoders.
  6539. </p>
  6540. <dl class="table">
  6541. <dt><samp class="option"><var class="var">async_depth</var></samp></dt>
  6542. <dd><p>Specifies how many asynchronous operations an application performs
  6543. before the application explicitly synchronizes the result. If zero,
  6544. the value is not specified.
  6545. </p>
  6546. </dd>
  6547. <dt><samp class="option"><var class="var">preset</var></samp></dt>
  6548. <dd><p>This option itemizes a range of choices from veryfast (best speed) to veryslow
  6549. (best quality).
  6550. </p><dl class="table">
  6551. <dt>&lsquo;<samp class="samp">veryfast</samp>&rsquo;</dt>
  6552. <dt>&lsquo;<samp class="samp">faster</samp>&rsquo;</dt>
  6553. <dt>&lsquo;<samp class="samp">fast</samp>&rsquo;</dt>
  6554. <dt>&lsquo;<samp class="samp">medium</samp>&rsquo;</dt>
  6555. <dt>&lsquo;<samp class="samp">slow</samp>&rsquo;</dt>
  6556. <dt>&lsquo;<samp class="samp">slower</samp>&rsquo;</dt>
  6557. <dt>&lsquo;<samp class="samp">veryslow</samp>&rsquo;</dt>
  6558. </dl>
  6559. </dd>
  6560. <dt><samp class="option"><var class="var">forced_idr</var></samp></dt>
  6561. <dd><p>Forcing I frames as IDR frames.
  6562. </p>
  6563. </dd>
  6564. <dt><samp class="option"><var class="var">low_power</var></samp></dt>
  6565. <dd><p>For encoders set this flag to ON to reduce power consumption and GPU usage.
  6566. </p></dd>
  6567. </dl>
  6568. <a name="Runtime-Options"></a>
  6569. <h4 class="subsection">9.30.4 Runtime Options<span class="pull-right"><a class="anchor hidden-xs" href="#Runtime-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Runtime-Options" aria-hidden="true">TOC</a></span></h4>
  6570. <p>Following options can be used during qsv encoding.
  6571. </p>
  6572. <dl class="table">
  6573. <dt><samp class="option"><var class="var">global_quality</var></samp></dt>
  6574. <dt><samp class="option"><var class="var">i_quant_factor</var></samp></dt>
  6575. <dt><samp class="option"><var class="var">i_quant_offset</var></samp></dt>
  6576. <dt><samp class="option"><var class="var">b_quant_factor</var></samp></dt>
  6577. <dt><samp class="option"><var class="var">b_quant_offset</var></samp></dt>
  6578. <dd><p>Supported in h264_qsv and hevc_qsv.
  6579. Change these value to reset qsv codec&rsquo;s qp configuration.
  6580. </p>
  6581. </dd>
  6582. <dt><samp class="option"><var class="var">max_frame_size</var></samp></dt>
  6583. <dd><p>Supported in h264_qsv and hevc_qsv.
  6584. Change this value to reset qsv codec&rsquo;s MaxFrameSize configuration.
  6585. </p>
  6586. </dd>
  6587. <dt><samp class="option"><var class="var">gop_size</var></samp></dt>
  6588. <dd><p>Change this value to reset qsv codec&rsquo;s gop configuration.
  6589. </p>
  6590. </dd>
  6591. <dt><samp class="option"><var class="var">int_ref_type</var></samp></dt>
  6592. <dt><samp class="option"><var class="var">int_ref_cycle_size</var></samp></dt>
  6593. <dt><samp class="option"><var class="var">int_ref_qp_delta</var></samp></dt>
  6594. <dt><samp class="option"><var class="var">int_ref_cycle_dist</var></samp></dt>
  6595. <dd><p>Supported in h264_qsv and hevc_qsv.
  6596. Change these value to reset qsv codec&rsquo;s Intra Refresh configuration.
  6597. </p>
  6598. </dd>
  6599. <dt><samp class="option"><var class="var">qmax</var></samp></dt>
  6600. <dt><samp class="option"><var class="var">qmin</var></samp></dt>
  6601. <dt><samp class="option"><var class="var">max_qp_i</var></samp></dt>
  6602. <dt><samp class="option"><var class="var">min_qp_i</var></samp></dt>
  6603. <dt><samp class="option"><var class="var">max_qp_p</var></samp></dt>
  6604. <dt><samp class="option"><var class="var">min_qp_p</var></samp></dt>
  6605. <dt><samp class="option"><var class="var">max_qp_b</var></samp></dt>
  6606. <dt><samp class="option"><var class="var">min_qp_b</var></samp></dt>
  6607. <dd><p>Supported in h264_qsv.
  6608. Change these value to reset qsv codec&rsquo;s max/min qp configuration.
  6609. </p>
  6610. </dd>
  6611. <dt><samp class="option"><var class="var">low_delay_brc</var></samp></dt>
  6612. <dd><p>Supported in h264_qsv, hevc_qsv and av1_qsv.
  6613. Change this value to reset qsv codec&rsquo;s low_delay_brc configuration.
  6614. </p>
  6615. </dd>
  6616. <dt><samp class="option"><var class="var">framerate</var></samp></dt>
  6617. <dd><p>Change this value to reset qsv codec&rsquo;s framerate configuration.
  6618. </p>
  6619. </dd>
  6620. <dt><samp class="option"><var class="var">bit_rate</var></samp></dt>
  6621. <dt><samp class="option"><var class="var">rc_buffer_size</var></samp></dt>
  6622. <dt><samp class="option"><var class="var">rc_initial_buffer_occupancy</var></samp></dt>
  6623. <dt><samp class="option"><var class="var">rc_max_rate</var></samp></dt>
  6624. <dd><p>Change these value to reset qsv codec&rsquo;s bitrate control configuration.
  6625. </p>
  6626. </dd>
  6627. <dt><samp class="option"><var class="var">pic_timing_sei</var></samp></dt>
  6628. <dd><p>Supported in h264_qsv and hevc_qsv.
  6629. Change this value to reset qsv codec&rsquo;s pic_timing_sei configuration.
  6630. </p>
  6631. </dd>
  6632. <dt><samp class="option"><var class="var">qsv_params</var></samp></dt>
  6633. <dd><p>Set QSV encoder parameters as a colon-separated list of key-value pairs.
  6634. </p>
  6635. <p>The <samp class="option">qsv_params</samp> should be formatted as <code class="code">key1=value1:key2=value2:...</code>.
  6636. </p>
  6637. <p>These parameters are passed directly to the underlying Intel Quick Sync Video (QSV) encoder using the MFXSetParameter function.
  6638. </p>
  6639. <p>Example:
  6640. </p><div class="example">
  6641. <pre class="example-preformatted">ffmpeg -i input.mp4 -c:v h264_qsv -qsv_params &quot;CodingOption1=1:CodingOption2=2&quot; output.mp4
  6642. </pre></div>
  6643. <p>This option allows fine-grained control over various encoder-specific settings provided by the QSV encoder.
  6644. </p></dd>
  6645. </dl>
  6646. <a name="H264-options"></a>
  6647. <h4 class="subsection">9.30.5 H264 options<span class="pull-right"><a class="anchor hidden-xs" href="#H264-options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-H264-options" aria-hidden="true">TOC</a></span></h4>
  6648. <p>These options are used by h264_qsv
  6649. </p>
  6650. <dl class="table">
  6651. <dt><samp class="option"><var class="var">extbrc</var></samp></dt>
  6652. <dd><p>Extended bitrate control.
  6653. </p>
  6654. </dd>
  6655. <dt><samp class="option"><var class="var">recovery_point_sei</var></samp></dt>
  6656. <dd><p>Set this flag to insert the recovery point SEI message at the beginning of every
  6657. intra refresh cycle.
  6658. </p>
  6659. </dd>
  6660. <dt><samp class="option"><var class="var">rdo</var></samp></dt>
  6661. <dd><p>Enable rate distortion optimization.
  6662. </p>
  6663. </dd>
  6664. <dt><samp class="option"><var class="var">max_frame_size</var></samp></dt>
  6665. <dd><p>Maximum encoded frame size in bytes.
  6666. </p>
  6667. </dd>
  6668. <dt><samp class="option"><var class="var">max_frame_size_i</var></samp></dt>
  6669. <dd><p>Maximum encoded frame size for I frames in bytes. If this value is set as larger
  6670. than zero, then for I frames the value set by max_frame_size is ignored.
  6671. </p>
  6672. </dd>
  6673. <dt><samp class="option"><var class="var">max_frame_size_p</var></samp></dt>
  6674. <dd><p>Maximum encoded frame size for P frames in bytes. If this value is set as larger
  6675. than zero, then for P frames the value set by max_frame_size is ignored.
  6676. </p>
  6677. </dd>
  6678. <dt><samp class="option"><var class="var">max_slice_size</var></samp></dt>
  6679. <dd><p>Maximum encoded slice size in bytes.
  6680. </p>
  6681. </dd>
  6682. <dt><samp class="option"><var class="var">bitrate_limit</var></samp></dt>
  6683. <dd><p>Toggle bitrate limitations.
  6684. Modifies bitrate to be in the range imposed by the QSV encoder. Setting this
  6685. flag off may lead to violation of HRD conformance. Mind that specifying bitrate
  6686. below the QSV encoder range might significantly affect quality. If on this
  6687. option takes effect in non CQP modes: if bitrate is not in the range imposed
  6688. by the QSV encoder, it will be changed to be in the range.
  6689. </p>
  6690. </dd>
  6691. <dt><samp class="option"><var class="var">mbbrc</var></samp></dt>
  6692. <dd><p>Setting this flag enables macroblock level bitrate control that generally
  6693. improves subjective visual quality. Enabling this flag may have negative impact
  6694. on performance and objective visual quality metric.
  6695. </p>
  6696. </dd>
  6697. <dt><samp class="option"><var class="var">low_delay_brc</var></samp></dt>
  6698. <dd><p>Setting this flag turns on or off LowDelayBRC feature in qsv plugin, which provides
  6699. more accurate bitrate control to minimize the variance of bitstream size frame
  6700. by frame. Value: -1-default 0-off 1-on
  6701. </p>
  6702. </dd>
  6703. <dt><samp class="option"><var class="var">adaptive_i</var></samp></dt>
  6704. <dd><p>This flag controls insertion of I frames by the QSV encoder. Turn ON this flag
  6705. to allow changing of frame type from P and B to I.
  6706. </p>
  6707. </dd>
  6708. <dt><samp class="option"><var class="var">adaptive_b</var></samp></dt>
  6709. <dd><p>This flag controls changing of frame type from B to P.
  6710. </p>
  6711. </dd>
  6712. <dt><samp class="option"><var class="var">p_strategy</var></samp></dt>
  6713. <dd><p>Enable P-pyramid: 0-default 1-simple 2-pyramid(bf need to be set to 0).
  6714. </p>
  6715. </dd>
  6716. <dt><samp class="option"><var class="var">b_strategy</var></samp></dt>
  6717. <dd><p>This option controls usage of B frames as reference.
  6718. </p>
  6719. </dd>
  6720. <dt><samp class="option"><var class="var">dblk_idc</var></samp></dt>
  6721. <dd><p>This option disable deblocking. It has value in range 0~2.
  6722. </p>
  6723. </dd>
  6724. <dt><samp class="option"><var class="var">cavlc</var></samp></dt>
  6725. <dd><p>If set, CAVLC is used; if unset, CABAC is used for encoding.
  6726. </p>
  6727. </dd>
  6728. <dt><samp class="option"><var class="var">vcm</var></samp></dt>
  6729. <dd><p>Video conferencing mode, please see ratecontrol method.
  6730. </p>
  6731. </dd>
  6732. <dt><samp class="option"><var class="var">idr_interval</var></samp></dt>
  6733. <dd><p>Distance (in I-frames) between IDR frames.
  6734. </p>
  6735. </dd>
  6736. <dt><samp class="option"><var class="var">pic_timing_sei</var></samp></dt>
  6737. <dd><p>Insert picture timing SEI with pic_struct_syntax element.
  6738. </p>
  6739. </dd>
  6740. <dt><samp class="option"><var class="var">single_sei_nal_unit</var></samp></dt>
  6741. <dd><p>Put all the SEI messages into one NALU.
  6742. </p>
  6743. </dd>
  6744. <dt><samp class="option"><var class="var">max_dec_frame_buffering</var></samp></dt>
  6745. <dd><p>Maximum number of frames buffered in the DPB.
  6746. </p>
  6747. </dd>
  6748. <dt><samp class="option"><var class="var">look_ahead</var></samp></dt>
  6749. <dd><p>Use VBR algorithm with look ahead.
  6750. </p>
  6751. </dd>
  6752. <dt><samp class="option"><var class="var">look_ahead_depth</var></samp></dt>
  6753. <dd><p>Depth of look ahead in number frames.
  6754. </p>
  6755. </dd>
  6756. <dt><samp class="option"><var class="var">look_ahead_downsampling</var></samp></dt>
  6757. <dd><p>Downscaling factor for the frames saved for the lookahead analysis.
  6758. </p><dl class="table">
  6759. <dt>&lsquo;<samp class="samp">unknown</samp>&rsquo;</dt>
  6760. <dt>&lsquo;<samp class="samp">auto</samp>&rsquo;</dt>
  6761. <dt>&lsquo;<samp class="samp">off</samp>&rsquo;</dt>
  6762. <dt>&lsquo;<samp class="samp">2x</samp>&rsquo;</dt>
  6763. <dt>&lsquo;<samp class="samp">4x</samp>&rsquo;</dt>
  6764. </dl>
  6765. </dd>
  6766. <dt><samp class="option"><var class="var">int_ref_type</var></samp></dt>
  6767. <dd><p>Specifies intra refresh type. The major goal of intra refresh is improvement of
  6768. error resilience without significant impact on encoded bitstream size caused by
  6769. I frames. The SDK encoder achieves this by encoding part of each frame in
  6770. refresh cycle using intra MBs. <var class="var">none</var> means no refresh. <var class="var">vertical</var> means
  6771. vertical refresh, by column of MBs. <var class="var">horizontal</var> means horizontal refresh,
  6772. by rows of MBs. <var class="var">slice</var> means horizontal refresh by slices without
  6773. overlapping. In case of <var class="var">slice</var>, in_ref_cycle_size is ignored. To enable
  6774. intra refresh, B frame should be set to 0.
  6775. </p>
  6776. </dd>
  6777. <dt><samp class="option"><var class="var">int_ref_cycle_size</var></samp></dt>
  6778. <dd><p>Specifies number of pictures within refresh cycle starting from 2. 0 and 1 are
  6779. invalid values.
  6780. </p>
  6781. </dd>
  6782. <dt><samp class="option"><var class="var">int_ref_qp_delta</var></samp></dt>
  6783. <dd><p>Specifies QP difference for inserted intra MBs. This is signed value in
  6784. [-51, 51] range if target encoding bit-depth for luma samples is 8 and this
  6785. range is [-63, 63] for 10 bit-depth or [-75, 75] for 12 bit-depth respectively.
  6786. </p>
  6787. </dd>
  6788. <dt><samp class="option"><var class="var">int_ref_cycle_dist</var></samp></dt>
  6789. <dd><p>Distance between the beginnings of the intra-refresh cycles in frames.
  6790. </p>
  6791. </dd>
  6792. <dt><samp class="option"><var class="var">profile</var></samp></dt>
  6793. <dd><dl class="table">
  6794. <dt>&lsquo;<samp class="samp">unknown</samp>&rsquo;</dt>
  6795. <dt>&lsquo;<samp class="samp">baseline</samp>&rsquo;</dt>
  6796. <dt>&lsquo;<samp class="samp">main</samp>&rsquo;</dt>
  6797. <dt>&lsquo;<samp class="samp">high</samp>&rsquo;</dt>
  6798. </dl>
  6799. </dd>
  6800. <dt><samp class="option"><var class="var">a53cc</var></samp></dt>
  6801. <dd><p>Use A53 Closed Captions (if available).
  6802. </p>
  6803. </dd>
  6804. <dt><samp class="option"><var class="var">aud</var></samp></dt>
  6805. <dd><p>Insert the Access Unit Delimiter NAL.
  6806. </p>
  6807. </dd>
  6808. <dt><samp class="option"><var class="var">mfmode</var></samp></dt>
  6809. <dd><p>Multi-Frame Mode.
  6810. </p><dl class="table">
  6811. <dt>&lsquo;<samp class="samp">off</samp>&rsquo;</dt>
  6812. <dt>&lsquo;<samp class="samp">auto</samp>&rsquo;</dt>
  6813. </dl>
  6814. </dd>
  6815. <dt><samp class="option"><var class="var">repeat_pps</var></samp></dt>
  6816. <dd><p>Repeat pps for every frame.
  6817. </p>
  6818. </dd>
  6819. <dt><samp class="option"><var class="var">max_qp_i</var></samp></dt>
  6820. <dd><p>Maximum video quantizer scale for I frame.
  6821. </p>
  6822. </dd>
  6823. <dt><samp class="option"><var class="var">min_qp_i</var></samp></dt>
  6824. <dd><p>Minimum video quantizer scale for I frame.
  6825. </p>
  6826. </dd>
  6827. <dt><samp class="option"><var class="var">max_qp_p</var></samp></dt>
  6828. <dd><p>Maximum video quantizer scale for P frame.
  6829. </p>
  6830. </dd>
  6831. <dt><samp class="option"><var class="var">min_qp_p</var></samp></dt>
  6832. <dd><p>Minimum video quantizer scale for P frame.
  6833. </p>
  6834. </dd>
  6835. <dt><samp class="option"><var class="var">max_qp_b</var></samp></dt>
  6836. <dd><p>Maximum video quantizer scale for B frame.
  6837. </p>
  6838. </dd>
  6839. <dt><samp class="option"><var class="var">min_qp_b</var></samp></dt>
  6840. <dd><p>Minimum video quantizer scale for B frame.
  6841. </p>
  6842. </dd>
  6843. <dt><samp class="option"><var class="var">scenario</var></samp></dt>
  6844. <dd><p>Provides a hint to encoder about the scenario for the encoding session.
  6845. </p><dl class="table">
  6846. <dt>&lsquo;<samp class="samp">unknown</samp>&rsquo;</dt>
  6847. <dt>&lsquo;<samp class="samp">displayremoting</samp>&rsquo;</dt>
  6848. <dt>&lsquo;<samp class="samp">videoconference</samp>&rsquo;</dt>
  6849. <dt>&lsquo;<samp class="samp">archive</samp>&rsquo;</dt>
  6850. <dt>&lsquo;<samp class="samp">livestreaming</samp>&rsquo;</dt>
  6851. <dt>&lsquo;<samp class="samp">cameracapture</samp>&rsquo;</dt>
  6852. <dt>&lsquo;<samp class="samp">videosurveillance</samp>&rsquo;</dt>
  6853. <dt>&lsquo;<samp class="samp">gamestreaming</samp>&rsquo;</dt>
  6854. <dt>&lsquo;<samp class="samp">remotegaming</samp>&rsquo;</dt>
  6855. </dl>
  6856. </dd>
  6857. <dt><samp class="option"><var class="var">avbr_accuracy</var></samp></dt>
  6858. <dd><p>Accuracy of the AVBR ratecontrol (unit of tenth of percent).
  6859. </p>
  6860. </dd>
  6861. <dt><samp class="option"><var class="var">avbr_convergence</var></samp></dt>
  6862. <dd><p>Convergence of the AVBR ratecontrol (unit of 100 frames)
  6863. </p>
  6864. <p>The parameters <var class="var">avbr_accuracy</var> and <var class="var">avbr_convergence</var> are for the
  6865. average variable bitrate control (AVBR) algorithm.
  6866. The algorithm focuses on overall encoding quality while meeting the specified
  6867. bitrate, <var class="var">target_bitrate</var>, within the accuracy range <var class="var">avbr_accuracy</var>,
  6868. after a <var class="var">avbr_Convergence</var> period. This method does not follow HRD and the
  6869. instant bitrate is not capped or padded.
  6870. </p>
  6871. </dd>
  6872. <dt><samp class="option"><var class="var">skip_frame</var></samp></dt>
  6873. <dd><p>Use per-frame metadata &quot;qsv_skip_frame&quot; to skip frame when encoding. This option
  6874. defines the usage of this metadata.
  6875. </p><dl class="table">
  6876. <dt>&lsquo;<samp class="samp">no_skip</samp>&rsquo;</dt>
  6877. <dd><p>Frame skipping is disabled.
  6878. </p></dd>
  6879. <dt>&lsquo;<samp class="samp">insert_dummy</samp>&rsquo;</dt>
  6880. <dd><p>Encoder inserts into bitstream frame where all macroblocks are encoded as
  6881. skipped.
  6882. </p></dd>
  6883. <dt>&lsquo;<samp class="samp">insert_nothing</samp>&rsquo;</dt>
  6884. <dd><p>Similar to insert_dummy, but encoder inserts nothing into bitstream. The skipped
  6885. frames are still used in brc. For example, gop still include skipped frames, and
  6886. the frames after skipped frames will be larger in size.
  6887. </p></dd>
  6888. <dt>&lsquo;<samp class="samp">brc_only</samp>&rsquo;</dt>
  6889. <dd><p>skip_frame metadata indicates the number of missed frames before the current
  6890. frame.
  6891. </p></dd>
  6892. </dl>
  6893. </dd>
  6894. </dl>
  6895. <a name="HEVC-Options-1"></a>
  6896. <h4 class="subsection">9.30.6 HEVC Options<span class="pull-right"><a class="anchor hidden-xs" href="#HEVC-Options-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-HEVC-Options-1" aria-hidden="true">TOC</a></span></h4>
  6897. <p>These options are used by hevc_qsv
  6898. </p>
  6899. <dl class="table">
  6900. <dt><samp class="option"><var class="var">extbrc</var></samp></dt>
  6901. <dd><p>Extended bitrate control.
  6902. </p>
  6903. </dd>
  6904. <dt><samp class="option"><var class="var">recovery_point_sei</var></samp></dt>
  6905. <dd><p>Set this flag to insert the recovery point SEI message at the beginning of every
  6906. intra refresh cycle.
  6907. </p>
  6908. </dd>
  6909. <dt><samp class="option"><var class="var">rdo</var></samp></dt>
  6910. <dd><p>Enable rate distortion optimization.
  6911. </p>
  6912. </dd>
  6913. <dt><samp class="option"><var class="var">max_frame_size</var></samp></dt>
  6914. <dd><p>Maximum encoded frame size in bytes.
  6915. </p>
  6916. </dd>
  6917. <dt><samp class="option"><var class="var">max_frame_size_i</var></samp></dt>
  6918. <dd><p>Maximum encoded frame size for I frames in bytes. If this value is set as larger
  6919. than zero, then for I frames the value set by max_frame_size is ignored.
  6920. </p>
  6921. </dd>
  6922. <dt><samp class="option"><var class="var">max_frame_size_p</var></samp></dt>
  6923. <dd><p>Maximum encoded frame size for P frames in bytes. If this value is set as larger
  6924. than zero, then for P frames the value set by max_frame_size is ignored.
  6925. </p>
  6926. </dd>
  6927. <dt><samp class="option"><var class="var">max_slice_size</var></samp></dt>
  6928. <dd><p>Maximum encoded slice size in bytes.
  6929. </p>
  6930. </dd>
  6931. <dt><samp class="option"><var class="var">mbbrc</var></samp></dt>
  6932. <dd><p>Setting this flag enables macroblock level bitrate control that generally
  6933. improves subjective visual quality. Enabling this flag may have negative impact
  6934. on performance and objective visual quality metric.
  6935. </p>
  6936. </dd>
  6937. <dt><samp class="option"><var class="var">low_delay_brc</var></samp></dt>
  6938. <dd><p>Setting this flag turns on or off LowDelayBRC feature in qsv plugin, which provides
  6939. more accurate bitrate control to minimize the variance of bitstream size frame
  6940. by frame. Value: -1-default 0-off 1-on
  6941. </p>
  6942. </dd>
  6943. <dt><samp class="option"><var class="var">adaptive_i</var></samp></dt>
  6944. <dd><p>This flag controls insertion of I frames by the QSV encoder. Turn ON this flag
  6945. to allow changing of frame type from P and B to I.
  6946. </p>
  6947. </dd>
  6948. <dt><samp class="option"><var class="var">adaptive_b</var></samp></dt>
  6949. <dd><p>This flag controls changing of frame type from B to P.
  6950. </p>
  6951. </dd>
  6952. <dt><samp class="option"><var class="var">p_strategy</var></samp></dt>
  6953. <dd><p>Enable P-pyramid: 0-default 1-simple 2-pyramid(bf need to be set to 0).
  6954. </p>
  6955. </dd>
  6956. <dt><samp class="option"><var class="var">b_strategy</var></samp></dt>
  6957. <dd><p>This option controls usage of B frames as reference.
  6958. </p>
  6959. </dd>
  6960. <dt><samp class="option"><var class="var">dblk_idc</var></samp></dt>
  6961. <dd><p>This option disable deblocking. It has value in range 0~2.
  6962. </p>
  6963. </dd>
  6964. <dt><samp class="option"><var class="var">idr_interval</var></samp></dt>
  6965. <dd><p>Distance (in I-frames) between IDR frames.
  6966. </p><dl class="table">
  6967. <dt>&lsquo;<samp class="samp">begin_only</samp>&rsquo;</dt>
  6968. <dd><p>Output an IDR-frame only at the beginning of the stream.
  6969. </p></dd>
  6970. </dl>
  6971. </dd>
  6972. <dt><samp class="option"><var class="var">load_plugin</var></samp></dt>
  6973. <dd><p>A user plugin to load in an internal session.
  6974. </p><dl class="table">
  6975. <dt>&lsquo;<samp class="samp">none</samp>&rsquo;</dt>
  6976. <dt>&lsquo;<samp class="samp">hevc_sw</samp>&rsquo;</dt>
  6977. <dt>&lsquo;<samp class="samp">hevc_hw</samp>&rsquo;</dt>
  6978. </dl>
  6979. </dd>
  6980. <dt><samp class="option"><var class="var">load_plugins</var></samp></dt>
  6981. <dd><p>A :-separate list of hexadecimal plugin UIDs to load in
  6982. an internal session.
  6983. </p>
  6984. </dd>
  6985. <dt><samp class="option"><var class="var">look_ahead_depth</var></samp></dt>
  6986. <dd><p>Depth of look ahead in number frames, available when extbrc option is enabled.
  6987. </p>
  6988. </dd>
  6989. <dt><samp class="option"><var class="var">profile</var></samp></dt>
  6990. <dd><p>Set the encoding profile (scc requires libmfx &gt;= 1.32).
  6991. </p>
  6992. <dl class="table">
  6993. <dt>&lsquo;<samp class="samp">unknown</samp>&rsquo;</dt>
  6994. <dt>&lsquo;<samp class="samp">main</samp>&rsquo;</dt>
  6995. <dt>&lsquo;<samp class="samp">main10</samp>&rsquo;</dt>
  6996. <dt>&lsquo;<samp class="samp">mainsp</samp>&rsquo;</dt>
  6997. <dt>&lsquo;<samp class="samp">rext</samp>&rsquo;</dt>
  6998. <dt>&lsquo;<samp class="samp">scc</samp>&rsquo;</dt>
  6999. </dl>
  7000. </dd>
  7001. <dt><samp class="option"><var class="var">tier</var></samp></dt>
  7002. <dd><p>Set the encoding tier (only level &gt;= 4 can support high tier).
  7003. This option only takes effect when the level option is specified.
  7004. </p>
  7005. <dl class="table">
  7006. <dt>&lsquo;<samp class="samp">main</samp>&rsquo;</dt>
  7007. <dt>&lsquo;<samp class="samp">high</samp>&rsquo;</dt>
  7008. </dl>
  7009. </dd>
  7010. <dt><samp class="option"><var class="var">gpb</var></samp></dt>
  7011. <dd><p>1: GPB (generalized P/B frame)
  7012. </p>
  7013. <p>0: regular P frame.
  7014. </p>
  7015. </dd>
  7016. <dt><samp class="option"><var class="var">tile_cols</var></samp></dt>
  7017. <dd><p>Number of columns for tiled encoding.
  7018. </p>
  7019. </dd>
  7020. <dt><samp class="option"><var class="var">tile_rows</var></samp></dt>
  7021. <dd><p>Number of rows for tiled encoding.
  7022. </p>
  7023. </dd>
  7024. <dt><samp class="option"><var class="var">aud</var></samp></dt>
  7025. <dd><p>Insert the Access Unit Delimiter NAL.
  7026. </p>
  7027. </dd>
  7028. <dt><samp class="option"><var class="var">pic_timing_sei</var></samp></dt>
  7029. <dd><p>Insert picture timing SEI with pic_struct_syntax element.
  7030. </p>
  7031. </dd>
  7032. <dt><samp class="option"><var class="var">transform_skip</var></samp></dt>
  7033. <dd><p>Turn this option ON to enable transformskip. It is supported on platform equal
  7034. or newer than ICL.
  7035. </p>
  7036. </dd>
  7037. <dt><samp class="option"><var class="var">int_ref_type</var></samp></dt>
  7038. <dd><p>Specifies intra refresh type. The major goal of intra refresh is improvement of
  7039. error resilience without significant impact on encoded bitstream size caused by
  7040. I frames. The SDK encoder achieves this by encoding part of each frame in
  7041. refresh cycle using intra MBs. <var class="var">none</var> means no refresh. <var class="var">vertical</var> means
  7042. vertical refresh, by column of MBs. <var class="var">horizontal</var> means horizontal refresh,
  7043. by rows of MBs. <var class="var">slice</var> means horizontal refresh by slices without
  7044. overlapping. In case of <var class="var">slice</var>, in_ref_cycle_size is ignored. To enable
  7045. intra refresh, B frame should be set to 0.
  7046. </p>
  7047. </dd>
  7048. <dt><samp class="option"><var class="var">int_ref_cycle_size</var></samp></dt>
  7049. <dd><p>Specifies number of pictures within refresh cycle starting from 2. 0 and 1 are
  7050. invalid values.
  7051. </p>
  7052. </dd>
  7053. <dt><samp class="option"><var class="var">int_ref_qp_delta</var></samp></dt>
  7054. <dd><p>Specifies QP difference for inserted intra MBs. This is signed value in
  7055. [-51, 51] range if target encoding bit-depth for luma samples is 8 and this
  7056. range is [-63, 63] for 10 bit-depth or [-75, 75] for 12 bit-depth respectively.
  7057. </p>
  7058. </dd>
  7059. <dt><samp class="option"><var class="var">int_ref_cycle_dist</var></samp></dt>
  7060. <dd><p>Distance between the beginnings of the intra-refresh cycles in frames.
  7061. </p>
  7062. </dd>
  7063. <dt><samp class="option"><var class="var">max_qp_i</var></samp></dt>
  7064. <dd><p>Maximum video quantizer scale for I frame.
  7065. </p>
  7066. </dd>
  7067. <dt><samp class="option"><var class="var">min_qp_i</var></samp></dt>
  7068. <dd><p>Minimum video quantizer scale for I frame.
  7069. </p>
  7070. </dd>
  7071. <dt><samp class="option"><var class="var">max_qp_p</var></samp></dt>
  7072. <dd><p>Maximum video quantizer scale for P frame.
  7073. </p>
  7074. </dd>
  7075. <dt><samp class="option"><var class="var">min_qp_p</var></samp></dt>
  7076. <dd><p>Minimum video quantizer scale for P frame.
  7077. </p>
  7078. </dd>
  7079. <dt><samp class="option"><var class="var">max_qp_b</var></samp></dt>
  7080. <dd><p>Maximum video quantizer scale for B frame.
  7081. </p>
  7082. </dd>
  7083. <dt><samp class="option"><var class="var">min_qp_b</var></samp></dt>
  7084. <dd><p>Minimum video quantizer scale for B frame.
  7085. </p>
  7086. </dd>
  7087. <dt><samp class="option"><var class="var">scenario</var></samp></dt>
  7088. <dd><p>Provides a hint to encoder about the scenario for the encoding session.
  7089. </p><dl class="table">
  7090. <dt>&lsquo;<samp class="samp">unknown</samp>&rsquo;</dt>
  7091. <dt>&lsquo;<samp class="samp">displayremoting</samp>&rsquo;</dt>
  7092. <dt>&lsquo;<samp class="samp">videoconference</samp>&rsquo;</dt>
  7093. <dt>&lsquo;<samp class="samp">archive</samp>&rsquo;</dt>
  7094. <dt>&lsquo;<samp class="samp">livestreaming</samp>&rsquo;</dt>
  7095. <dt>&lsquo;<samp class="samp">cameracapture</samp>&rsquo;</dt>
  7096. <dt>&lsquo;<samp class="samp">videosurveillance</samp>&rsquo;</dt>
  7097. <dt>&lsquo;<samp class="samp">gamestreaming</samp>&rsquo;</dt>
  7098. <dt>&lsquo;<samp class="samp">remotegaming</samp>&rsquo;</dt>
  7099. </dl>
  7100. </dd>
  7101. <dt><samp class="option"><var class="var">avbr_accuracy</var></samp></dt>
  7102. <dd><p>Accuracy of the AVBR ratecontrol (unit of tenth of percent).
  7103. </p>
  7104. </dd>
  7105. <dt><samp class="option"><var class="var">avbr_convergence</var></samp></dt>
  7106. <dd><p>Convergence of the AVBR ratecontrol (unit of 100 frames)
  7107. </p>
  7108. <p>The parameters <var class="var">avbr_accuracy</var> and <var class="var">avbr_convergence</var> are for the
  7109. average variable bitrate control (AVBR) algorithm.
  7110. The algorithm focuses on overall encoding quality while meeting the specified
  7111. bitrate, <var class="var">target_bitrate</var>, within the accuracy range <var class="var">avbr_accuracy</var>,
  7112. after a <var class="var">avbr_Convergence</var> period. This method does not follow HRD and the
  7113. instant bitrate is not capped or padded.
  7114. </p>
  7115. </dd>
  7116. <dt><samp class="option"><var class="var">skip_frame</var></samp></dt>
  7117. <dd><p>Use per-frame metadata &quot;qsv_skip_frame&quot; to skip frame when encoding. This option
  7118. defines the usage of this metadata.
  7119. </p><dl class="table">
  7120. <dt>&lsquo;<samp class="samp">no_skip</samp>&rsquo;</dt>
  7121. <dd><p>Frame skipping is disabled.
  7122. </p></dd>
  7123. <dt>&lsquo;<samp class="samp">insert_dummy</samp>&rsquo;</dt>
  7124. <dd><p>Encoder inserts into bitstream frame where all macroblocks are encoded as
  7125. skipped.
  7126. </p></dd>
  7127. <dt>&lsquo;<samp class="samp">insert_nothing</samp>&rsquo;</dt>
  7128. <dd><p>Similar to insert_dummy, but encoder inserts nothing into bitstream. The skipped
  7129. frames are still used in brc. For example, gop still include skipped frames, and
  7130. the frames after skipped frames will be larger in size.
  7131. </p></dd>
  7132. <dt>&lsquo;<samp class="samp">brc_only</samp>&rsquo;</dt>
  7133. <dd><p>skip_frame metadata indicates the number of missed frames before the current
  7134. frame.
  7135. </p></dd>
  7136. </dl>
  7137. </dd>
  7138. </dl>
  7139. <a name="MPEG2-Options"></a>
  7140. <h4 class="subsection">9.30.7 MPEG2 Options<span class="pull-right"><a class="anchor hidden-xs" href="#MPEG2-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-MPEG2-Options" aria-hidden="true">TOC</a></span></h4>
  7141. <p>These options are used by mpeg2_qsv
  7142. </p><dl class="table">
  7143. <dt><samp class="option"><var class="var">profile</var></samp></dt>
  7144. <dd><dl class="table">
  7145. <dt>&lsquo;<samp class="samp">unknown</samp>&rsquo;</dt>
  7146. <dt>&lsquo;<samp class="samp">simple</samp>&rsquo;</dt>
  7147. <dt>&lsquo;<samp class="samp">main</samp>&rsquo;</dt>
  7148. <dt>&lsquo;<samp class="samp">high</samp>&rsquo;</dt>
  7149. </dl>
  7150. </dd>
  7151. </dl>
  7152. <a name="VP9-Options"></a>
  7153. <h4 class="subsection">9.30.8 VP9 Options<span class="pull-right"><a class="anchor hidden-xs" href="#VP9-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-VP9-Options" aria-hidden="true">TOC</a></span></h4>
  7154. <p>These options are used by vp9_qsv
  7155. </p><dl class="table">
  7156. <dt><samp class="option"><var class="var">profile</var></samp></dt>
  7157. <dd><dl class="table">
  7158. <dt>&lsquo;<samp class="samp">unknown</samp>&rsquo;</dt>
  7159. <dt>&lsquo;<samp class="samp">profile0</samp>&rsquo;</dt>
  7160. <dt>&lsquo;<samp class="samp">profile1</samp>&rsquo;</dt>
  7161. <dt>&lsquo;<samp class="samp">profile2</samp>&rsquo;</dt>
  7162. <dt>&lsquo;<samp class="samp">profile3</samp>&rsquo;</dt>
  7163. </dl>
  7164. </dd>
  7165. <dt><samp class="option"><var class="var">tile_cols</var></samp></dt>
  7166. <dd><p>Number of columns for tiled encoding (requires libmfx &gt;= 1.29).
  7167. </p>
  7168. </dd>
  7169. <dt><samp class="option"><var class="var">tile_rows</var></samp></dt>
  7170. <dd><p>Number of rows for tiled encoding (requires libmfx &gt;= 1.29).
  7171. </p></dd>
  7172. </dl>
  7173. <a name="AV1-Options"></a>
  7174. <h4 class="subsection">9.30.9 AV1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#AV1-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-AV1-Options" aria-hidden="true">TOC</a></span></h4>
  7175. <p>These options are used by av1_qsv (requires libvpl).
  7176. </p><dl class="table">
  7177. <dt><samp class="option"><var class="var">profile</var></samp></dt>
  7178. <dd><dl class="table">
  7179. <dt>&lsquo;<samp class="samp">unknown</samp>&rsquo;</dt>
  7180. <dt>&lsquo;<samp class="samp">main</samp>&rsquo;</dt>
  7181. </dl>
  7182. </dd>
  7183. <dt><samp class="option"><var class="var">tile_cols</var></samp></dt>
  7184. <dd><p>Number of columns for tiled encoding.
  7185. </p>
  7186. </dd>
  7187. <dt><samp class="option"><var class="var">tile_rows</var></samp></dt>
  7188. <dd><p>Number of rows for tiled encoding.
  7189. </p>
  7190. </dd>
  7191. <dt><samp class="option"><var class="var">adaptive_i</var></samp></dt>
  7192. <dd><p>This flag controls insertion of I frames by the QSV encoder. Turn ON this flag
  7193. to allow changing of frame type from P and B to I.
  7194. </p>
  7195. </dd>
  7196. <dt><samp class="option"><var class="var">adaptive_b</var></samp></dt>
  7197. <dd><p>This flag controls changing of frame type from B to P.
  7198. </p>
  7199. </dd>
  7200. <dt><samp class="option"><var class="var">b_strategy</var></samp></dt>
  7201. <dd><p>This option controls usage of B frames as reference.
  7202. </p>
  7203. </dd>
  7204. <dt><samp class="option"><var class="var">extbrc</var></samp></dt>
  7205. <dd><p>Extended bitrate control.
  7206. </p>
  7207. </dd>
  7208. <dt><samp class="option"><var class="var">look_ahead_depth</var></samp></dt>
  7209. <dd><p>Depth of look ahead in number frames, available when extbrc option is enabled.
  7210. </p>
  7211. </dd>
  7212. <dt><samp class="option"><var class="var">low_delay_brc</var></samp></dt>
  7213. <dd><p>Setting this flag turns on or off LowDelayBRC feature in qsv plugin, which provides
  7214. more accurate bitrate control to minimize the variance of bitstream size frame
  7215. by frame. Value: -1-default 0-off 1-on
  7216. </p>
  7217. </dd>
  7218. <dt><samp class="option"><var class="var">max_frame_size</var></samp></dt>
  7219. <dd><p>Set the allowed max size in bytes for each frame. If the frame size exceeds
  7220. the limitation, encoder will adjust the QP value to control the frame size.
  7221. Invalid in CQP rate control mode.
  7222. </p>
  7223. </dd>
  7224. <dt><samp class="option"><var class="var">max_frame_size_i</var></samp></dt>
  7225. <dd><p>Maximum encoded frame size for I frames in bytes. If this value is set as larger
  7226. than zero, then for I frames the value set by max_frame_size is ignored.
  7227. </p>
  7228. </dd>
  7229. <dt><samp class="option"><var class="var">max_frame_size_p</var></samp></dt>
  7230. <dd><p>Maximum encoded frame size for P frames in bytes. If this value is set as larger
  7231. than zero, then for P frames the value set by max_frame_size is ignored.
  7232. </p></dd>
  7233. </dl>
  7234. <a name="snow"></a>
  7235. <h3 class="section">9.31 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>
  7236. <a name="Options-50"></a>
  7237. <h4 class="subsection">9.31.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-50" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-50" aria-hidden="true">TOC</a></span></h4>
  7238. <dl class="table">
  7239. <dt><samp class="option">iterative_dia_size</samp></dt>
  7240. <dd><p>dia size for the iterative motion estimation
  7241. </p></dd>
  7242. </dl>
  7243. <a name="VAAPI-encoders"></a>
  7244. <h3 class="section">9.32 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>
  7245. <p>Wrappers for hardware encoders accessible via VAAPI.
  7246. </p>
  7247. <p>These encoders only accept input in VAAPI hardware surfaces. If you have input
  7248. in software frames, use the <samp class="option">hwupload</samp> filter to upload them to the GPU.
  7249. </p>
  7250. <p>The following standard libavcodec options are used:
  7251. </p><ul class="itemize mark-bullet">
  7252. <li><samp class="option">g</samp> / <samp class="option">gop_size</samp>
  7253. </li><li><samp class="option">bf</samp> / <samp class="option">max_b_frames</samp>
  7254. </li><li><samp class="option">profile</samp>
  7255. <p>If not set, this will be determined automatically from the format of the input
  7256. frames and the profiles supported by the driver.
  7257. </p></li><li><samp class="option">level</samp>
  7258. </li><li><samp class="option">b</samp> / <samp class="option">bit_rate</samp>
  7259. </li><li><samp class="option">maxrate</samp> / <samp class="option">rc_max_rate</samp>
  7260. </li><li><samp class="option">bufsize</samp> / <samp class="option">rc_buffer_size</samp>
  7261. </li><li><samp class="option">rc_init_occupancy</samp> / <samp class="option">rc_initial_buffer_occupancy</samp>
  7262. </li><li><samp class="option">compression_level</samp>
  7263. <p>Speed / quality tradeoff: higher values are faster / worse quality.
  7264. </p></li><li><samp class="option">q</samp> / <samp class="option">global_quality</samp>
  7265. <p>Size / quality tradeoff: higher values are smaller / worse quality.
  7266. </p></li><li><samp class="option">qmin</samp>
  7267. </li><li><samp class="option">qmax</samp>
  7268. </li><li><samp class="option">i_qfactor</samp> / <samp class="option">i_quant_factor</samp>
  7269. </li><li><samp class="option">i_qoffset</samp> / <samp class="option">i_quant_offset</samp>
  7270. </li><li><samp class="option">b_qfactor</samp> / <samp class="option">b_quant_factor</samp>
  7271. </li><li><samp class="option">b_qoffset</samp> / <samp class="option">b_quant_offset</samp>
  7272. </li><li><samp class="option">slices</samp>
  7273. </li></ul>
  7274. <p>All encoders support the following options:
  7275. </p><dl class="table">
  7276. <dt><samp class="option">low_power</samp></dt>
  7277. <dd><p>Some drivers/platforms offer a second encoder for some codecs intended to use
  7278. less power than the default encoder; setting this option will attempt to use
  7279. that encoder. Note that it may support a reduced feature set, so some other
  7280. options may not be available in this mode.
  7281. </p>
  7282. </dd>
  7283. <dt><samp class="option">idr_interval</samp></dt>
  7284. <dd><p>Set the number of normal intra frames between full-refresh (IDR) frames in
  7285. open-GOP mode. The intra frames are still IRAPs, but will not include global
  7286. headers and may have non-decodable leading pictures.
  7287. </p>
  7288. </dd>
  7289. <dt><samp class="option">b_depth</samp></dt>
  7290. <dd><p>Set the B-frame reference depth. When set to one (the default), all B-frames
  7291. will refer only to P- or I-frames. When set to greater values multiple layers
  7292. of B-frames will be present, frames in each layer only referring to frames in
  7293. higher layers.
  7294. </p>
  7295. </dd>
  7296. <dt><samp class="option">async_depth</samp></dt>
  7297. <dd><p>Maximum processing parallelism. Increase this to improve single channel
  7298. performance. This option doesn&rsquo;t work if driver doesn&rsquo;t implement vaSyncBuffer
  7299. function. Please make sure there are enough hw_frames allocated if a large
  7300. number of async_depth is used.
  7301. </p>
  7302. </dd>
  7303. <dt><samp class="option">max_frame_size</samp></dt>
  7304. <dd><p>Set the allowed max size in bytes for each frame. If the frame size exceeds
  7305. the limitation, encoder will adjust the QP value to control the frame size.
  7306. Invalid in CQP rate control mode.
  7307. </p>
  7308. </dd>
  7309. <dt><samp class="option">rc_mode</samp></dt>
  7310. <dd><p>Set the rate control mode to use. A given driver may only support a subset of
  7311. modes.
  7312. </p>
  7313. <p>Possible modes:
  7314. </p><dl class="table">
  7315. <dt><samp class="option">auto</samp></dt>
  7316. <dd><p>Choose the mode automatically based on driver support and the other options.
  7317. This is the default.
  7318. </p></dd>
  7319. <dt><samp class="option">CQP</samp></dt>
  7320. <dd><p>Constant-quality.
  7321. </p></dd>
  7322. <dt><samp class="option">CBR</samp></dt>
  7323. <dd><p>Constant-bitrate.
  7324. </p></dd>
  7325. <dt><samp class="option">VBR</samp></dt>
  7326. <dd><p>Variable-bitrate.
  7327. </p></dd>
  7328. <dt><samp class="option">ICQ</samp></dt>
  7329. <dd><p>Intelligent constant-quality.
  7330. </p></dd>
  7331. <dt><samp class="option">QVBR</samp></dt>
  7332. <dd><p>Quality-defined variable-bitrate.
  7333. </p></dd>
  7334. <dt><samp class="option">AVBR</samp></dt>
  7335. <dd><p>Average variable bitrate.
  7336. </p></dd>
  7337. </dl>
  7338. </dd>
  7339. <dt><samp class="option">blbrc</samp></dt>
  7340. <dd><p>Enable block level rate control, which assigns different bitrate block by block.
  7341. Invalid for CQP mode.
  7342. </p>
  7343. </dd>
  7344. </dl>
  7345. <p>Each encoder also has its own specific options:
  7346. </p><dl class="table">
  7347. <dt><samp class="option">av1_vaapi</samp></dt>
  7348. <dd><p><samp class="option">profile</samp> sets the value of <em class="emph">seq_profile</em>.
  7349. <samp class="option">tier</samp> sets the value of <em class="emph">seq_tier</em>.
  7350. <samp class="option">level</samp> sets the value of <em class="emph">seq_level_idx</em>.
  7351. </p>
  7352. <dl class="table">
  7353. <dt><samp class="option">tiles</samp></dt>
  7354. <dd><p>Set the number of tiles to encode the input video with, as columns x rows.
  7355. (default is auto, which means use minimal tile column/row number).
  7356. </p></dd>
  7357. <dt><samp class="option">tile_groups</samp></dt>
  7358. <dd><p>Set tile groups number. All the tiles will be distributed as evenly as possible to
  7359. each tile group. (default is 1).
  7360. </p></dd>
  7361. </dl>
  7362. </dd>
  7363. <dt><samp class="option">h264_vaapi</samp></dt>
  7364. <dd><p><samp class="option">profile</samp> sets the value of <em class="emph">profile_idc</em> and the <em class="emph">constraint_set*_flag</em>s.
  7365. <samp class="option">level</samp> sets the value of <em class="emph">level_idc</em>.
  7366. </p>
  7367. <dl class="table">
  7368. <dt><samp class="option">coder</samp></dt>
  7369. <dd><p>Set entropy encoder (default is <em class="emph">cabac</em>). Possible values:
  7370. </p>
  7371. <dl class="table">
  7372. <dt>&lsquo;<samp class="samp">ac</samp>&rsquo;</dt>
  7373. <dt>&lsquo;<samp class="samp">cabac</samp>&rsquo;</dt>
  7374. <dd><p>Use CABAC.
  7375. </p>
  7376. </dd>
  7377. <dt>&lsquo;<samp class="samp">vlc</samp>&rsquo;</dt>
  7378. <dt>&lsquo;<samp class="samp">cavlc</samp>&rsquo;</dt>
  7379. <dd><p>Use CAVLC.
  7380. </p></dd>
  7381. </dl>
  7382. </dd>
  7383. <dt><samp class="option">aud</samp></dt>
  7384. <dd><p>Include access unit delimiters in the stream (not included by default).
  7385. </p>
  7386. </dd>
  7387. <dt><samp class="option">sei</samp></dt>
  7388. <dd><p>Set SEI message types to include.
  7389. Some combination of the following values:
  7390. </p><dl class="table">
  7391. <dt>&lsquo;<samp class="samp">identifier</samp>&rsquo;</dt>
  7392. <dd><p>Include a <em class="emph">user_data_unregistered</em> message containing information about
  7393. the encoder.
  7394. </p></dd>
  7395. <dt>&lsquo;<samp class="samp">timing</samp>&rsquo;</dt>
  7396. <dd><p>Include picture timing parameters (<em class="emph">buffering_period</em> and
  7397. <em class="emph">pic_timing</em> messages).
  7398. </p></dd>
  7399. <dt>&lsquo;<samp class="samp">recovery_point</samp>&rsquo;</dt>
  7400. <dd><p>Include recovery points where appropriate (<em class="emph">recovery_point</em> messages).
  7401. </p></dd>
  7402. </dl>
  7403. </dd>
  7404. </dl>
  7405. </dd>
  7406. <dt><samp class="option">hevc_vaapi</samp></dt>
  7407. <dd><p><samp class="option">profile</samp> and <samp class="option">level</samp> set the values of
  7408. <em class="emph">general_profile_idc</em> and <em class="emph">general_level_idc</em> respectively.
  7409. </p>
  7410. <dl class="table">
  7411. <dt><samp class="option">aud</samp></dt>
  7412. <dd><p>Include access unit delimiters in the stream (not included by default).
  7413. </p>
  7414. </dd>
  7415. <dt><samp class="option">tier</samp></dt>
  7416. <dd><p>Set <em class="emph">general_tier_flag</em>. This may affect the level chosen for the stream
  7417. if it is not explicitly specified.
  7418. </p>
  7419. </dd>
  7420. <dt><samp class="option">sei</samp></dt>
  7421. <dd><p>Set SEI message types to include.
  7422. Some combination of the following values:
  7423. </p><dl class="table">
  7424. <dt>&lsquo;<samp class="samp">hdr</samp>&rsquo;</dt>
  7425. <dd><p>Include HDR metadata if the input frames have it
  7426. (<em class="emph">mastering_display_colour_volume</em> and <em class="emph">content_light_level</em>
  7427. messages).
  7428. </p></dd>
  7429. </dl>
  7430. </dd>
  7431. <dt><samp class="option">tiles</samp></dt>
  7432. <dd><p>Set the number of tiles to encode the input video with, as columns x rows.
  7433. Larger numbers allow greater parallelism in both encoding and decoding, but
  7434. may decrease coding efficiency.
  7435. </p>
  7436. </dd>
  7437. </dl>
  7438. </dd>
  7439. <dt><samp class="option">mjpeg_vaapi</samp></dt>
  7440. <dd><p>Only baseline DCT encoding is supported. The encoder always uses the standard
  7441. quantisation and huffman tables - <samp class="option">global_quality</samp> scales the standard
  7442. quantisation table (range 1-100).
  7443. </p>
  7444. <p>For YUV, 4:2:0, 4:2:2 and 4:4:4 subsampling modes are supported. RGB is also
  7445. supported, and will create an RGB JPEG.
  7446. </p>
  7447. <dl class="table">
  7448. <dt><samp class="option">jfif</samp></dt>
  7449. <dd><p>Include JFIF header in each frame (not included by default).
  7450. </p></dd>
  7451. <dt><samp class="option">huffman</samp></dt>
  7452. <dd><p>Include standard huffman tables (on by default). Turning this off will save
  7453. a few hundred bytes in each output frame, but may lose compatibility with some
  7454. JPEG decoders which don&rsquo;t fully handle MJPEG.
  7455. </p></dd>
  7456. </dl>
  7457. </dd>
  7458. <dt><samp class="option">mpeg2_vaapi</samp></dt>
  7459. <dd><p><samp class="option">profile</samp> and <samp class="option">level</samp> set the value of <em class="emph">profile_and_level_indication</em>.
  7460. </p>
  7461. </dd>
  7462. <dt><samp class="option">vp8_vaapi</samp></dt>
  7463. <dd><p>B-frames are not supported.
  7464. </p>
  7465. <p><samp class="option">global_quality</samp> sets the <em class="emph">q_idx</em> used for non-key frames (range 0-127).
  7466. </p>
  7467. <dl class="table">
  7468. <dt><samp class="option">loop_filter_level</samp></dt>
  7469. <dt><samp class="option">loop_filter_sharpness</samp></dt>
  7470. <dd><p>Manually set the loop filter parameters.
  7471. </p></dd>
  7472. </dl>
  7473. </dd>
  7474. <dt><samp class="option">vp9_vaapi</samp></dt>
  7475. <dd><p><samp class="option">global_quality</samp> sets the <em class="emph">q_idx</em> used for P-frames (range 0-255).
  7476. </p>
  7477. <dl class="table">
  7478. <dt><samp class="option">loop_filter_level</samp></dt>
  7479. <dt><samp class="option">loop_filter_sharpness</samp></dt>
  7480. <dd><p>Manually set the loop filter parameters.
  7481. </p></dd>
  7482. </dl>
  7483. <p>B-frames are supported, but the output stream is always in encode order rather than display
  7484. order. If B-frames are enabled, it may be necessary to use the <samp class="option">vp9_raw_reorder</samp>
  7485. bitstream filter to modify the output stream to display frames in the correct order.
  7486. </p>
  7487. <p>Only normal frames are produced - the <samp class="option">vp9_superframe</samp> bitstream filter may be
  7488. required to produce a stream usable with all decoders.
  7489. </p>
  7490. </dd>
  7491. </dl>
  7492. <a name="vbn"></a>
  7493. <h3 class="section">9.33 vbn<span class="pull-right"><a class="anchor hidden-xs" href="#vbn" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-vbn" aria-hidden="true">TOC</a></span></h3>
  7494. <p>Vizrt Binary Image encoder.
  7495. </p>
  7496. <p>This format is used by the broadcast vendor Vizrt for quick texture streaming.
  7497. Advanced features of the format such as LZW compression of texture data or
  7498. generation of mipmaps are not supported.
  7499. </p>
  7500. <a name="Options-51"></a>
  7501. <h4 class="subsection">9.33.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-51" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-51" aria-hidden="true">TOC</a></span></h4>
  7502. <dl class="table">
  7503. <dt><samp class="option">format <var class="var">string</var></samp></dt>
  7504. <dd><p>Sets the texture compression used by the VBN file. Can be <var class="var">dxt1</var>,
  7505. <var class="var">dxt5</var> or <var class="var">raw</var>. Default is <var class="var">dxt5</var>.
  7506. </p></dd>
  7507. </dl>
  7508. <a name="vc2"></a>
  7509. <h3 class="section">9.34 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>
  7510. <p>SMPTE VC-2 (previously BBC Dirac Pro). This codec was primarily aimed at
  7511. professional broadcasting but since it supports yuv420, yuv422 and yuv444 at
  7512. 8 (limited range or full range), 10 or 12 bits, this makes it suitable for
  7513. other tasks which require low overhead and low compression (like screen
  7514. recording).
  7515. </p>
  7516. <a name="Options-52"></a>
  7517. <h4 class="subsection">9.34.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-52" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-52" aria-hidden="true">TOC</a></span></h4>
  7518. <dl class="table">
  7519. <dt><samp class="option">b</samp></dt>
  7520. <dd><p>Sets target video bitrate. Usually that&rsquo;s around 1:6 of the uncompressed
  7521. video bitrate (e.g. for 1920x1080 50fps yuv422p10 that&rsquo;s around 400Mbps). Higher
  7522. values (close to the uncompressed bitrate) turn on lossless compression mode.
  7523. </p>
  7524. </dd>
  7525. <dt><samp class="option">field_order</samp></dt>
  7526. <dd><p>Enables field coding when set (e.g. to tt - top field first) for interlaced
  7527. inputs. Should increase compression with interlaced content as it splits the
  7528. fields and encodes each separately.
  7529. </p>
  7530. </dd>
  7531. <dt><samp class="option">wavelet_depth</samp></dt>
  7532. <dd><p>Sets the total amount of wavelet transforms to apply, between 1 and 5 (default).
  7533. Lower values reduce compression and quality. Less capable decoders may not be
  7534. able to handle values of <samp class="option">wavelet_depth</samp> over 3.
  7535. </p>
  7536. </dd>
  7537. <dt><samp class="option">wavelet_type</samp></dt>
  7538. <dd><p>Sets the transform type. Currently only <var class="var">5_3</var> (LeGall) and <var class="var">9_7</var>
  7539. (Deslauriers-Dubuc)
  7540. are implemented, with 9_7 being the one with better compression and thus
  7541. is the default.
  7542. </p>
  7543. </dd>
  7544. <dt><samp class="option">slice_width</samp></dt>
  7545. <dt><samp class="option">slice_height</samp></dt>
  7546. <dd><p>Sets the slice size for each slice. Larger values result in better compression.
  7547. For compatibility with other more limited decoders use <samp class="option">slice_width</samp> of
  7548. 32 and <samp class="option">slice_height</samp> of 8.
  7549. </p>
  7550. </dd>
  7551. <dt><samp class="option">tolerance</samp></dt>
  7552. <dd><p>Sets the undershoot tolerance of the rate control system in percent. This is
  7553. to prevent an expensive search from being run.
  7554. </p>
  7555. </dd>
  7556. <dt><samp class="option">qm</samp></dt>
  7557. <dd><p>Sets the quantization matrix preset to use by default or when <samp class="option">wavelet_depth</samp>
  7558. is set to 5
  7559. </p><ul class="itemize mark-minus">
  7560. <li><var class="var">default</var>
  7561. Uses the default quantization matrix from the specifications, extended with
  7562. values for the fifth level. This provides a good balance between keeping detail
  7563. and omitting artifacts.
  7564. </li><li><var class="var">flat</var>
  7565. Use a completely zeroed out quantization matrix. This increases PSNR but might
  7566. reduce perception. Use in bogus benchmarks.
  7567. </li><li><var class="var">color</var>
  7568. Reduces detail but attempts to preserve color at extremely low bitrates.
  7569. </li></ul>
  7570. </dd>
  7571. </dl>
  7572. <a name="Subtitles-Encoders"></a>
  7573. <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>
  7574. <a name="dvbsub-1"></a>
  7575. <h3 class="section">10.1 dvbsub<span class="pull-right"><a class="anchor hidden-xs" href="#dvbsub-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-dvbsub-1" aria-hidden="true">TOC</a></span></h3>
  7576. <p>This codec encodes the bitmap subtitle format that is used in DVB
  7577. broadcasts and recordings. The bitmaps are typically embedded in a
  7578. container such as MPEG-TS as a separate stream.
  7579. </p>
  7580. <a name="Options-53"></a>
  7581. <h4 class="subsection">10.1.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-53" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-53" aria-hidden="true">TOC</a></span></h4>
  7582. <dl class="table">
  7583. <dt><samp class="option">min_bpp <var class="var">integer (2, 4, or 8)</var></samp></dt>
  7584. <dd><p>Set a minimum bits-per-pixel value for the subtitle color lookup tables.
  7585. </p>
  7586. <p>DVB supports 2, 4, and 8 bits-per-pixel color lookup tables. This
  7587. option enables forcing a particular bits-per-pixel value regardless of
  7588. the number of colors. Since not all players support or properly
  7589. support 2 bits-per-pixel, this value defaults to 4.
  7590. </p>
  7591. </dd>
  7592. </dl>
  7593. <a name="dvdsub-1"></a>
  7594. <h3 class="section">10.2 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>
  7595. <p>This codec encodes the bitmap subtitle format that is used in DVDs.
  7596. Typically they are stored in VOBSUB file pairs (*.idx + *.sub),
  7597. and they can also be used in Matroska files.
  7598. </p>
  7599. <a name="Options-54"></a>
  7600. <h4 class="subsection">10.2.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-54" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-54" aria-hidden="true">TOC</a></span></h4>
  7601. <dl class="table">
  7602. <dt><samp class="option">palette</samp></dt>
  7603. <dd><p>Specify the global palette used by the bitmaps.
  7604. </p>
  7605. <p>The format for this option is a string containing 16 24-bits hexadecimal
  7606. numbers (without 0x prefix) separated by commas, for example <code class="code">0d00ee,
  7607. ee450d, 101010, eaeaea, 0ce60b, ec14ed, ebff0b, 0d617a, 7b7b7b, d1d1d1,
  7608. 7b2a0e, 0d950c, 0f007b, cf0dec, cfa80c, 7c127b</code>.
  7609. </p>
  7610. </dd>
  7611. <dt><samp class="option">even_rows_fix</samp></dt>
  7612. <dd><p>When set to 1, enable a work-around that makes the number of pixel rows
  7613. even in all subtitles. This fixes a problem with some players that
  7614. cut off the bottom row if the number is odd. The work-around just adds
  7615. a fully transparent row if needed. The overhead is low, typically
  7616. one byte per subtitle on average.
  7617. </p>
  7618. <p>By default, this work-around is disabled.
  7619. </p></dd>
  7620. </dl>
  7621. <a name="lrc"></a>
  7622. <h3 class="section">10.3 lrc<span class="pull-right"><a class="anchor hidden-xs" href="#lrc" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-lrc" aria-hidden="true">TOC</a></span></h3>
  7623. <p>This codec encodes the LRC lyrics format.
  7624. </p>
  7625. <a name="Options-55"></a>
  7626. <h4 class="subsection">10.3.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-55" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-55" aria-hidden="true">TOC</a></span></h4>
  7627. <dl class="table">
  7628. <dt><samp class="option">precision</samp></dt>
  7629. <dd><p>Specify the precision of the fractional part of the timestamp. Time base is
  7630. determined based on this value.
  7631. </p>
  7632. <p>Defaults to 2 for centiseconds.
  7633. </p></dd>
  7634. </dl>
  7635. <a name="See-Also"></a>
  7636. <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>
  7637. <p><a class="url" href="ffmpeg.html">ffmpeg</a>, <a class="url" href="ffplay.html">ffplay</a>, <a class="url" href="ffprobe.html">ffprobe</a>,
  7638. <a class="url" href="libavcodec.html">libavcodec</a>
  7639. </p>
  7640. <a name="Authors"></a>
  7641. <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>
  7642. <p>The FFmpeg developers.
  7643. </p>
  7644. <p>For details about the authorship, see the Git history of the project
  7645. (https://git.ffmpeg.org/ffmpeg), e.g. by typing the command
  7646. <code class="command">git log</code> in the FFmpeg source directory, or browsing the
  7647. online repository at <a class="url" href="https://git.ffmpeg.org/ffmpeg">https://git.ffmpeg.org/ffmpeg</a>.
  7648. </p>
  7649. <p>Maintainers for the specific components are listed in the file
  7650. <samp class="file">MAINTAINERS</samp> in the source code tree.
  7651. </p>
  7652. <p style="font-size: small;">
  7653. This document was generated using <a class="uref" href="https://www.gnu.org/software/texinfo/"><em class="emph">makeinfo</em></a>.
  7654. </p>
  7655. </div>
  7656. </body>
  7657. </html>