put the thingies in the front so that browsers dont try to load the whole video

This commit is contained in:
localhost 2025-09-19 18:07:38 +02:00
parent 1c00b349a4
commit d6d874785e
1 changed files with 1 additions and 1 deletions

View File

@ -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`)