Dear visitor, welcome to VDR Portal. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
Ich benutze AVIs. Wie soll ich die Umwandeln? in welches Format?
|
|
Source code |
1 |
#\> vdr --gendindex $PWD |
This post has been edited 1 times, last edit by "fnu" (Oct 15th 2011, 2:33pm)

|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
#!/bin/sh
# ueberprueft, ob ein Argument uebergeben wird
if [ $# -ne 1 ]
then
echo "Usage: $0 dateiname"
exit 1
fi
# Speichert den uebergebenen Dateinamen in input
input=$1
ausgabepfad="/video0/Aktuelle_Filme"
# extrahiert den Pfad (falls vorhanden)
directory=`dirname "$input"`
# extrahiert den Dateinamen (falls Pfad vorhanden)
# entfernt Leerzeichen und ersetzt sie durch einen Unterstrich
# speichert das Resultat in filename
filename=`basename "$input" | tr ' ' '_'`
filenamenoext=`basename "$input" .avi | tr ' ' '_'`
# fuehrt die Umbenennung mit dem move befehl durch
mv -i "$input" "${directory}/${filename}"
ffmpeg -y -threads 2 -i "${filename}" -ab 128k -b 2500k -r 25 -maxrate 8000k -bufsize 1000k -vcodec mpeg2video -s 4cif -acodec mp2 -map 0:0 -map 0:1 -aspect 16:9 ${filenamenoext}.ts
mkdir -p ${ausgabepfad}/${filenamenoext}/1999-01-01.00.00.66-0.rec
cp ${filenamenoext}.ts ${ausgabepfad}/${filenamenoext}/1999-01-01.00.00.66-0.rec/00001.ts
cd ${ausgabepfad}/
vdr --genindex=${ausgabepfad}/${filenamenoext}/1999-01-01.00.00.66-0.rec/
touch /video0/.update
|
