From d7752b4779ea7dc880483020b15c17035b751261 Mon Sep 17 00:00:00 2001 From: Blade Gunner Date: Sat, 3 Mar 2018 17:57:25 +0100 Subject: [PATCH] add support for the opus codec it seems like ffmpeg still has some issues with the native opus container format (*.opus), so let's use the OGG container format for now. --- AAXtoMP3 | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/AAXtoMP3 b/AAXtoMP3 index c520b33..df3fb02 100755 --- a/AAXtoMP3 +++ b/AAXtoMP3 @@ -34,6 +34,13 @@ fi # shift #fi +if [[ "$1" = '--opus' ]] +then + codec=libopus + extension=ogg + shift +fi + if [[ "$1" == '--single' ]] then mode=single @@ -108,7 +115,16 @@ do read -r -u9 _ _ chapter chapter_title="${title} - $(printf %0${#chaptercount}d $chapternum) ${chapter}" chapter_file="${output_directory}/${chapter_title}.${extension}" -