Skip to content

Commit

Permalink
feat(server): add faststart to ffmpeg options (immich-app#2138)
Browse files Browse the repository at this point in the history
  • Loading branch information
michelheusschen authored Mar 31, 2023
1 parent c011b06 commit 009b6e3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 009b6e3

Please sign in to comment.