From 72794b678545faf37e083ee5975bf986ef9a6a88 Mon Sep 17 00:00:00 2001 From: jcat Date: Sat, 5 Feb 2022 23:30:14 +0000 Subject: [PATCH] feat: Use ffmpeg to cover add instead of mp4art from deprecated mp4v2-utils package closes: https://github.com/KrumpetPirate/AAXtoMP3/issues/198 --- AAXtoMP3 | 18 +++++++++++++++++- README.md | 19 ------------------- 2 files changed, 17 insertions(+), 20 deletions(-) diff --git a/AAXtoMP3 b/AAXtoMP3 index 8eff27b..25feb46 100755 --- a/AAXtoMP3 +++ b/AAXtoMP3 @@ -962,7 +962,23 @@ do if [ -f "${cover_file}" ]; then log "Adding cover art" - mp4art --add "${cover_file}" "${output_file}" + # Create temporary output file name - ensure extention matches previous appropriate output file to keep ffmpeg happy + cover_output_file="${output_file%.*}.cover.${output_file##*.}" + # Copy audio stream from current output, and video stream from cover file, setting appropriate metadata +