From 65ad0accd7cb86f93bfb2923e9a6d22adfebf5b7 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 29 May 2017 22:55:45 +0200 Subject: [PATCH] opus --- convert_to_opus.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 convert_to_opus.sh diff --git a/convert_to_opus.sh b/convert_to_opus.sh new file mode 100755 index 0000000..8ad602f --- /dev/null +++ b/convert_to_opus.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +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 -i "$FILENAME" -vn -n -c:a libopus -b:a 160k "${FILENAME%.*}.opus" + shift + cd - +done + +#convert.sh /*.flac