PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : m3u liste auslesen und brennen



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

Joghurt
14-08-2006, 20:21
grep -v ^# playlist.m3u | xargs mkisofs --optionen --fuer --mkisofs > toll.iso

Frank#
15-08-2006, 13:22
[frank@client ~]$ grep -v ^# test.m3u | xargs mkisofs > toll.iso INFO: UTF-8 character encoding detected by locale settings.
Assuming UTF-8 encoded filenames on source filesystem,
use -input-charset to override.
xargs: unmatched einfache quote; by default quotes are special to xargs unless you use the -0 option
mkisofs: No such file or directory. Invalid node - '///root/gcc/backup/frank/Astronaut/01-'

Joghurt
15-08-2006, 17:47
grep -v ^# playlist.m3u | xargs -d"\n" mkisofs --optionen --fuer --mkisofs > toll.iso
oder

grep -v ^# playlist.m3u | tr "\n" "\0" | xargs -0 mkisofs --optionen --fuer --mkisofs > toll.iso

Frank#
15-08-2006, 19:17
grep -v ^# test.m3u | tr "\n" "\0" | xargs -0 mkisofs > /mnt/f/toll.iso

dat geht hier. Vielen Dank nochmal !!!!

Frank#
16-08-2006, 17:25
nun kann ich zwar ein isofile erzeugen, allerdings wird die Reihenfolge hinterher doch nicht eingehalten, so wie sie im derplaylist.m3u steht. D.h ich bin zwar einen Schritt weiter doch das Hauptziehl is noch in weiter Ferne. Any Ideas ?

Joghurt
16-08-2006, 18:47
Was für eine Reihenfolge? Dateien in Verzeichnissen sind nicht geordnet... Höchstens alphabetisch.

Frank#
17-08-2006, 01:15
ich hab doch diese m3u songlist per Hand erstellt, sprich jeden einzelnen Song
dort reingemacht, wobei eben diese Songs nach Musikrichtung sortiert sind. Also alles wunderbar. Nun versuche ich halt, den Tipgab mir jemand, aus dieser Liste ein ios zu machen DAMIT eben diese Reihenfolge beibhelaten wird und genauso auf CD kommt. Aber ich glaube, das mkisofs, beim auslesen der liste die songs wieder neu anordnet, und dieswürde ich gerne vermeiden.