Accueil > Informatique > Systèmes d’exploitation > GNU/Linux > Script de conversion Flash > mp3
Script de conversion Flash > mp3
mardi 29 avril 2008, par
#!/bin/sh
#get song's name
name=`ls -ltr --time-style "long-iso" /tmp | grep Flash | tail -1 | awk ' { print $8 }'`
#check size, wait if caching running
size=0
while :
do
current=`ls -ltr --time-style "long-iso" /tmp | grep Flash | tail -1 | awk ' { print $5 }'`
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