From c9ba4b13ff8748275f740110b3288a5cfa745e7b Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 12 Jul 2017 21:05:59 +0200 Subject: [PATCH] onefile --- convert_onefile.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 convert_onefile.sh diff --git a/convert_onefile.sh b/convert_onefile.sh new file mode 100755 index 0000000..af68969 --- /dev/null +++ b/convert_onefile.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +set -ex + +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 libvorbis -b:a 192k "${FILENAME%.*}.ogg" + cat "${FILENAME%.*}.ogg" >> onefile.ogg + shift + cd - +done + +#convert.sh /*.flv +#192k = -q 6 + +cd - +pwd +ffmpeg -i onefile.ogg -acodec copy onefile-final.ogg