Seiten: [1]
|
|
|
Autor
|
Thema: Playlist Format (Gelesen 7432 mal)
|
EPLANUser
Einsteiger
Offline
Beiträge: 6
|
Hi,
gibt es eigentlich ein definiertes Format, wie die Playlist "M3U" auszusehen hat? Spezifikation oder ähnliches?
|
|
|
Gespeichert
|
|
|
|
Stefan
Administrator
Experte
Offline
Beiträge: 670
AG-Support
|
Schau doch einfach mal in eine rein (mit dem Windows-Editor)! Das sind ganz normale Textdateien, wo am Anfang "#extm3u" steht, und dann abwechselnd "#extinf:" , gefolgt von der Tracklänge in Sekunden, der Interpreten und dem Titel aus dem ID3-Tag und dann in einer neuen Zeile der entsprechende Trackname (irgendwas.mp3)...
|
|
|
Gespeichert
|
|
|
|
WeinGeist
Experte
Offline
Beiträge: 380
|
Hallo
Sind gar nicht mal so schwer zu verstehen. Hat noch nen Vorteil, du kannst du damit z.Bsp. die Pfade kinderleicht abändern, Texteditor öffnen und Suchen/Ersetzen.
Gruss Weingeist
|
|
|
Gespeichert
|
|
|
|
EPLANUser
Einsteiger
Offline
Beiträge: 6
|
Nee, nee, daß ist nicht das was ich wissen wollte. Ich wollte wissen, wie das komplette M3U format spezifiziert ist. Von einer anderen Page habe ich mir das besorgt:
M3U is a media queue format, also generally known to humans as a playlist. It is the default playlist save format of WinAMP and most other media programs. It allows multiple files to be queued in a program in a specific format.
The actual format is really simple, though; not complicated at all. A sample M3U list could be:
#EXTM3U #EXTINF:111,3rd Bass - Al z A-B-Cee z mp3/3rd Bass/3rd bass - Al z A-B-Cee z.mp3 #EXTINF:462,Apoptygma Berzerk - Kathy´s song (VNV Nation rmx) mp3/Apoptygma Berzerk/Apoptygma Berzerk - Kathy's Song (Victoria Mix by VNV Nation).mp3 #EXTINF:394,Apoptygma Berzerk - Kathy's Song mp3/Apoptygma Berzerk/Apoptygma Berzerk - Kathy's Song.mp3 #EXTINF:307,Apoptygma Bezerk - Starsign mp3/Apoptygma Berzerk/Apoptygma Berzerk - Starsign.mp3 #EXTINF:282,Various_Artists - Butthole Surfers: They Came In mp3/Butthole_Surfers-They_Came_In.mp3
The First line, "#EXTM3U" is the format descriptor, in this case M3U (or Extended M3U as it can be called). It does not change, it's always this.
The second and third operate in a pair. The second begins "#EXTINF:" which serves as the record marker. The "#EXTINF" is unchanging. After the colon is a number: this number is the length of the track in whole seconds (not minutes:seconds or anything else. Then comes a comma and the name of the tune (not the FILE NAME). A good list generator will suck this data from the ID3 tag if there is one, and if not it will take the file name with the extension chopped off.
The second line of this pair (the third line) is the actual file name of the media in question. In my example they aren't fully qualified because I run this list by typing "noatun foo.m3u" in my home directory and my music is in ~/mp3, so it just follows the paths as relative from the path of invocation.
|
|
|
Gespeichert
|
|
|
|
EPLANUser
Einsteiger
Offline
Beiträge: 6
|
Ich nochmal. Das hat alles damit angefangen, weil ich wissen wollte ob man auch relative Pfadnamen als Dateinamen eintragen kann. Sowas allso \\MP3\Lieder\Rock\test.mp3
|
|
|
Gespeichert
|
|
|
|
|
|
Seiten: [1]
|
|
|
|
|
|
|