The swiss army knife of lossless video/audio editing
Simplify
thematuubd816dd2a871
diff --git a/src/renderer/src/ffmpeg.ts b/src/renderer/src/ffmpeg.tsindex 61565514..80bd9794 100644--- a/src/renderer/src/ffmpeg.ts+++ b/src/renderer/src/ffmpeg.ts@@ -239,7 +239,7 @@ export async function createChaptersFromOriginalFiles({ paths, createChapterForFlet offset = 0;for (const path of paths) {const meta = await readFileFfprobeMeta(path);- const duration = (await getDuration(path)) ?? (meta.format?.duration != null ? parseFloat(meta.format.duration) : 0);+ const duration = (await getDuration(path)) ?? 0;const chapters = meta.chapters ?? [];if (chapters.length > 0) {for (const ch of chapters) {