Author Topic: New playlist format  (Read 6692 times)

3delite

  • Posts: 907
New playlist format
« on: 1 Dec '04 - 02:57 »
I'm developing a new advanced playlist format. I need to store more info in it for my program, and I thought we could do it together. I mean if there are some needs for the next XMPlay or other apps out there, I'd consider it when constructing the format. I thought it would be the best, to store it in .xml, similar to Winamp's .b4s so its expandable and still backward compatible. Any suggestions would come handy. :)

3delite

  • Posts: 907
Re:New playlist format
« Reply #1 on: 1 Dec '04 - 16:43 »
For the first go, I need the following (example):

File=G:\MP3z\BobMarley\08 - Bob Marley & The Wailers - Lively Up Yourself.mp3
Artist=Bob Marley & The Wailers
Title=Lively Up Yourself
Album=Babylon By Bus
TLEN=379730
BitRate=192
SEFC=14605
Track=8
AVF=627
Playcount=7
Source=MPG

If I extend the .b4s with these tags, the filename and TLEN info is already there, and will be recognised by any app. that reads .b4s playlists. 8)

Rah'Dick

  • XMPlay Support
  • Posts: 932
Re:New playlist format
« Reply #2 on: 2 Dec '04 - 13:03 »
Hm, I'm not sure that there is actually a need for another playlist format. What you're trying to create looks more like a music database to me than a playlist. Also, you need a program that is capable of reading such a "database list" what would be your database managing program.
Sorry, but I'm against yet another playlist format that saves information that you normally read out of the actual file.
That's what ID3/OGG tags are for.
« Last Edit: 2 Dec '04 - 13:04 by Rah'Dick »

3delite

  • Posts: 907
Re:New playlist format
« Reply #3 on: 2 Dec '04 - 17:18 »
I need something cross-application compatible. My aim is to make it readable by exisiting software but still to fit my needs. I need to store more info, because reading >1000 ID3 or any other Tags at program startup or Playlist loading is time consuming. The fragment I copied above is from the existing .pl3 format which is a plain .ini file.
The see my "database managing" program click on the icon below (MP3 Stream Editor). :)
BTW. Its funny that there is no "Album" info in any of the existing Playlist formats!? :o
« Last Edit: 4 Dec '04 - 18:23 by 3delite »

3delite

  • Posts: 907
Re:New playlist format
« Reply #4 on: 4 Dec '04 - 18:27 »
Now this will be a bit delayed. TXMLDocument won't read .b4s (exception occurs trying to locate first child node) >:(
I"m too angry to cope with this right now... grrrr...
« Last Edit: 4 Dec '04 - 18:28 by 3delite »

3delite

  • Posts: 907
Re:New playlist format released
« Reply #5 on: 14 Dec '04 - 02:48 »
And it looks like:

Code: [Select]
<?xml version="1.0" encoding='UTF-8' standalone="yes"?>
 <WinampXML>
<!-- Generated by: MP3 Stream Editor 2.1.3.41 -->
  <playlist num_entries="5" label="MP3 Stream Editor 2.1.3.41 Playlist">
      <entry Playstring="file:C:\AUDIO\BobMarley\08 - Bob Marley &amp; The Wailers - Lively Up Yourself.mp3">
    <Name>Bob Marley &amp; The Wailers - Lively Up Yourself</Name>
    <Length>379730</Length>
    <Artist>Bob Marley &amp; The Wailers</Artist>
    <Title>Lively Up Yourself</Title>
    <Album>Babylon By Bus</Album>
    <BitRate>192</BitRate>
    <SEFC>14605</SEFC>
    <Track>8</Track>
    <AVF>627</AVF>
    <Playcount>8</Playcount>
    <Source>MPG</Source>
   </entry>
   <entry Playstring="file:C:\AUDIO\PaPERHOUsE\PaPERHOUsE-BugSun-02-Art_is_Life.mp3">
    <Name>PaPERHOUsE - Art is Life</Name>
    <Length>613730</Length>
    <Artist>PaPERHOUsE</Artist>
    <Title>Art is Life</Title>
    <Album>BugSun</Album>
    <BitRate>128</BitRate>
    <SEFC>23605</SEFC>
    <Track>2</Track>
    <AVF>418</AVF>
    <Playcount>7</Playcount>
    <Source>MPG</Source>
   </entry>
   <entry Playstring="file:C:\AUDIO\01-cyphonic_-_reversing_reality_part_one-2004-promo_live_set.mp3">
    <Name>Cyphonic - Reversing Reality -Part 1-</Name>
    <Length>3556488</Length>
    <Artist>Cyphonic</Artist>
    <Title>Reversing Reality -Part 1-</Title>
    <Album>Reversing Reality -Part 1-</Album>
    <BitRate>192</BitRate>
    <SEFC>136788</SEFC>
    <Track>01</Track>
    <AVF>627</AVF>
    <Playcount>7</Playcount>
    <Source>MPG</Source>
   </entry>
   <entry Playstring="subsong:.779220@C:\AUDIO\01-cyphonic_-_reversing_reality_part_one-2004-promo_live_set.mp3">
    <Name>Cyphonic - Bon - Problem Child</Name>
    <Length>142000</Length>
    <Artist>Cyphonic</Artist>
    <Title>Bon - Problem Child</Title>
    <Album>Reversing Reality -Part 1-</Album>
    <BitRate>192</BitRate>
    <SEFC>136788</SEFC>
    <Track>4</Track>
    <AVF>627</AVF>
    <Playcount>7</Playcount>
    <Source>MPG</Source>
   </entry>
   <entry Playstring="http://media.dream.hu:18000">
    <Name>media.dream.hu:18000 - </Name>
    <Length>-1</Length>
    <Artist>media.dream.hu:18000</Artist>
    <Title></Title>
    <Album></Album>
    <BitRate>0</BitRate>
    <SEFC>0</SEFC>
    <Track>0</Track>
    <AVF>0</AVF>
    <Playcount>0</Playcount>
    <Source>URL</Source>
   </entry>
  </playlist>
 </WinampXML>
:)
Example of a file, a subsong and an URL entry.
« Last Edit: 14 Dec '04 - 03:07 by 3delite »

3delite

  • Posts: 907
Re:New playlist format
« Reply #6 on: 14 Dec '04 - 18:38 »
Anyone had some experience with UTF8 encoding? It seems like Delphi7 and Winamp use different encoding!?  ???