From dc5309ebc31d6eb26ff5160273054f186a06d1ae Mon Sep 17 00:00:00 2001 From: Nicko98 <39709875+Nicko98@users.noreply.github.com> Date: Tue, 2 Feb 2021 22:56:09 +0100 Subject: [PATCH 1/2] Way faster chapter splitting Just a little change in the ffmpeg call, but this massively increases the speed of chapter splitting. (In my first test approximately by a factor of 10.) --- AAXtoMP3 | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/AAXtoMP3 b/AAXtoMP3 index e74c28d..f9055f5 100755 --- a/AAXtoMP3 +++ b/AAXtoMP3 @@ -16,7 +16,7 @@ container=mp3 # Just in case we need to change the container. Use VALIDATE=0 # Validate the input aax file(s) only. No Transcoding of files will occur DEBUG=0 # Default off, If set extremely verbose output. noclobber=0 # Default off, clobber only if flag is enabled -continue=0 # Default off, If set Transcoding is skipped and chapter splitting starts at chapter continueAt. +continue=0 # Default off, If set Transcoding is skiped and chapter splitting starts at chapter continueAt. continueAt=1 # Optional chapter to continue splitting the chapters. # ----- @@ -54,7 +54,7 @@ while true; do -d | --debug ) DEBUG=1; shift ;; # Validate ONLY the aax file(s) No transcoding occurs -V | --validate ) VALIDATE=1; shift ;; - # continue splitting chapters at chapter continueAt + # continue spliting chapters at chapter continueAt --continue ) continueAt="$2"; continue=1; shift 2 ;; # Command synopsis. -h | --help ) printf "$usage" $0 ; exit ;; @@ -169,10 +169,9 @@ if [[ "x$(type -P ffmpeg)" == "x" ]]; then echo "ERROR ffmpeg was not found on your env PATH variable" echo "Without it, this script will break." echo "INSTALL:" - echo "MacOS: brew install ffmpeg" - echo "Ubuntu: sudo apt-get update; sudo apt-get install ffmpeg libav-tools x264 x265 bc" - echo "Ubuntu (20.04): sudo apt-get update; sudo apt-get install ffmpeg x264 x265 bc" - echo "RHEL: yum install ffmpeg" + echo "MacOS: brew install ffmpeg" + echo "Ubuntu: sudo apt-get update; sudo apt-get install ffmpeg libav-tools x264 x265 bc" + echo "RHEL: yum install ffmpeg" exit 1 fi @@ -446,7 +445,7 @@ do # Extract chapter by time stamps start and finish of chapter. # This extracts based on time stamps start and end. log "Splitting chapter ${chapternum}/${chaptercount} start:${chapter_start%?}(s) end:${chapter_end}(s)" - Date: Tue, 2 Feb 2021 23:01:23 +0100 Subject: [PATCH 2/2] Way faster chapter splitting Just a little change in the ffmpeg call, but this massively increases the speed of chapter splitting. (In my first test approximately by a factor of 10.) --- AAXtoMP3 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/AAXtoMP3 b/AAXtoMP3 index f9055f5..9e51e10 100755 --- a/AAXtoMP3 +++ b/AAXtoMP3 @@ -16,7 +16,7 @@ container=mp3 # Just in case we need to change the container. Use VALIDATE=0 # Validate the input aax file(s) only. No Transcoding of files will occur DEBUG=0 # Default off, If set extremely verbose output. noclobber=0 # Default off, clobber only if flag is enabled -continue=0 # Default off, If set Transcoding is skiped and chapter splitting starts at chapter continueAt. +continue=0 # Default off, If set Transcoding is skipped and chapter splitting starts at chapter continueAt. continueAt=1 # Optional chapter to continue splitting the chapters. # ----- @@ -54,7 +54,7 @@ while true; do -d | --debug ) DEBUG=1; shift ;; # Validate ONLY the aax file(s) No transcoding occurs -V | --validate ) VALIDATE=1; shift ;; - # continue spliting chapters at chapter continueAt + # continue splitting chapters at chapter continueAt --continue ) continueAt="$2"; continue=1; shift 2 ;; # Command synopsis. -h | --help ) printf "$usage" $0 ; exit ;; @@ -169,9 +169,10 @@ if [[ "x$(type -P ffmpeg)" == "x" ]]; then echo "ERROR ffmpeg was not found on your env PATH variable" echo "Without it, this script will break." echo "INSTALL:" - echo "MacOS: brew install ffmpeg" - echo "Ubuntu: sudo apt-get update; sudo apt-get install ffmpeg libav-tools x264 x265 bc" - echo "RHEL: yum install ffmpeg" + echo "MacOS: brew install ffmpeg" + echo "Ubuntu: sudo apt-get update; sudo apt-get install ffmpeg libav-tools x264 x265 bc" + echo "Ubuntu (20.04): sudo apt-get update; sudo apt-get install ffmpeg x264 x265 bc" + echo "RHEL: yum install ffmpeg" exit 1 fi