Frank#
14-08-2006, 20:09
Salut,
ich hab per xmms eine m3u Songliste erstellt mit ca 100 mp3s und würde nun gerne diese in eine iso datei schreiben und anschliessend brennen.
leider funktioniert folgender ansatz nur mangelhaft
perl -e 'print "mkisofs "; while(<>) {chomp; next if $_=~ /^#/; print "\"$_\" "; } print " > out.iso\n"' < test.m3u|sh
es kommt
[frank@client ~]$ perl -e 'print "mkisofs "; while(<>) {chomp; next if $_=~ /^#/; print "\"$_\" "; } print " > out.iso\n"' < test.m3u|sh
sh: line 1: unexpected EOF while looking for matching ``'
sh: line 2: syntax error: unexpected end of file
das Format der m3u liste sieht auszugsweise so aus:
#EXTM3U
#EXTINF:-1,01- (reach up for the) sunrise
///root/gcc/backup/frank/Astronaut/01- (reach up for the) sunrise.mp3
#EXTINF:-1,02-want you more
///root/gcc/backup/frank/Astronaut/02-want you more.mp3
#EXTINF:-1,04-astronaut
///root/gcc/backup/frank/Astronaut/04-astronaut.mp3
#EXTINF:-1,07-taste the summer
///root/gcc/backup/frank/Astronaut/07-taste the summer.mp3
#EXTINF:-1,12-still breathing
///root/gcc/backup/frank/Astronaut/12-still breathing.mp3
#EXTINF:-1,BeautifulColors_demo
///root/gcc/backup/frank/Astronaut/BeautifulColors_demo.mp3
Gruss
Frank
ich hab per xmms eine m3u Songliste erstellt mit ca 100 mp3s und würde nun gerne diese in eine iso datei schreiben und anschliessend brennen.
leider funktioniert folgender ansatz nur mangelhaft
perl -e 'print "mkisofs "; while(<>) {chomp; next if $_=~ /^#/; print "\"$_\" "; } print " > out.iso\n"' < test.m3u|sh
es kommt
[frank@client ~]$ perl -e 'print "mkisofs "; while(<>) {chomp; next if $_=~ /^#/; print "\"$_\" "; } print " > out.iso\n"' < test.m3u|sh
sh: line 1: unexpected EOF while looking for matching ``'
sh: line 2: syntax error: unexpected end of file
das Format der m3u liste sieht auszugsweise so aus:
#EXTM3U
#EXTINF:-1,01- (reach up for the) sunrise
///root/gcc/backup/frank/Astronaut/01- (reach up for the) sunrise.mp3
#EXTINF:-1,02-want you more
///root/gcc/backup/frank/Astronaut/02-want you more.mp3
#EXTINF:-1,04-astronaut
///root/gcc/backup/frank/Astronaut/04-astronaut.mp3
#EXTINF:-1,07-taste the summer
///root/gcc/backup/frank/Astronaut/07-taste the summer.mp3
#EXTINF:-1,12-still breathing
///root/gcc/backup/frank/Astronaut/12-still breathing.mp3
#EXTINF:-1,BeautifulColors_demo
///root/gcc/backup/frank/Astronaut/BeautifulColors_demo.mp3
Gruss
Frank