fix(server): h264 videos failing to transcode in two-pass mode (#3053)

* set `-fps_mode` to passthrough

* updated tests
This commit is contained in:
Mert
2023-06-30 21:48:40 -04:00
committed by GitHub
parent b1fcf02d13
commit f9671dfbf7
2 changed files with 36 additions and 4 deletions

View File

@@ -222,7 +222,8 @@ export class MediaService {
`-acodec ${ffmpeg.targetAudioCodec}`,
// Makes a second pass moving the moov atom to the beginning of
// the file for improved playback speed.
`-movflags faststart`,
'-movflags faststart',
'-fps_mode passthrough',
];
// video dimensions