Hallo,
mit Firefox + Downloadhelper die Videos herunterladen
https://addons.mozilla.org/de/firefox…
von allen gewünschten Filmen wird der Sound extrahiert - in grob einstellbarer Qualität.
Voreinstellungen sind für „Sprache“ in grade noch ausreichender Qulität.
Skript:
#! /bin/sh
clear
IZAHL=0
echo
echo " mp3s aus Videos extrahieren "
echo " ****************************** "
echo
echo „*Pfad:“
pwd
echo
echo „*Dateien:“
ls -sShr
echo
echo „***********************************“
echo
echo -n "*Endung eingeben ohne Punkt (z.B. avi): "
read ENDUNG
echo
echo „Qualitaet -Bit-“
echo „-------------------“
echo " 1 --> 64"
echo " 2 --> 96"
echo " 3 --> 128"
echo " 4 --> 144"
echo " 5 --> 192"
echo " RETURN -> 32"
echo
echo -n "Auswahl: "
read EINGABE
case $EINGABE in
- MP3BIT=64;;
- MP3BIT=96;;
- MP3BIT=128;;
- MP3BIT=144;;
- MP3BIT=192;;
*) MP3BIT=32;;
esac
echo „Qualitaet -HERZ-“
echo „-------------------“
echo " 1 --> 22050"
echo " 2 --> 44050"
echo " RETURN -> 11025"
echo
echo -n "Auswahl: "
read EINGABE
case $EINGABE in
- MP3HZ=22050;;
- MP3HZ=44050;;
*) MP3HZ=11025;;
esac
echo
echo „nice - Wert“
echo „-------------------“
echo " 1 --> +0"
echo " 2 --> +1"
echo " 3 --> +6"
echo " RETURN -> +3"
echo
echo -n "Auswahl: "
read EINGABE
case $EINGABE in
- NICE="+0";;
- NICE="+1";;
- NICE="+6";;
*) NICE="+3";;
esac
######################
clear
echo
I=„DATEI“
BEFEHL=„ffmpeg -i $I.$ENDUNG -ab $MP3BIT -ar $MP3HZ $I.mp3“
echo „Endung: $ENDUNG“
echo „-ab $MP3BIT“
echo „-ar $MP3HZ“
echo
echo „nice -n $NICE“
echo „Befehl: $BEFEHL“
echo
echo „Datei:“
echo „------“
ls -sShr *.$ENDUNG
echo „-------------------------------“
ANZAHL=$(ls *.$ENDUNG | wc -l)
echo -n "Anzahl: "
echo $ANZAHL
echo
echo "****************************** "
echo
echo -n "Umwandlung beginnen? (n = Abruch!) "
read X
if [$X = „n“];then
exit
fi
for I in *.$ENDUNG; do
let IZAHL++
beep -f 2500 -l 200 -r $IZAHL
echo „*** $IZAHL von $ANZAHL ***“
echo "*** Datei: $I "
nice -n $NICE ffmpeg -i „$I“ -ab $MP3BIT -ar $MP3HZ „$I.mp3“
done
beep -f 2500 -l 1200
sleep 11
echo
#echo „Return druecken!“
#read X