Skip to content

🎥 Make videos programmatically with React

fix(renderer): add -map_chapters -1 to ffmpeg args

Arthur Dennerc8fd9f7f7fe5
diff --git a/packages/renderer/src/stitcher.ts b/packages/renderer/src/stitcher.ts
index 4e2d429b95..9bdc58ea83 100644
--- a/packages/renderer/src/stitcher.ts
+++ b/packages/renderer/src/stitcher.ts
@@ -157,7 +157,7 @@ export const stitchFramesToVideo = async (options: {
audioCodecName ? ['-c:a', audioCodecName] : null,
complexFilterFlag,
// Ignore audio from image sequence
- isAudioOnly ? null : ['-map', '0:v'],
+ isAudioOnly ? null : ['-map', '0:v', '-map_chapters', '-1'],
options.force ? '-y' : null,
options.outputLocation,
];