Add files via upload
This commit is contained in:
parent
7bee832bda
commit
f876a4d19c
2 changed files with 34 additions and 0 deletions
17
convert_to_audio.sh
Normal file
17
convert_to_audio.sh
Normal file
|
@ -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 <Ordner>/*.flv
|
17
convert_to_ogg.sh
Normal file
17
convert_to_ogg.sh
Normal file
|
@ -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 <Ordner>/*.flv
|
Loading…
Reference in a new issue