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

Script de conversion Flash > mp3

mardi 29 avril 2008, par LoovtO

#!/bin/sh
#get song'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 "Mp3 Title ?"
read title
echo "mp3 Artist ?"
read artist
echo "mp3 Album ?"
read album
mplayer /tmp/$name -ao pcm:file=/tmp/$name.wav
lame /tmp/$name.wav "$title.mp3"
id3 -t "$title" -a "$artist" -A "$album" "$title.mp3"

Merci à David Lapetina
http://www.onirik.net

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.