fix+opus
This commit is contained in:
parent
ef4ad3ae96
commit
9c4cc398ef
3 changed files with 19 additions and 1 deletions
18
convert_to_opus_opusenc.sh
Normal file
18
convert_to_opus_opusenc.sh
Normal file
|
@ -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 <Ordner>/*.flac
|
||||||
|
|
||||||
|
#Es können ausschließlich WAVE, AIFF, FLAC und PCM-Rohdaten verarbeitet werden.
|
|
@ -6,7 +6,7 @@ read -p "Wo sollen die Dateien heruntergeladen werden? : " pfad
|
||||||
|
|
||||||
if [ "$format" == "audio" ]
|
if [ "$format" == "audio" ]
|
||||||
then
|
then
|
||||||
format=140
|
format=251
|
||||||
else
|
else
|
||||||
format=43
|
format=43
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue