From ab0094a53ba676289dfcc3f9eaaef64f390902f9 Mon Sep 17 00:00:00 2001 From: jmt-gh Date: Sat, 4 Jun 2022 10:17:42 -0700 Subject: [PATCH] Support embedding updated chapter metadata (676) This commit resolves issue #676. The embed metadata tool was missing the flag that tells ffmpeg to not only update the "top" metadata, but also the chapter metadata. --- server/managers/AudioMetadataManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/managers/AudioMetadataManager.js b/server/managers/AudioMetadataManager.js index bd417332..255b90d8 100644 --- a/server/managers/AudioMetadataManager.js +++ b/server/managers/AudioMetadataManager.js @@ -84,7 +84,7 @@ class AudioMetadataMangaer { Ffmpeg premapped id3 tags: https://wiki.multimedia.cx/index.php/FFmpeg_Metadata */ - const ffmpegOptions = ['-c copy', '-map_metadata 1', `-metadata track=${audioFile.index}`, '-write_id3v2 1', '-movflags use_metadata_tags'] + const ffmpegOptions = ['-c copy', '-map_chapters 1', '-map_metadata 1', `-metadata track=${audioFile.index}`, '-write_id3v2 1', '-movflags use_metadata_tags'] var workerData = { inputs: ffmpegInputs, options: ffmpegOptions, @@ -137,4 +137,4 @@ class AudioMetadataMangaer { }) } } -module.exports = AudioMetadataMangaer \ No newline at end of file +module.exports = AudioMetadataMangaer