From c103d4899b27115784312ecf911b39bd1a476bc7 Mon Sep 17 00:00:00 2001 From: jcat Date: Wed, 9 Feb 2022 21:24:14 +0000 Subject: [PATCH] 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 +