v1.01 - Convert MP3 to AAC

master
RandomNinjaAtk 1 year ago committed by GitHub
parent e4d78864a6
commit e0f55ccb94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,7 +2,7 @@
export LC_ALL=C.UTF-8 export LC_ALL=C.UTF-8
export LANG=C.UTF-8 export LANG=C.UTF-8
TITLESHORT="APP" TITLESHORT="APP"
ScriptVersion="1.00" ScriptVersion="1.01"
SECONDS=0 SECONDS=0
set -e set -e
@ -63,7 +63,7 @@ if [ $(find "$1" -type f -iname "*.mp3" | wc -l) -gt 0 ]; then
done done
IFS="$OLDIFS" IFS="$OLDIFS"
ffmpeg -f concat -safe 0 -i "$fileList" -i "$chapterFile" -map_metadata 1 -vn -acodec copy "$1/output.mp4" ffmpeg -f concat -safe 0 -i "$fileList" -i "$chapterFile" -map_metadata 1 -vn -acodec aac "$1/output.mp4"
mv "$1/output.mp4" "$1/audiobook.m4b" mv "$1/output.mp4" "$1/audiobook.m4b"
find "$1" -type f -iname "*.mp3" -delete find "$1" -type f -iname "*.mp3" -delete
rm "$chapterFile" rm "$chapterFile"

Loading…
Cancel
Save