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 +