android-ffmpeg
This commit is contained in:
parent
99afd58696
commit
0c760873a4
2 changed files with 33 additions and 0 deletions
16
convert_to_audio-android.sh
Executable file
16
convert_to_audio-android.sh
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/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
|
||||||
|
/data/data/com.termux/files/usr/bin/ffmpeg -i "$FILENAME" -vn -n -c:a flac -compression_level 2 "${FILENAME%.*}.flac"
|
||||||
|
shift
|
||||||
|
cd -
|
||||||
|
done
|
||||||
|
|
||||||
|
#convert.sh <Ordner>/*.flv
|
17
convert_to_ogg-android.sh
Executable file
17
convert_to_ogg-android.sh
Executable file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/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
|
||||||
|
/data/data/com.termux/files/usr/bin/ffmpeg -i "$FILENAME" -vn -n -c:a libvorbis -b:a 192k "${FILENAME%.*}.ogg"
|
||||||
|
shift
|
||||||
|
cd -
|
||||||
|
done
|
||||||
|
|
||||||
|
#convert.sh <Ordner>/*.flv
|
||||||
|
#192k = -q 6
|
Loading…
Reference in a new issue