From a3ac4fb8347fc3954f56a768b041a57ea6b75e96 Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Wed, 15 Apr 2020 18:20:03 -0700 Subject: [PATCH] Small updates for Opus and metadata Forcibly add the track and title metadata to the audio stream. Fixes missing meta-data with Plex and possibly other programs. Use the .opus file extension and ogg container for opus files to match recommended practice, and correct detection of opus files in Plex and other programs --- AAXtoMP3 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/AAXtoMP3 b/AAXtoMP3 index 4818095..52a6cc8 100755 --- a/AAXtoMP3 +++ b/AAXtoMP3 @@ -29,7 +29,7 @@ while true; do # Apple m4a music format. -a | --aac ) codec=copy; extension=m4a; mode=single; container=m4a; shift ;; # Ogg Format - -o | --opus ) codec=libopus; extension=ogg; container=flac; shift ;; + -o | --opus ) codec=libopus; extension=opus; container=ogg; shift ;; # If appropriate use only a single file output. -s | --single ) mode=single; shift ;; # If appropriate use only a single file output. @@ -384,7 +384,7 @@ do # This is the main work horse command. This is the primary transcoder. # This is the primary transcode. All the heavy lifting is here. debug 'ffmpeg -loglevel error -stats -activation_bytes "${auth_code}" -i "${aax_file}" -vn -codec:a "${codec}" -ab ${bitrate} -map_metadata -1 -metadata title="${title}" -metadata artist="${artist}" -metadata album_artist="${album_artist}" -metadata album="${album}" -metadata date="${album_date}" -metadata track="1/1" -metadata genre="${genre}" -metadata copyright="${copyright}" "${output_file}"' -