ffmpeg-codecs.1 189 KB

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