onefile
This commit is contained in:
parent
7fcde70d83
commit
c9ba4b13ff
1 changed files with 24 additions and 0 deletions
24
convert_onefile.sh
Executable file
24
convert_onefile.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