From 0be00ff7fafa7c382d1456ccbdd11b81747f997e Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 6 Jun 2017 22:23:03 +0200 Subject: [PATCH] audible_ogg --- audible_convert_to_ogg.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 audible_convert_to_ogg.sh diff --git a/audible_convert_to_ogg.sh b/audible_convert_to_ogg.sh new file mode 100755 index 0000000..9edac18 --- /dev/null +++ b/audible_convert_to_ogg.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +read -p "Wie heißen die activation_bytes? : " code + +while (( "$#" )) +do + + cd "${1%/*}" # gehe ins Verzeichnis + + FILENAME=${1##*/} # Dateiname ist alles ab dem letzten '/' + echo "$FILENAME" + # guck dir die Ausgabe erstmal an - wenn alles passt kannst Du das "echo" weglassen + ffmpeg -activation_bytes $code -i "$FILENAME" -vn -n -c:a libvorbis -b:a 192k "${FILENAME%.*}.ogg" + shift + cd - +done + +#convert.sh /*.flv