Vous n'êtes pas identifié(e).
Pages : 1
#################################
### Scripte Convertisseur Video #
#################################
#!/bin/bash
echo '########################################'
echo '[!]Utilisation de ffmpeg[!]'
echo '[!]Verifiez que ffmpeg soit installer[!]'
echo '########################################'
echo '[c1] Convertion Format PSP'
echo '[c2] Convertion Format Platine DVD'
echo '[Q] Quitter'
read -p 'Saisissez votre choix :' rep
if [ $rep ='c1' ]
then
echo 'Utilitaire de Convertion AVI en MP4 pour PSP'
read -p 'Saisissez le fichier source (Attention : *.avi ou *.mp4) :' fichier_src
read -p 'Saisissez le fichier de destination (Attention : *.avi ou *.mp4):' fichier_dest
echo '[f1] Tout Firmware (Custome Firmware ou Originale) Qualite SD'
echo '[f2] Firmware inferieur a 3.71 (Custome Firmware ou Originale) Qualite MQ'
echo '[f3] Firmware superieur a 3.71 (Custome Firmware ou Originale) Qualite HD'
read -p 'Saisissez votre version de firmware PSP (Conseil : Utilisez choix [f3])' firmware
if [ $firmware = 'f1' ]
then
echo 'Encodage Video Format PSP Tout Firmware [DEMARRAGE] Qualite SD'
# ffmpeg -i $fichier_src -b 300 -s 320×240 -vcodec xvid -ab 32 -ar 24000 -acodec aac $fichier_dest
echo 'Encodage Video Format PSP Tout Firmware [TERMINE] Qualite SD'
elif [ $firmware = 'f2' ]
then
echo 'Encodage Video Format PSP Firmware < 3.71 [DEMARRAGE] Qualite MQ'
# ffmpeg -i $fichier_src -f psp -r 29.97 -b 768k -ar 24000 -ab 64k -s 480x160 $fichier_dest
echo 'Encodage Video Format PSP Firmware < 3.71 [TERMINE]Qualite MQ'
elif [ $firmware = 'f3' ]
then
echo 'Encodage Video PSP Firmware > 3.71 [DEMARRAGE] Qualite HD'
# ffmpeg -i $fichier_src -r 29.97 -vcodec h264 -s 640x480 -aspect 16:9 -flags +loop -cmp +chroma -deblockalpha 0 -deblockbeta 0 -b 768k -maxrate 1500k -bufsize 4M -bt 256k -refs 1 -bf 3 -coder 1 -me umh -me_range 16 -subq 7 -partitions +parti4x4+parti8x8+partp8x8+partb8x8 -g 250 -keyint_min 25 -level 30 -qmin 10 -qmax 51 -qcomp 0.6 -trellis 2 -sc_threshold 40 -i_qfactor 0.71 -acodec aac -ab 112k -ar 48000 -ac 2 -s 480x272 -aspect 4:3 $fichier_dest
echo 'Encodage Video PSP Firmware > 3.71 [TERMINE] Qualite HD'
else
then
echo 'Erreur - Choix Invalide'
fi
elif [ $rep = 'c2' ]
then
echo 'Saisissez le fichier source (Attention : *.avi ou *.mp4)'
read -p fichier_src
echo 'Saisissez le fichier de destination (Attention : *.mpeg)'
read -p fichier_dest
echo 'Encodage Video Format Platine DVD [DEMARRAGE]'
# ffmpeg -i $fichier_src -target pal-dvd -ps 2000000000 -aspect 16:9 $fichier_dest
echo 'Encodage Video Format Platine DVD [TERMINE]'
Je suis en train de faire un petit scripte pour mon utilisation perso, pour ainsi garder en mémoire dans un scriptes certaines commandes ffmpeg.
Suelement voilà, il semblerais que le scripte cloche à la ligne "read -p 'Saisissez votre choix :' rep" et à "elif [ $firmware = 'f2' ]"
Avez vous une petite solution pour mon souci de code ?
Hors ligne
Hors ligne
Dernière modification par zoroastre74 (25-03-2011 07:56:39)
Hors ligne
Hors ligne
Hors ligne
Hors ligne
Hors ligne
Pages : 1