From d6d874785ee772cbf94d0085278f596c9324a66f Mon Sep 17 00:00:00 2001 From: localhost Date: Fri, 19 Sep 2025 18:07:38 +0200 Subject: [PATCH] put the thingies in the front so that browsers dont try to load the whole video --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 7b49c97..2b539bf 100644 --- a/index.ts +++ b/index.ts @@ -221,7 +221,7 @@ function mergeIt(audioPath: string, videoPath: string, outputPath: string, ws: a ffmpeg() .input(videoPath) .input(audioPath) - .outputOptions([ '-c:v copy', '-c:a copy', '-map 0:v:0', '-map 1:a:0' ]) + .outputOptions([ '-c:v copy', '-c:a copy', '-map 0:v:0', '-map 1:a:0', '-movflags +faststart' ]) .on('progress', (progress:any) => { if (progress.percent) { ws.send(`[merging] ${progress.precent}% done`)