Skip to content

The swiss army knife of lossless video/audio editing

Use -fps_mode passthrough instead of -vsync 0 when exporting frames

Claudea587a2623011
diff --git a/src/main/ffmpeg.ts b/src/main/ffmpeg.ts
index 65ef8db9..3dd325ae 100644
--- a/src/main/ffmpeg.ts
+++ b/src/main/ffmpeg.ts
@@ -481,7 +481,7 @@ export async function captureFrames({ from, to, videoPath, outPathTemplate, qual
'-vf', filter,
// https://superuser.com/questions/1336285/use-ffmpeg-for-thumbnail-selections
...(framePts ? ['-frame_pts', '1'] : []),
- '-vsync', '0', // else we get a ton of duplicates (thumbnail filter)
+ '-fps_mode', 'passthrough', // else we get a ton of duplicates (thumbnail filter). `-vsync` was removed in ffmpeg 9
] : [])
),
...getCodecOpts(captureFormat),