Accueil > Informatique > Systèmes d’exploitation > GNU/Linux > Script de conversion Flash > avi

Script de conversion Flash > avi

dimanche 24 mai 2009, par LoovtO

Ce script est une adaptation pour la vidéo de celui publié ici.

#!/bin/sh
#get video's name
name=<span class="base64" title="PGNvZGUgY2xhc3M9InNwaXBfY29kZSBzcGlwX2NvZGVfaW5saW5lIiBkaXI9Imx0ciI+bHMgLWx0ciAtLXRpbWUtc3R5bGUgJnF1b3Q7bG9uZy1pc28mcXVvdDsgL3RtcCB8IGdyZXAgRmxhc2ggfCB0YWlsIC0xIHwgYXdrICcgeyBwcmludCAkOCB9JzwvY29kZT4="></span>
#check size, wait if caching running
size=0
while :
do
current=<span class="base64" title="PGNvZGUgY2xhc3M9InNwaXBfY29kZSBzcGlwX2NvZGVfaW5saW5lIiBkaXI9Imx0ciI+bHMgLWx0ciAtLXRpbWUtc3R5bGUgJnF1b3Q7bG9uZy1pc28mcXVvdDsgL3RtcCB8IGdyZXAgRmxhc2ggfCB0YWlsIC0xIHwgYXdrICcgeyBwcmludCAkNSB9JzwvY29kZT4="></span>
if [ $current -eq $size ]
 then break
fi
size=$current
sleep 1
done
echo "Movie title ?"
read title
mencoder /tmp/$name -o /dev/null -oac copy -ovc xvid -xvidencopts pass=1:turbo
mencoder /tmp/$name -o $title.avi -oac mp3lame -lavcopts acodec=mp3:abitrate=128 -ovc xvid -xvidencopts pass=2:bitrate=1600

Coffee time.

Un message, un commentaire ?

Qui êtes-vous ?
Ajoutez votre commentaire ici
  • Ce champ accepte les raccourcis SPIP {{gras}} {italique} -*liste [texte->url] <quote> <code> et le code HTML <q> <del> <ins>. Pour créer des paragraphes, laissez simplement des lignes vides.