From 3bc3914fd97e8be0589c5a7538b819946204e830 Mon Sep 17 00:00:00 2001 From: jmt-gh Date: Sat, 4 Jun 2022 17:50:26 -0700 Subject: [PATCH] Fix cover art not being generated for m4b export This commit fixes an issue where cover art was not being generated properly when creating an M4B audiobook. More context can be found in discord: https://discord.com/channels/942908292873723984/981321213882282035/982777444631195681 --- server/managers/AbMergeManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/managers/AbMergeManager.js b/server/managers/AbMergeManager.js index 84fcac38..5eb59b7f 100644 --- a/server/managers/AbMergeManager.js +++ b/server/managers/AbMergeManager.js @@ -151,7 +151,7 @@ class AbMergeManager { input: coverPath, options: ['-f image2pipe'] }) - ffmpegOptions.push('-vf [2:v]crop=trunc(iw/2)*2:trunc(ih/2)*2') + ffmpegOptions.push('-c:v copy') ffmpegOptions.push('-map 2:v') } @@ -281,4 +281,4 @@ class AbMergeManager { this.downloads = this.downloads.filter(d => d.id !== download.id) } } -module.exports = AbMergeManager \ No newline at end of file +module.exports = AbMergeManager