From 9c4cc398ef74c690b6393b617f9a4e267cf5b9c6 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 29 May 2017 22:20:42 +0200 Subject: [PATCH] fix+opus --- convert_to_flac.sh => convert_to_flac_flac.sh | 0 convert_to_opus_opusenc.sh | 18 ++++++++++++++++++ youtube-dl.sh | 2 +- 3 files changed, 19 insertions(+), 1 deletion(-) rename convert_to_flac.sh => convert_to_flac_flac.sh (100%) create mode 100644 convert_to_opus_opusenc.sh diff --git a/convert_to_flac.sh b/convert_to_flac_flac.sh similarity index 100% rename from convert_to_flac.sh rename to convert_to_flac_flac.sh diff --git a/convert_to_opus_opusenc.sh b/convert_to_opus_opusenc.sh new file mode 100644 index 0000000..c37c4cc --- /dev/null +++ b/convert_to_opus_opusenc.sh @@ -0,0 +1,18 @@ +#!/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 + opusenc --bitrate 160 "$FILENAME" "${FILENAME%.*}.opus" + shift + cd - +done + +#convert.sh /*.flac + +#Es können ausschließlich WAVE, AIFF, FLAC und PCM-Rohdaten verarbeitet werden. diff --git a/youtube-dl.sh b/youtube-dl.sh index 1991fa1..85320d5 100755 --- a/youtube-dl.sh +++ b/youtube-dl.sh @@ -6,7 +6,7 @@ read -p "Wo sollen die Dateien heruntergeladen werden? : " pfad if [ "$format" == "audio" ] then - format=140 + format=251 else format=43 fi