onefile
This commit is contained in:
parent
c9ba4b13ff
commit
e1763e7771
3 changed files with 66 additions and 0 deletions
21
convert_onefile_mp3.sh
Executable file
21
convert_onefile_mp3.sh
Executable file
|
@ -0,0 +1,21 @@
|
||||||
|
#!/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 libmp3lame -q:a 2 "${FILENAME%.*}.mp3"
|
||||||
|
cat "${FILENAME%.*}.mp3" >> onefile.mp3
|
||||||
|
shift
|
||||||
|
cd -
|
||||||
|
done
|
||||||
|
|
||||||
|
cd -
|
||||||
|
pwd
|
||||||
|
ffmpeg -i onefile.mp3 -acodec copy onefile-final.mp3
|
21
convert_onefile_mp3_copy.sh
Executable file
21
convert_onefile_mp3_copy.sh
Executable file
|
@ -0,0 +1,21 @@
|
||||||
|
#!/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 copy "${FILENAME%.*}1.mp3"
|
||||||
|
cat "${FILENAME%.*}1.mp3" >> onefile.mp3
|
||||||
|
shift
|
||||||
|
cd -
|
||||||
|
done
|
||||||
|
|
||||||
|
cd -
|
||||||
|
pwd
|
||||||
|
ffmpeg -i onefile.mp3 -acodec copy onefile-final.mp3
|
24
convert_onefile_ogg.sh
Executable file
24
convert_onefile_ogg.sh
Executable file
|
@ -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 <Ordner>/*.flv
|
||||||
|
#192k = -q 6
|
||||||
|
|
||||||
|
cd -
|
||||||
|
pwd
|
||||||
|
ffmpeg -i onefile.ogg -acodec copy onefile-final.ogg
|
Loading…
Reference in a new issue