FfmpegCommand.html 196 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>JSDoc: Class: FfmpegCommand</title>
  6. <script src="scripts/prettify/prettify.js"> </script>
  7. <script src="scripts/prettify/lang-css.js"> </script>
  8. <!--[if lt IE 9]>
  9. <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  10. <![endif]-->
  11. <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
  12. <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
  13. </head>
  14. <body>
  15. <div id="main">
  16. <h1 class="page-title">Class: FfmpegCommand</h1>
  17. <section>
  18. <header>
  19. <h2>
  20. FfmpegCommand
  21. </h2>
  22. </header>
  23. <article>
  24. <div class="container-overview">
  25. <dt>
  26. <h4 class="name" id="FfmpegCommand"><span class="type-signature"></span>new FfmpegCommand<span class="signature">(<span class="optional">input</span>, <span class="optional">options</span>)</span><span class="type-signature"></span></h4>
  27. </dt>
  28. <dd>
  29. <div class="description">
  30. <p>Create an ffmpeg command</p>
  31. <p>Can be called with or without the 'new' operator, and the 'input' parameter
  32. may be specified as 'options.source' instead (or passed later with the
  33. addInput method).</p>
  34. </div>
  35. <h5>Parameters:</h5>
  36. <table class="params">
  37. <thead>
  38. <tr>
  39. <th>Name</th>
  40. <th>Type</th>
  41. <th>Argument</th>
  42. <th class="last">Description</th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. <tr>
  47. <td class="name"><code>input</code></td>
  48. <td class="type">
  49. <span class="param-type">String</span>
  50. |
  51. <span class="param-type">ReadableStream</span>
  52. </td>
  53. <td class="attributes">
  54. &lt;optional><br>
  55. </td>
  56. <td class="description last"><p>input file path or readable stream</p></td>
  57. </tr>
  58. <tr>
  59. <td class="name"><code>options</code></td>
  60. <td class="type">
  61. <span class="param-type">Object</span>
  62. </td>
  63. <td class="attributes">
  64. &lt;optional><br>
  65. </td>
  66. <td class="description last"><p>command options</p>
  67. <h6>Properties</h6>
  68. <table class="params">
  69. <thead>
  70. <tr>
  71. <th>Name</th>
  72. <th>Type</th>
  73. <th>Argument</th>
  74. <th>Default</th>
  75. <th class="last">Description</th>
  76. </tr>
  77. </thead>
  78. <tbody>
  79. <tr>
  80. <td class="name"><code>logger</code></td>
  81. <td class="type">
  82. <span class="param-type">Object</span>
  83. </td>
  84. <td class="attributes">
  85. &lt;optional><br>
  86. </td>
  87. <td class="default">
  88. &lt;no logging>
  89. </td>
  90. <td class="description last"><p>logger object with 'error', 'warning', 'info' and 'debug' methods</p></td>
  91. </tr>
  92. <tr>
  93. <td class="name"><code>niceness</code></td>
  94. <td class="type">
  95. <span class="param-type">Number</span>
  96. </td>
  97. <td class="attributes">
  98. &lt;optional><br>
  99. </td>
  100. <td class="default">
  101. 0
  102. </td>
  103. <td class="description last"><p>ffmpeg process niceness, ignored on Windows</p></td>
  104. </tr>
  105. <tr>
  106. <td class="name"><code>priority</code></td>
  107. <td class="type">
  108. <span class="param-type">Number</span>
  109. </td>
  110. <td class="attributes">
  111. &lt;optional><br>
  112. </td>
  113. <td class="default">
  114. 0
  115. </td>
  116. <td class="description last"><p>alias for <code>niceness</code></p></td>
  117. </tr>
  118. <tr>
  119. <td class="name"><code>presets</code></td>
  120. <td class="type">
  121. <span class="param-type">String</span>
  122. </td>
  123. <td class="attributes">
  124. &lt;optional><br>
  125. </td>
  126. <td class="default">
  127. "fluent-ffmpeg/lib/presets"
  128. </td>
  129. <td class="description last"><p>directory to load presets from</p></td>
  130. </tr>
  131. <tr>
  132. <td class="name"><code>preset</code></td>
  133. <td class="type">
  134. <span class="param-type">String</span>
  135. </td>
  136. <td class="attributes">
  137. &lt;optional><br>
  138. </td>
  139. <td class="default">
  140. "fluent-ffmpeg/lib/presets"
  141. </td>
  142. <td class="description last"><p>alias for <code>presets</code></p></td>
  143. </tr>
  144. <tr>
  145. <td class="name"><code>stdoutLines</code></td>
  146. <td class="type">
  147. <span class="param-type">String</span>
  148. </td>
  149. <td class="attributes">
  150. &lt;optional><br>
  151. </td>
  152. <td class="default">
  153. 100
  154. </td>
  155. <td class="description last"><p>maximum lines of ffmpeg output to keep in memory, use 0 for unlimited</p></td>
  156. </tr>
  157. <tr>
  158. <td class="name"><code>timeout</code></td>
  159. <td class="type">
  160. <span class="param-type">Number</span>
  161. </td>
  162. <td class="attributes">
  163. &lt;optional><br>
  164. </td>
  165. <td class="default">
  166. &lt;no timeout>
  167. </td>
  168. <td class="description last"><p>ffmpeg processing timeout in seconds</p></td>
  169. </tr>
  170. <tr>
  171. <td class="name"><code>source</code></td>
  172. <td class="type">
  173. <span class="param-type">String</span>
  174. |
  175. <span class="param-type">ReadableStream</span>
  176. </td>
  177. <td class="attributes">
  178. &lt;optional><br>
  179. </td>
  180. <td class="default">
  181. &lt;no input>
  182. </td>
  183. <td class="description last"><p>alias for the <code>input</code> parameter</p></td>
  184. </tr>
  185. </tbody>
  186. </table>
  187. </td>
  188. </tr>
  189. </tbody>
  190. </table>
  191. <dl class="details">
  192. <dt class="tag-source">Source:</dt>
  193. <dd class="tag-source"><ul class="dummy"><li>
  194. <a href="fluent-ffmpeg.js.html">fluent-ffmpeg.js</a>, <a href="fluent-ffmpeg.js.html#line31">line 31</a>
  195. </li></ul></dd>
  196. </dl>
  197. </dd>
  198. </div>
  199. <h3 class="subsection-title"><a name="audio-methods"></a>Audio methods</h3>
  200. <dl>
  201. <dt>
  202. <h4 class="name" id="audioBitrate"><span class="type-signature"></span>audioBitrate<span class="signature">(bitrate)</span><span class="type-signature"></span></h4>
  203. </dt>
  204. <dd>
  205. <div class="description">
  206. <p>Specify audio bitrate</p>
  207. </div>
  208. <h5>Parameters:</h5>
  209. <table class="params">
  210. <thead>
  211. <tr>
  212. <th>Name</th>
  213. <th>Type</th>
  214. <th class="last">Description</th>
  215. </tr>
  216. </thead>
  217. <tbody>
  218. <tr>
  219. <td class="name"><code>bitrate</code></td>
  220. <td class="type">
  221. <span class="param-type">String</span>
  222. |
  223. <span class="param-type">Number</span>
  224. </td>
  225. <td class="description last"><p>audio bitrate in kbps (with an optional 'k' suffix)</p></td>
  226. </tr>
  227. </tbody>
  228. </table>
  229. <dl class="details">
  230. <dt class="tag-source">Source:</dt>
  231. <dd class="tag-source"><ul class="dummy"><li>
  232. <a href="options_audio.js.html">options/audio.js</a>, <a href="options_audio.js.html#line48">line 48</a>
  233. </li></ul></dd>
  234. </dl>
  235. <h5>Returns:</h5>
  236. <div class="param-desc">
  237. <p>FfmpegCommand</p>
  238. </div>
  239. <h5>Alias:</h5>
  240. withAudioBitrate
  241. </dd>
  242. <dt>
  243. <h4 class="name" id="audioChannels"><span class="type-signature"></span>audioChannels<span class="signature">(channels)</span><span class="type-signature"></span></h4>
  244. </dt>
  245. <dd>
  246. <div class="description">
  247. <p>Specify audio channel count</p>
  248. </div>
  249. <h5>Parameters:</h5>
  250. <table class="params">
  251. <thead>
  252. <tr>
  253. <th>Name</th>
  254. <th>Type</th>
  255. <th class="last">Description</th>
  256. </tr>
  257. </thead>
  258. <tbody>
  259. <tr>
  260. <td class="name"><code>channels</code></td>
  261. <td class="type">
  262. <span class="param-type">Number</span>
  263. </td>
  264. <td class="description last"><p>channel count</p></td>
  265. </tr>
  266. </tbody>
  267. </table>
  268. <dl class="details">
  269. <dt class="tag-source">Source:</dt>
  270. <dd class="tag-source"><ul class="dummy"><li>
  271. <a href="options_audio.js.html">options/audio.js</a>, <a href="options_audio.js.html#line65">line 65</a>
  272. </li></ul></dd>
  273. </dl>
  274. <h5>Returns:</h5>
  275. <div class="param-desc">
  276. <p>FfmpegCommand</p>
  277. </div>
  278. <h5>Alias:</h5>
  279. withAudioChannels
  280. </dd>
  281. <dt>
  282. <h4 class="name" id="audioCodec"><span class="type-signature"></span>audioCodec<span class="signature">(codec)</span><span class="type-signature"></span></h4>
  283. </dt>
  284. <dd>
  285. <div class="description">
  286. <p>Specify audio codec</p>
  287. </div>
  288. <h5>Parameters:</h5>
  289. <table class="params">
  290. <thead>
  291. <tr>
  292. <th>Name</th>
  293. <th>Type</th>
  294. <th class="last">Description</th>
  295. </tr>
  296. </thead>
  297. <tbody>
  298. <tr>
  299. <td class="name"><code>codec</code></td>
  300. <td class="type">
  301. <span class="param-type">String</span>
  302. </td>
  303. <td class="description last"><p>audio codec name</p></td>
  304. </tr>
  305. </tbody>
  306. </table>
  307. <dl class="details">
  308. <dt class="tag-source">Source:</dt>
  309. <dd class="tag-source"><ul class="dummy"><li>
  310. <a href="options_audio.js.html">options/audio.js</a>, <a href="options_audio.js.html#line30">line 30</a>
  311. </li></ul></dd>
  312. </dl>
  313. <h5>Returns:</h5>
  314. <div class="param-desc">
  315. <p>FfmpegCommand</p>
  316. </div>
  317. <h5>Alias:</h5>
  318. withAudioCodec
  319. </dd>
  320. <dt>
  321. <h4 class="name" id="audioFilter"><span class="type-signature"></span>audioFilter<span class="signature">(filters)</span><span class="type-signature"></span></h4>
  322. </dt>
  323. <dd>
  324. <div class="description">
  325. Alias for <a href="#audioFilters">FfmpegCommand#audioFilters</a>
  326. </div>
  327. <dl class="details">
  328. </dl>
  329. </dd>
  330. <dt>
  331. <h4 class="name" id="audioFilters"><span class="type-signature"></span>audioFilters<span class="signature">(filters)</span><span class="type-signature"></span></h4>
  332. </dt>
  333. <dd>
  334. <div class="description">
  335. <p>Specify custom audio filter(s)</p>
  336. <p>Can be called both with one or many filters, or a filter array.</p>
  337. </div>
  338. <h5>Parameters:</h5>
  339. <table class="params">
  340. <thead>
  341. <tr>
  342. <th>Name</th>
  343. <th>Type</th>
  344. <th class="last">Description</th>
  345. </tr>
  346. </thead>
  347. <tbody>
  348. <tr>
  349. <td class="name"><code>filters</code></td>
  350. <td class="type">
  351. <span class="param-type">String</span>
  352. |
  353. <span class="param-type">Array.&lt;String></span>
  354. |
  355. <span class="param-type">Array.&lt;Object></span>
  356. </td>
  357. <td class="description last"><p>audio filter strings, string array or
  358. filter specification array, each with the following properties:</p>
  359. <h6>Properties</h6>
  360. <table class="params">
  361. <thead>
  362. <tr>
  363. <th>Name</th>
  364. <th>Type</th>
  365. <th>Argument</th>
  366. <th class="last">Description</th>
  367. </tr>
  368. </thead>
  369. <tbody>
  370. <tr>
  371. <td class="name"><code>filter</code></td>
  372. <td class="type">
  373. <span class="param-type">String</span>
  374. </td>
  375. <td class="attributes">
  376. </td>
  377. <td class="description last"><p>filter name</p></td>
  378. </tr>
  379. <tr>
  380. <td class="name"><code>options</code></td>
  381. <td class="type">
  382. <span class="param-type">String</span>
  383. |
  384. <span class="param-type">Array.&lt;String></span>
  385. |
  386. <span class="param-type">Object</span>
  387. </td>
  388. <td class="attributes">
  389. &lt;optional><br>
  390. </td>
  391. <td class="description last"><p>filter option string, array, or object</p></td>
  392. </tr>
  393. </tbody>
  394. </table>
  395. </td>
  396. </tr>
  397. </tbody>
  398. </table>
  399. <dl class="details">
  400. <dt class="tag-source">Source:</dt>
  401. <dd class="tag-source"><ul class="dummy"><li>
  402. <a href="options_audio.js.html">options/audio.js</a>, <a href="options_audio.js.html#line116">line 116</a>
  403. </li></ul></dd>
  404. </dl>
  405. <h5>Returns:</h5>
  406. <div class="param-desc">
  407. <p>FfmpegCommand</p>
  408. </div>
  409. <h5>Examples:</h5>
  410. <pre class="prettyprint"><code>command.audioFilters('filter1');</code></pre>
  411. <pre class="prettyprint"><code>command.audioFilters('filter1', 'filter2=param1=value1:param2=value2');</code></pre>
  412. <pre class="prettyprint"><code>command.audioFilters(['filter1', 'filter2']);</code></pre>
  413. <pre class="prettyprint"><code>command.audioFilters([
  414. {
  415. filter: 'filter1'
  416. },
  417. {
  418. filter: 'filter2',
  419. options: 'param=value:param=value'
  420. }
  421. ]);</code></pre>
  422. <pre class="prettyprint"><code>command.audioFilters(
  423. {
  424. filter: 'filter1',
  425. options: ['value1', 'value2']
  426. },
  427. {
  428. filter: 'filter2',
  429. options: { param1: 'value1', param2: 'value2' }
  430. }
  431. );</code></pre>
  432. <h5>Aliases:</h5>
  433. <ul>
  434. <li>withAudioFilter</li>
  435. <li>withAudioFilters</li>
  436. <li>audioFilter</li>
  437. </ul>
  438. </dd>
  439. <dt>
  440. <h4 class="name" id="audioFrequency"><span class="type-signature"></span>audioFrequency<span class="signature">(freq)</span><span class="type-signature"></span></h4>
  441. </dt>
  442. <dd>
  443. <div class="description">
  444. <p>Specify audio frequency</p>
  445. </div>
  446. <h5>Parameters:</h5>
  447. <table class="params">
  448. <thead>
  449. <tr>
  450. <th>Name</th>
  451. <th>Type</th>
  452. <th class="last">Description</th>
  453. </tr>
  454. </thead>
  455. <tbody>
  456. <tr>
  457. <td class="name"><code>freq</code></td>
  458. <td class="type">
  459. <span class="param-type">Number</span>
  460. </td>
  461. <td class="description last"><p>audio frequency in Hz</p></td>
  462. </tr>
  463. </tbody>
  464. </table>
  465. <dl class="details">
  466. <dt class="tag-source">Source:</dt>
  467. <dd class="tag-source"><ul class="dummy"><li>
  468. <a href="options_audio.js.html">options/audio.js</a>, <a href="options_audio.js.html#line82">line 82</a>
  469. </li></ul></dd>
  470. </dl>
  471. <h5>Returns:</h5>
  472. <div class="param-desc">
  473. <p>FfmpegCommand</p>
  474. </div>
  475. <h5>Alias:</h5>
  476. withAudioFrequency
  477. </dd>
  478. <dt>
  479. <h4 class="name" id="audioQuality"><span class="type-signature"></span>audioQuality<span class="signature">(quality)</span><span class="type-signature"></span></h4>
  480. </dt>
  481. <dd>
  482. <div class="description">
  483. <p>Specify audio quality</p>
  484. </div>
  485. <h5>Parameters:</h5>
  486. <table class="params">
  487. <thead>
  488. <tr>
  489. <th>Name</th>
  490. <th>Type</th>
  491. <th class="last">Description</th>
  492. </tr>
  493. </thead>
  494. <tbody>
  495. <tr>
  496. <td class="name"><code>quality</code></td>
  497. <td class="type">
  498. <span class="param-type">Number</span>
  499. </td>
  500. <td class="description last"><p>audio quality factor</p></td>
  501. </tr>
  502. </tbody>
  503. </table>
  504. <dl class="details">
  505. <dt class="tag-source">Source:</dt>
  506. <dd class="tag-source"><ul class="dummy"><li>
  507. <a href="options_audio.js.html">options/audio.js</a>, <a href="options_audio.js.html#line99">line 99</a>
  508. </li></ul></dd>
  509. </dl>
  510. <h5>Returns:</h5>
  511. <div class="param-desc">
  512. <p>FfmpegCommand</p>
  513. </div>
  514. <h5>Alias:</h5>
  515. withAudioQuality
  516. </dd>
  517. <dt>
  518. <h4 class="name" id="noAudio"><span class="type-signature"></span>noAudio<span class="signature">()</span><span class="type-signature"></span></h4>
  519. </dt>
  520. <dd>
  521. <div class="description">
  522. <p>Disable audio in the output</p>
  523. </div>
  524. <dl class="details">
  525. <dt class="tag-source">Source:</dt>
  526. <dd class="tag-source"><ul class="dummy"><li>
  527. <a href="options_audio.js.html">options/audio.js</a>, <a href="options_audio.js.html#line12">line 12</a>
  528. </li></ul></dd>
  529. </dl>
  530. <h5>Returns:</h5>
  531. <div class="param-desc">
  532. <p>FfmpegCommand</p>
  533. </div>
  534. <h5>Alias:</h5>
  535. withNoAudio
  536. </dd>
  537. <dt>
  538. <h4 class="name" id="withAudioBitrate"><span class="type-signature"></span>withAudioBitrate<span class="signature">(bitrate)</span><span class="type-signature"></span></h4>
  539. </dt>
  540. <dd>
  541. <div class="description">
  542. Alias for <a href="#audioBitrate">FfmpegCommand#audioBitrate</a>
  543. </div>
  544. <dl class="details">
  545. </dl>
  546. </dd>
  547. <dt>
  548. <h4 class="name" id="withAudioChannels"><span class="type-signature"></span>withAudioChannels<span class="signature">(channels)</span><span class="type-signature"></span></h4>
  549. </dt>
  550. <dd>
  551. <div class="description">
  552. Alias for <a href="#audioChannels">FfmpegCommand#audioChannels</a>
  553. </div>
  554. <dl class="details">
  555. </dl>
  556. </dd>
  557. <dt>
  558. <h4 class="name" id="withAudioCodec"><span class="type-signature"></span>withAudioCodec<span class="signature">(codec)</span><span class="type-signature"></span></h4>
  559. </dt>
  560. <dd>
  561. <div class="description">
  562. Alias for <a href="#audioCodec">FfmpegCommand#audioCodec</a>
  563. </div>
  564. <dl class="details">
  565. </dl>
  566. </dd>
  567. <dt>
  568. <h4 class="name" id="withAudioFilter"><span class="type-signature"></span>withAudioFilter<span class="signature">(filters)</span><span class="type-signature"></span></h4>
  569. </dt>
  570. <dd>
  571. <div class="description">
  572. Alias for <a href="#audioFilters">FfmpegCommand#audioFilters</a>
  573. </div>
  574. <dl class="details">
  575. </dl>
  576. </dd>
  577. <dt>
  578. <h4 class="name" id="withAudioFilters"><span class="type-signature"></span>withAudioFilters<span class="signature">(filters)</span><span class="type-signature"></span></h4>
  579. </dt>
  580. <dd>
  581. <div class="description">
  582. Alias for <a href="#audioFilters">FfmpegCommand#audioFilters</a>
  583. </div>
  584. <dl class="details">
  585. </dl>
  586. </dd>
  587. <dt>
  588. <h4 class="name" id="withAudioFrequency"><span class="type-signature"></span>withAudioFrequency<span class="signature">(freq)</span><span class="type-signature"></span></h4>
  589. </dt>
  590. <dd>
  591. <div class="description">
  592. Alias for <a href="#audioFrequency">FfmpegCommand#audioFrequency</a>
  593. </div>
  594. <dl class="details">
  595. </dl>
  596. </dd>
  597. <dt>
  598. <h4 class="name" id="withAudioQuality"><span class="type-signature"></span>withAudioQuality<span class="signature">(quality)</span><span class="type-signature"></span></h4>
  599. </dt>
  600. <dd>
  601. <div class="description">
  602. Alias for <a href="#audioQuality">FfmpegCommand#audioQuality</a>
  603. </div>
  604. <dl class="details">
  605. </dl>
  606. </dd>
  607. <dt>
  608. <h4 class="name" id="withNoAudio"><span class="type-signature"></span>withNoAudio<span class="signature">()</span><span class="type-signature"></span></h4>
  609. </dt>
  610. <dd>
  611. <div class="description">
  612. Alias for <a href="#noAudio">FfmpegCommand#noAudio</a>
  613. </div>
  614. <dl class="details">
  615. </dl>
  616. </dd>
  617. </dl>
  618. <h3 class="subsection-title"><a name="capabilities-methods"></a>Capabilities methods</h3>
  619. <dl>
  620. <dt>
  621. <h4 class="name" id="availableCodecs"><span class="type-signature"></span>availableCodecs<span class="signature">(callback)</span><span class="type-signature"></span></h4>
  622. </dt>
  623. <dd>
  624. <div class="description">
  625. <p>Query ffmpeg for available codecs</p>
  626. </div>
  627. <h5>Parameters:</h5>
  628. <table class="params">
  629. <thead>
  630. <tr>
  631. <th>Name</th>
  632. <th>Type</th>
  633. <th class="last">Description</th>
  634. </tr>
  635. </thead>
  636. <tbody>
  637. <tr>
  638. <td class="name"><code>callback</code></td>
  639. <td class="type">
  640. <span class="param-type"><a href="FfmpegCommand.html#~codecCallback">FfmpegCommand~codecCallback</a></span>
  641. </td>
  642. <td class="description last"><p>callback function</p></td>
  643. </tr>
  644. </tbody>
  645. </table>
  646. <dl class="details">
  647. <dt class="tag-source">Source:</dt>
  648. <dd class="tag-source"><ul class="dummy"><li>
  649. <a href="capabilities.js.html">capabilities.js</a>, <a href="capabilities.js.html#line343">line 343</a>
  650. </li></ul></dd>
  651. </dl>
  652. <h5>Alias:</h5>
  653. getAvailableCodecs
  654. </dd>
  655. <dt>
  656. <h4 class="name" id="availableEncoders"><span class="type-signature"></span>availableEncoders<span class="signature">(callback)</span><span class="type-signature"></span></h4>
  657. </dt>
  658. <dd>
  659. <div class="description">
  660. <p>Query ffmpeg for available encoders</p>
  661. </div>
  662. <h5>Parameters:</h5>
  663. <table class="params">
  664. <thead>
  665. <tr>
  666. <th>Name</th>
  667. <th>Type</th>
  668. <th class="last">Description</th>
  669. </tr>
  670. </thead>
  671. <tbody>
  672. <tr>
  673. <td class="name"><code>callback</code></td>
  674. <td class="type">
  675. <span class="param-type"><a href="FfmpegCommand.html#~encodersCallback">FfmpegCommand~encodersCallback</a></span>
  676. </td>
  677. <td class="description last"><p>callback function</p></td>
  678. </tr>
  679. </tbody>
  680. </table>
  681. <dl class="details">
  682. <dt class="tag-source">Source:</dt>
  683. <dd class="tag-source"><ul class="dummy"><li>
  684. <a href="capabilities.js.html">capabilities.js</a>, <a href="capabilities.js.html#line445">line 445</a>
  685. </li></ul></dd>
  686. </dl>
  687. <h5>Alias:</h5>
  688. getAvailableEncoders
  689. </dd>
  690. <dt>
  691. <h4 class="name" id="availableFilters"><span class="type-signature"></span>availableFilters<span class="signature">(callback)</span><span class="type-signature"></span></h4>
  692. </dt>
  693. <dd>
  694. <div class="description">
  695. <p>Query ffmpeg for available filters</p>
  696. </div>
  697. <h5>Parameters:</h5>
  698. <table class="params">
  699. <thead>
  700. <tr>
  701. <th>Name</th>
  702. <th>Type</th>
  703. <th class="last">Description</th>
  704. </tr>
  705. </thead>
  706. <tbody>
  707. <tr>
  708. <td class="name"><code>callback</code></td>
  709. <td class="type">
  710. <span class="param-type"><a href="FfmpegCommand.html#~filterCallback">FfmpegCommand~filterCallback</a></span>
  711. </td>
  712. <td class="description last"><p>callback function</p></td>
  713. </tr>
  714. </tbody>
  715. </table>
  716. <dl class="details">
  717. <dt class="tag-source">Source:</dt>
  718. <dd class="tag-source"><ul class="dummy"><li>
  719. <a href="capabilities.js.html">capabilities.js</a>, <a href="capabilities.js.html#line287">line 287</a>
  720. </li></ul></dd>
  721. </dl>
  722. <h5>Alias:</h5>
  723. getAvailableFilters
  724. </dd>
  725. <dt>
  726. <h4 class="name" id="availableFormats"><span class="type-signature"></span>availableFormats<span class="signature">(callback)</span><span class="type-signature"></span></h4>
  727. </dt>
  728. <dd>
  729. <div class="description">
  730. <p>Query ffmpeg for available formats</p>
  731. </div>
  732. <h5>Parameters:</h5>
  733. <table class="params">
  734. <thead>
  735. <tr>
  736. <th>Name</th>
  737. <th>Type</th>
  738. <th class="last">Description</th>
  739. </tr>
  740. </thead>
  741. <tbody>
  742. <tr>
  743. <td class="name"><code>callback</code></td>
  744. <td class="type">
  745. <span class="param-type"><a href="FfmpegCommand.html#~formatCallback">FfmpegCommand~formatCallback</a></span>
  746. </td>
  747. <td class="description last"><p>callback function</p></td>
  748. </tr>
  749. </tbody>
  750. </table>
  751. <dl class="details">
  752. <dt class="tag-source">Source:</dt>
  753. <dd class="tag-source"><ul class="dummy"><li>
  754. <a href="capabilities.js.html">capabilities.js</a>, <a href="capabilities.js.html#line501">line 501</a>
  755. </li></ul></dd>
  756. </dl>
  757. <h5>Alias:</h5>
  758. getAvailableFormats
  759. </dd>
  760. <dt>
  761. <h4 class="name" id="getAvailableCodecs"><span class="type-signature"></span>getAvailableCodecs<span class="signature">(callback)</span><span class="type-signature"></span></h4>
  762. </dt>
  763. <dd>
  764. <div class="description">
  765. Alias for <a href="#availableCodecs">FfmpegCommand#availableCodecs</a>
  766. </div>
  767. <dl class="details">
  768. </dl>
  769. </dd>
  770. <dt>
  771. <h4 class="name" id="getAvailableEncoders"><span class="type-signature"></span>getAvailableEncoders<span class="signature">(callback)</span><span class="type-signature"></span></h4>
  772. </dt>
  773. <dd>
  774. <div class="description">
  775. Alias for <a href="#availableEncoders">FfmpegCommand#availableEncoders</a>
  776. </div>
  777. <dl class="details">
  778. </dl>
  779. </dd>
  780. <dt>
  781. <h4 class="name" id="getAvailableFilters"><span class="type-signature"></span>getAvailableFilters<span class="signature">(callback)</span><span class="type-signature"></span></h4>
  782. </dt>
  783. <dd>
  784. <div class="description">
  785. Alias for <a href="#availableFilters">FfmpegCommand#availableFilters</a>
  786. </div>
  787. <dl class="details">
  788. </dl>
  789. </dd>
  790. <dt>
  791. <h4 class="name" id="getAvailableFormats"><span class="type-signature"></span>getAvailableFormats<span class="signature">(callback)</span><span class="type-signature"></span></h4>
  792. </dt>
  793. <dd>
  794. <div class="description">
  795. Alias for <a href="#availableFormats">FfmpegCommand#availableFormats</a>
  796. </div>
  797. <dl class="details">
  798. </dl>
  799. </dd>
  800. </dl>
  801. <h3 class="subsection-title"><a name="custom-options-methods"></a>Custom options methods</h3>
  802. <dl>
  803. <dt>
  804. <h4 class="name" id="addInputOption"><span class="type-signature"></span>addInputOption<span class="signature">(options)</span><span class="type-signature"></span></h4>
  805. </dt>
  806. <dd>
  807. <div class="description">
  808. Alias for <a href="#inputOptions">FfmpegCommand#inputOptions</a>
  809. </div>
  810. <dl class="details">
  811. </dl>
  812. </dd>
  813. <dt>
  814. <h4 class="name" id="addInputOptions"><span class="type-signature"></span>addInputOptions<span class="signature">(options)</span><span class="type-signature"></span></h4>
  815. </dt>
  816. <dd>
  817. <div class="description">
  818. Alias for <a href="#inputOptions">FfmpegCommand#inputOptions</a>
  819. </div>
  820. <dl class="details">
  821. </dl>
  822. </dd>
  823. <dt>
  824. <h4 class="name" id="addOption"><span class="type-signature"></span>addOption<span class="signature">(options)</span><span class="type-signature"></span></h4>
  825. </dt>
  826. <dd>
  827. <div class="description">
  828. Alias for <a href="#outputOptions">FfmpegCommand#outputOptions</a>
  829. </div>
  830. <dl class="details">
  831. </dl>
  832. </dd>
  833. <dt>
  834. <h4 class="name" id="addOptions"><span class="type-signature"></span>addOptions<span class="signature">(options)</span><span class="type-signature"></span></h4>
  835. </dt>
  836. <dd>
  837. <div class="description">
  838. Alias for <a href="#outputOptions">FfmpegCommand#outputOptions</a>
  839. </div>
  840. <dl class="details">
  841. </dl>
  842. </dd>
  843. <dt>
  844. <h4 class="name" id="addOutputOption"><span class="type-signature"></span>addOutputOption<span class="signature">(options)</span><span class="type-signature"></span></h4>
  845. </dt>
  846. <dd>
  847. <div class="description">
  848. Alias for <a href="#outputOptions">FfmpegCommand#outputOptions</a>
  849. </div>
  850. <dl class="details">
  851. </dl>
  852. </dd>
  853. <dt>
  854. <h4 class="name" id="addOutputOptions"><span class="type-signature"></span>addOutputOptions<span class="signature">(options)</span><span class="type-signature"></span></h4>
  855. </dt>
  856. <dd>
  857. <div class="description">
  858. Alias for <a href="#outputOptions">FfmpegCommand#outputOptions</a>
  859. </div>
  860. <dl class="details">
  861. </dl>
  862. </dd>
  863. <dt>
  864. <h4 class="name" id="complexFilter"><span class="type-signature"></span>complexFilter<span class="signature">(spec, <span class="optional">map</span>)</span><span class="type-signature"></span></h4>
  865. </dt>
  866. <dd>
  867. <div class="description">
  868. <p>Specify a complex filtergraph</p>
  869. <p>Calling this method will override any previously set filtergraph, but you can set
  870. as many filters as needed in one call.</p>
  871. </div>
  872. <h5>Parameters:</h5>
  873. <table class="params">
  874. <thead>
  875. <tr>
  876. <th>Name</th>
  877. <th>Type</th>
  878. <th>Argument</th>
  879. <th class="last">Description</th>
  880. </tr>
  881. </thead>
  882. <tbody>
  883. <tr>
  884. <td class="name"><code>spec</code></td>
  885. <td class="type">
  886. <span class="param-type">String</span>
  887. |
  888. <span class="param-type">Array</span>
  889. </td>
  890. <td class="attributes">
  891. </td>
  892. <td class="description last"><p>filtergraph string or array of filter specification
  893. objects, each having the following properties:</p>
  894. <h6>Properties</h6>
  895. <table class="params">
  896. <thead>
  897. <tr>
  898. <th>Name</th>
  899. <th>Type</th>
  900. <th>Argument</th>
  901. <th class="last">Description</th>
  902. </tr>
  903. </thead>
  904. <tbody>
  905. <tr>
  906. <td class="name"><code>filter</code></td>
  907. <td class="type">
  908. <span class="param-type">String</span>
  909. </td>
  910. <td class="attributes">
  911. </td>
  912. <td class="description last"><p>filter name</p></td>
  913. </tr>
  914. <tr>
  915. <td class="name"><code>inputs</code></td>
  916. <td class="type">
  917. <span class="param-type">String</span>
  918. |
  919. <span class="param-type">Array</span>
  920. </td>
  921. <td class="attributes">
  922. &lt;optional><br>
  923. </td>
  924. <td class="description last"><p>(array of) input stream specifier(s) for the filter,
  925. defaults to ffmpeg automatically choosing the first unused matching streams</p></td>
  926. </tr>
  927. <tr>
  928. <td class="name"><code>outputs</code></td>
  929. <td class="type">
  930. <span class="param-type">String</span>
  931. |
  932. <span class="param-type">Array</span>
  933. </td>
  934. <td class="attributes">
  935. &lt;optional><br>
  936. </td>
  937. <td class="description last"><p>(array of) output stream specifier(s) for the filter,
  938. defaults to ffmpeg automatically assigning the output to the output file</p></td>
  939. </tr>
  940. <tr>
  941. <td class="name"><code>options</code></td>
  942. <td class="type">
  943. <span class="param-type">Object</span>
  944. |
  945. <span class="param-type">String</span>
  946. |
  947. <span class="param-type">Array</span>
  948. </td>
  949. <td class="attributes">
  950. &lt;optional><br>
  951. </td>
  952. <td class="description last"><p>filter options, can be omitted to not set any options</p></td>
  953. </tr>
  954. </tbody>
  955. </table>
  956. </td>
  957. </tr>
  958. <tr>
  959. <td class="name"><code>map</code></td>
  960. <td class="type">
  961. <span class="param-type">Array</span>
  962. </td>
  963. <td class="attributes">
  964. &lt;optional><br>
  965. </td>
  966. <td class="description last"><p>(array of) stream specifier(s) from the graph to include in
  967. ffmpeg output, defaults to ffmpeg automatically choosing the first matching streams.</p></td>
  968. </tr>
  969. </tbody>
  970. </table>
  971. <dl class="details">
  972. <dt class="tag-source">Source:</dt>
  973. <dd class="tag-source"><ul class="dummy"><li>
  974. <a href="options_custom.js.html">options/custom.js</a>, <a href="options_custom.js.html#line127">line 127</a>
  975. </li></ul></dd>
  976. </dl>
  977. <h5>Returns:</h5>
  978. <div class="param-desc">
  979. <p>FfmpegCommand</p>
  980. </div>
  981. <h5>Examples:</h5>
  982. <p class="code-caption">Overlay an image over a video (using a filtergraph string)</p>
  983. <pre class="prettyprint"><code> ffmpeg()
  984. .input('video.avi')
  985. .input('image.png')
  986. .complexFilter('[0:v][1:v]overlay[out]', ['out']);</code></pre>
  987. <p class="code-caption">Overlay an image over a video (using a filter array)</p>
  988. <pre class="prettyprint"><code> ffmpeg()
  989. .input('video.avi')
  990. .input('image.png')
  991. .complexFilter([{
  992. filter: 'overlay',
  993. inputs: ['0:v', '1:v'],
  994. outputs: ['out']
  995. }], ['out']);</code></pre>
  996. <p class="code-caption">Split video into RGB channels and output a 3x1 video with channels side to side</p>
  997. <pre class="prettyprint"><code> ffmpeg()
  998. .input('video.avi')
  999. .complexFilter([
  1000. // Duplicate video stream 3 times into streams a, b, and c
  1001. { filter: 'split', options: '3', outputs: ['a', 'b', 'c'] },
  1002. // Create stream 'red' by cancelling green and blue channels from stream 'a'
  1003. { filter: 'lutrgb', options: { g: 0, b: 0 }, inputs: 'a', outputs: 'red' },
  1004. // Create stream 'green' by cancelling red and blue channels from stream 'b'
  1005. { filter: 'lutrgb', options: { r: 0, b: 0 }, inputs: 'b', outputs: 'green' },
  1006. // Create stream 'blue' by cancelling red and green channels from stream 'c'
  1007. { filter: 'lutrgb', options: { r: 0, g: 0 }, inputs: 'c', outputs: 'blue' },
  1008. // Pad stream 'red' to 3x width, keeping the video on the left, and name output 'padded'
  1009. { filter: 'pad', options: { w: 'iw*3', h: 'ih' }, inputs: 'red', outputs: 'padded' },
  1010. // Overlay 'green' onto 'padded', moving it to the center, and name output 'redgreen'
  1011. { filter: 'overlay', options: { x: 'w', y: 0 }, inputs: ['padded', 'green'], outputs: 'redgreen'},
  1012. // Overlay 'blue' onto 'redgreen', moving it to the right
  1013. { filter: 'overlay', options: { x: '2*w', y: 0 }, inputs: ['redgreen', 'blue']},
  1014. ]);</code></pre>
  1015. <h5>Alias:</h5>
  1016. filterGraph
  1017. </dd>
  1018. <dt>
  1019. <h4 class="name" id="filterGraph"><span class="type-signature"></span>filterGraph<span class="signature">(spec, <span class="optional">map</span>)</span><span class="type-signature"></span></h4>
  1020. </dt>
  1021. <dd>
  1022. <div class="description">
  1023. Alias for <a href="#complexFilter">FfmpegCommand#complexFilter</a>
  1024. </div>
  1025. <dl class="details">
  1026. </dl>
  1027. </dd>
  1028. <dt>
  1029. <h4 class="name" id="inputOption"><span class="type-signature"></span>inputOption<span class="signature">(options)</span><span class="type-signature"></span></h4>
  1030. </dt>
  1031. <dd>
  1032. <div class="description">
  1033. Alias for <a href="#inputOptions">FfmpegCommand#inputOptions</a>
  1034. </div>
  1035. <dl class="details">
  1036. </dl>
  1037. </dd>
  1038. <dt>
  1039. <h4 class="name" id="inputOptions"><span class="type-signature"></span>inputOptions<span class="signature">(options)</span><span class="type-signature"></span></h4>
  1040. </dt>
  1041. <dd>
  1042. <div class="description">
  1043. <p>Add custom input option(s)</p>
  1044. <p>When passing a single string or an array, each string containing two
  1045. words is split (eg. inputOptions('-option value') is supported) for
  1046. compatibility reasons. This is not the case when passing more than
  1047. one argument.</p>
  1048. </div>
  1049. <h5>Parameters:</h5>
  1050. <table class="params">
  1051. <thead>
  1052. <tr>
  1053. <th>Name</th>
  1054. <th>Type</th>
  1055. <th>Argument</th>
  1056. <th class="last">Description</th>
  1057. </tr>
  1058. </thead>
  1059. <tbody>
  1060. <tr>
  1061. <td class="name"><code>options</code></td>
  1062. <td class="type">
  1063. <span class="param-type">String</span>
  1064. </td>
  1065. <td class="attributes">
  1066. &lt;repeatable><br>
  1067. </td>
  1068. <td class="description last"><p>option string(s) or string array</p></td>
  1069. </tr>
  1070. </tbody>
  1071. </table>
  1072. <dl class="details">
  1073. <dt class="tag-source">Source:</dt>
  1074. <dd class="tag-source"><ul class="dummy"><li>
  1075. <a href="options_custom.js.html">options/custom.js</a>, <a href="options_custom.js.html#line12">line 12</a>
  1076. </li></ul></dd>
  1077. </dl>
  1078. <h5>Returns:</h5>
  1079. <div class="param-desc">
  1080. <p>FfmpegCommand</p>
  1081. </div>
  1082. <h5>Examples:</h5>
  1083. <pre class="prettyprint"><code>command.inputOptions('option1');</code></pre>
  1084. <pre class="prettyprint"><code>command.inputOptions('option1', 'option2');</code></pre>
  1085. <pre class="prettyprint"><code>command.inputOptions(['option1', 'option2']);</code></pre>
  1086. <h5>Aliases:</h5>
  1087. <ul>
  1088. <li>addInputOption</li>
  1089. <li>addInputOptions</li>
  1090. <li>withInputOption</li>
  1091. <li>withInputOptions</li>
  1092. <li>inputOption</li>
  1093. </ul>
  1094. </dd>
  1095. <dt>
  1096. <h4 class="name" id="outputOption"><span class="type-signature"></span>outputOption<span class="signature">(options)</span><span class="type-signature"></span></h4>
  1097. </dt>
  1098. <dd>
  1099. <div class="description">
  1100. Alias for <a href="#outputOptions">FfmpegCommand#outputOptions</a>
  1101. </div>
  1102. <dl class="details">
  1103. </dl>
  1104. </dd>
  1105. <dt>
  1106. <h4 class="name" id="outputOptions"><span class="type-signature"></span>outputOptions<span class="signature">(options)</span><span class="type-signature"></span></h4>
  1107. </dt>
  1108. <dd>
  1109. <div class="description">
  1110. <p>Add custom output option(s)</p>
  1111. </div>
  1112. <h5>Parameters:</h5>
  1113. <table class="params">
  1114. <thead>
  1115. <tr>
  1116. <th>Name</th>
  1117. <th>Type</th>
  1118. <th>Argument</th>
  1119. <th class="last">Description</th>
  1120. </tr>
  1121. </thead>
  1122. <tbody>
  1123. <tr>
  1124. <td class="name"><code>options</code></td>
  1125. <td class="type">
  1126. <span class="param-type">String</span>
  1127. </td>
  1128. <td class="attributes">
  1129. &lt;repeatable><br>
  1130. </td>
  1131. <td class="description last"><p>option string(s) or string array</p></td>
  1132. </tr>
  1133. </tbody>
  1134. </table>
  1135. <dl class="details">
  1136. <dt class="tag-source">Source:</dt>
  1137. <dd class="tag-source"><ul class="dummy"><li>
  1138. <a href="options_custom.js.html">options/custom.js</a>, <a href="options_custom.js.html#line72">line 72</a>
  1139. </li></ul></dd>
  1140. </dl>
  1141. <h5>Returns:</h5>
  1142. <div class="param-desc">
  1143. <p>FfmpegCommand</p>
  1144. </div>
  1145. <h5>Examples:</h5>
  1146. <pre class="prettyprint"><code>command.outputOptions('option1');</code></pre>
  1147. <pre class="prettyprint"><code>command.outputOptions('option1', 'option2');</code></pre>
  1148. <pre class="prettyprint"><code>command.outputOptions(['option1', 'option2']);</code></pre>
  1149. <h5>Aliases:</h5>
  1150. <ul>
  1151. <li>addOutputOption</li>
  1152. <li>addOutputOptions</li>
  1153. <li>addOption</li>
  1154. <li>addOptions</li>
  1155. <li>withOutputOption</li>
  1156. <li>withOutputOptions</li>
  1157. <li>withOption</li>
  1158. <li>withOptions</li>
  1159. <li>outputOption</li>
  1160. </ul>
  1161. </dd>
  1162. <dt>
  1163. <h4 class="name" id="withInputOption"><span class="type-signature"></span>withInputOption<span class="signature">(options)</span><span class="type-signature"></span></h4>
  1164. </dt>
  1165. <dd>
  1166. <div class="description">
  1167. Alias for <a href="#inputOptions">FfmpegCommand#inputOptions</a>
  1168. </div>
  1169. <dl class="details">
  1170. </dl>
  1171. </dd>
  1172. <dt>
  1173. <h4 class="name" id="withInputOptions"><span class="type-signature"></span>withInputOptions<span class="signature">(options)</span><span class="type-signature"></span></h4>
  1174. </dt>
  1175. <dd>
  1176. <div class="description">
  1177. Alias for <a href="#inputOptions">FfmpegCommand#inputOptions</a>
  1178. </div>
  1179. <dl class="details">
  1180. </dl>
  1181. </dd>
  1182. <dt>
  1183. <h4 class="name" id="withOption"><span class="type-signature"></span>withOption<span class="signature">(options)</span><span class="type-signature"></span></h4>
  1184. </dt>
  1185. <dd>
  1186. <div class="description">
  1187. Alias for <a href="#outputOptions">FfmpegCommand#outputOptions</a>
  1188. </div>
  1189. <dl class="details">
  1190. </dl>
  1191. </dd>
  1192. <dt>
  1193. <h4 class="name" id="withOptions"><span class="type-signature"></span>withOptions<span class="signature">(options)</span><span class="type-signature"></span></h4>
  1194. </dt>
  1195. <dd>
  1196. <div class="description">
  1197. Alias for <a href="#outputOptions">FfmpegCommand#outputOptions</a>
  1198. </div>
  1199. <dl class="details">
  1200. </dl>
  1201. </dd>
  1202. <dt>
  1203. <h4 class="name" id="withOutputOption"><span class="type-signature"></span>withOutputOption<span class="signature">(options)</span><span class="type-signature"></span></h4>
  1204. </dt>
  1205. <dd>
  1206. <div class="description">
  1207. Alias for <a href="#outputOptions">FfmpegCommand#outputOptions</a>
  1208. </div>
  1209. <dl class="details">
  1210. </dl>
  1211. </dd>
  1212. <dt>
  1213. <h4 class="name" id="withOutputOptions"><span class="type-signature"></span>withOutputOptions<span class="signature">(options)</span><span class="type-signature"></span></h4>
  1214. </dt>
  1215. <dd>
  1216. <div class="description">
  1217. Alias for <a href="#outputOptions">FfmpegCommand#outputOptions</a>
  1218. </div>
  1219. <dl class="details">
  1220. </dl>
  1221. </dd>
  1222. </dl>
  1223. <h3 class="subsection-title"><a name="input-methods"></a>Input methods</h3>
  1224. <dl>
  1225. <dt>
  1226. <h4 class="name" id="addInput"><span class="type-signature"></span>addInput<span class="signature">(source)</span><span class="type-signature"></span></h4>
  1227. </dt>
  1228. <dd>
  1229. <div class="description">
  1230. Alias for <a href="#input">FfmpegCommand#input</a>
  1231. </div>
  1232. <dl class="details">
  1233. </dl>
  1234. </dd>
  1235. <dt>
  1236. <h4 class="name" id="fpsInput"><span class="type-signature"></span>fpsInput<span class="signature">(fps)</span><span class="type-signature"></span></h4>
  1237. </dt>
  1238. <dd>
  1239. <div class="description">
  1240. Alias for <a href="#inputFps">FfmpegCommand#inputFps</a>
  1241. </div>
  1242. <dl class="details">
  1243. </dl>
  1244. </dd>
  1245. <dt>
  1246. <h4 class="name" id="fromFormat"><span class="type-signature"></span>fromFormat<span class="signature">(format)</span><span class="type-signature"></span></h4>
  1247. </dt>
  1248. <dd>
  1249. <div class="description">
  1250. Alias for <a href="#inputFormat">FfmpegCommand#inputFormat</a>
  1251. </div>
  1252. <dl class="details">
  1253. </dl>
  1254. </dd>
  1255. <dt>
  1256. <h4 class="name" id="input"><span class="type-signature"></span>input<span class="signature">(source)</span><span class="type-signature"></span></h4>
  1257. </dt>
  1258. <dd>
  1259. <div class="description">
  1260. <p>Add an input to command</p>
  1261. <p>Also switches &quot;current input&quot;, that is the input that will be affected
  1262. by subsequent input-related methods.</p>
  1263. <p>Note: only one stream input is supported for now.</p>
  1264. </div>
  1265. <h5>Parameters:</h5>
  1266. <table class="params">
  1267. <thead>
  1268. <tr>
  1269. <th>Name</th>
  1270. <th>Type</th>
  1271. <th class="last">Description</th>
  1272. </tr>
  1273. </thead>
  1274. <tbody>
  1275. <tr>
  1276. <td class="name"><code>source</code></td>
  1277. <td class="type">
  1278. <span class="param-type">String</span>
  1279. |
  1280. <span class="param-type">Readable</span>
  1281. </td>
  1282. <td class="description last"><p>input file path or readable stream</p></td>
  1283. </tr>
  1284. </tbody>
  1285. </table>
  1286. <dl class="details">
  1287. <dt class="tag-source">Source:</dt>
  1288. <dd class="tag-source"><ul class="dummy"><li>
  1289. <a href="options_inputs.js.html">options/inputs.js</a>, <a href="options_inputs.js.html#line11">line 11</a>
  1290. </li></ul></dd>
  1291. </dl>
  1292. <h5>Returns:</h5>
  1293. <div class="param-desc">
  1294. <p>FfmpegCommand</p>
  1295. </div>
  1296. <h5>Aliases:</h5>
  1297. <ul>
  1298. <li>mergeAdd</li>
  1299. <li>addInput</li>
  1300. </ul>
  1301. </dd>
  1302. <dt>
  1303. <h4 class="name" id="inputFormat"><span class="type-signature"></span>inputFormat<span class="signature">(format)</span><span class="type-signature"></span></h4>
  1304. </dt>
  1305. <dd>
  1306. <div class="description">
  1307. <p>Specify input format for the last specified input</p>
  1308. </div>
  1309. <h5>Parameters:</h5>
  1310. <table class="params">
  1311. <thead>
  1312. <tr>
  1313. <th>Name</th>
  1314. <th>Type</th>
  1315. <th class="last">Description</th>
  1316. </tr>
  1317. </thead>
  1318. <tbody>
  1319. <tr>
  1320. <td class="name"><code>format</code></td>
  1321. <td class="type">
  1322. <span class="param-type">String</span>
  1323. </td>
  1324. <td class="description last"><p>input format</p></td>
  1325. </tr>
  1326. </tbody>
  1327. </table>
  1328. <dl class="details">
  1329. <dt class="tag-source">Source:</dt>
  1330. <dd class="tag-source"><ul class="dummy"><li>
  1331. <a href="options_inputs.js.html">options/inputs.js</a>, <a href="options_inputs.js.html#line63">line 63</a>
  1332. </li></ul></dd>
  1333. </dl>
  1334. <h5>Returns:</h5>
  1335. <div class="param-desc">
  1336. <p>FfmpegCommand</p>
  1337. </div>
  1338. <h5>Aliases:</h5>
  1339. <ul>
  1340. <li>withInputFormat</li>
  1341. <li>fromFormat</li>
  1342. </ul>
  1343. </dd>
  1344. <dt>
  1345. <h4 class="name" id="inputFps"><span class="type-signature"></span>inputFps<span class="signature">(fps)</span><span class="type-signature"></span></h4>
  1346. </dt>
  1347. <dd>
  1348. <div class="description">
  1349. <p>Specify input FPS for the last specified input
  1350. (only valid for raw video formats)</p>
  1351. </div>
  1352. <h5>Parameters:</h5>
  1353. <table class="params">
  1354. <thead>
  1355. <tr>
  1356. <th>Name</th>
  1357. <th>Type</th>
  1358. <th class="last">Description</th>
  1359. </tr>
  1360. </thead>
  1361. <tbody>
  1362. <tr>
  1363. <td class="name"><code>fps</code></td>
  1364. <td class="type">
  1365. <span class="param-type">Number</span>
  1366. </td>
  1367. <td class="description last"><p>input FPS</p></td>
  1368. </tr>
  1369. </tbody>
  1370. </table>
  1371. <dl class="details">
  1372. <dt class="tag-source">Source:</dt>
  1373. <dd class="tag-source"><ul class="dummy"><li>
  1374. <a href="options_inputs.js.html">options/inputs.js</a>, <a href="options_inputs.js.html#line85">line 85</a>
  1375. </li></ul></dd>
  1376. </dl>
  1377. <h5>Returns:</h5>
  1378. <div class="param-desc">
  1379. <p>FfmpegCommand</p>
  1380. </div>
  1381. <h5>Aliases:</h5>
  1382. <ul>
  1383. <li>withInputFps</li>
  1384. <li>withInputFPS</li>
  1385. <li>withFpsInput</li>
  1386. <li>withFPSInput</li>
  1387. <li>inputFPS</li>
  1388. <li>inputFps</li>
  1389. <li>fpsInput</li>
  1390. </ul>
  1391. </dd>
  1392. <dt>
  1393. <h4 class="name" id="inputFPS"><span class="type-signature"></span>inputFPS<span class="signature">(fps)</span><span class="type-signature"></span></h4>
  1394. </dt>
  1395. <dd>
  1396. <div class="description">
  1397. Alias for <a href="#inputFps">FfmpegCommand#inputFps</a>
  1398. </div>
  1399. <dl class="details">
  1400. </dl>
  1401. </dd>
  1402. <dt>
  1403. <h4 class="name" id="inputFps"><span class="type-signature"></span>inputFps<span class="signature">(fps)</span><span class="type-signature"></span></h4>
  1404. </dt>
  1405. <dd>
  1406. <div class="description">
  1407. Alias for <a href="#inputFps">FfmpegCommand#inputFps</a>
  1408. </div>
  1409. <dl class="details">
  1410. </dl>
  1411. </dd>
  1412. <dt>
  1413. <h4 class="name" id="loop"><span class="type-signature"></span>loop<span class="signature">(<span class="optional">duration</span>)</span><span class="type-signature"></span></h4>
  1414. </dt>
  1415. <dd>
  1416. <div class="description">
  1417. <p>Loop over the last specified input</p>
  1418. </div>
  1419. <h5>Parameters:</h5>
  1420. <table class="params">
  1421. <thead>
  1422. <tr>
  1423. <th>Name</th>
  1424. <th>Type</th>
  1425. <th>Argument</th>
  1426. <th class="last">Description</th>
  1427. </tr>
  1428. </thead>
  1429. <tbody>
  1430. <tr>
  1431. <td class="name"><code>duration</code></td>
  1432. <td class="type">
  1433. <span class="param-type">String</span>
  1434. |
  1435. <span class="param-type">Number</span>
  1436. </td>
  1437. <td class="attributes">
  1438. &lt;optional><br>
  1439. </td>
  1440. <td class="description last"><p>loop duration in seconds or as a '[[hh:]mm:]ss[.xxx]' string</p></td>
  1441. </tr>
  1442. </tbody>
  1443. </table>
  1444. <dl class="details">
  1445. <dt class="tag-source">Source:</dt>
  1446. <dd class="tag-source"><ul class="dummy"><li>
  1447. <a href="options_inputs.js.html">options/inputs.js</a>, <a href="options_inputs.js.html#line156">line 156</a>
  1448. </li></ul></dd>
  1449. </dl>
  1450. <h5>Returns:</h5>
  1451. <div class="param-desc">
  1452. <p>FfmpegCommand</p>
  1453. </div>
  1454. </dd>
  1455. <dt>
  1456. <h4 class="name" id="mergeAdd"><span class="type-signature"></span>mergeAdd<span class="signature">(source)</span><span class="type-signature"></span></h4>
  1457. </dt>
  1458. <dd>
  1459. <div class="description">
  1460. Alias for <a href="#input">FfmpegCommand#input</a>
  1461. </div>
  1462. <dl class="details">
  1463. </dl>
  1464. </dd>
  1465. <dt>
  1466. <h4 class="name" id="native"><span class="type-signature"></span>native<span class="signature">()</span><span class="type-signature"></span></h4>
  1467. </dt>
  1468. <dd>
  1469. <div class="description">
  1470. <p>Use native framerate for the last specified input</p>
  1471. </div>
  1472. <dl class="details">
  1473. <dt class="tag-source">Source:</dt>
  1474. <dd class="tag-source"><ul class="dummy"><li>
  1475. <a href="options_inputs.js.html">options/inputs.js</a>, <a href="options_inputs.js.html#line113">line 113</a>
  1476. </li></ul></dd>
  1477. </dl>
  1478. <h5>Returns:</h5>
  1479. <div class="param-desc">
  1480. <p>FfmmegCommand</p>
  1481. </div>
  1482. <h5>Aliases:</h5>
  1483. <ul>
  1484. <li>nativeFramerate</li>
  1485. <li>withNativeFramerate</li>
  1486. </ul>
  1487. </dd>
  1488. <dt>
  1489. <h4 class="name" id="nativeFramerate"><span class="type-signature"></span>nativeFramerate<span class="signature">()</span><span class="type-signature"></span></h4>
  1490. </dt>
  1491. <dd>
  1492. <div class="description">
  1493. Alias for <a href="#native">FfmpegCommand#native</a>
  1494. </div>
  1495. <dl class="details">
  1496. </dl>
  1497. </dd>
  1498. <dt>
  1499. <h4 class="name" id="seek"><span class="type-signature"></span>seek<span class="signature">(seek)</span><span class="type-signature"></span></h4>
  1500. </dt>
  1501. <dd>
  1502. <div class="description">
  1503. <p>Specify output seek time</p>
  1504. </div>
  1505. <h5>Parameters:</h5>
  1506. <table class="params">
  1507. <thead>
  1508. <tr>
  1509. <th>Name</th>
  1510. <th>Type</th>
  1511. <th class="last">Description</th>
  1512. </tr>
  1513. </thead>
  1514. <tbody>
  1515. <tr>
  1516. <td class="name"><code>seek</code></td>
  1517. <td class="type">
  1518. <span class="param-type">String</span>
  1519. |
  1520. <span class="param-type">Number</span>
  1521. </td>
  1522. <td class="description last"><p>seek time in seconds or as a '[hh:[mm:]]ss[.xxx]' string</p></td>
  1523. </tr>
  1524. </tbody>
  1525. </table>
  1526. <dl class="details">
  1527. <dt class="tag-source">Source:</dt>
  1528. <dd class="tag-source"><ul class="dummy"><li>
  1529. <a href="options_output.js.html">options/output.js</a>, <a href="options_output.js.html#line79">line 79</a>
  1530. </li></ul></dd>
  1531. </dl>
  1532. <h5>Returns:</h5>
  1533. <div class="param-desc">
  1534. <p>FfmpegCommand</p>
  1535. </div>
  1536. <h5>Alias:</h5>
  1537. seekOutput
  1538. </dd>
  1539. <dt>
  1540. <h4 class="name" id="seekInput"><span class="type-signature"></span>seekInput<span class="signature">(seek)</span><span class="type-signature"></span></h4>
  1541. </dt>
  1542. <dd>
  1543. <div class="description">
  1544. <p>Specify input seek time for the last specified input</p>
  1545. </div>
  1546. <h5>Parameters:</h5>
  1547. <table class="params">
  1548. <thead>
  1549. <tr>
  1550. <th>Name</th>
  1551. <th>Type</th>
  1552. <th class="last">Description</th>
  1553. </tr>
  1554. </thead>
  1555. <tbody>
  1556. <tr>
  1557. <td class="name"><code>seek</code></td>
  1558. <td class="type">
  1559. <span class="param-type">String</span>
  1560. |
  1561. <span class="param-type">Number</span>
  1562. </td>
  1563. <td class="description last"><p>seek time in seconds or as a '[hh:[mm:]]ss[.xxx]' string</p></td>
  1564. </tr>
  1565. </tbody>
  1566. </table>
  1567. <dl class="details">
  1568. <dt class="tag-source">Source:</dt>
  1569. <dd class="tag-source"><ul class="dummy"><li>
  1570. <a href="options_inputs.js.html">options/inputs.js</a>, <a href="options_inputs.js.html#line134">line 134</a>
  1571. </li></ul></dd>
  1572. </dl>
  1573. <h5>Returns:</h5>
  1574. <div class="param-desc">
  1575. <p>FfmpegCommand</p>
  1576. </div>
  1577. <h5>Aliases:</h5>
  1578. <ul>
  1579. <li>setStartTime</li>
  1580. <li>seekTo</li>
  1581. </ul>
  1582. </dd>
  1583. <dt>
  1584. <h4 class="name" id="seekOutput"><span class="type-signature"></span>seekOutput<span class="signature">(seek)</span><span class="type-signature"></span></h4>
  1585. </dt>
  1586. <dd>
  1587. <div class="description">
  1588. Alias for <a href="#seek">FfmpegCommand#seek</a>
  1589. </div>
  1590. <dl class="details">
  1591. </dl>
  1592. </dd>
  1593. <dt>
  1594. <h4 class="name" id="seekTo"><span class="type-signature"></span>seekTo<span class="signature">(seek)</span><span class="type-signature"></span></h4>
  1595. </dt>
  1596. <dd>
  1597. <div class="description">
  1598. Alias for <a href="#seekInput">FfmpegCommand#seekInput</a>
  1599. </div>
  1600. <dl class="details">
  1601. </dl>
  1602. </dd>
  1603. <dt>
  1604. <h4 class="name" id="setStartTime"><span class="type-signature"></span>setStartTime<span class="signature">(seek)</span><span class="type-signature"></span></h4>
  1605. </dt>
  1606. <dd>
  1607. <div class="description">
  1608. Alias for <a href="#seekInput">FfmpegCommand#seekInput</a>
  1609. </div>
  1610. <dl class="details">
  1611. </dl>
  1612. </dd>
  1613. <dt>
  1614. <h4 class="name" id="withFpsInput"><span class="type-signature"></span>withFpsInput<span class="signature">(fps)</span><span class="type-signature"></span></h4>
  1615. </dt>
  1616. <dd>
  1617. <div class="description">
  1618. Alias for <a href="#inputFps">FfmpegCommand#inputFps</a>
  1619. </div>
  1620. <dl class="details">
  1621. </dl>
  1622. </dd>
  1623. <dt>
  1624. <h4 class="name" id="withFPSInput"><span class="type-signature"></span>withFPSInput<span class="signature">(fps)</span><span class="type-signature"></span></h4>
  1625. </dt>
  1626. <dd>
  1627. <div class="description">
  1628. Alias for <a href="#inputFps">FfmpegCommand#inputFps</a>
  1629. </div>
  1630. <dl class="details">
  1631. </dl>
  1632. </dd>
  1633. <dt>
  1634. <h4 class="name" id="withInputFormat"><span class="type-signature"></span>withInputFormat<span class="signature">(format)</span><span class="type-signature"></span></h4>
  1635. </dt>
  1636. <dd>
  1637. <div class="description">
  1638. Alias for <a href="#inputFormat">FfmpegCommand#inputFormat</a>
  1639. </div>
  1640. <dl class="details">
  1641. </dl>
  1642. </dd>
  1643. <dt>
  1644. <h4 class="name" id="withInputFPS"><span class="type-signature"></span>withInputFPS<span class="signature">(fps)</span><span class="type-signature"></span></h4>
  1645. </dt>
  1646. <dd>
  1647. <div class="description">
  1648. Alias for <a href="#inputFps">FfmpegCommand#inputFps</a>
  1649. </div>
  1650. <dl class="details">
  1651. </dl>
  1652. </dd>
  1653. <dt>
  1654. <h4 class="name" id="withInputFps"><span class="type-signature"></span>withInputFps<span class="signature">(fps)</span><span class="type-signature"></span></h4>
  1655. </dt>
  1656. <dd>
  1657. <div class="description">
  1658. Alias for <a href="#inputFps">FfmpegCommand#inputFps</a>
  1659. </div>
  1660. <dl class="details">
  1661. </dl>
  1662. </dd>
  1663. <dt>
  1664. <h4 class="name" id="withNativeFramerate"><span class="type-signature"></span>withNativeFramerate<span class="signature">()</span><span class="type-signature"></span></h4>
  1665. </dt>
  1666. <dd>
  1667. <div class="description">
  1668. Alias for <a href="#native">FfmpegCommand#native</a>
  1669. </div>
  1670. <dl class="details">
  1671. </dl>
  1672. </dd>
  1673. </dl>
  1674. <h3 class="subsection-title"><a name="metadata-methods"></a>Metadata methods</h3>
  1675. <dl>
  1676. <dt>
  1677. <h4 class="name" id="ffprobe"><span class="type-signature"></span>ffprobe<span class="signature">(<span class="optional">index</span>, <span class="optional">options</span>, callback)</span><span class="type-signature"></span></h4>
  1678. </dt>
  1679. <dd>
  1680. <div class="description">
  1681. <p>Run ffprobe on last specified input</p>
  1682. </div>
  1683. <h5>Parameters:</h5>
  1684. <table class="params">
  1685. <thead>
  1686. <tr>
  1687. <th>Name</th>
  1688. <th>Type</th>
  1689. <th>Argument</th>
  1690. <th class="last">Description</th>
  1691. </tr>
  1692. </thead>
  1693. <tbody>
  1694. <tr>
  1695. <td class="name"><code>index</code></td>
  1696. <td class="type">
  1697. <span class="param-type">Number</span>
  1698. </td>
  1699. <td class="attributes">
  1700. &lt;optional><br>
  1701. &lt;nullable><br>
  1702. </td>
  1703. <td class="description last"><p>0-based index of input to probe (defaults to last input)</p></td>
  1704. </tr>
  1705. <tr>
  1706. <td class="name"><code>options</code></td>
  1707. <td class="type">
  1708. <span class="param-type">Array.&lt;String></span>
  1709. </td>
  1710. <td class="attributes">
  1711. &lt;optional><br>
  1712. &lt;nullable><br>
  1713. </td>
  1714. <td class="description last"><p>array of output options to return</p></td>
  1715. </tr>
  1716. <tr>
  1717. <td class="name"><code>callback</code></td>
  1718. <td class="type">
  1719. <span class="param-type"><a href="FfmpegCommand.html#~ffprobeCallback">FfmpegCommand~ffprobeCallback</a></span>
  1720. </td>
  1721. <td class="attributes">
  1722. </td>
  1723. <td class="description last"><p>callback function</p></td>
  1724. </tr>
  1725. </tbody>
  1726. </table>
  1727. <dl class="details">
  1728. <dt class="tag-source">Source:</dt>
  1729. <dd class="tag-source"><ul class="dummy"><li>
  1730. <a href="ffprobe.js.html">ffprobe.js</a>, <a href="ffprobe.js.html#line85">line 85</a>
  1731. </li></ul></dd>
  1732. </dl>
  1733. </dd>
  1734. </dl>
  1735. <h3 class="subsection-title"><a name="miscellaneous-methods"></a>Miscellaneous methods</h3>
  1736. <dl>
  1737. <dt>
  1738. <h4 class="name" id="preset"><span class="type-signature"></span>preset<span class="signature">(preset)</span><span class="type-signature"></span></h4>
  1739. </dt>
  1740. <dd>
  1741. <div class="description">
  1742. <p>Use preset</p>
  1743. </div>
  1744. <h5>Parameters:</h5>
  1745. <table class="params">
  1746. <thead>
  1747. <tr>
  1748. <th>Name</th>
  1749. <th>Type</th>
  1750. <th class="last">Description</th>
  1751. </tr>
  1752. </thead>
  1753. <tbody>
  1754. <tr>
  1755. <td class="name"><code>preset</code></td>
  1756. <td class="type">
  1757. <span class="param-type">String</span>
  1758. |
  1759. <span class="param-type">function</span>
  1760. </td>
  1761. <td class="description last"><p>preset name or preset function</p></td>
  1762. </tr>
  1763. </tbody>
  1764. </table>
  1765. <dl class="details">
  1766. <dt class="tag-source">Source:</dt>
  1767. <dd class="tag-source"><ul class="dummy"><li>
  1768. <a href="options_misc.js.html">options/misc.js</a>, <a href="options_misc.js.html#line11">line 11</a>
  1769. </li></ul></dd>
  1770. </dl>
  1771. <h5>Alias:</h5>
  1772. usingPreset
  1773. </dd>
  1774. <dt>
  1775. <h4 class="name" id="usingPreset"><span class="type-signature"></span>usingPreset<span class="signature">(preset)</span><span class="type-signature"></span></h4>
  1776. </dt>
  1777. <dd>
  1778. <div class="description">
  1779. Alias for <a href="#preset">FfmpegCommand#preset</a>
  1780. </div>
  1781. <dl class="details">
  1782. </dl>
  1783. </dd>
  1784. </dl>
  1785. <h3 class="subsection-title"><a name="other-methods"></a>Other methods</h3>
  1786. <dl>
  1787. <dt>
  1788. <h4 class="name" id="clone"><span class="type-signature"></span>clone<span class="signature">()</span><span class="type-signature"></span></h4>
  1789. </dt>
  1790. <dd>
  1791. <div class="description">
  1792. <p>Clone an ffmpeg command</p>
  1793. <p>This method is useful when you want to process the same input multiple times.
  1794. It returns a new FfmpegCommand instance with the exact same options.</p>
  1795. <p>All options set <em>after</em> the clone() call will only be applied to the instance
  1796. it has been called on.</p>
  1797. </div>
  1798. <dl class="details">
  1799. <dt class="tag-source">Source:</dt>
  1800. <dd class="tag-source"><ul class="dummy"><li>
  1801. <a href="fluent-ffmpeg.js.html">fluent-ffmpeg.js</a>, <a href="fluent-ffmpeg.js.html#line84">line 84</a>
  1802. </li></ul></dd>
  1803. </dl>
  1804. <h5>Returns:</h5>
  1805. <div class="param-desc">
  1806. <p>FfmpegCommand</p>
  1807. </div>
  1808. <h5>Example:</h5>
  1809. <pre class="prettyprint"><code>var command = ffmpeg('/path/to/source.avi')
  1810. .audioCodec('libfaac')
  1811. .videoCodec('libx264')
  1812. .format('mp4');
  1813. command.clone()
  1814. .size('320x200')
  1815. .save('/path/to/output-small.mp4');
  1816. command.clone()
  1817. .size('640x400')
  1818. .save('/path/to/output-medium.mp4');
  1819. command.save('/path/to/output-original-size.mp4');</code></pre>
  1820. </dd>
  1821. <dt>
  1822. <h4 class="name" id="setFfmpegPath"><span class="type-signature"></span>setFfmpegPath<span class="signature">(ffmpegPath)</span><span class="type-signature"></span></h4>
  1823. </dt>
  1824. <dd>
  1825. <div class="description">
  1826. <p>Manually define the ffmpeg binary full path.</p>
  1827. </div>
  1828. <h5>Parameters:</h5>
  1829. <table class="params">
  1830. <thead>
  1831. <tr>
  1832. <th>Name</th>
  1833. <th>Type</th>
  1834. <th class="last">Description</th>
  1835. </tr>
  1836. </thead>
  1837. <tbody>
  1838. <tr>
  1839. <td class="name"><code>ffmpegPath</code></td>
  1840. <td class="type">
  1841. <span class="param-type">String</span>
  1842. </td>
  1843. <td class="description last"><p>The full path to the ffmpeg binary.</p></td>
  1844. </tr>
  1845. </tbody>
  1846. </table>
  1847. <dl class="details">
  1848. <dt class="tag-source">Source:</dt>
  1849. <dd class="tag-source"><ul class="dummy"><li>
  1850. <a href="capabilities.js.html">capabilities.js</a>, <a href="capabilities.js.html#line25">line 25</a>
  1851. </li></ul></dd>
  1852. </dl>
  1853. <h5>Returns:</h5>
  1854. <div class="param-desc">
  1855. <p>FfmpegCommand</p>
  1856. </div>
  1857. </dd>
  1858. <dt>
  1859. <h4 class="name" id="setFfprobePath"><span class="type-signature"></span>setFfprobePath<span class="signature">(ffprobePath)</span><span class="type-signature"></span></h4>
  1860. </dt>
  1861. <dd>
  1862. <div class="description">
  1863. <p>Manually define the ffprobe binary full path.</p>
  1864. </div>
  1865. <h5>Parameters:</h5>
  1866. <table class="params">
  1867. <thead>
  1868. <tr>
  1869. <th>Name</th>
  1870. <th>Type</th>
  1871. <th class="last">Description</th>
  1872. </tr>
  1873. </thead>
  1874. <tbody>
  1875. <tr>
  1876. <td class="name"><code>ffprobePath</code></td>
  1877. <td class="type">
  1878. <span class="param-type">String</span>
  1879. </td>
  1880. <td class="description last"><p>The full path to the ffprobe binary.</p></td>
  1881. </tr>
  1882. </tbody>
  1883. </table>
  1884. <dl class="details">
  1885. <dt class="tag-source">Source:</dt>
  1886. <dd class="tag-source"><ul class="dummy"><li>
  1887. <a href="capabilities.js.html">capabilities.js</a>, <a href="capabilities.js.html#line38">line 38</a>
  1888. </li></ul></dd>
  1889. </dl>
  1890. <h5>Returns:</h5>
  1891. <div class="param-desc">
  1892. <p>FfmpegCommand</p>
  1893. </div>
  1894. </dd>
  1895. <dt>
  1896. <h4 class="name" id="setFlvtoolPath"><span class="type-signature"></span>setFlvtoolPath<span class="signature">(flvtool)</span><span class="type-signature"></span></h4>
  1897. </dt>
  1898. <dd>
  1899. <div class="description">
  1900. <p>Manually define the flvtool2/flvmeta binary full path.</p>
  1901. </div>
  1902. <h5>Parameters:</h5>
  1903. <table class="params">
  1904. <thead>
  1905. <tr>
  1906. <th>Name</th>
  1907. <th>Type</th>
  1908. <th class="last">Description</th>
  1909. </tr>
  1910. </thead>
  1911. <tbody>
  1912. <tr>
  1913. <td class="name"><code>flvtool</code></td>
  1914. <td class="type">
  1915. <span class="param-type">String</span>
  1916. </td>
  1917. <td class="description last"><p>The full path to the flvtool2 or flvmeta binary.</p></td>
  1918. </tr>
  1919. </tbody>
  1920. </table>
  1921. <dl class="details">
  1922. <dt class="tag-source">Source:</dt>
  1923. <dd class="tag-source"><ul class="dummy"><li>
  1924. <a href="capabilities.js.html">capabilities.js</a>, <a href="capabilities.js.html#line51">line 51</a>
  1925. </li></ul></dd>
  1926. </dl>
  1927. <h5>Returns:</h5>
  1928. <div class="param-desc">
  1929. <p>FfmpegCommand</p>
  1930. </div>
  1931. </dd>
  1932. </dl>
  1933. <h3 class="subsection-title"><a name="output-methods"></a>Output methods</h3>
  1934. <dl>
  1935. <dt>
  1936. <h4 class="name" id="addOutput"><span class="type-signature"></span>addOutput<span class="signature">(target, <span class="optional">pipeopts</span>)</span><span class="type-signature"></span></h4>
  1937. </dt>
  1938. <dd>
  1939. <div class="description">
  1940. Alias for <a href="#output">FfmpegCommand#output</a>
  1941. </div>
  1942. <dl class="details">
  1943. </dl>
  1944. </dd>
  1945. <dt>
  1946. <h4 class="name" id="duration"><span class="type-signature"></span>duration<span class="signature">(duration)</span><span class="type-signature"></span></h4>
  1947. </dt>
  1948. <dd>
  1949. <div class="description">
  1950. <p>Set output duration</p>
  1951. </div>
  1952. <h5>Parameters:</h5>
  1953. <table class="params">
  1954. <thead>
  1955. <tr>
  1956. <th>Name</th>
  1957. <th>Type</th>
  1958. <th class="last">Description</th>
  1959. </tr>
  1960. </thead>
  1961. <tbody>
  1962. <tr>
  1963. <td class="name"><code>duration</code></td>
  1964. <td class="type">
  1965. <span class="param-type">String</span>
  1966. |
  1967. <span class="param-type">Number</span>
  1968. </td>
  1969. <td class="description last"><p>duration in seconds or as a '[[hh:]mm:]ss[.xxx]' string</p></td>
  1970. </tr>
  1971. </tbody>
  1972. </table>
  1973. <dl class="details">
  1974. <dt class="tag-source">Source:</dt>
  1975. <dd class="tag-source"><ul class="dummy"><li>
  1976. <a href="options_output.js.html">options/output.js</a>, <a href="options_output.js.html#line96">line 96</a>
  1977. </li></ul></dd>
  1978. </dl>
  1979. <h5>Returns:</h5>
  1980. <div class="param-desc">
  1981. <p>FfmpegCommand</p>
  1982. </div>
  1983. <h5>Aliases:</h5>
  1984. <ul>
  1985. <li>withDuration</li>
  1986. <li>setDuration</li>
  1987. </ul>
  1988. </dd>
  1989. <dt>
  1990. <h4 class="name" id="flvmeta"><span class="type-signature"></span>flvmeta<span class="signature">()</span><span class="type-signature"></span></h4>
  1991. </dt>
  1992. <dd>
  1993. <div class="description">
  1994. <p>Run flvtool2/flvmeta on output</p>
  1995. </div>
  1996. <dl class="details">
  1997. <dt class="tag-source">Source:</dt>
  1998. <dd class="tag-source"><ul class="dummy"><li>
  1999. <a href="options_output.js.html">options/output.js</a>, <a href="options_output.js.html#line148">line 148</a>
  2000. </li></ul></dd>
  2001. </dl>
  2002. <h5>Returns:</h5>
  2003. <div class="param-desc">
  2004. <p>FfmpegCommand</p>
  2005. </div>
  2006. <h5>Alias:</h5>
  2007. updateFlvMetadata
  2008. </dd>
  2009. <dt>
  2010. <h4 class="name" id="format"><span class="type-signature"></span>format<span class="signature">(format)</span><span class="type-signature"></span></h4>
  2011. </dt>
  2012. <dd>
  2013. <div class="description">
  2014. <p>Set output format</p>
  2015. </div>
  2016. <h5>Parameters:</h5>
  2017. <table class="params">
  2018. <thead>
  2019. <tr>
  2020. <th>Name</th>
  2021. <th>Type</th>
  2022. <th class="last">Description</th>
  2023. </tr>
  2024. </thead>
  2025. <tbody>
  2026. <tr>
  2027. <td class="name"><code>format</code></td>
  2028. <td class="type">
  2029. <span class="param-type">String</span>
  2030. </td>
  2031. <td class="description last"><p>output format name</p></td>
  2032. </tr>
  2033. </tbody>
  2034. </table>
  2035. <dl class="details">
  2036. <dt class="tag-source">Source:</dt>
  2037. <dd class="tag-source"><ul class="dummy"><li>
  2038. <a href="options_output.js.html">options/output.js</a>, <a href="options_output.js.html#line114">line 114</a>
  2039. </li></ul></dd>
  2040. </dl>
  2041. <h5>Returns:</h5>
  2042. <div class="param-desc">
  2043. <p>FfmpegCommand</p>
  2044. </div>
  2045. <h5>Aliases:</h5>
  2046. <ul>
  2047. <li>toFormat</li>
  2048. <li>withOutputFormat</li>
  2049. <li>outputFormat</li>
  2050. </ul>
  2051. </dd>
  2052. <dt>
  2053. <h4 class="name" id="map"><span class="type-signature"></span>map<span class="signature">(spec)</span><span class="type-signature"></span></h4>
  2054. </dt>
  2055. <dd>
  2056. <div class="description">
  2057. <p>Add stream mapping to output</p>
  2058. </div>
  2059. <h5>Parameters:</h5>
  2060. <table class="params">
  2061. <thead>
  2062. <tr>
  2063. <th>Name</th>
  2064. <th>Type</th>
  2065. <th class="last">Description</th>
  2066. </tr>
  2067. </thead>
  2068. <tbody>
  2069. <tr>
  2070. <td class="name"><code>spec</code></td>
  2071. <td class="type">
  2072. <span class="param-type">String</span>
  2073. </td>
  2074. <td class="description last"><p>stream specification string, with optional square brackets</p></td>
  2075. </tr>
  2076. </tbody>
  2077. </table>
  2078. <dl class="details">
  2079. <dt class="tag-source">Source:</dt>
  2080. <dd class="tag-source"><ul class="dummy"><li>
  2081. <a href="options_output.js.html">options/output.js</a>, <a href="options_output.js.html#line133">line 133</a>
  2082. </li></ul></dd>
  2083. </dl>
  2084. <h5>Returns:</h5>
  2085. <div class="param-desc">
  2086. <p>FfmpegCommand</p>
  2087. </div>
  2088. </dd>
  2089. <dt>
  2090. <h4 class="name" id="output"><span class="type-signature"></span>output<span class="signature">(target, <span class="optional">pipeopts</span>)</span><span class="type-signature"></span></h4>
  2091. </dt>
  2092. <dd>
  2093. <div class="description">
  2094. <p>Add output</p>
  2095. </div>
  2096. <h5>Parameters:</h5>
  2097. <table class="params">
  2098. <thead>
  2099. <tr>
  2100. <th>Name</th>
  2101. <th>Type</th>
  2102. <th>Argument</th>
  2103. <th>Default</th>
  2104. <th class="last">Description</th>
  2105. </tr>
  2106. </thead>
  2107. <tbody>
  2108. <tr>
  2109. <td class="name"><code>target</code></td>
  2110. <td class="type">
  2111. <span class="param-type">String</span>
  2112. |
  2113. <span class="param-type">Writable</span>
  2114. </td>
  2115. <td class="attributes">
  2116. </td>
  2117. <td class="default">
  2118. </td>
  2119. <td class="description last"><p>target file path or writable stream</p></td>
  2120. </tr>
  2121. <tr>
  2122. <td class="name"><code>pipeopts</code></td>
  2123. <td class="type">
  2124. <span class="param-type">Object</span>
  2125. </td>
  2126. <td class="attributes">
  2127. &lt;optional><br>
  2128. </td>
  2129. <td class="default">
  2130. {}
  2131. </td>
  2132. <td class="description last"><p>pipe options (only applies to streams)</p></td>
  2133. </tr>
  2134. </tbody>
  2135. </table>
  2136. <dl class="details">
  2137. <dt class="tag-source">Source:</dt>
  2138. <dd class="tag-source"><ul class="dummy"><li>
  2139. <a href="options_output.js.html">options/output.js</a>, <a href="options_output.js.html#line12">line 12</a>
  2140. </li></ul></dd>
  2141. </dl>
  2142. <h5>Returns:</h5>
  2143. <div class="param-desc">
  2144. <p>FfmpegCommand</p>
  2145. </div>
  2146. <h5>Alias:</h5>
  2147. addOutput
  2148. </dd>
  2149. <dt>
  2150. <h4 class="name" id="outputFormat"><span class="type-signature"></span>outputFormat<span class="signature">(format)</span><span class="type-signature"></span></h4>
  2151. </dt>
  2152. <dd>
  2153. <div class="description">
  2154. Alias for <a href="#format">FfmpegCommand#format</a>
  2155. </div>
  2156. <dl class="details">
  2157. </dl>
  2158. </dd>
  2159. <dt>
  2160. <h4 class="name" id="setDuration"><span class="type-signature"></span>setDuration<span class="signature">(duration)</span><span class="type-signature"></span></h4>
  2161. </dt>
  2162. <dd>
  2163. <div class="description">
  2164. Alias for <a href="#duration">FfmpegCommand#duration</a>
  2165. </div>
  2166. <dl class="details">
  2167. </dl>
  2168. </dd>
  2169. <dt>
  2170. <h4 class="name" id="toFormat"><span class="type-signature"></span>toFormat<span class="signature">(format)</span><span class="type-signature"></span></h4>
  2171. </dt>
  2172. <dd>
  2173. <div class="description">
  2174. Alias for <a href="#format">FfmpegCommand#format</a>
  2175. </div>
  2176. <dl class="details">
  2177. </dl>
  2178. </dd>
  2179. <dt>
  2180. <h4 class="name" id="updateFlvMetadata"><span class="type-signature"></span>updateFlvMetadata<span class="signature">()</span><span class="type-signature"></span></h4>
  2181. </dt>
  2182. <dd>
  2183. <div class="description">
  2184. Alias for <a href="#flvmeta">FfmpegCommand#flvmeta</a>
  2185. </div>
  2186. <dl class="details">
  2187. </dl>
  2188. </dd>
  2189. <dt>
  2190. <h4 class="name" id="withDuration"><span class="type-signature"></span>withDuration<span class="signature">(duration)</span><span class="type-signature"></span></h4>
  2191. </dt>
  2192. <dd>
  2193. <div class="description">
  2194. Alias for <a href="#duration">FfmpegCommand#duration</a>
  2195. </div>
  2196. <dl class="details">
  2197. </dl>
  2198. </dd>
  2199. <dt>
  2200. <h4 class="name" id="withOutputFormat"><span class="type-signature"></span>withOutputFormat<span class="signature">(format)</span><span class="type-signature"></span></h4>
  2201. </dt>
  2202. <dd>
  2203. <div class="description">
  2204. Alias for <a href="#format">FfmpegCommand#format</a>
  2205. </div>
  2206. <dl class="details">
  2207. </dl>
  2208. </dd>
  2209. </dl>
  2210. <h3 class="subsection-title"><a name="processing-methods"></a>Processing methods</h3>
  2211. <dl>
  2212. <dt>
  2213. <h4 class="name" id="concat"><span class="type-signature"></span>concat<span class="signature">(target, <span class="optional">options</span>)</span><span class="type-signature"></span></h4>
  2214. </dt>
  2215. <dd>
  2216. <div class="description">
  2217. <p>Merge (concatenate) inputs to a single file</p>
  2218. </div>
  2219. <h5>Parameters:</h5>
  2220. <table class="params">
  2221. <thead>
  2222. <tr>
  2223. <th>Name</th>
  2224. <th>Type</th>
  2225. <th>Argument</th>
  2226. <th class="last">Description</th>
  2227. </tr>
  2228. </thead>
  2229. <tbody>
  2230. <tr>
  2231. <td class="name"><code>target</code></td>
  2232. <td class="type">
  2233. <span class="param-type">String</span>
  2234. |
  2235. <span class="param-type">Writable</span>
  2236. </td>
  2237. <td class="attributes">
  2238. </td>
  2239. <td class="description last"><p>output file or writable stream</p></td>
  2240. </tr>
  2241. <tr>
  2242. <td class="name"><code>options</code></td>
  2243. <td class="type">
  2244. <span class="param-type">Object</span>
  2245. </td>
  2246. <td class="attributes">
  2247. &lt;optional><br>
  2248. </td>
  2249. <td class="description last"><p>pipe options (only used when outputting to a writable stream)</p></td>
  2250. </tr>
  2251. </tbody>
  2252. </table>
  2253. <dl class="details">
  2254. <dt class="tag-source">Source:</dt>
  2255. <dd class="tag-source"><ul class="dummy"><li>
  2256. <a href="recipes.js.html">recipes.js</a>, <a href="recipes.js.html#line408">line 408</a>
  2257. </li></ul></dd>
  2258. </dl>
  2259. <h5>Returns:</h5>
  2260. <div class="param-desc">
  2261. <p>FfmpegCommand</p>
  2262. </div>
  2263. <h5>Aliases:</h5>
  2264. <ul>
  2265. <li>concatenate</li>
  2266. <li>mergeToFile</li>
  2267. </ul>
  2268. </dd>
  2269. <dt>
  2270. <h4 class="name" id="concatenate"><span class="type-signature"></span>concatenate<span class="signature">(target, <span class="optional">options</span>)</span><span class="type-signature"></span></h4>
  2271. </dt>
  2272. <dd>
  2273. <div class="description">
  2274. Alias for <a href="#concat">FfmpegCommand#concat</a>
  2275. </div>
  2276. <dl class="details">
  2277. </dl>
  2278. </dd>
  2279. <dt>
  2280. <h4 class="name" id="exec"><span class="type-signature"></span>exec<span class="signature">()</span><span class="type-signature"></span></h4>
  2281. </dt>
  2282. <dd>
  2283. <div class="description">
  2284. Alias for <a href="#run">FfmpegCommand#run</a>
  2285. </div>
  2286. <dl class="details">
  2287. </dl>
  2288. </dd>
  2289. <dt>
  2290. <h4 class="name" id="execute"><span class="type-signature"></span>execute<span class="signature">()</span><span class="type-signature"></span></h4>
  2291. </dt>
  2292. <dd>
  2293. <div class="description">
  2294. Alias for <a href="#run">FfmpegCommand#run</a>
  2295. </div>
  2296. <dl class="details">
  2297. </dl>
  2298. </dd>
  2299. <dt>
  2300. <h4 class="name" id="kill"><span class="type-signature"></span>kill<span class="signature">(<span class="optional">signal</span>)</span><span class="type-signature"></span></h4>
  2301. </dt>
  2302. <dd>
  2303. <div class="description">
  2304. <p>Kill current ffmpeg process, if any</p>
  2305. </div>
  2306. <h5>Parameters:</h5>
  2307. <table class="params">
  2308. <thead>
  2309. <tr>
  2310. <th>Name</th>
  2311. <th>Type</th>
  2312. <th>Argument</th>
  2313. <th>Default</th>
  2314. <th class="last">Description</th>
  2315. </tr>
  2316. </thead>
  2317. <tbody>
  2318. <tr>
  2319. <td class="name"><code>signal</code></td>
  2320. <td class="type">
  2321. <span class="param-type">String</span>
  2322. </td>
  2323. <td class="attributes">
  2324. &lt;optional><br>
  2325. </td>
  2326. <td class="default">
  2327. SIGKILL
  2328. </td>
  2329. <td class="description last"><p>signal name</p></td>
  2330. </tr>
  2331. </tbody>
  2332. </table>
  2333. <dl class="details">
  2334. <dt class="tag-source">Source:</dt>
  2335. <dd class="tag-source"><ul class="dummy"><li>
  2336. <a href="processor.js.html">processor.js</a>, <a href="processor.js.html#line640">line 640</a>
  2337. </li></ul></dd>
  2338. </dl>
  2339. <h5>Returns:</h5>
  2340. <div class="param-desc">
  2341. <p>FfmpegCommand</p>
  2342. </div>
  2343. </dd>
  2344. <dt>
  2345. <h4 class="name" id="mergeToFile"><span class="type-signature"></span>mergeToFile<span class="signature">(target, <span class="optional">options</span>)</span><span class="type-signature"></span></h4>
  2346. </dt>
  2347. <dd>
  2348. <div class="description">
  2349. Alias for <a href="#concat">FfmpegCommand#concat</a>
  2350. </div>
  2351. <dl class="details">
  2352. </dl>
  2353. </dd>
  2354. <dt>
  2355. <h4 class="name" id="pipe"><span class="type-signature"></span>pipe<span class="signature">(<span class="optional">stream</span>, <span class="optional">options</span>)</span><span class="type-signature"></span></h4>
  2356. </dt>
  2357. <dd>
  2358. <div class="description">
  2359. <p>Execute ffmpeg command and save output to a stream</p>
  2360. <p>If 'stream' is not specified, a PassThrough stream is created and returned.
  2361. 'options' will be used when piping ffmpeg output to the output stream
  2362. (@see http://nodejs.org/api/stream.html#stream_readable_pipe_destination_options)</p>
  2363. </div>
  2364. <h5>Parameters:</h5>
  2365. <table class="params">
  2366. <thead>
  2367. <tr>
  2368. <th>Name</th>
  2369. <th>Type</th>
  2370. <th>Argument</th>
  2371. <th>Default</th>
  2372. <th class="last">Description</th>
  2373. </tr>
  2374. </thead>
  2375. <tbody>
  2376. <tr>
  2377. <td class="name"><code>stream</code></td>
  2378. <td class="type">
  2379. <span class="param-type">stream.Writable</span>
  2380. </td>
  2381. <td class="attributes">
  2382. &lt;optional><br>
  2383. </td>
  2384. <td class="default">
  2385. </td>
  2386. <td class="description last"><p>output stream</p></td>
  2387. </tr>
  2388. <tr>
  2389. <td class="name"><code>options</code></td>
  2390. <td class="type">
  2391. <span class="param-type">Object</span>
  2392. </td>
  2393. <td class="attributes">
  2394. &lt;optional><br>
  2395. </td>
  2396. <td class="default">
  2397. {}
  2398. </td>
  2399. <td class="description last"><p>pipe options</p></td>
  2400. </tr>
  2401. </tbody>
  2402. </table>
  2403. <dl class="details">
  2404. <dt class="tag-source">Source:</dt>
  2405. <dd class="tag-source"><ul class="dummy"><li>
  2406. <a href="recipes.js.html">recipes.js</a>, <a href="recipes.js.html#line33">line 33</a>
  2407. </li></ul></dd>
  2408. </dl>
  2409. <h5>Returns:</h5>
  2410. <div class="param-desc">
  2411. <p>Output stream</p>
  2412. </div>
  2413. <h5>Aliases:</h5>
  2414. <ul>
  2415. <li>stream</li>
  2416. <li>writeToStream</li>
  2417. </ul>
  2418. </dd>
  2419. <dt>
  2420. <h4 class="name" id="renice"><span class="type-signature"></span>renice<span class="signature">(<span class="optional">niceness</span>)</span><span class="type-signature"></span></h4>
  2421. </dt>
  2422. <dd>
  2423. <div class="description">
  2424. <p>Renice current and/or future ffmpeg processes</p>
  2425. <p>Ignored on Windows platforms.</p>
  2426. </div>
  2427. <h5>Parameters:</h5>
  2428. <table class="params">
  2429. <thead>
  2430. <tr>
  2431. <th>Name</th>
  2432. <th>Type</th>
  2433. <th>Argument</th>
  2434. <th>Default</th>
  2435. <th class="last">Description</th>
  2436. </tr>
  2437. </thead>
  2438. <tbody>
  2439. <tr>
  2440. <td class="name"><code>niceness</code></td>
  2441. <td class="type">
  2442. <span class="param-type">Number</span>
  2443. </td>
  2444. <td class="attributes">
  2445. &lt;optional><br>
  2446. </td>
  2447. <td class="default">
  2448. 0
  2449. </td>
  2450. <td class="description last"><p>niceness value between -20 (highest priority) and 20 (lowest priority)</p></td>
  2451. </tr>
  2452. </tbody>
  2453. </table>
  2454. <dl class="details">
  2455. <dt class="tag-source">Source:</dt>
  2456. <dd class="tag-source"><ul class="dummy"><li>
  2457. <a href="processor.js.html">processor.js</a>, <a href="processor.js.html#line593">line 593</a>
  2458. </li></ul></dd>
  2459. </dl>
  2460. <h5>Returns:</h5>
  2461. <div class="param-desc">
  2462. <p>FfmpegCommand</p>
  2463. </div>
  2464. </dd>
  2465. <dt>
  2466. <h4 class="name" id="run"><span class="type-signature"></span>run<span class="signature">()</span><span class="type-signature"></span></h4>
  2467. </dt>
  2468. <dd>
  2469. <div class="description">
  2470. <p>Run ffmpeg command</p>
  2471. </div>
  2472. <dl class="details">
  2473. <dt class="tag-source">Source:</dt>
  2474. <dd class="tag-source"><ul class="dummy"><li>
  2475. <a href="processor.js.html">processor.js</a>, <a href="processor.js.html#line381">line 381</a>
  2476. </li></ul></dd>
  2477. </dl>
  2478. <h5>Aliases:</h5>
  2479. <ul>
  2480. <li>exec</li>
  2481. <li>execute</li>
  2482. </ul>
  2483. </dd>
  2484. <dt>
  2485. <h4 class="name" id="save"><span class="type-signature"></span>save<span class="signature">(output)</span><span class="type-signature"></span></h4>
  2486. </dt>
  2487. <dd>
  2488. <div class="description">
  2489. <p>Execute ffmpeg command and save output to a file</p>
  2490. </div>
  2491. <h5>Parameters:</h5>
  2492. <table class="params">
  2493. <thead>
  2494. <tr>
  2495. <th>Name</th>
  2496. <th>Type</th>
  2497. <th class="last">Description</th>
  2498. </tr>
  2499. </thead>
  2500. <tbody>
  2501. <tr>
  2502. <td class="name"><code>output</code></td>
  2503. <td class="type">
  2504. <span class="param-type">String</span>
  2505. </td>
  2506. <td class="description last"><p>file path</p></td>
  2507. </tr>
  2508. </tbody>
  2509. </table>
  2510. <dl class="details">
  2511. <dt class="tag-source">Source:</dt>
  2512. <dd class="tag-source"><ul class="dummy"><li>
  2513. <a href="recipes.js.html">recipes.js</a>, <a href="recipes.js.html#line16">line 16</a>
  2514. </li></ul></dd>
  2515. </dl>
  2516. <h5>Returns:</h5>
  2517. <div class="param-desc">
  2518. <p>FfmpegCommand</p>
  2519. </div>
  2520. <h5>Alias:</h5>
  2521. saveToFile
  2522. </dd>
  2523. <dt>
  2524. <h4 class="name" id="saveToFile"><span class="type-signature"></span>saveToFile<span class="signature">(output)</span><span class="type-signature"></span></h4>
  2525. </dt>
  2526. <dd>
  2527. <div class="description">
  2528. Alias for <a href="#save">FfmpegCommand#save</a>
  2529. </div>
  2530. <dl class="details">
  2531. </dl>
  2532. </dd>
  2533. <dt>
  2534. <h4 class="name" id="screenshot"><span class="type-signature"></span>screenshot<span class="signature">(<span class="optional">config</span>, <span class="optional">folder</span>)</span><span class="type-signature"></span></h4>
  2535. </dt>
  2536. <dd>
  2537. <div class="description">
  2538. Alias for <a href="#screenshots">FfmpegCommand#screenshots</a>
  2539. </div>
  2540. <dl class="details">
  2541. </dl>
  2542. </dd>
  2543. <dt>
  2544. <h4 class="name" id="screenshots"><span class="type-signature"></span>screenshots<span class="signature">(<span class="optional">config</span>, <span class="optional">folder</span>)</span><span class="type-signature"></span></h4>
  2545. </dt>
  2546. <dd>
  2547. <div class="description">
  2548. <p>Generate images from a video</p>
  2549. <p>Note: this method makes the command emit a 'filenames' event with an array of
  2550. the generated image filenames.</p>
  2551. </div>
  2552. <h5>Parameters:</h5>
  2553. <table class="params">
  2554. <thead>
  2555. <tr>
  2556. <th>Name</th>
  2557. <th>Type</th>
  2558. <th>Argument</th>
  2559. <th>Default</th>
  2560. <th class="last">Description</th>
  2561. </tr>
  2562. </thead>
  2563. <tbody>
  2564. <tr>
  2565. <td class="name"><code>config</code></td>
  2566. <td class="type">
  2567. <span class="param-type">Number</span>
  2568. |
  2569. <span class="param-type">Object</span>
  2570. </td>
  2571. <td class="attributes">
  2572. &lt;optional><br>
  2573. </td>
  2574. <td class="default">
  2575. 1
  2576. </td>
  2577. <td class="description last"><p>screenshot count or configuration object with
  2578. the following keys:</p>
  2579. <h6>Properties</h6>
  2580. <table class="params">
  2581. <thead>
  2582. <tr>
  2583. <th>Name</th>
  2584. <th>Type</th>
  2585. <th>Argument</th>
  2586. <th>Default</th>
  2587. <th class="last">Description</th>
  2588. </tr>
  2589. </thead>
  2590. <tbody>
  2591. <tr>
  2592. <td class="name"><code>count</code></td>
  2593. <td class="type">
  2594. <span class="param-type">Number</span>
  2595. </td>
  2596. <td class="attributes">
  2597. &lt;optional><br>
  2598. </td>
  2599. <td class="default">
  2600. </td>
  2601. <td class="description last"><p>number of screenshots to take; using this option
  2602. takes screenshots at regular intervals (eg. count=4 would take screens at 20%, 40%,
  2603. 60% and 80% of the video length).</p></td>
  2604. </tr>
  2605. <tr>
  2606. <td class="name"><code>folder</code></td>
  2607. <td class="type">
  2608. <span class="param-type">String</span>
  2609. </td>
  2610. <td class="attributes">
  2611. &lt;optional><br>
  2612. </td>
  2613. <td class="default">
  2614. '.'
  2615. </td>
  2616. <td class="description last"><p>output folder</p></td>
  2617. </tr>
  2618. <tr>
  2619. <td class="name"><code>filename</code></td>
  2620. <td class="type">
  2621. <span class="param-type">String</span>
  2622. </td>
  2623. <td class="attributes">
  2624. &lt;optional><br>
  2625. </td>
  2626. <td class="default">
  2627. 'tn.png'
  2628. </td>
  2629. <td class="description last"><p>output filename pattern, may contain the following
  2630. tokens:</p>
  2631. <ul>
  2632. <li>'%s': offset in seconds</li>
  2633. <li>'%w': screenshot width</li>
  2634. <li>'%h': screenshot height</li>
  2635. <li>'%r': screenshot resolution (same as '%wx%h')</li>
  2636. <li>'%f': input filename</li>
  2637. <li>'%b': input basename (filename w/o extension)</li>
  2638. <li>'%i': index of screenshot in timemark array (can be zero-padded by using it like <code>%000i</code>)</li>
  2639. </ul></td>
  2640. </tr>
  2641. <tr>
  2642. <td class="name"><code>timemarks</code></td>
  2643. <td class="type">
  2644. <span class="param-type">Array.&lt;Number></span>
  2645. |
  2646. <span class="param-type">Array.&lt;String></span>
  2647. </td>
  2648. <td class="attributes">
  2649. &lt;optional><br>
  2650. </td>
  2651. <td class="default">
  2652. </td>
  2653. <td class="description last"><p>array of timemarks to take screenshots
  2654. at; each timemark may be a number of seconds, a '[[hh:]mm:]ss[.xxx]' string or a
  2655. 'XX%' string. Overrides 'count' if present.</p></td>
  2656. </tr>
  2657. <tr>
  2658. <td class="name"><code>timestamps</code></td>
  2659. <td class="type">
  2660. <span class="param-type">Array.&lt;Number></span>
  2661. |
  2662. <span class="param-type">Array.&lt;String></span>
  2663. </td>
  2664. <td class="attributes">
  2665. &lt;optional><br>
  2666. </td>
  2667. <td class="default">
  2668. </td>
  2669. <td class="description last"><p>alias for 'timemarks'</p></td>
  2670. </tr>
  2671. <tr>
  2672. <td class="name"><code>fastSeek</code></td>
  2673. <td class="type">
  2674. <span class="param-type">Boolean</span>
  2675. </td>
  2676. <td class="attributes">
  2677. &lt;optional><br>
  2678. </td>
  2679. <td class="default">
  2680. </td>
  2681. <td class="description last"><p>use fast seek (less accurate)</p></td>
  2682. </tr>
  2683. <tr>
  2684. <td class="name"><code>size</code></td>
  2685. <td class="type">
  2686. <span class="param-type">String</span>
  2687. </td>
  2688. <td class="attributes">
  2689. &lt;optional><br>
  2690. </td>
  2691. <td class="default">
  2692. </td>
  2693. <td class="description last"><p>screenshot size, with the same syntax as <a href="FfmpegCommand.html#size">FfmpegCommand#size</a></p></td>
  2694. </tr>
  2695. </tbody>
  2696. </table>
  2697. </td>
  2698. </tr>
  2699. <tr>
  2700. <td class="name"><code>folder</code></td>
  2701. <td class="type">
  2702. <span class="param-type">String</span>
  2703. </td>
  2704. <td class="attributes">
  2705. &lt;optional><br>
  2706. </td>
  2707. <td class="default">
  2708. </td>
  2709. <td class="description last"><p>output folder (legacy alias for 'config.folder')</p></td>
  2710. </tr>
  2711. </tbody>
  2712. </table>
  2713. <dl class="details">
  2714. <dt class="tag-source">Source:</dt>
  2715. <dd class="tag-source"><ul class="dummy"><li>
  2716. <a href="recipes.js.html">recipes.js</a>, <a href="recipes.js.html#line69">line 69</a>
  2717. </li></ul></dd>
  2718. </dl>
  2719. <h5>Returns:</h5>
  2720. <div class="param-desc">
  2721. <p>FfmpegCommand</p>
  2722. </div>
  2723. <h5>Aliases:</h5>
  2724. <ul>
  2725. <li>takeScreenshots</li>
  2726. <li>thumbnail</li>
  2727. <li>thumbnails</li>
  2728. <li>screenshot</li>
  2729. </ul>
  2730. </dd>
  2731. <dt>
  2732. <h4 class="name" id="stream"><span class="type-signature"></span>stream<span class="signature">(<span class="optional">stream</span>, <span class="optional">options</span>)</span><span class="type-signature"></span></h4>
  2733. </dt>
  2734. <dd>
  2735. <div class="description">
  2736. Alias for <a href="#pipe">FfmpegCommand#pipe</a>
  2737. </div>
  2738. <dl class="details">
  2739. </dl>
  2740. </dd>
  2741. <dt>
  2742. <h4 class="name" id="takeScreenshots"><span class="type-signature"></span>takeScreenshots<span class="signature">(<span class="optional">config</span>, <span class="optional">folder</span>)</span><span class="type-signature"></span></h4>
  2743. </dt>
  2744. <dd>
  2745. <div class="description">
  2746. Alias for <a href="#screenshots">FfmpegCommand#screenshots</a>
  2747. </div>
  2748. <dl class="details">
  2749. </dl>
  2750. </dd>
  2751. <dt>
  2752. <h4 class="name" id="thumbnail"><span class="type-signature"></span>thumbnail<span class="signature">(<span class="optional">config</span>, <span class="optional">folder</span>)</span><span class="type-signature"></span></h4>
  2753. </dt>
  2754. <dd>
  2755. <div class="description">
  2756. Alias for <a href="#screenshots">FfmpegCommand#screenshots</a>
  2757. </div>
  2758. <dl class="details">
  2759. </dl>
  2760. </dd>
  2761. <dt>
  2762. <h4 class="name" id="thumbnails"><span class="type-signature"></span>thumbnails<span class="signature">(<span class="optional">config</span>, <span class="optional">folder</span>)</span><span class="type-signature"></span></h4>
  2763. </dt>
  2764. <dd>
  2765. <div class="description">
  2766. Alias for <a href="#screenshots">FfmpegCommand#screenshots</a>
  2767. </div>
  2768. <dl class="details">
  2769. </dl>
  2770. </dd>
  2771. <dt>
  2772. <h4 class="name" id="writeToStream"><span class="type-signature"></span>writeToStream<span class="signature">(<span class="optional">stream</span>, <span class="optional">options</span>)</span><span class="type-signature"></span></h4>
  2773. </dt>
  2774. <dd>
  2775. <div class="description">
  2776. Alias for <a href="#pipe">FfmpegCommand#pipe</a>
  2777. </div>
  2778. <dl class="details">
  2779. </dl>
  2780. </dd>
  2781. </dl>
  2782. <h3 class="subsection-title"><a name="video-methods"></a>Video methods</h3>
  2783. <dl>
  2784. <dt>
  2785. <h4 class="name" id="fps"><span class="type-signature"></span>fps<span class="signature">(fps)</span><span class="type-signature"></span></h4>
  2786. </dt>
  2787. <dd>
  2788. <div class="description">
  2789. <p>Specify output FPS</p>
  2790. </div>
  2791. <h5>Parameters:</h5>
  2792. <table class="params">
  2793. <thead>
  2794. <tr>
  2795. <th>Name</th>
  2796. <th>Type</th>
  2797. <th class="last">Description</th>
  2798. </tr>
  2799. </thead>
  2800. <tbody>
  2801. <tr>
  2802. <td class="name"><code>fps</code></td>
  2803. <td class="type">
  2804. <span class="param-type">Number</span>
  2805. </td>
  2806. <td class="description last"><p>output FPS</p></td>
  2807. </tr>
  2808. </tbody>
  2809. </table>
  2810. <dl class="details">
  2811. <dt class="tag-source">Source:</dt>
  2812. <dd class="tag-source"><ul class="dummy"><li>
  2813. <a href="options_video.js.html">options/video.js</a>, <a href="options_video.js.html#line141">line 141</a>
  2814. </li></ul></dd>
  2815. </dl>
  2816. <h5>Returns:</h5>
  2817. <div class="param-desc">
  2818. <p>FfmpegCommand</p>
  2819. </div>
  2820. <h5>Aliases:</h5>
  2821. <ul>
  2822. <li>withOutputFps</li>
  2823. <li>withOutputFPS</li>
  2824. <li>withFpsOutput</li>
  2825. <li>withFPSOutput</li>
  2826. <li>withFps</li>
  2827. <li>withFPS</li>
  2828. <li>outputFPS</li>
  2829. <li>outputFps</li>
  2830. <li>fpsOutput</li>
  2831. <li>FPSOutput</li>
  2832. <li>FPS</li>
  2833. </ul>
  2834. </dd>
  2835. <dt>
  2836. <h4 class="name" id="FPS"><span class="type-signature"></span>FPS<span class="signature">(fps)</span><span class="type-signature"></span></h4>
  2837. </dt>
  2838. <dd>
  2839. <div class="description">
  2840. Alias for <a href="#fps">FfmpegCommand#fps</a>
  2841. </div>
  2842. <dl class="details">
  2843. </dl>
  2844. </dd>
  2845. <dt>
  2846. <h4 class="name" id="fpsOutput"><span class="type-signature"></span>fpsOutput<span class="signature">(fps)</span><span class="type-signature"></span></h4>
  2847. </dt>
  2848. <dd>
  2849. <div class="description">
  2850. Alias for <a href="#fps">FfmpegCommand#fps</a>
  2851. </div>
  2852. <dl class="details">
  2853. </dl>
  2854. </dd>
  2855. <dt>
  2856. <h4 class="name" id="FPSOutput"><span class="type-signature"></span>FPSOutput<span class="signature">(fps)</span><span class="type-signature"></span></h4>
  2857. </dt>
  2858. <dd>
  2859. <div class="description">
  2860. Alias for <a href="#fps">FfmpegCommand#fps</a>
  2861. </div>
  2862. <dl class="details">
  2863. </dl>
  2864. </dd>
  2865. <dt>
  2866. <h4 class="name" id="frames"><span class="type-signature"></span>frames<span class="signature">(frames)</span><span class="type-signature"></span></h4>
  2867. </dt>
  2868. <dd>
  2869. <div class="description">
  2870. <p>Only transcode a certain number of frames</p>
  2871. </div>
  2872. <h5>Parameters:</h5>
  2873. <table class="params">
  2874. <thead>
  2875. <tr>
  2876. <th>Name</th>
  2877. <th>Type</th>
  2878. <th class="last">Description</th>
  2879. </tr>
  2880. </thead>
  2881. <tbody>
  2882. <tr>
  2883. <td class="name"><code>frames</code></td>
  2884. <td class="type">
  2885. <span class="param-type">Number</span>
  2886. </td>
  2887. <td class="description last"><p>frame count</p></td>
  2888. </tr>
  2889. </tbody>
  2890. </table>
  2891. <dl class="details">
  2892. <dt class="tag-source">Source:</dt>
  2893. <dd class="tag-source"><ul class="dummy"><li>
  2894. <a href="options_video.js.html">options/video.js</a>, <a href="options_video.js.html#line168">line 168</a>
  2895. </li></ul></dd>
  2896. </dl>
  2897. <h5>Returns:</h5>
  2898. <div class="param-desc">
  2899. <p>FfmpegCommand</p>
  2900. </div>
  2901. <h5>Aliases:</h5>
  2902. <ul>
  2903. <li>takeFrames</li>
  2904. <li>withFrames</li>
  2905. </ul>
  2906. </dd>
  2907. <dt>
  2908. <h4 class="name" id="noVideo"><span class="type-signature"></span>noVideo<span class="signature">()</span><span class="type-signature"></span></h4>
  2909. </dt>
  2910. <dd>
  2911. <div class="description">
  2912. <p>Disable video in the output</p>
  2913. </div>
  2914. <dl class="details">
  2915. <dt class="tag-source">Source:</dt>
  2916. <dd class="tag-source"><ul class="dummy"><li>
  2917. <a href="options_video.js.html">options/video.js</a>, <a href="options_video.js.html#line12">line 12</a>
  2918. </li></ul></dd>
  2919. </dl>
  2920. <h5>Returns:</h5>
  2921. <div class="param-desc">
  2922. <p>FfmpegCommand</p>
  2923. </div>
  2924. <h5>Alias:</h5>
  2925. withNoVideo
  2926. </dd>
  2927. <dt>
  2928. <h4 class="name" id="outputFps"><span class="type-signature"></span>outputFps<span class="signature">(fps)</span><span class="type-signature"></span></h4>
  2929. </dt>
  2930. <dd>
  2931. <div class="description">
  2932. Alias for <a href="#fps">FfmpegCommand#fps</a>
  2933. </div>
  2934. <dl class="details">
  2935. </dl>
  2936. </dd>
  2937. <dt>
  2938. <h4 class="name" id="outputFPS"><span class="type-signature"></span>outputFPS<span class="signature">(fps)</span><span class="type-signature"></span></h4>
  2939. </dt>
  2940. <dd>
  2941. <div class="description">
  2942. Alias for <a href="#fps">FfmpegCommand#fps</a>
  2943. </div>
  2944. <dl class="details">
  2945. </dl>
  2946. </dd>
  2947. <dt>
  2948. <h4 class="name" id="takeFrames"><span class="type-signature"></span>takeFrames<span class="signature">(frames)</span><span class="type-signature"></span></h4>
  2949. </dt>
  2950. <dd>
  2951. <div class="description">
  2952. Alias for <a href="#frames">FfmpegCommand#frames</a>
  2953. </div>
  2954. <dl class="details">
  2955. </dl>
  2956. </dd>
  2957. <dt>
  2958. <h4 class="name" id="videoBitrate"><span class="type-signature"></span>videoBitrate<span class="signature">(bitrate, <span class="optional">constant</span>)</span><span class="type-signature"></span></h4>
  2959. </dt>
  2960. <dd>
  2961. <div class="description">
  2962. <p>Specify video bitrate</p>
  2963. </div>
  2964. <h5>Parameters:</h5>
  2965. <table class="params">
  2966. <thead>
  2967. <tr>
  2968. <th>Name</th>
  2969. <th>Type</th>
  2970. <th>Argument</th>
  2971. <th>Default</th>
  2972. <th class="last">Description</th>
  2973. </tr>
  2974. </thead>
  2975. <tbody>
  2976. <tr>
  2977. <td class="name"><code>bitrate</code></td>
  2978. <td class="type">
  2979. <span class="param-type">String</span>
  2980. |
  2981. <span class="param-type">Number</span>
  2982. </td>
  2983. <td class="attributes">
  2984. </td>
  2985. <td class="default">
  2986. </td>
  2987. <td class="description last"><p>video bitrate in kbps (with an optional 'k' suffix)</p></td>
  2988. </tr>
  2989. <tr>
  2990. <td class="name"><code>constant</code></td>
  2991. <td class="type">
  2992. <span class="param-type">Boolean</span>
  2993. </td>
  2994. <td class="attributes">
  2995. &lt;optional><br>
  2996. </td>
  2997. <td class="default">
  2998. false
  2999. </td>
  3000. <td class="description last"><p>enforce constant bitrate</p></td>
  3001. </tr>
  3002. </tbody>
  3003. </table>
  3004. <dl class="details">
  3005. <dt class="tag-source">Source:</dt>
  3006. <dd class="tag-source"><ul class="dummy"><li>
  3007. <a href="options_video.js.html">options/video.js</a>, <a href="options_video.js.html#line48">line 48</a>
  3008. </li></ul></dd>
  3009. </dl>
  3010. <h5>Returns:</h5>
  3011. <div class="param-desc">
  3012. <p>FfmpegCommand</p>
  3013. </div>
  3014. <h5>Alias:</h5>
  3015. withVideoBitrate
  3016. </dd>
  3017. <dt>
  3018. <h4 class="name" id="videoCodec"><span class="type-signature"></span>videoCodec<span class="signature">(codec)</span><span class="type-signature"></span></h4>
  3019. </dt>
  3020. <dd>
  3021. <div class="description">
  3022. <p>Specify video codec</p>
  3023. </div>
  3024. <h5>Parameters:</h5>
  3025. <table class="params">
  3026. <thead>
  3027. <tr>
  3028. <th>Name</th>
  3029. <th>Type</th>
  3030. <th class="last">Description</th>
  3031. </tr>
  3032. </thead>
  3033. <tbody>
  3034. <tr>
  3035. <td class="name"><code>codec</code></td>
  3036. <td class="type">
  3037. <span class="param-type">String</span>
  3038. </td>
  3039. <td class="description last"><p>video codec name</p></td>
  3040. </tr>
  3041. </tbody>
  3042. </table>
  3043. <dl class="details">
  3044. <dt class="tag-source">Source:</dt>
  3045. <dd class="tag-source"><ul class="dummy"><li>
  3046. <a href="options_video.js.html">options/video.js</a>, <a href="options_video.js.html#line31">line 31</a>
  3047. </li></ul></dd>
  3048. </dl>
  3049. <h5>Returns:</h5>
  3050. <div class="param-desc">
  3051. <p>FfmpegCommand</p>
  3052. </div>
  3053. <h5>Alias:</h5>
  3054. withVideoCodec
  3055. </dd>
  3056. <dt>
  3057. <h4 class="name" id="videoFilter"><span class="type-signature"></span>videoFilter<span class="signature">(filters)</span><span class="type-signature"></span></h4>
  3058. </dt>
  3059. <dd>
  3060. <div class="description">
  3061. Alias for <a href="#videoFilters">FfmpegCommand#videoFilters</a>
  3062. </div>
  3063. <dl class="details">
  3064. </dl>
  3065. </dd>
  3066. <dt>
  3067. <h4 class="name" id="videoFilters"><span class="type-signature"></span>videoFilters<span class="signature">(filters)</span><span class="type-signature"></span></h4>
  3068. </dt>
  3069. <dd>
  3070. <div class="description">
  3071. <p>Specify custom video filter(s)</p>
  3072. <p>Can be called both with one or many filters, or a filter array.</p>
  3073. </div>
  3074. <h5>Parameters:</h5>
  3075. <table class="params">
  3076. <thead>
  3077. <tr>
  3078. <th>Name</th>
  3079. <th>Type</th>
  3080. <th class="last">Description</th>
  3081. </tr>
  3082. </thead>
  3083. <tbody>
  3084. <tr>
  3085. <td class="name"><code>filters</code></td>
  3086. <td class="type">
  3087. <span class="param-type">String</span>
  3088. |
  3089. <span class="param-type">Array.&lt;String></span>
  3090. |
  3091. <span class="param-type">Array.&lt;Object></span>
  3092. </td>
  3093. <td class="description last"><p>video filter strings, string array or
  3094. filter specification array, each with the following properties:</p>
  3095. <h6>Properties</h6>
  3096. <table class="params">
  3097. <thead>
  3098. <tr>
  3099. <th>Name</th>
  3100. <th>Type</th>
  3101. <th>Argument</th>
  3102. <th class="last">Description</th>
  3103. </tr>
  3104. </thead>
  3105. <tbody>
  3106. <tr>
  3107. <td class="name"><code>filter</code></td>
  3108. <td class="type">
  3109. <span class="param-type">String</span>
  3110. </td>
  3111. <td class="attributes">
  3112. </td>
  3113. <td class="description last"><p>filter name</p></td>
  3114. </tr>
  3115. <tr>
  3116. <td class="name"><code>options</code></td>
  3117. <td class="type">
  3118. <span class="param-type">String</span>
  3119. |
  3120. <span class="param-type">Array.&lt;String></span>
  3121. |
  3122. <span class="param-type">Object</span>
  3123. </td>
  3124. <td class="attributes">
  3125. &lt;optional><br>
  3126. </td>
  3127. <td class="description last"><p>filter option string, array, or object</p></td>
  3128. </tr>
  3129. </tbody>
  3130. </table>
  3131. </td>
  3132. </tr>
  3133. </tbody>
  3134. </table>
  3135. <dl class="details">
  3136. <dt class="tag-source">Source:</dt>
  3137. <dd class="tag-source"><ul class="dummy"><li>
  3138. <a href="options_video.js.html">options/video.js</a>, <a href="options_video.js.html#line76">line 76</a>
  3139. </li></ul></dd>
  3140. </dl>
  3141. <h5>Returns:</h5>
  3142. <div class="param-desc">
  3143. <p>FfmpegCommand</p>
  3144. </div>
  3145. <h5>Examples:</h5>
  3146. <pre class="prettyprint"><code>command.videoFilters('filter1');</code></pre>
  3147. <pre class="prettyprint"><code>command.videoFilters('filter1', 'filter2=param1=value1:param2=value2');</code></pre>
  3148. <pre class="prettyprint"><code>command.videoFilters(['filter1', 'filter2']);</code></pre>
  3149. <pre class="prettyprint"><code>command.videoFilters([
  3150. {
  3151. filter: 'filter1'
  3152. },
  3153. {
  3154. filter: 'filter2',
  3155. options: 'param=value:param=value'
  3156. }
  3157. ]);</code></pre>
  3158. <pre class="prettyprint"><code>command.videoFilters(
  3159. {
  3160. filter: 'filter1',
  3161. options: ['value1', 'value2']
  3162. },
  3163. {
  3164. filter: 'filter2',
  3165. options: { param1: 'value1', param2: 'value2' }
  3166. }
  3167. );</code></pre>
  3168. <h5>Aliases:</h5>
  3169. <ul>
  3170. <li>withVideoFilter</li>
  3171. <li>withVideoFilters</li>
  3172. <li>videoFilter</li>
  3173. </ul>
  3174. </dd>
  3175. <dt>
  3176. <h4 class="name" id="withFPS"><span class="type-signature"></span>withFPS<span class="signature">(fps)</span><span class="type-signature"></span></h4>
  3177. </dt>
  3178. <dd>
  3179. <div class="description">
  3180. Alias for <a href="#fps">FfmpegCommand#fps</a>
  3181. </div>
  3182. <dl class="details">
  3183. </dl>
  3184. </dd>
  3185. <dt>
  3186. <h4 class="name" id="withFps"><span class="type-signature"></span>withFps<span class="signature">(fps)</span><span class="type-signature"></span></h4>
  3187. </dt>
  3188. <dd>
  3189. <div class="description">
  3190. Alias for <a href="#fps">FfmpegCommand#fps</a>
  3191. </div>
  3192. <dl class="details">
  3193. </dl>
  3194. </dd>
  3195. <dt>
  3196. <h4 class="name" id="withFPSOutput"><span class="type-signature"></span>withFPSOutput<span class="signature">(fps)</span><span class="type-signature"></span></h4>
  3197. </dt>
  3198. <dd>
  3199. <div class="description">
  3200. Alias for <a href="#fps">FfmpegCommand#fps</a>
  3201. </div>
  3202. <dl class="details">
  3203. </dl>
  3204. </dd>
  3205. <dt>
  3206. <h4 class="name" id="withFpsOutput"><span class="type-signature"></span>withFpsOutput<span class="signature">(fps)</span><span class="type-signature"></span></h4>
  3207. </dt>
  3208. <dd>
  3209. <div class="description">
  3210. Alias for <a href="#fps">FfmpegCommand#fps</a>
  3211. </div>
  3212. <dl class="details">
  3213. </dl>
  3214. </dd>
  3215. <dt>
  3216. <h4 class="name" id="withFrames"><span class="type-signature"></span>withFrames<span class="signature">(frames)</span><span class="type-signature"></span></h4>
  3217. </dt>
  3218. <dd>
  3219. <div class="description">
  3220. Alias for <a href="#frames">FfmpegCommand#frames</a>
  3221. </div>
  3222. <dl class="details">
  3223. </dl>
  3224. </dd>
  3225. <dt>
  3226. <h4 class="name" id="withNoVideo"><span class="type-signature"></span>withNoVideo<span class="signature">()</span><span class="type-signature"></span></h4>
  3227. </dt>
  3228. <dd>
  3229. <div class="description">
  3230. Alias for <a href="#noVideo">FfmpegCommand#noVideo</a>
  3231. </div>
  3232. <dl class="details">
  3233. </dl>
  3234. </dd>
  3235. <dt>
  3236. <h4 class="name" id="withOutputFps"><span class="type-signature"></span>withOutputFps<span class="signature">(fps)</span><span class="type-signature"></span></h4>
  3237. </dt>
  3238. <dd>
  3239. <div class="description">
  3240. Alias for <a href="#fps">FfmpegCommand#fps</a>
  3241. </div>
  3242. <dl class="details">
  3243. </dl>
  3244. </dd>
  3245. <dt>
  3246. <h4 class="name" id="withOutputFPS"><span class="type-signature"></span>withOutputFPS<span class="signature">(fps)</span><span class="type-signature"></span></h4>
  3247. </dt>
  3248. <dd>
  3249. <div class="description">
  3250. Alias for <a href="#fps">FfmpegCommand#fps</a>
  3251. </div>
  3252. <dl class="details">
  3253. </dl>
  3254. </dd>
  3255. <dt>
  3256. <h4 class="name" id="withVideoBitrate"><span class="type-signature"></span>withVideoBitrate<span class="signature">(bitrate, <span class="optional">constant</span>)</span><span class="type-signature"></span></h4>
  3257. </dt>
  3258. <dd>
  3259. <div class="description">
  3260. Alias for <a href="#videoBitrate">FfmpegCommand#videoBitrate</a>
  3261. </div>
  3262. <dl class="details">
  3263. </dl>
  3264. </dd>
  3265. <dt>
  3266. <h4 class="name" id="withVideoCodec"><span class="type-signature"></span>withVideoCodec<span class="signature">(codec)</span><span class="type-signature"></span></h4>
  3267. </dt>
  3268. <dd>
  3269. <div class="description">
  3270. Alias for <a href="#videoCodec">FfmpegCommand#videoCodec</a>
  3271. </div>
  3272. <dl class="details">
  3273. </dl>
  3274. </dd>
  3275. <dt>
  3276. <h4 class="name" id="withVideoFilter"><span class="type-signature"></span>withVideoFilter<span class="signature">(filters)</span><span class="type-signature"></span></h4>
  3277. </dt>
  3278. <dd>
  3279. <div class="description">
  3280. Alias for <a href="#videoFilters">FfmpegCommand#videoFilters</a>
  3281. </div>
  3282. <dl class="details">
  3283. </dl>
  3284. </dd>
  3285. <dt>
  3286. <h4 class="name" id="withVideoFilters"><span class="type-signature"></span>withVideoFilters<span class="signature">(filters)</span><span class="type-signature"></span></h4>
  3287. </dt>
  3288. <dd>
  3289. <div class="description">
  3290. Alias for <a href="#videoFilters">FfmpegCommand#videoFilters</a>
  3291. </div>
  3292. <dl class="details">
  3293. </dl>
  3294. </dd>
  3295. </dl>
  3296. <h3 class="subsection-title"><a name="video-size-methods"></a>Video size methods</h3>
  3297. <dl>
  3298. <dt>
  3299. <h4 class="name" id="applyAutoPad"><span class="type-signature"></span>applyAutoPad<span class="signature">(<span class="optional">pad</span>, <span class="optional">color</span>)</span><span class="type-signature"></span></h4>
  3300. </dt>
  3301. <dd>
  3302. <div class="description">
  3303. Alias for <a href="#autopad">FfmpegCommand#autopad</a>
  3304. </div>
  3305. <dl class="details">
  3306. </dl>
  3307. </dd>
  3308. <dt>
  3309. <h4 class="name" id="applyAutopad"><span class="type-signature"></span>applyAutopad<span class="signature">(<span class="optional">pad</span>, <span class="optional">color</span>)</span><span class="type-signature"></span></h4>
  3310. </dt>
  3311. <dd>
  3312. <div class="description">
  3313. Alias for <a href="#autopad">FfmpegCommand#autopad</a>
  3314. </div>
  3315. <dl class="details">
  3316. </dl>
  3317. </dd>
  3318. <dt>
  3319. <h4 class="name" id="applyAutoPadding"><span class="type-signature"></span>applyAutoPadding<span class="signature">(<span class="optional">pad</span>, <span class="optional">color</span>)</span><span class="type-signature"></span></h4>
  3320. </dt>
  3321. <dd>
  3322. <div class="description">
  3323. Alias for <a href="#autopad">FfmpegCommand#autopad</a>
  3324. </div>
  3325. <dl class="details">
  3326. </dl>
  3327. </dd>
  3328. <dt>
  3329. <h4 class="name" id="applyAutopadding"><span class="type-signature"></span>applyAutopadding<span class="signature">(<span class="optional">pad</span>, <span class="optional">color</span>)</span><span class="type-signature"></span></h4>
  3330. </dt>
  3331. <dd>
  3332. <div class="description">
  3333. Alias for <a href="#autopad">FfmpegCommand#autopad</a>
  3334. </div>
  3335. <dl class="details">
  3336. </dl>
  3337. </dd>
  3338. <dt>
  3339. <h4 class="name" id="aspect"><span class="type-signature"></span>aspect<span class="signature">(aspect)</span><span class="type-signature"></span></h4>
  3340. </dt>
  3341. <dd>
  3342. <div class="description">
  3343. <p>Set output aspect ratio</p>
  3344. </div>
  3345. <h5>Parameters:</h5>
  3346. <table class="params">
  3347. <thead>
  3348. <tr>
  3349. <th>Name</th>
  3350. <th>Type</th>
  3351. <th class="last">Description</th>
  3352. </tr>
  3353. </thead>
  3354. <tbody>
  3355. <tr>
  3356. <td class="name"><code>aspect</code></td>
  3357. <td class="type">
  3358. <span class="param-type">String</span>
  3359. |
  3360. <span class="param-type">Number</span>
  3361. </td>
  3362. <td class="description last"><p>aspect ratio (number or 'X:Y' string)</p></td>
  3363. </tr>
  3364. </tbody>
  3365. </table>
  3366. <dl class="details">
  3367. <dt class="tag-source">Source:</dt>
  3368. <dd class="tag-source"><ul class="dummy"><li>
  3369. <a href="options_videosize.js.html">options/videosize.js</a>, <a href="options_videosize.js.html#line218">line 218</a>
  3370. </li></ul></dd>
  3371. </dl>
  3372. <h5>Returns:</h5>
  3373. <div class="param-desc">
  3374. <p>FfmpegCommand</p>
  3375. </div>
  3376. <h5>Aliases:</h5>
  3377. <ul>
  3378. <li>withAspect</li>
  3379. <li>withAspectRatio</li>
  3380. <li>setAspect</li>
  3381. <li>setAspectRatio</li>
  3382. <li>aspectRatio</li>
  3383. </ul>
  3384. </dd>
  3385. <dt>
  3386. <h4 class="name" id="aspectRatio"><span class="type-signature"></span>aspectRatio<span class="signature">(aspect)</span><span class="type-signature"></span></h4>
  3387. </dt>
  3388. <dd>
  3389. <div class="description">
  3390. Alias for <a href="#aspect">FfmpegCommand#aspect</a>
  3391. </div>
  3392. <dl class="details">
  3393. </dl>
  3394. </dd>
  3395. <dt>
  3396. <h4 class="name" id="autopad"><span class="type-signature"></span>autopad<span class="signature">(<span class="optional">pad</span>, <span class="optional">color</span>)</span><span class="type-signature"></span></h4>
  3397. </dt>
  3398. <dd>
  3399. <div class="description">
  3400. <p>Enable auto-padding the output</p>
  3401. </div>
  3402. <h5>Parameters:</h5>
  3403. <table class="params">
  3404. <thead>
  3405. <tr>
  3406. <th>Name</th>
  3407. <th>Type</th>
  3408. <th>Argument</th>
  3409. <th>Default</th>
  3410. <th class="last">Description</th>
  3411. </tr>
  3412. </thead>
  3413. <tbody>
  3414. <tr>
  3415. <td class="name"><code>pad</code></td>
  3416. <td class="type">
  3417. <span class="param-type">Boolean</span>
  3418. </td>
  3419. <td class="attributes">
  3420. &lt;optional><br>
  3421. </td>
  3422. <td class="default">
  3423. true
  3424. </td>
  3425. <td class="description last"><p>enable/disable auto-padding</p></td>
  3426. </tr>
  3427. <tr>
  3428. <td class="name"><code>color</code></td>
  3429. <td class="type">
  3430. <span class="param-type">String</span>
  3431. </td>
  3432. <td class="attributes">
  3433. &lt;optional><br>
  3434. </td>
  3435. <td class="default">
  3436. 'black'
  3437. </td>
  3438. <td class="description last"><p>pad color</p></td>
  3439. </tr>
  3440. </tbody>
  3441. </table>
  3442. <dl class="details">
  3443. <dt class="tag-source">Source:</dt>
  3444. <dd class="tag-source"><ul class="dummy"><li>
  3445. <a href="options_videosize.js.html">options/videosize.js</a>, <a href="options_videosize.js.html#line253">line 253</a>
  3446. </li></ul></dd>
  3447. </dl>
  3448. <h5>Aliases:</h5>
  3449. <ul>
  3450. <li>applyAutopadding</li>
  3451. <li>applyAutoPadding</li>
  3452. <li>applyAutopad</li>
  3453. <li>applyAutoPad</li>
  3454. <li>withAutopadding</li>
  3455. <li>withAutoPadding</li>
  3456. <li>withAutopad</li>
  3457. <li>withAutoPad</li>
  3458. <li>autoPad</li>
  3459. </ul>
  3460. </dd>
  3461. <dt>
  3462. <h4 class="name" id="autoPad"><span class="type-signature"></span>autoPad<span class="signature">(<span class="optional">pad</span>, <span class="optional">color</span>)</span><span class="type-signature"></span></h4>
  3463. </dt>
  3464. <dd>
  3465. <div class="description">
  3466. Alias for <a href="#autopad">FfmpegCommand#autopad</a>
  3467. </div>
  3468. <dl class="details">
  3469. </dl>
  3470. </dd>
  3471. <dt>
  3472. <h4 class="name" id="keepDAR"><span class="type-signature"></span>keepDAR<span class="signature">()</span><span class="type-signature"></span></h4>
  3473. </dt>
  3474. <dd>
  3475. <div class="description">
  3476. <p>Keep display aspect ratio</p>
  3477. <p>This method is useful when converting an input with non-square pixels to an output format
  3478. that does not support non-square pixels. It rescales the input so that the display aspect
  3479. ratio is the same.</p>
  3480. </div>
  3481. <dl class="details">
  3482. <dt class="tag-source">Source:</dt>
  3483. <dd class="tag-source"><ul class="dummy"><li>
  3484. <a href="options_videosize.js.html">options/videosize.js</a>, <a href="options_videosize.js.html#line155">line 155</a>
  3485. </li></ul></dd>
  3486. </dl>
  3487. <h5>Returns:</h5>
  3488. <div class="param-desc">
  3489. <p>FfmpegCommand</p>
  3490. </div>
  3491. <h5>Aliases:</h5>
  3492. <ul>
  3493. <li>keepPixelAspect</li>
  3494. <li>keepDisplayAspect</li>
  3495. <li>keepDisplayAspectRatio</li>
  3496. </ul>
  3497. </dd>
  3498. <dt>
  3499. <h4 class="name" id="keepDisplayAspect"><span class="type-signature"></span>keepDisplayAspect<span class="signature">()</span><span class="type-signature"></span></h4>
  3500. </dt>
  3501. <dd>
  3502. <div class="description">
  3503. Alias for <a href="#keepDAR">FfmpegCommand#keepDAR</a>
  3504. </div>
  3505. <dl class="details">
  3506. </dl>
  3507. </dd>
  3508. <dt>
  3509. <h4 class="name" id="keepDisplayAspectRatio"><span class="type-signature"></span>keepDisplayAspectRatio<span class="signature">()</span><span class="type-signature"></span></h4>
  3510. </dt>
  3511. <dd>
  3512. <div class="description">
  3513. Alias for <a href="#keepDAR">FfmpegCommand#keepDAR</a>
  3514. </div>
  3515. <dl class="details">
  3516. </dl>
  3517. </dd>
  3518. <dt>
  3519. <h4 class="name" id="keepPixelAspect"><span class="type-signature"></span>keepPixelAspect<span class="signature">()</span><span class="type-signature"></span></h4>
  3520. </dt>
  3521. <dd>
  3522. <div class="description">
  3523. Alias for <a href="#keepDAR">FfmpegCommand#keepDAR</a>
  3524. </div>
  3525. <dl class="details">
  3526. </dl>
  3527. </dd>
  3528. <dt>
  3529. <h4 class="name" id="setAspect"><span class="type-signature"></span>setAspect<span class="signature">(aspect)</span><span class="type-signature"></span></h4>
  3530. </dt>
  3531. <dd>
  3532. <div class="description">
  3533. Alias for <a href="#aspect">FfmpegCommand#aspect</a>
  3534. </div>
  3535. <dl class="details">
  3536. </dl>
  3537. </dd>
  3538. <dt>
  3539. <h4 class="name" id="setAspectRatio"><span class="type-signature"></span>setAspectRatio<span class="signature">(aspect)</span><span class="type-signature"></span></h4>
  3540. </dt>
  3541. <dd>
  3542. <div class="description">
  3543. Alias for <a href="#aspect">FfmpegCommand#aspect</a>
  3544. </div>
  3545. <dl class="details">
  3546. </dl>
  3547. </dd>
  3548. <dt>
  3549. <h4 class="name" id="setSize"><span class="type-signature"></span>setSize<span class="signature">(size)</span><span class="type-signature"></span></h4>
  3550. </dt>
  3551. <dd>
  3552. <div class="description">
  3553. Alias for <a href="#size">FfmpegCommand#size</a>
  3554. </div>
  3555. <dl class="details">
  3556. </dl>
  3557. </dd>
  3558. <dt>
  3559. <h4 class="name" id="size"><span class="type-signature"></span>size<span class="signature">(size)</span><span class="type-signature"></span></h4>
  3560. </dt>
  3561. <dd>
  3562. <div class="description">
  3563. <p>Set output size</p>
  3564. <p>The 'size' parameter can have one of 4 forms:</p>
  3565. <ul>
  3566. <li>'X%': rescale to xx % of the original size</li>
  3567. <li>'WxH': specify width and height</li>
  3568. <li>'Wx?': specify width and compute height from input aspect ratio</li>
  3569. <li>'?xH': specify height and compute width from input aspect ratio</li>
  3570. </ul>
  3571. <p>Note: both dimensions will be truncated to multiples of 2.</p>
  3572. </div>
  3573. <h5>Parameters:</h5>
  3574. <table class="params">
  3575. <thead>
  3576. <tr>
  3577. <th>Name</th>
  3578. <th>Type</th>
  3579. <th class="last">Description</th>
  3580. </tr>
  3581. </thead>
  3582. <tbody>
  3583. <tr>
  3584. <td class="name"><code>size</code></td>
  3585. <td class="type">
  3586. <span class="param-type">String</span>
  3587. </td>
  3588. <td class="description last"><p>size string, eg. '33%', '320x240', '320x?', '?x240'</p></td>
  3589. </tr>
  3590. </tbody>
  3591. </table>
  3592. <dl class="details">
  3593. <dt class="tag-source">Source:</dt>
  3594. <dd class="tag-source"><ul class="dummy"><li>
  3595. <a href="options_videosize.js.html">options/videosize.js</a>, <a href="options_videosize.js.html#line188">line 188</a>
  3596. </li></ul></dd>
  3597. </dl>
  3598. <h5>Returns:</h5>
  3599. <div class="param-desc">
  3600. <p>FfmpegCommand</p>
  3601. </div>
  3602. <h5>Aliases:</h5>
  3603. <ul>
  3604. <li>withSize</li>
  3605. <li>setSize</li>
  3606. </ul>
  3607. </dd>
  3608. <dt>
  3609. <h4 class="name" id="withAspect"><span class="type-signature"></span>withAspect<span class="signature">(aspect)</span><span class="type-signature"></span></h4>
  3610. </dt>
  3611. <dd>
  3612. <div class="description">
  3613. Alias for <a href="#aspect">FfmpegCommand#aspect</a>
  3614. </div>
  3615. <dl class="details">
  3616. </dl>
  3617. </dd>
  3618. <dt>
  3619. <h4 class="name" id="withAspectRatio"><span class="type-signature"></span>withAspectRatio<span class="signature">(aspect)</span><span class="type-signature"></span></h4>
  3620. </dt>
  3621. <dd>
  3622. <div class="description">
  3623. Alias for <a href="#aspect">FfmpegCommand#aspect</a>
  3624. </div>
  3625. <dl class="details">
  3626. </dl>
  3627. </dd>
  3628. <dt>
  3629. <h4 class="name" id="withAutoPad"><span class="type-signature"></span>withAutoPad<span class="signature">(<span class="optional">pad</span>, <span class="optional">color</span>)</span><span class="type-signature"></span></h4>
  3630. </dt>
  3631. <dd>
  3632. <div class="description">
  3633. Alias for <a href="#autopad">FfmpegCommand#autopad</a>
  3634. </div>
  3635. <dl class="details">
  3636. </dl>
  3637. </dd>
  3638. <dt>
  3639. <h4 class="name" id="withAutopad"><span class="type-signature"></span>withAutopad<span class="signature">(<span class="optional">pad</span>, <span class="optional">color</span>)</span><span class="type-signature"></span></h4>
  3640. </dt>
  3641. <dd>
  3642. <div class="description">
  3643. Alias for <a href="#autopad">FfmpegCommand#autopad</a>
  3644. </div>
  3645. <dl class="details">
  3646. </dl>
  3647. </dd>
  3648. <dt>
  3649. <h4 class="name" id="withAutopadding"><span class="type-signature"></span>withAutopadding<span class="signature">(<span class="optional">pad</span>, <span class="optional">color</span>)</span><span class="type-signature"></span></h4>
  3650. </dt>
  3651. <dd>
  3652. <div class="description">
  3653. Alias for <a href="#autopad">FfmpegCommand#autopad</a>
  3654. </div>
  3655. <dl class="details">
  3656. </dl>
  3657. </dd>
  3658. <dt>
  3659. <h4 class="name" id="withAutoPadding"><span class="type-signature"></span>withAutoPadding<span class="signature">(<span class="optional">pad</span>, <span class="optional">color</span>)</span><span class="type-signature"></span></h4>
  3660. </dt>
  3661. <dd>
  3662. <div class="description">
  3663. Alias for <a href="#autopad">FfmpegCommand#autopad</a>
  3664. </div>
  3665. <dl class="details">
  3666. </dl>
  3667. </dd>
  3668. <dt>
  3669. <h4 class="name" id="withSize"><span class="type-signature"></span>withSize<span class="signature">(size)</span><span class="type-signature"></span></h4>
  3670. </dt>
  3671. <dd>
  3672. <div class="description">
  3673. Alias for <a href="#size">FfmpegCommand#size</a>
  3674. </div>
  3675. <dl class="details">
  3676. </dl>
  3677. </dd>
  3678. </dl>
  3679. <h3 class="subsection-title">Type Definitions</h3>
  3680. <dl>
  3681. <dt>
  3682. <h4 class="name" id="~codecCallback"><span class="type-signature"></span>codecCallback<span class="signature">(err, codecs)</span><span class="type-signature"></span></h4>
  3683. </dt>
  3684. <dd>
  3685. <div class="description">
  3686. <p>A callback passed to <a href="FfmpegCommand.html#availableCodecs">FfmpegCommand#availableCodecs</a>.</p>
  3687. </div>
  3688. <h5>Parameters:</h5>
  3689. <table class="params">
  3690. <thead>
  3691. <tr>
  3692. <th>Name</th>
  3693. <th>Type</th>
  3694. <th class="last">Description</th>
  3695. </tr>
  3696. </thead>
  3697. <tbody>
  3698. <tr>
  3699. <td class="name"><code>err</code></td>
  3700. <td class="type">
  3701. <span class="param-type">Error</span>
  3702. |
  3703. <span class="param-type">null</span>
  3704. </td>
  3705. <td class="description last"><p>error object or null if no error happened</p></td>
  3706. </tr>
  3707. <tr>
  3708. <td class="name"><code>codecs</code></td>
  3709. <td class="type">
  3710. <span class="param-type">Object</span>
  3711. </td>
  3712. <td class="description last"><p>codec object with codec names as keys and the following
  3713. properties for each codec (more properties may be available depending on the
  3714. ffmpeg version used):</p>
  3715. <h6>Properties</h6>
  3716. <table class="params">
  3717. <thead>
  3718. <tr>
  3719. <th>Name</th>
  3720. <th>Type</th>
  3721. <th class="last">Description</th>
  3722. </tr>
  3723. </thead>
  3724. <tbody>
  3725. <tr>
  3726. <td class="name"><code>description</code></td>
  3727. <td class="type">
  3728. <span class="param-type">String</span>
  3729. </td>
  3730. <td class="description last"><p>codec description</p></td>
  3731. </tr>
  3732. <tr>
  3733. <td class="name"><code>canDecode</code></td>
  3734. <td class="type">
  3735. <span class="param-type">Boolean</span>
  3736. </td>
  3737. <td class="description last"><p>whether the codec is able to decode streams</p></td>
  3738. </tr>
  3739. <tr>
  3740. <td class="name"><code>canEncode</code></td>
  3741. <td class="type">
  3742. <span class="param-type">Boolean</span>
  3743. </td>
  3744. <td class="description last"><p>whether the codec is able to encode streams</p></td>
  3745. </tr>
  3746. </tbody>
  3747. </table>
  3748. </td>
  3749. </tr>
  3750. </tbody>
  3751. </table>
  3752. <dl class="details">
  3753. <dt class="tag-source">Source:</dt>
  3754. <dd class="tag-source"><ul class="dummy"><li>
  3755. <a href="capabilities.js.html">capabilities.js</a>, <a href="capabilities.js.html#line330">line 330</a>
  3756. </li></ul></dd>
  3757. </dl>
  3758. </dd>
  3759. <dt>
  3760. <h4 class="name" id="~encodersCallback"><span class="type-signature"></span>encodersCallback<span class="signature">(err, encoders)</span><span class="type-signature"></span></h4>
  3761. </dt>
  3762. <dd>
  3763. <div class="description">
  3764. <p>A callback passed to <a href="FfmpegCommand.html#availableEncoders">FfmpegCommand#availableEncoders</a>.</p>
  3765. </div>
  3766. <h5>Parameters:</h5>
  3767. <table class="params">
  3768. <thead>
  3769. <tr>
  3770. <th>Name</th>
  3771. <th>Type</th>
  3772. <th class="last">Description</th>
  3773. </tr>
  3774. </thead>
  3775. <tbody>
  3776. <tr>
  3777. <td class="name"><code>err</code></td>
  3778. <td class="type">
  3779. <span class="param-type">Error</span>
  3780. |
  3781. <span class="param-type">null</span>
  3782. </td>
  3783. <td class="description last"><p>error object or null if no error happened</p></td>
  3784. </tr>
  3785. <tr>
  3786. <td class="name"><code>encoders</code></td>
  3787. <td class="type">
  3788. <span class="param-type">Object</span>
  3789. </td>
  3790. <td class="description last"><p>encoders object with encoder names as keys and the following
  3791. properties for each encoder:</p>
  3792. <h6>Properties</h6>
  3793. <table class="params">
  3794. <thead>
  3795. <tr>
  3796. <th>Name</th>
  3797. <th>Type</th>
  3798. <th class="last">Description</th>
  3799. </tr>
  3800. </thead>
  3801. <tbody>
  3802. <tr>
  3803. <td class="name"><code>description</code></td>
  3804. <td class="type">
  3805. <span class="param-type">String</span>
  3806. </td>
  3807. <td class="description last"><p>codec description</p></td>
  3808. </tr>
  3809. <tr>
  3810. <td class="name"><code>type</code></td>
  3811. <td class="type">
  3812. <span class="param-type">Boolean</span>
  3813. </td>
  3814. <td class="description last"><p>&quot;audio&quot;, &quot;video&quot; or &quot;subtitle&quot;</p></td>
  3815. </tr>
  3816. <tr>
  3817. <td class="name"><code>frameMT</code></td>
  3818. <td class="type">
  3819. <span class="param-type">Boolean</span>
  3820. </td>
  3821. <td class="description last"><p>whether the encoder is able to do frame-level multithreading</p></td>
  3822. </tr>
  3823. <tr>
  3824. <td class="name"><code>sliceMT</code></td>
  3825. <td class="type">
  3826. <span class="param-type">Boolean</span>
  3827. </td>
  3828. <td class="description last"><p>whether the encoder is able to do slice-level multithreading</p></td>
  3829. </tr>
  3830. <tr>
  3831. <td class="name"><code>experimental</code></td>
  3832. <td class="type">
  3833. <span class="param-type">Boolean</span>
  3834. </td>
  3835. <td class="description last"><p>whether the encoder is experimental</p></td>
  3836. </tr>
  3837. <tr>
  3838. <td class="name"><code>drawHorizBand</code></td>
  3839. <td class="type">
  3840. <span class="param-type">Boolean</span>
  3841. </td>
  3842. <td class="description last"><p>whether the encoder supports draw_horiz_band</p></td>
  3843. </tr>
  3844. <tr>
  3845. <td class="name"><code>directRendering</code></td>
  3846. <td class="type">
  3847. <span class="param-type">Boolean</span>
  3848. </td>
  3849. <td class="description last"><p>whether the encoder supports direct encoding method 1</p></td>
  3850. </tr>
  3851. </tbody>
  3852. </table>
  3853. </td>
  3854. </tr>
  3855. </tbody>
  3856. </table>
  3857. <dl class="details">
  3858. <dt class="tag-source">Source:</dt>
  3859. <dd class="tag-source"><ul class="dummy"><li>
  3860. <a href="capabilities.js.html">capabilities.js</a>, <a href="capabilities.js.html#line429">line 429</a>
  3861. </li></ul></dd>
  3862. </dl>
  3863. </dd>
  3864. <dt>
  3865. <h4 class="name" id="~ffprobeCallback"><span class="type-signature"></span>ffprobeCallback<span class="signature">(err, ffprobeData)</span><span class="type-signature"></span></h4>
  3866. </dt>
  3867. <dd>
  3868. <div class="description">
  3869. <p>A callback passed to the <a href="FfmpegCommand.html#ffprobe">FfmpegCommand#ffprobe</a> method.</p>
  3870. </div>
  3871. <h5>Parameters:</h5>
  3872. <table class="params">
  3873. <thead>
  3874. <tr>
  3875. <th>Name</th>
  3876. <th>Type</th>
  3877. <th class="last">Description</th>
  3878. </tr>
  3879. </thead>
  3880. <tbody>
  3881. <tr>
  3882. <td class="name"><code>err</code></td>
  3883. <td class="type">
  3884. <span class="param-type">Error</span>
  3885. |
  3886. <span class="param-type">null</span>
  3887. </td>
  3888. <td class="description last"><p>error object or null if no error happened</p></td>
  3889. </tr>
  3890. <tr>
  3891. <td class="name"><code>ffprobeData</code></td>
  3892. <td class="type">
  3893. <span class="param-type">Object</span>
  3894. </td>
  3895. <td class="description last"><p>ffprobe output data; this object
  3896. has the same format as what the following command returns:</p>
  3897. <pre class="prettyprint source"><code>`ffprobe -print_format json -show_streams -show_format INPUTFILE`</code></pre>
  3898. <h6>Properties</h6>
  3899. <table class="params">
  3900. <thead>
  3901. <tr>
  3902. <th>Name</th>
  3903. <th>Type</th>
  3904. <th class="last">Description</th>
  3905. </tr>
  3906. </thead>
  3907. <tbody>
  3908. <tr>
  3909. <td class="name"><code>streams</code></td>
  3910. <td class="type">
  3911. <span class="param-type">Array</span>
  3912. </td>
  3913. <td class="description last"><p>stream information</p></td>
  3914. </tr>
  3915. <tr>
  3916. <td class="name"><code>format</code></td>
  3917. <td class="type">
  3918. <span class="param-type">Object</span>
  3919. </td>
  3920. <td class="description last"><p>format information</p></td>
  3921. </tr>
  3922. </tbody>
  3923. </table>
  3924. </td>
  3925. </tr>
  3926. </tbody>
  3927. </table>
  3928. <dl class="details">
  3929. <dt class="tag-source">Source:</dt>
  3930. <dd class="tag-source"><ul class="dummy"><li>
  3931. <a href="ffprobe.js.html">ffprobe.js</a>, <a href="ffprobe.js.html#line71">line 71</a>
  3932. </li></ul></dd>
  3933. </dl>
  3934. </dd>
  3935. <dt>
  3936. <h4 class="name" id="~filterCallback"><span class="type-signature"></span>filterCallback<span class="signature">(err, filters)</span><span class="type-signature"></span></h4>
  3937. </dt>
  3938. <dd>
  3939. <div class="description">
  3940. <p>A callback passed to <a href="FfmpegCommand.html#availableFilters">FfmpegCommand#availableFilters</a>.</p>
  3941. </div>
  3942. <h5>Parameters:</h5>
  3943. <table class="params">
  3944. <thead>
  3945. <tr>
  3946. <th>Name</th>
  3947. <th>Type</th>
  3948. <th class="last">Description</th>
  3949. </tr>
  3950. </thead>
  3951. <tbody>
  3952. <tr>
  3953. <td class="name"><code>err</code></td>
  3954. <td class="type">
  3955. <span class="param-type">Error</span>
  3956. |
  3957. <span class="param-type">null</span>
  3958. </td>
  3959. <td class="description last"><p>error object or null if no error happened</p></td>
  3960. </tr>
  3961. <tr>
  3962. <td class="name"><code>filters</code></td>
  3963. <td class="type">
  3964. <span class="param-type">Object</span>
  3965. </td>
  3966. <td class="description last"><p>filter object with filter names as keys and the following
  3967. properties for each filter:</p>
  3968. <h6>Properties</h6>
  3969. <table class="params">
  3970. <thead>
  3971. <tr>
  3972. <th>Name</th>
  3973. <th>Type</th>
  3974. <th class="last">Description</th>
  3975. </tr>
  3976. </thead>
  3977. <tbody>
  3978. <tr>
  3979. <td class="name"><code>description</code></td>
  3980. <td class="type">
  3981. <span class="param-type">String</span>
  3982. </td>
  3983. <td class="description last"><p>filter description</p></td>
  3984. </tr>
  3985. <tr>
  3986. <td class="name"><code>input</code></td>
  3987. <td class="type">
  3988. <span class="param-type">String</span>
  3989. </td>
  3990. <td class="description last"><p>input type, one of 'audio', 'video' and 'none'</p></td>
  3991. </tr>
  3992. <tr>
  3993. <td class="name"><code>multipleInputs</code></td>
  3994. <td class="type">
  3995. <span class="param-type">Boolean</span>
  3996. </td>
  3997. <td class="description last"><p>whether the filter supports multiple inputs</p></td>
  3998. </tr>
  3999. <tr>
  4000. <td class="name"><code>output</code></td>
  4001. <td class="type">
  4002. <span class="param-type">String</span>
  4003. </td>
  4004. <td class="description last"><p>output type, one of 'audio', 'video' and 'none'</p></td>
  4005. </tr>
  4006. <tr>
  4007. <td class="name"><code>multipleOutputs</code></td>
  4008. <td class="type">
  4009. <span class="param-type">Boolean</span>
  4010. </td>
  4011. <td class="description last"><p>whether the filter supports multiple outputs</p></td>
  4012. </tr>
  4013. </tbody>
  4014. </table>
  4015. </td>
  4016. </tr>
  4017. </tbody>
  4018. </table>
  4019. <dl class="details">
  4020. <dt class="tag-source">Source:</dt>
  4021. <dd class="tag-source"><ul class="dummy"><li>
  4022. <a href="capabilities.js.html">capabilities.js</a>, <a href="capabilities.js.html#line273">line 273</a>
  4023. </li></ul></dd>
  4024. </dl>
  4025. </dd>
  4026. <dt>
  4027. <h4 class="name" id="~formatCallback"><span class="type-signature"></span>formatCallback<span class="signature">(err, formats)</span><span class="type-signature"></span></h4>
  4028. </dt>
  4029. <dd>
  4030. <div class="description">
  4031. <p>A callback passed to <a href="FfmpegCommand.html#availableFormats">FfmpegCommand#availableFormats</a>.</p>
  4032. </div>
  4033. <h5>Parameters:</h5>
  4034. <table class="params">
  4035. <thead>
  4036. <tr>
  4037. <th>Name</th>
  4038. <th>Type</th>
  4039. <th class="last">Description</th>
  4040. </tr>
  4041. </thead>
  4042. <tbody>
  4043. <tr>
  4044. <td class="name"><code>err</code></td>
  4045. <td class="type">
  4046. <span class="param-type">Error</span>
  4047. |
  4048. <span class="param-type">null</span>
  4049. </td>
  4050. <td class="description last"><p>error object or null if no error happened</p></td>
  4051. </tr>
  4052. <tr>
  4053. <td class="name"><code>formats</code></td>
  4054. <td class="type">
  4055. <span class="param-type">Object</span>
  4056. </td>
  4057. <td class="description last"><p>format object with format names as keys and the following
  4058. properties for each format:</p>
  4059. <h6>Properties</h6>
  4060. <table class="params">
  4061. <thead>
  4062. <tr>
  4063. <th>Name</th>
  4064. <th>Type</th>
  4065. <th class="last">Description</th>
  4066. </tr>
  4067. </thead>
  4068. <tbody>
  4069. <tr>
  4070. <td class="name"><code>description</code></td>
  4071. <td class="type">
  4072. <span class="param-type">String</span>
  4073. </td>
  4074. <td class="description last"><p>format description</p></td>
  4075. </tr>
  4076. <tr>
  4077. <td class="name"><code>canDemux</code></td>
  4078. <td class="type">
  4079. <span class="param-type">Boolean</span>
  4080. </td>
  4081. <td class="description last"><p>whether the format is able to demux streams from an input file</p></td>
  4082. </tr>
  4083. <tr>
  4084. <td class="name"><code>canMux</code></td>
  4085. <td class="type">
  4086. <span class="param-type">Boolean</span>
  4087. </td>
  4088. <td class="description last"><p>whether the format is able to mux streams into an output file</p></td>
  4089. </tr>
  4090. </tbody>
  4091. </table>
  4092. </td>
  4093. </tr>
  4094. </tbody>
  4095. </table>
  4096. <dl class="details">
  4097. <dt class="tag-source">Source:</dt>
  4098. <dd class="tag-source"><ul class="dummy"><li>
  4099. <a href="capabilities.js.html">capabilities.js</a>, <a href="capabilities.js.html#line489">line 489</a>
  4100. </li></ul></dd>
  4101. </dl>
  4102. </dd>
  4103. </dl>
  4104. <h3 class="subsection-title">Events</h3>
  4105. <dl>
  4106. <dt>
  4107. <h4 class="name" id="event:codecData">codecData</h4>
  4108. </dt>
  4109. <dd>
  4110. <div class="description">
  4111. <p>Emitted when ffmpeg reports input codec data</p>
  4112. </div>
  4113. <h5>Parameters:</h5>
  4114. <table class="params">
  4115. <thead>
  4116. <tr>
  4117. <th>Name</th>
  4118. <th>Type</th>
  4119. <th class="last">Description</th>
  4120. </tr>
  4121. </thead>
  4122. <tbody>
  4123. <tr>
  4124. <td class="name"><code>codecData</code></td>
  4125. <td class="type">
  4126. <span class="param-type">Object</span>
  4127. </td>
  4128. <td class="description last"><p>codec data object</p>
  4129. <h6>Properties</h6>
  4130. <table class="params">
  4131. <thead>
  4132. <tr>
  4133. <th>Name</th>
  4134. <th>Type</th>
  4135. <th class="last">Description</th>
  4136. </tr>
  4137. </thead>
  4138. <tbody>
  4139. <tr>
  4140. <td class="name"><code>format</code></td>
  4141. <td class="type">
  4142. <span class="param-type">String</span>
  4143. </td>
  4144. <td class="description last"><p>input format name</p></td>
  4145. </tr>
  4146. <tr>
  4147. <td class="name"><code>audio</code></td>
  4148. <td class="type">
  4149. <span class="param-type">String</span>
  4150. </td>
  4151. <td class="description last"><p>input audio codec name</p></td>
  4152. </tr>
  4153. <tr>
  4154. <td class="name"><code>audio_details</code></td>
  4155. <td class="type">
  4156. <span class="param-type">String</span>
  4157. </td>
  4158. <td class="description last"><p>input audio codec parameters</p></td>
  4159. </tr>
  4160. <tr>
  4161. <td class="name"><code>video</code></td>
  4162. <td class="type">
  4163. <span class="param-type">String</span>
  4164. </td>
  4165. <td class="description last"><p>input video codec name</p></td>
  4166. </tr>
  4167. <tr>
  4168. <td class="name"><code>video_details</code></td>
  4169. <td class="type">
  4170. <span class="param-type">String</span>
  4171. </td>
  4172. <td class="description last"><p>input video codec parameters</p></td>
  4173. </tr>
  4174. </tbody>
  4175. </table>
  4176. </td>
  4177. </tr>
  4178. </tbody>
  4179. </table>
  4180. <dl class="details">
  4181. <dt class="tag-source">Source:</dt>
  4182. <dd class="tag-source"><ul class="dummy"><li>
  4183. <a href="processor.js.html">processor.js</a>, <a href="processor.js.html#line58">line 58</a>
  4184. </li></ul></dd>
  4185. </dl>
  4186. </dd>
  4187. <dt>
  4188. <h4 class="name" id="event:end">end</h4>
  4189. </dt>
  4190. <dd>
  4191. <div class="description">
  4192. <p>Emitted when a command finishes processing</p>
  4193. </div>
  4194. <h5>Parameters:</h5>
  4195. <table class="params">
  4196. <thead>
  4197. <tr>
  4198. <th>Name</th>
  4199. <th>Type</th>
  4200. <th>Argument</th>
  4201. <th class="last">Description</th>
  4202. </tr>
  4203. </thead>
  4204. <tbody>
  4205. <tr>
  4206. <td class="name"><code>filenames|stdout</code></td>
  4207. <td class="type">
  4208. <span class="param-type">Array</span>
  4209. |
  4210. <span class="param-type">String</span>
  4211. |
  4212. <span class="param-type">null</span>
  4213. </td>
  4214. <td class="attributes">
  4215. &lt;optional><br>
  4216. </td>
  4217. <td class="description last"><p>generated filenames when taking screenshots, ffmpeg stdout when not outputting to a stream, null otherwise</p></td>
  4218. </tr>
  4219. <tr>
  4220. <td class="name"><code>stderr</code></td>
  4221. <td class="type">
  4222. <span class="param-type">String</span>
  4223. |
  4224. <span class="param-type">null</span>
  4225. </td>
  4226. <td class="attributes">
  4227. </td>
  4228. <td class="description last"><p>ffmpeg stderr</p></td>
  4229. </tr>
  4230. </tbody>
  4231. </table>
  4232. <dl class="details">
  4233. <dt class="tag-source">Source:</dt>
  4234. <dd class="tag-source"><ul class="dummy"><li>
  4235. <a href="processor.js.html">processor.js</a>, <a href="processor.js.html#line79">line 79</a>
  4236. </li></ul></dd>
  4237. </dl>
  4238. </dd>
  4239. <dt>
  4240. <h4 class="name" id="event:error">error</h4>
  4241. </dt>
  4242. <dd>
  4243. <div class="description">
  4244. <p>Emitted when an error happens when preparing or running a command</p>
  4245. </div>
  4246. <h5>Parameters:</h5>
  4247. <table class="params">
  4248. <thead>
  4249. <tr>
  4250. <th>Name</th>
  4251. <th>Type</th>
  4252. <th class="last">Description</th>
  4253. </tr>
  4254. </thead>
  4255. <tbody>
  4256. <tr>
  4257. <td class="name"><code>error</code></td>
  4258. <td class="type">
  4259. <span class="param-type">Error</span>
  4260. </td>
  4261. <td class="description last"><p>error object</p></td>
  4262. </tr>
  4263. <tr>
  4264. <td class="name"><code>stdout</code></td>
  4265. <td class="type">
  4266. <span class="param-type">String</span>
  4267. |
  4268. <span class="param-type">null</span>
  4269. </td>
  4270. <td class="description last"><p>ffmpeg stdout, unless outputting to a stream</p></td>
  4271. </tr>
  4272. <tr>
  4273. <td class="name"><code>stderr</code></td>
  4274. <td class="type">
  4275. <span class="param-type">String</span>
  4276. |
  4277. <span class="param-type">null</span>
  4278. </td>
  4279. <td class="description last"><p>ffmpeg stderr</p></td>
  4280. </tr>
  4281. </tbody>
  4282. </table>
  4283. <dl class="details">
  4284. <dt class="tag-source">Source:</dt>
  4285. <dd class="tag-source"><ul class="dummy"><li>
  4286. <a href="processor.js.html">processor.js</a>, <a href="processor.js.html#line70">line 70</a>
  4287. </li></ul></dd>
  4288. </dl>
  4289. </dd>
  4290. <dt>
  4291. <h4 class="name" id="event:progress">progress</h4>
  4292. </dt>
  4293. <dd>
  4294. <div class="description">
  4295. <p>Emitted when ffmpeg reports progress information</p>
  4296. </div>
  4297. <h5>Parameters:</h5>
  4298. <table class="params">
  4299. <thead>
  4300. <tr>
  4301. <th>Name</th>
  4302. <th>Type</th>
  4303. <th class="last">Description</th>
  4304. </tr>
  4305. </thead>
  4306. <tbody>
  4307. <tr>
  4308. <td class="name"><code>progress</code></td>
  4309. <td class="type">
  4310. <span class="param-type">Object</span>
  4311. </td>
  4312. <td class="description last"><p>progress object</p>
  4313. <h6>Properties</h6>
  4314. <table class="params">
  4315. <thead>
  4316. <tr>
  4317. <th>Name</th>
  4318. <th>Type</th>
  4319. <th>Argument</th>
  4320. <th class="last">Description</th>
  4321. </tr>
  4322. </thead>
  4323. <tbody>
  4324. <tr>
  4325. <td class="name"><code>frames</code></td>
  4326. <td class="type">
  4327. <span class="param-type">Number</span>
  4328. </td>
  4329. <td class="attributes">
  4330. </td>
  4331. <td class="description last"><p>number of frames transcoded</p></td>
  4332. </tr>
  4333. <tr>
  4334. <td class="name"><code>currentFps</code></td>
  4335. <td class="type">
  4336. <span class="param-type">Number</span>
  4337. </td>
  4338. <td class="attributes">
  4339. </td>
  4340. <td class="description last"><p>current processing speed in frames per second</p></td>
  4341. </tr>
  4342. <tr>
  4343. <td class="name"><code>currentKbps</code></td>
  4344. <td class="type">
  4345. <span class="param-type">Number</span>
  4346. </td>
  4347. <td class="attributes">
  4348. </td>
  4349. <td class="description last"><p>current output generation speed in kilobytes per second</p></td>
  4350. </tr>
  4351. <tr>
  4352. <td class="name"><code>targetSize</code></td>
  4353. <td class="type">
  4354. <span class="param-type">Number</span>
  4355. </td>
  4356. <td class="attributes">
  4357. </td>
  4358. <td class="description last"><p>current output file size</p></td>
  4359. </tr>
  4360. <tr>
  4361. <td class="name"><code>timemark</code></td>
  4362. <td class="type">
  4363. <span class="param-type">String</span>
  4364. </td>
  4365. <td class="attributes">
  4366. </td>
  4367. <td class="description last"><p>current video timemark</p></td>
  4368. </tr>
  4369. <tr>
  4370. <td class="name"><code>percent</code></td>
  4371. <td class="type">
  4372. <span class="param-type">Number</span>
  4373. </td>
  4374. <td class="attributes">
  4375. &lt;optional><br>
  4376. </td>
  4377. <td class="description last"><p>processing progress (may not be available depending on input)</p></td>
  4378. </tr>
  4379. </tbody>
  4380. </table>
  4381. </td>
  4382. </tr>
  4383. </tbody>
  4384. </table>
  4385. <dl class="details">
  4386. <dt class="tag-source">Source:</dt>
  4387. <dd class="tag-source"><ul class="dummy"><li>
  4388. <a href="processor.js.html">processor.js</a>, <a href="processor.js.html#line38">line 38</a>
  4389. </li></ul></dd>
  4390. </dl>
  4391. </dd>
  4392. <dt>
  4393. <h4 class="name" id="event:start">start</h4>
  4394. </dt>
  4395. <dd>
  4396. <div class="description">
  4397. <p>Emitted just after ffmpeg has been spawned.</p>
  4398. </div>
  4399. <h5>Parameters:</h5>
  4400. <table class="params">
  4401. <thead>
  4402. <tr>
  4403. <th>Name</th>
  4404. <th>Type</th>
  4405. <th class="last">Description</th>
  4406. </tr>
  4407. </thead>
  4408. <tbody>
  4409. <tr>
  4410. <td class="name"><code>command</code></td>
  4411. <td class="type">
  4412. <span class="param-type">String</span>
  4413. </td>
  4414. <td class="description last"><p>ffmpeg command line</p></td>
  4415. </tr>
  4416. </tbody>
  4417. </table>
  4418. <dl class="details">
  4419. <dt class="tag-source">Source:</dt>
  4420. <dd class="tag-source"><ul class="dummy"><li>
  4421. <a href="processor.js.html">processor.js</a>, <a href="processor.js.html#line31">line 31</a>
  4422. </li></ul></dd>
  4423. </dl>
  4424. </dd>
  4425. <dt>
  4426. <h4 class="name" id="event:stderr">stderr</h4>
  4427. </dt>
  4428. <dd>
  4429. <div class="description">
  4430. <p>Emitted when ffmpeg outputs to stderr</p>
  4431. </div>
  4432. <h5>Parameters:</h5>
  4433. <table class="params">
  4434. <thead>
  4435. <tr>
  4436. <th>Name</th>
  4437. <th>Type</th>
  4438. <th class="last">Description</th>
  4439. </tr>
  4440. </thead>
  4441. <tbody>
  4442. <tr>
  4443. <td class="name"><code>line</code></td>
  4444. <td class="type">
  4445. <span class="param-type">String</span>
  4446. </td>
  4447. <td class="description last"><p>stderr output line</p></td>
  4448. </tr>
  4449. </tbody>
  4450. </table>
  4451. <dl class="details">
  4452. <dt class="tag-source">Source:</dt>
  4453. <dd class="tag-source"><ul class="dummy"><li>
  4454. <a href="processor.js.html">processor.js</a>, <a href="processor.js.html#line51">line 51</a>
  4455. </li></ul></dd>
  4456. </dl>
  4457. </dd>
  4458. </dl>
  4459. </article>
  4460. </section>
  4461. </div>
  4462. <nav>
  4463. <h2><a href="index.html">Index</a></h2><ul><li><a href="index.html#installation">Installation</a></li><ul></ul><li><a href="index.html#usage">Usage</a></li><ul><li><a href="index.html#prerequisites">Prerequisites</a></li><li><a href="index.html#creating-an-ffmpeg-command">Creating an FFmpeg command</a></li><li><a href="index.html#specifying-inputs">Specifying inputs</a></li><li><a href="index.html#input-options">Input options</a></li><li><a href="index.html#audio-options">Audio options</a></li><li><a href="index.html#video-options">Video options</a></li><li><a href="index.html#video-frame-size-options">Video frame size options</a></li><li><a href="index.html#specifying-multiple-outputs">Specifying multiple outputs</a></li><li><a href="index.html#output-options">Output options</a></li><li><a href="index.html#miscellaneous-options">Miscellaneous options</a></li><li><a href="index.html#setting-event-handlers">Setting event handlers</a></li><li><a href="index.html#starting-ffmpeg-processing">Starting FFmpeg processing</a></li><li><a href="index.html#controlling-the-ffmpeg-process">Controlling the FFmpeg process</a></li><li><a href="index.html#reading-video-metadata">Reading video metadata</a></li><li><a href="index.html#querying-ffmpeg-capabilities">Querying ffmpeg capabilities</a></li><li><a href="index.html#cloning-an-ffmpegcommand">Cloning an FfmpegCommand</a></li></ul><li><a href="index.html#contributing">Contributing</a></li><ul><li><a href="index.html#code-contributions">Code contributions</a></li><li><a href="index.html#documentation-contributions">Documentation contributions</a></li><li><a href="index.html#updating-the-documentation">Updating the documentation</a></li><li><a href="index.html#running-tests">Running tests</a></li></ul><li><a href="index.html#main-contributors">Main contributors</a></li><ul></ul><li><a href="index.html#license">License</a></li><ul></ul></ul><h3>Classes</h3><ul><li><a href="FfmpegCommand.html">FfmpegCommand</a></li><ul><li> <a href="FfmpegCommand.html#audio-methods">Audio methods</a></li><li> <a href="FfmpegCommand.html#capabilities-methods">Capabilities methods</a></li><li> <a href="FfmpegCommand.html#custom-options-methods">Custom options methods</a></li><li> <a href="FfmpegCommand.html#input-methods">Input methods</a></li><li> <a href="FfmpegCommand.html#metadata-methods">Metadata methods</a></li><li> <a href="FfmpegCommand.html#miscellaneous-methods">Miscellaneous methods</a></li><li> <a href="FfmpegCommand.html#other-methods">Other methods</a></li><li> <a href="FfmpegCommand.html#output-methods">Output methods</a></li><li> <a href="FfmpegCommand.html#processing-methods">Processing methods</a></li><li> <a href="FfmpegCommand.html#video-methods">Video methods</a></li><li> <a href="FfmpegCommand.html#video-size-methods">Video size methods</a></li></ul></ul>
  4464. </nav>
  4465. <br clear="both">
  4466. <footer>
  4467. Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun May 01 2016 12:10:37 GMT+0200 (CEST)
  4468. </footer>
  4469. <script> prettyPrint(); </script>
  4470. <script src="scripts/linenumber.js"> </script>
  4471. </body>
  4472. </html>