[{"data":1,"prerenderedAt":1306},["ShallowReactive",2],{"navigation_docs":3,"-splice-making-clips-create-splice":420,"-splice-making-clips-create-splice-surround":1301},[4,26,201,312,317,335],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":25},"Getting Started","i-lucide:rocket","\u002Fgetting-started","01.getting-started",[10,14],{"title":11,"path":12,"stem":13,"icon":6},"Introduction","\u002Fgetting-started\u002Fintroduction","01.getting-started\u002F01.introduction",{"title":15,"icon":16,"path":17,"stem":18,"children":19,"page":25},"AI","i-lucide:bot","\u002Fgetting-started\u002Fai","01.getting-started\u002F02.ai",[20],{"title":21,"path":22,"stem":23,"icon":24},"LLMs Integration","\u002Fgetting-started\u002Fai\u002Fllms-txt","01.getting-started\u002F02.ai\u002F01.llms-txt","i-lucide:folder-code",false,{"title":27,"icon":28,"path":29,"stem":30,"children":31,"page":25},"Video Player","i-lucide:play-circle","\u002Fvideo-player","02.video-player",[32,50,76,117,191],{"title":5,"icon":6,"path":33,"stem":34,"children":35,"page":25},"\u002Fvideo-player\u002Fgetting-started","02.video-player\u002F01.getting-started",[36,40,45],{"title":11,"path":37,"stem":38,"icon":39},"\u002Fvideo-player\u002Fgetting-started\u002Fintroduction","02.video-player\u002F01.getting-started\u002F01.introduction","i-lucide:book-open",{"title":41,"path":42,"stem":43,"icon":44},"Installation","\u002Fvideo-player\u002Fgetting-started\u002Finstallation","02.video-player\u002F01.getting-started\u002F02.installation","i-lucide:download",{"title":46,"path":47,"stem":48,"icon":49},"Try your own","\u002Fvideo-player\u002Fgetting-started\u002Ftry-your-own","02.video-player\u002F01.getting-started\u002F03.try-your-own","i-lucide:flask-conical",{"title":51,"icon":52,"path":53,"stem":54,"children":55,"page":25},"Core Concepts","i-lucide:lightbulb","\u002Fvideo-player\u002Fcore-concepts","02.video-player\u002F02.core-concepts",[56,61,66,71],{"title":57,"path":58,"stem":59,"icon":60},"Components","\u002Fvideo-player\u002Fcore-concepts\u002Fcomponents","02.video-player\u002F02.core-concepts\u002F01.components","i-lucide:component",{"title":62,"path":63,"stem":64,"icon":65},"Platforms","\u002Fvideo-player\u002Fcore-concepts\u002Fplatforms","02.video-player\u002F02.core-concepts\u002F02.platforms","i-lucide:globe",{"title":67,"path":68,"stem":69,"icon":70},"Web components","\u002Fvideo-player\u002Fcore-concepts\u002Fweb-components","02.video-player\u002F02.core-concepts\u002F03.web-components","i-lucide:box",{"title":72,"path":73,"stem":74,"icon":75},"Autoplay & audio","\u002Fvideo-player\u002Fcore-concepts\u002Fautoplay-and-audio","02.video-player\u002F02.core-concepts\u002F04.autoplay-and-audio","i-lucide:volume-2",{"title":77,"icon":78,"defaultOpen":25,"path":79,"stem":80,"children":81},"API Reference","i-lucide:book-marked","\u002Fvideo-player\u002Fapi","02.video-player\u002F03.api\u002Findex",[82,85,90,102,107,112],{"title":83,"path":79,"stem":80,"icon":84},"Overview","i-lucide:list",{"title":86,"path":87,"stem":88,"icon":89},"Props","\u002Fvideo-player\u002Fapi\u002Fprops","02.video-player\u002F03.api\u002F01.props","i-lucide:sliders-horizontal",{"title":91,"path":92,"stem":93,"children":94,"icon":96},"Methods & state","\u002Fvideo-player\u002Fapi\u002Fmethods","02.video-player\u002F03.api\u002F02.methods\u002Findex",[95,97],{"title":91,"path":92,"stem":93,"icon":96},"i-lucide:square-function",{"title":98,"path":99,"stem":100,"icon":101},"Wrapping a player","\u002Fvideo-player\u002Fapi\u002Fmethods\u002Fwrapping","02.video-player\u002F03.api\u002F02.methods\u002F01.wrapping","i-lucide:package",{"title":103,"path":104,"stem":105,"icon":106},"Events","\u002Fvideo-player\u002Fapi\u002Fevents","02.video-player\u002F03.api\u002F03.events","i-lucide:radio-tower",{"title":108,"path":109,"stem":110,"icon":111},"Headless controls","\u002Fvideo-player\u002Fapi\u002Fcontrols","02.video-player\u002F03.api\u002F04.controls","i-lucide:toggle-left",{"title":113,"path":114,"stem":115,"icon":116},"Built-in behaviour","\u002Fvideo-player\u002Fapi\u002Fbehaviour","02.video-player\u002F03.api\u002F05.behaviour","i-lucide:settings-2",{"title":118,"icon":119,"defaultOpen":25,"path":120,"stem":121,"children":122,"page":25},"Features","i-lucide:layers","\u002Fvideo-player\u002Ffeatures","02.video-player\u002F04.features",[123,128,133,138,143,148,164,181,186],{"title":124,"path":125,"stem":126,"icon":127},"Scrolling & viewport","\u002Fvideo-player\u002Ffeatures\u002Fviewport","02.video-player\u002F04.features\u002F01.viewport","i-lucide:scroll",{"title":129,"path":130,"stem":131,"icon":132},"Stage & playlists","\u002Fvideo-player\u002Ffeatures\u002Fstage-and-playlists","02.video-player\u002F04.features\u002F02.stage-and-playlists","i-lucide:layout-template",{"title":134,"path":135,"stem":136,"icon":137},"Transcripts","\u002Fvideo-player\u002Ffeatures\u002Ftranscripts","02.video-player\u002F04.features\u002F03.transcripts","i-lucide:scroll-text",{"title":139,"path":140,"stem":141,"icon":142},"Captions","\u002Fvideo-player\u002Ffeatures\u002Fcaptions","02.video-player\u002F04.features\u002F04.captions","i-lucide:subtitles",{"title":144,"path":145,"stem":146,"icon":147},"Quality","\u002Fvideo-player\u002Ffeatures\u002Fquality","02.video-player\u002F04.features\u002F05.quality","i-lucide:gauge",{"title":149,"icon":150,"defaultOpen":25,"path":151,"stem":152,"children":153},"Ads & monetisation","i-lucide:megaphone","\u002Fvideo-player\u002Ffeatures\u002Fads","02.video-player\u002F04.features\u002F06.ads\u002Findex",[154,155,160],{"title":149,"path":151,"stem":152,"icon":150},{"title":156,"path":157,"stem":158,"icon":159},"Header bidding","\u002Fvideo-player\u002Ffeatures\u002Fads\u002Fheader-bidding","02.video-player\u002F04.features\u002F06.ads\u002F01.header-bidding","i-lucide:gavel",{"title":161,"path":162,"stem":163,"icon":116},"Ad behaviour","\u002Fvideo-player\u002Ffeatures\u002Fads\u002Fbehaviour","02.video-player\u002F04.features\u002F06.ads\u002F02.behaviour",{"title":165,"icon":166,"defaultOpen":25,"path":167,"stem":168,"children":169},"Extensibility","i-lucide:puzzle","\u002Fvideo-player\u002Ffeatures\u002Fextensibility","02.video-player\u002F04.features\u002F07.extensibility\u002Findex",[170,171,176],{"title":165,"path":167,"stem":168,"icon":166},{"title":172,"path":173,"stem":174,"icon":175},"Icons","\u002Fvideo-player\u002Ffeatures\u002Fextensibility\u002Ficons","02.video-player\u002F04.features\u002F07.extensibility\u002F01.icons","i-lucide:image",{"title":177,"path":178,"stem":179,"icon":180},"Theming","\u002Fvideo-player\u002Ffeatures\u002Fextensibility\u002Ftheming","02.video-player\u002F04.features\u002F07.extensibility\u002F02.theming","i-lucide:palette",{"title":182,"path":183,"stem":184,"icon":185},"Deep links","\u002Fvideo-player\u002Ffeatures\u002Fdeep-links","02.video-player\u002F04.features\u002F08.deep-links","i-lucide:link",{"title":187,"path":188,"stem":189,"icon":190},"Clip ranges","\u002Fvideo-player\u002Ffeatures\u002Fclip-range","02.video-player\u002F04.features\u002F09.clip-range","i-lucide:brackets",{"title":192,"icon":49,"defaultOpen":25,"path":193,"stem":194,"children":195,"page":25},"Examples","\u002Fvideo-player\u002Fexamples","02.video-player\u002F05.examples",[196],{"title":197,"path":198,"stem":199,"icon":200},"Shorts-style feed","\u002Fvideo-player\u002Fexamples\u002Fshorts-feed","02.video-player\u002F05.examples\u002F01.shorts-feed","i-lucide:smartphone",{"title":202,"icon":203,"path":204,"stem":205,"children":206,"page":25},"Sigil","i-lucide:shapes","\u002Fsigil","03.sigil",[207,217,240,270,290],{"title":5,"icon":6,"path":208,"stem":209,"children":210,"page":25},"\u002Fsigil\u002Fgetting-started","03.sigil\u002F01.getting-started",[211,214],{"title":11,"path":212,"stem":213,"icon":39},"\u002Fsigil\u002Fgetting-started\u002Fintroduction","03.sigil\u002F01.getting-started\u002F01.introduction",{"title":41,"path":215,"stem":216,"icon":44},"\u002Fsigil\u002Fgetting-started\u002Finstallation","03.sigil\u002F01.getting-started\u002F02.installation",{"title":51,"icon":52,"path":218,"stem":219,"children":220,"page":25},"\u002Fsigil\u002Fcore-concepts","03.sigil\u002F02.core-concepts",[221,226,231,235],{"title":222,"path":223,"stem":224,"icon":225},"Resolution","\u002Fsigil\u002Fcore-concepts\u002Fresolution","03.sigil\u002F02.core-concepts\u002F01.resolution","i-lucide:route",{"title":227,"path":228,"stem":229,"icon":230},"Entries","\u002Fsigil\u002Fcore-concepts\u002Fentries","03.sigil\u002F02.core-concepts\u002F02.entries","i-lucide:package-open",{"title":232,"path":233,"stem":234,"icon":70},"The element","\u002Fsigil\u002Fcore-concepts\u002Fweb-component","03.sigil\u002F02.core-concepts\u002F03.web-component",{"title":236,"path":237,"stem":238,"icon":239},"Switching sets","\u002Fsigil\u002Fcore-concepts\u002Fswitching","03.sigil\u002F02.core-concepts\u002F04.switching","i-lucide:repeat",{"title":241,"icon":242,"defaultOpen":25,"path":243,"stem":244,"children":245},"Sources","i-lucide:library","\u002Fsigil\u002Fsources","03.sigil\u002F03.sources\u002Findex",[246,247,252,256,261,266],{"title":83,"path":243,"stem":244,"icon":84},{"title":248,"path":249,"stem":250,"icon":251},"Overrides","\u002Fsigil\u002Fsources\u002Foverrides","03.sigil\u002F03.sources\u002F01.overrides","i-lucide:pin",{"title":253,"path":254,"stem":255,"icon":175},"SVG libraries","\u002Fsigil\u002Fsources\u002Fsvg","03.sigil\u002F03.sources\u002F02.svg",{"title":257,"path":258,"stem":259,"icon":260},"Icon fonts","\u002Fsigil\u002Fsources\u002Ffonts","03.sigil\u002F03.sources\u002F03.fonts","i-lucide:type",{"title":262,"path":263,"stem":264,"icon":265},"From a JSON file","\u002Fsigil\u002Fsources\u002Fjson","03.sigil\u002F03.sources\u002F04.json","i-lucide:braces",{"title":267,"path":268,"stem":269,"icon":166},"Your own source","\u002Fsigil\u002Fsources\u002Fcustom","03.sigil\u002F03.sources\u002F05.custom",{"title":271,"icon":272,"defaultOpen":25,"collapsible":273,"path":274,"stem":275,"children":276,"page":25},"Integrations","i-lucide:plug",true,"\u002Fsigil\u002Fintegrations","03.sigil\u002F04.integrations",[277,281,285],{"title":278,"path":279,"stem":280,"icon":60},"Vue","\u002Fsigil\u002Fintegrations\u002Fvue","03.sigil\u002F04.integrations\u002F01.vue",{"title":282,"path":283,"stem":284,"icon":119},"Other frameworks","\u002Fsigil\u002Fintegrations\u002Fother-frameworks","03.sigil\u002F04.integrations\u002F02.other-frameworks",{"title":286,"path":287,"stem":288,"icon":289},"Third-party scripts","\u002Fsigil\u002Fintegrations\u002Fthird-party-scripts","03.sigil\u002F04.integrations\u002F03.third-party-scripts","i-lucide:git-fork",{"title":77,"icon":78,"defaultOpen":25,"path":291,"stem":292,"children":293},"\u002Fsigil\u002Fapi","03.sigil\u002F05.api\u002Findex",[294,295,300,303,308],{"title":83,"path":291,"stem":292,"icon":84},{"title":296,"path":297,"stem":298,"icon":299},"Registry","\u002Fsigil\u002Fapi\u002Fregistry","03.sigil\u002F05.api\u002F01.registry","i-lucide:database",{"title":241,"path":301,"stem":302,"icon":242},"\u002Fsigil\u002Fapi\u002Fsources","03.sigil\u002F05.api\u002F02.sources",{"title":304,"path":305,"stem":306,"icon":307},"Renderers","\u002Fsigil\u002Fapi\u002Frenderers","03.sigil\u002F05.api\u002F03.renderers","i-lucide:monitor",{"title":309,"path":310,"stem":311,"icon":265},"Types","\u002Fsigil\u002Fapi\u002Ftypes","03.sigil\u002F05.api\u002F04.types",{"title":313,"path":314,"stem":315,"icon":316},"Contributors","\u002Fcontributors","04.contributors","i-lucide:users",{"title":318,"icon":319,"path":320,"stem":321,"children":322,"page":25},"Ship Kit","i-lucide:terminal","\u002Fshipkit","04.shipkit",[323,326,330],{"title":11,"path":324,"stem":325,"icon":101},"\u002Fshipkit\u002Fintroduction","04.shipkit\u002F01.introduction",{"title":327,"path":328,"stem":329,"icon":319},"CLI","\u002Fshipkit\u002Fcli","04.shipkit\u002F02.cli",{"title":331,"path":332,"stem":333,"icon":334},"Vite Configs","\u002Fshipkit\u002Fvite-configs","04.shipkit\u002F03.vite-configs","i-lucide:code",{"title":336,"icon":337,"path":338,"stem":339,"children":340,"page":25},"Splice","i-lucide:scissors","\u002Fsplice","05.splice",[341,352,389,406],{"title":5,"icon":6,"path":342,"stem":343,"children":344,"page":25},"\u002Fsplice\u002Fgetting-started","05.splice\u002F01.getting-started",[345,348],{"title":11,"path":346,"stem":347,"icon":39},"\u002Fsplice\u002Fgetting-started\u002Fintroduction","05.splice\u002F01.getting-started\u002F01.introduction",{"title":349,"path":350,"stem":351,"icon":44},"Getting started","\u002Fsplice\u002Fgetting-started\u002Finstallation","05.splice\u002F01.getting-started\u002F02.installation",{"title":353,"icon":354,"path":355,"stem":356,"children":357,"page":25},"Making clips","i-lucide:film","\u002Fsplice\u002Fmaking-clips","05.splice\u002F02.making-clips",[358,362,367,371,375,380,385],{"title":359,"path":360,"stem":361,"icon":337},"createSplice","\u002Fsplice\u002Fmaking-clips\u002Fcreate-splice","05.splice\u002F02.making-clips\u002F01.create-splice",{"title":363,"path":364,"stem":365,"icon":366},"Crop","\u002Fsplice\u002Fmaking-clips\u002Fcrop","05.splice\u002F02.making-clips\u002F02.crop","i-lucide:crop",{"title":139,"path":368,"stem":369,"icon":370},"\u002Fsplice\u002Fmaking-clips\u002Fcaptions","05.splice\u002F02.making-clips\u002F03.captions","i-lucide:captions",{"title":372,"path":373,"stem":374,"icon":185},"Origin and links","\u002Fsplice\u002Fmaking-clips\u002Forigin-and-links","05.splice\u002F02.making-clips\u002F04.origin-and-links",{"title":376,"path":377,"stem":378,"icon":379},"End card, stamp and watermark","\u002Fsplice\u002Fmaking-clips\u002Fend-card","05.splice\u002F02.making-clips\u002F05.end-card","i-lucide:badge-check",{"title":381,"path":382,"stem":383,"icon":384},"Thumbnails","\u002Fsplice\u002Fmaking-clips\u002Fthumbnails","05.splice\u002F02.making-clips\u002F06.thumbnails","i-lucide:gallery-horizontal",{"title":386,"path":387,"stem":388,"icon":166},"With another player","\u002Fsplice\u002Fmaking-clips\u002Fanother-player","05.splice\u002F02.making-clips\u002F07.another-player",{"title":390,"icon":391,"path":392,"stem":393,"children":394,"page":25},"The editor","i-lucide:mouse-pointer-click","\u002Fsplice\u002Feditor","05.splice\u002F03.editor",[395,398,402],{"title":390,"path":396,"stem":397,"icon":391},"\u002Fsplice\u002Feditor\u002Feditor","05.splice\u002F03.editor\u002F01.editor",{"title":399,"path":400,"stem":401,"icon":28},"Clip this in video-player","\u002Fsplice\u002Feditor\u002Fvideo-player","05.splice\u002F03.editor\u002F02.video-player",{"title":403,"path":404,"stem":405,"icon":60},"Web component","\u002Fsplice\u002Feditor\u002Fweb-component","05.splice\u002F03.editor\u002F03.web-component",{"title":407,"icon":78,"defaultOpen":25,"path":408,"stem":409,"children":410,"page":25},"Reference","\u002Fsplice\u002Freference","05.splice\u002F04.reference",[411,416],{"title":412,"path":413,"stem":414,"icon":415},"Browser support","\u002Fsplice\u002Freference\u002Fbrowser-support","05.splice\u002F04.reference\u002F01.browser-support","i-lucide:monitor-check",{"title":417,"path":418,"stem":419,"icon":334},"API","\u002Fsplice\u002Freference\u002Fapi","05.splice\u002F04.reference\u002F02.api",{"id":421,"title":359,"body":422,"description":1294,"extension":1295,"links":1296,"meta":1297,"navigation":1298,"path":360,"seo":1299,"stem":361,"__hash__":1300},"docs\u002F05.splice\u002F02.making-clips\u002F01.create-splice.md",{"type":423,"value":424,"toc":1286},"minimark",[425,445,767,772,1093,1097,1100,1103,1107,1114,1118,1123,1145,1149,1158,1259,1262,1266,1282],[426,427,428,432,433,436,437,440,441,444],"p",{},[429,430,431],"code",{},"createSplice(options)"," cuts ",[429,434,435],{},"[start, end)"," out of a source and resolves with a ",[429,438,439],{},"Blob",": always an MP4 (",[429,442,443],{},"video\u002Fmp4",") with H.264 video and AAC audio.",[446,447,452],"pre",{"className":448,"code":449,"language":450,"meta":451,"style":451},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","const clip = await createSplice({\n  source: video, \u002F\u002F a URL, a File\u002FBlob or a \u003Cvideo>\n  start: 42,\n  end: 52,\n  crop: { aspect: '9:16' },\n  captions: '\u002Fvideo\u002Finterview.en.vtt',\n  origin: {\n    url: location.href,\n    title: document.title,\n    publisher: 'Example News',\n  },\n  endCard: { logo: '\u002Flogo.svg' },\n  onProgress: (fraction) => (progress.value = fraction),\n  onWarning: (message) => console.warn(message),\n  signal: controller.signal,\n})\n","ts","",[429,453,454,485,505,520,533,562,579,590,609,627,644,650,674,710,740,758],{"__ignoreMap":451},[455,456,459,463,467,471,475,479,482],"span",{"class":457,"line":458},"line",1,[455,460,462],{"class":461},"spNyl","const",[455,464,466],{"class":465},"sTEyZ"," clip ",[455,468,470],{"class":469},"sMK4o","=",[455,472,474],{"class":473},"s7zQu"," await",[455,476,478],{"class":477},"s2Zo4"," createSplice",[455,480,481],{"class":465},"(",[455,483,484],{"class":469},"{\n",[455,486,488,492,495,498,501],{"class":457,"line":487},2,[455,489,491],{"class":490},"swJcz","  source",[455,493,494],{"class":469},":",[455,496,497],{"class":465}," video",[455,499,500],{"class":469},",",[455,502,504],{"class":503},"sHwdD"," \u002F\u002F a URL, a File\u002FBlob or a \u003Cvideo>\n",[455,506,508,511,513,517],{"class":457,"line":507},3,[455,509,510],{"class":490},"  start",[455,512,494],{"class":469},[455,514,516],{"class":515},"sbssI"," 42",[455,518,519],{"class":469},",\n",[455,521,523,526,528,531],{"class":457,"line":522},4,[455,524,525],{"class":490},"  end",[455,527,494],{"class":469},[455,529,530],{"class":515}," 52",[455,532,519],{"class":469},[455,534,536,539,541,544,547,549,552,556,559],{"class":457,"line":535},5,[455,537,538],{"class":490},"  crop",[455,540,494],{"class":469},[455,542,543],{"class":469}," {",[455,545,546],{"class":490}," aspect",[455,548,494],{"class":469},[455,550,551],{"class":469}," '",[455,553,555],{"class":554},"sfazB","9:16",[455,557,558],{"class":469},"'",[455,560,561],{"class":469}," },\n",[455,563,565,568,570,572,575,577],{"class":457,"line":564},6,[455,566,567],{"class":490},"  captions",[455,569,494],{"class":469},[455,571,551],{"class":469},[455,573,574],{"class":554},"\u002Fvideo\u002Finterview.en.vtt",[455,576,558],{"class":469},[455,578,519],{"class":469},[455,580,582,585,587],{"class":457,"line":581},7,[455,583,584],{"class":490},"  origin",[455,586,494],{"class":469},[455,588,589],{"class":469}," {\n",[455,591,593,596,598,601,604,607],{"class":457,"line":592},8,[455,594,595],{"class":490},"    url",[455,597,494],{"class":469},[455,599,600],{"class":465}," location",[455,602,603],{"class":469},".",[455,605,606],{"class":465},"href",[455,608,519],{"class":469},[455,610,612,615,617,620,622,625],{"class":457,"line":611},9,[455,613,614],{"class":490},"    title",[455,616,494],{"class":469},[455,618,619],{"class":465}," document",[455,621,603],{"class":469},[455,623,624],{"class":465},"title",[455,626,519],{"class":469},[455,628,630,633,635,637,640,642],{"class":457,"line":629},10,[455,631,632],{"class":490},"    publisher",[455,634,494],{"class":469},[455,636,551],{"class":469},[455,638,639],{"class":554},"Example News",[455,641,558],{"class":469},[455,643,519],{"class":469},[455,645,647],{"class":457,"line":646},11,[455,648,649],{"class":469},"  },\n",[455,651,653,656,658,660,663,665,667,670,672],{"class":457,"line":652},12,[455,654,655],{"class":490},"  endCard",[455,657,494],{"class":469},[455,659,543],{"class":469},[455,661,662],{"class":490}," logo",[455,664,494],{"class":469},[455,666,551],{"class":469},[455,668,669],{"class":554},"\u002Flogo.svg",[455,671,558],{"class":469},[455,673,561],{"class":469},[455,675,677,680,682,685,689,692,695,698,700,703,705,708],{"class":457,"line":676},13,[455,678,679],{"class":477},"  onProgress",[455,681,494],{"class":469},[455,683,684],{"class":469}," (",[455,686,688],{"class":687},"sHdIc","fraction",[455,690,691],{"class":469},")",[455,693,694],{"class":461}," =>",[455,696,697],{"class":465}," (progress",[455,699,603],{"class":469},[455,701,702],{"class":465},"value ",[455,704,470],{"class":469},[455,706,707],{"class":465}," fraction)",[455,709,519],{"class":469},[455,711,713,716,718,720,723,725,727,730,732,735,738],{"class":457,"line":712},14,[455,714,715],{"class":477},"  onWarning",[455,717,494],{"class":469},[455,719,684],{"class":469},[455,721,722],{"class":687},"message",[455,724,691],{"class":469},[455,726,694],{"class":461},[455,728,729],{"class":465}," console",[455,731,603],{"class":469},[455,733,734],{"class":477},"warn",[455,736,737],{"class":465},"(message)",[455,739,519],{"class":469},[455,741,743,746,748,751,753,756],{"class":457,"line":742},15,[455,744,745],{"class":490},"  signal",[455,747,494],{"class":469},[455,749,750],{"class":465}," controller",[455,752,603],{"class":469},[455,754,755],{"class":465},"signal",[455,757,519],{"class":469},[455,759,761,764],{"class":457,"line":760},16,[455,762,763],{"class":469},"}",[455,765,766],{"class":465},")\n",[768,769,771],"h2",{"id":770},"options","Options",[773,774,775,794],"table",{},[776,777,778],"thead",{},[779,780,781,785,788,791],"tr",{},[782,783,784],"th",{},"Option",[782,786,787],{},"Type",[782,789,790],{},"Default",[782,792,793],{},"Description",[795,796,797,823,843,860,881,899,922,943,963,983,1000,1017,1040,1057,1077],"tbody",{},[779,798,799,805,810,813],{},[800,801,802],"td",{},[429,803,804],{},"source",[800,806,807],{},[429,808,809],{},"Blob | string | URL | HTMLVideoElement",[800,811,812],{},"-",[800,814,815,816,819,820],{},"What to read. A ",[429,817,818],{},"\u003Cvideo>"," is read through its ",[429,821,822],{},"currentSrc",[779,824,825,830,835,840],{},[800,826,827],{},[429,828,829],{},"start",[800,831,832],{},[429,833,834],{},"number",[800,836,837],{},[429,838,839],{},"0",[800,841,842],{},"Start of the clip on the source's timeline, in seconds",[779,844,845,850,854,857],{},[800,846,847],{},[429,848,849],{},"end",[800,851,852],{},[429,853,834],{},[800,855,856],{},"the end of the source",[800,858,859],{},"End of the clip, in seconds",[779,861,862,867,872,875],{},[800,863,864],{},[429,865,866],{},"crop",[800,868,869],{},[429,870,871],{},"CropOptions",[800,873,874],{},"no crop",[800,876,877],{},[878,879,880],"a",{"href":364},"See crop",[779,882,883,888,891,893],{},[800,884,885],{},[429,886,887],{},"captions",[800,889,890],{},"cues, WebVTT text or a URL",[800,892,812],{},[800,894,895,896],{},"Burned into the picture. ",[878,897,898],{"href":368},"See captions",[779,900,901,906,911,916],{},[800,902,903],{},[429,904,905],{},"captionPosition",[800,907,908],{},[429,909,910],{},"'top' | 'middle' | 'bottom'",[800,912,913],{},[429,914,915],{},"'bottom'",[800,917,918,919],{},"Where the captions sit. ",[878,920,898],{"href":921},"\u002Fsplice\u002Fmaking-clips\u002Fcaptions#position",[779,923,924,929,934,937],{},[800,925,926],{},[429,927,928],{},"captionStyle",[800,930,931],{},[429,932,933],{},"CaptionStyle",[800,935,936],{},"the boxed look",[800,938,939,940],{},"The captions' font, colour, size and box. ",[878,941,898],{"href":942},"\u002Fsplice\u002Fmaking-clips\u002Fcaptions#style",[779,944,945,950,955,957],{},[800,946,947],{},[429,948,949],{},"origin",[800,951,952],{},[429,953,954],{},"SpliceOrigin",[800,956,812],{},[800,958,959,960],{},"Written into the metadata. ",[878,961,962],{"href":373},"See origin",[779,964,965,970,975,977],{},[800,966,967],{},[429,968,969],{},"endCard",[800,971,972],{},[429,973,974],{},"EndCardOptions",[800,976,812],{},[800,978,979,980],{},"A card after the clip. ",[878,981,982],{"href":377},"See end card",[779,984,985,990,995,997],{},[800,986,987],{},[429,988,989],{},"stamp",[800,991,992],{},[429,993,994],{},"StampOptions",[800,996,812],{},[800,998,999],{},"A logo in a corner of every frame",[779,1001,1002,1007,1012,1014],{},[800,1003,1004],{},[429,1005,1006],{},"watermark",[800,1008,1009],{},[429,1010,1011],{},"WatermarkOptions",[800,1013,812],{},[800,1015,1016],{},"A band of text across every frame",[779,1018,1019,1024,1029,1034],{},[800,1020,1021],{},[429,1022,1023],{},"audio",[800,1025,1026],{},[429,1027,1028],{},"boolean",[800,1030,1031],{},[429,1032,1033],{},"true",[800,1035,1036,1039],{},[429,1037,1038],{},"false"," drops the sound",[779,1041,1042,1047,1052,1054],{},[800,1043,1044],{},[429,1045,1046],{},"onProgress",[800,1048,1049],{},[429,1050,1051],{},"(fraction: number) => void",[800,1053,812],{},[800,1055,1056],{},"From 0 to 1 as the clip is written; 1 only once the file is done",[779,1058,1059,1064,1069,1074],{},[800,1060,1061],{},[429,1062,1063],{},"onWarning",[800,1065,1066],{},[429,1067,1068],{},"(message: string) => void",[800,1070,1071],{},[429,1072,1073],{},"console.warn",[800,1075,1076],{},"Something left out of a clip that was still made",[779,1078,1079,1083,1088,1090],{},[800,1080,1081],{},[429,1082,755],{},[800,1084,1085],{},[429,1086,1087],{},"AbortSignal",[800,1089,812],{},[800,1091,1092],{},"Aborts the clip",[768,1094,1096],{"id":1095},"how-it-works","How it works",[426,1098,1099],{},"Mediabunny reads the source, only the byte ranges it needs from a URL. WebCodecs decodes each frame, splice draws it onto one reused canvas (cropped, with captions and overlays on top) and an H.264 encoder takes the canvas with backpressure. The audio runs beside it into the same file: AAC is copied packet for packet, anything else is encoded as AAC. Every decoded frame is closed as soon as it's drawn.",[426,1101,1102],{},"From an HLS stream, only the smallest variant whose picture still covers the output is downloaded, with that variant's own audio.",[768,1104,1106],{"id":1105},"output-size","Output size",[426,1108,1109,1110,1113],{},"Without a crop the output is the source's own frame; with one, the crop window. Either way it's at least the largest frame of its aspect that fits 1080x1920 (1920x1080 for landscape), so captions and cards are drawn at the size a phone shows them rather than upscaled. ",[429,1111,1112],{},"crop.height"," sets the size outright. Dimensions are always even, since H.264 works in 4:2:0.",[768,1115,1117],{"id":1116},"things-left-out","Things left out",[426,1119,1120,1121,494],{},"Some things are left out of a clip rather than failing it, each reported through ",[429,1122,1063],{},[1124,1125,1126,1134,1139],"ul",{},[1127,1128,1129,1133],"li",{},[1130,1131,1132],"strong",{},"The sound",", when the source's audio isn't AAC and the browser has no AAC encoder (Firefox).",[1127,1135,1136,1138],{},[1130,1137,139],{}," that can't be fetched or aren't WebVTT.",[1127,1140,1141,1144],{},[1130,1142,1143],{},"A logo"," (the stamp's or the end card's) that can't be loaded, such as a cross-origin image without CORS headers.",[768,1146,1148],{"id":1147},"when-it-rejects","When it rejects",[426,1150,1151,1153,1154,1157],{},[429,1152,359],{}," rejects with a plain ",[429,1155,1156],{},"Error"," when no clip can be made:",[773,1159,1160,1170],{},[776,1161,1162],{},[779,1163,1164,1167],{},[782,1165,1166],{},"Message starts with",[782,1168,1169],{},"Why",[795,1171,1172,1182,1195,1207,1219,1229,1239,1249],{},[779,1173,1174,1179],{},[800,1175,1176],{},[429,1177,1178],{},"The source has no video track.",[800,1180,1181],{},"An audio-only file",[779,1183,1184,1189],{},[800,1185,1186],{},[429,1187,1188],{},"The video is encrypted (DRM) …",[800,1190,1191,1192,1194],{},"A ",[429,1193,818],{}," playing encrypted media through EME",[779,1196,1197,1202],{},[800,1198,1199],{},[429,1200,1201],{},"The video is a live MediaStream …",[800,1203,1191,1204,1206],{},[429,1205,818],{}," showing a camera, a screen or a call",[779,1208,1209,1214],{},[800,1210,1211],{},[429,1212,1213],{},"The video is fed by a MediaSource …",[800,1215,1191,1216,1218],{},[429,1217,818],{}," played by hls.js, dash.js or Shaka: pass the stream's URL instead, which splice reads itself",[779,1220,1221,1226],{},[800,1222,1223],{},[429,1224,1225],{},"This browser cannot decode the source's …",[800,1227,1228],{},"A codec this browser has no decoder for, such as HEVC in Firefox; encrypted tracks",[779,1230,1231,1236],{},[800,1232,1233],{},[429,1234,1235],{},"End (…) must be after start (…)",[800,1237,1238],{},"An empty range after holding it inside the source",[779,1240,1241,1246],{},[800,1242,1243],{},[429,1244,1245],{},"This browser has no H.264 encoder for …",[800,1247,1248],{},"No H.264 encoder at the output's size",[779,1250,1251,1256],{},[800,1252,1253],{},[429,1254,1255],{},"The video encoder stopped responding …",[800,1257,1258],{},"The encoder went silent for 15 seconds, twice: in High profile, then again in Baseline",[426,1260,1261],{},"Anything else, such as a network or CORS failure fetching the file, comes through as Mediabunny or the browser reported it. An abort rejects with the signal's reason, even one that lands while the file is being finished.",[768,1263,1265],{"id":1264},"planning-without-a-source","Planning without a source",[426,1267,1268,1271,1272,1274,1275,1278,1279,603],{},[429,1269,1270],{},"planOutput({ width, height, audioTrack, audio })"," answers what ",[429,1273,359],{}," would do for a given size and Mediabunny audio track: ",[429,1276,1277],{},"null"," without an H.264 encoder at that size, else ",[429,1280,1281],{},"{ audio: 'copy' | 'encode' | 'none' | 'unavailable' }",[1283,1284,1285],"style",{},"html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":451,"searchDepth":487,"depth":487,"links":1287},[1288,1289,1290,1291,1292,1293],{"id":770,"depth":487,"text":771},{"id":1095,"depth":487,"text":1096},{"id":1105,"depth":487,"text":1106},{"id":1116,"depth":487,"text":1117},{"id":1147,"depth":487,"text":1148},{"id":1264,"depth":487,"text":1265},"Cut a range out of a video and get back an MP4, with every option and what can go wrong.","md",null,{},{"icon":337},{"title":359,"description":1294},"JYcfG61IIBRlxXqRAqtR2ogEgEVwq8M3OwWofXdfySc",[1302,1304],{"title":349,"path":350,"stem":351,"description":1303,"icon":44,"children":-1},"Install splice, check a source, make and save a first clip.",{"title":363,"path":364,"stem":365,"description":1305,"icon":366,"children":-1},"Crop a clip to 9:16 (or any aspect), centred on a focus point.",1794851086644]