feat(server): add faststart to ffmpeg options (#2138)

pull/2141/head
Michel Heusschen 2023-03-31 16:34:54 +07:00 committed by GitHub
parent c011b06bea
commit 009b6e3ca5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

@ -136,6 +136,10 @@ export class VideoTranscodeProcessor {
`-vcodec ${config.ffmpeg.targetVideoCodec}`,
`-acodec ${config.ffmpeg.targetAudioCodec}`,
`-vf scale=${config.ffmpeg.targetScaling}`,
// Makes a second pass moving the moov atom to the beginning of
// the file for improved playback speed.
`-movflags faststart`,
])
.output(savedEncodedPath)
.on('start', () => {