From be8473ffbaa6df5ad7100f68884e75968446c3a0 Mon Sep 17 00:00:00 2001 From: jcat Date: Wed, 9 Feb 2022 21:01:29 +0000 Subject: [PATCH 1/2] Revert "feat: Use ffmpeg to cover add instead of mp4art from deprecated mp4v2-utils package" This reverts commit 72794b678545faf37e083ee5975bf986ef9a6a88. This broke cover art addition for MPEG-4 containers --- AAXtoMP3 | 18 +----------------- README.md | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 17 deletions(-) diff --git a/AAXtoMP3 b/AAXtoMP3 index 9b16c09..c03be5c 100755 --- a/AAXtoMP3 +++ b/AAXtoMP3 @@ -968,23 +968,7 @@ do if [ -f "${cover_file}" ]; then log "Adding cover art" - # 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 - Date: Wed, 9 Feb 2022 21:24:14 +0000 Subject: [PATCH 2/2] feat: Use ffmpeg for cover art on non mpeg-4 containers instead of mp4art from deprecated mp4v2-utils package Closes: https://github.com/KrumpetPirate/AAXtoMP3/issues/203 --- AAXtoMP3 | 24 +++++++++++++++++++++++- README.md | 6 +++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/AAXtoMP3 b/AAXtoMP3 index c03be5c..2a10ccb 100755 --- a/AAXtoMP3 +++ b/AAXtoMP3 @@ -968,7 +968,29 @@ do if [ -f "${cover_file}" ]; then log "Adding cover art" - mp4art --add "${cover_file}" "${output_file}" + # FFMGEP does not support MPEG-4 containers fully # + if [ "${container}" == "mp4" ] ; then + mp4art --add "${cover_file}" "${output_file}" + # FFMPEG for everything else # + else + # 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 +