ffmpeg-codecs.html 218 KB

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