View Full Version : mp3 dentro gli zip
gurutech
06-05-2004, 22:02
come faccio a mettere in play gli mp3 dentro gli archivi con xmms?
si può?? o devo partire di script & mpg123 :confused:
gurutech
06-05-2004, 22:15
tipo così:
#!/bin/sh
ARCHIVIO="$1"
LISTA="/tmp/listarchive"
zipinfo -1 "$ARCHIVIO" | grep -i mp3 > "$LISTA"
TOT=`cat "$LISTA" | wc -l`
for ((i=1; i<=TOT; i++)); do {
FILETOPLAY=`cat "$LISTA" | head -n$i | tail -n1`
echo "Playing $FILETOPLAY"
unzip -p "$ARCHIVIO" "$FILETOPLAY" | mpg123 - 2> /dev/null &> /dev/null
}
done
vBulletin® v3.6.4, Copyright ©2000-2026, Jelsoft Enterprises Ltd.