#!/bin/bash # #################################### # DEPENDANCES # -ffmpeg # -nautilus # -gnome # #################################### # parametre de videoPSP9 # Fonctionnalité # création d'une vidéo compatible avec un firmware récent et d'une vignette # #################################### # Pour ripper un DVD prendre la piste DTS et non pas AC52 #################################### # for i in "$@" do lancement() { ffmpeg -i "$i" -threads 4 -r 29.97 -acodec libfaac -ab 128kb -ac 2 -ar 48000 -vcodec libx264 -level 21 -b 768kb -coder 1 -f psp -flags +loop -cmp +chroma -trellis 2 -partitions +parti4x4+partp8x8+partb8x8 -flags2 +mixed_refs -me_method umh -subq 6 -trellis 1 -refs 3 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qmin 10 -qmax 51 -qdiff 4 -g 250 -s 480x272 "${i%.*}".mp4; ffmpeg -i "$i" -f image2 -ss 5 -vframes 1 -s 160x120 "${i%.*}".jpg } (echo ""; lancement) | zenity --progress --title "PSP" --text="Encodage de $@ en cours" --pulsate ## Si on clic sur Annuler... if [ $? -ne 0 ] then exit 0 fi zenity --question --title "PSP" --text "$@ \ encodage terminé ." ## Si on clic sur Annuler... if [ $? -ne 0 ] then exit 0 fi exit 0 done