From f876a4d19ce0ab9f11bd8366723a375472f27ccc Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Sun, 1 Jan 2017 22:36:33 +0100 Subject: [PATCH] Add files via upload --- convert_to_audio.sh | 17 +++++++++++++++++ convert_to_ogg.sh | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 convert_to_audio.sh create mode 100644 convert_to_ogg.sh diff --git a/convert_to_audio.sh b/convert_to_audio.sh new file mode 100644 index 0000000..05be045 --- /dev/null +++ b/convert_to_audio.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +mkdir ""$1"/output" +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 ./output/"${FILENAME%.*}.ogg" + shift + cd - +done + +#convert.sh /*.flv diff --git a/convert_to_ogg.sh b/convert_to_ogg.sh new file mode 100644 index 0000000..557cc55 --- /dev/null +++ b/convert_to_ogg.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +mkdir ""$1"/output" +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" ./output/"${FILENAME%.*}.ogg" + shift + cd - +done + +#convert.sh /*.flv