Centrafuse Auto - Connected Car Apps User Community    

Go Back   Centrafuse Auto - Connected Car Apps User Community > 3rd Party Development > Miscellaneous Development

Miscellaneous Development All 3rd party development related to Centrafuse.


Reply
 
LinkBack Thread Tools Display Modes
Old March 10th, 2010, 10:31 PM   #1 (permalink)
3 Farad - Moderate Capacity
 
Join Date: Dec 2009
Location: Massachusetts
Vehicle: 2002 Volvo S60
Posts: 27
paulf will become famous soon enough
CF3.1 Playlist Format

Code:
A Place In The Sun|Lit|Alternative/Punk|My Own Worst Enemy|3|1999|3/10/2010 10:16:21 PM|3/10/2010 10:16:21 PM|0|0|C:\FrontEndData\Songs\391.mp3
City Of Evil|Avenged Sevenfold|Rock/Pop|Beast And The Harlot|1|2005|3/10/2010 10:16:26 PM|3/10/2010 10:16:26 PM|0|0|C:\FrontEndData\Songs\4.mp3
Theres a sample playlist file. I'm working on an application that will convert windows media playlist files into centrafuse playlist files.

I would like to know what each object in this file is.

I've got this...
1. Album
2. Artist
3. Genre
4. Title
5. Track number
6. Year
7. What is this date/time?
8. What is this date/time?
9. What is this 0?
10. What is this 0?
11. Song path.

Thanks,
Paul
paulf is offline   Reply With Quote
Old March 11th, 2010, 02:05 PM   #2 (permalink)
3 Farad - Moderate Capacity
 
Join Date: Dec 2009
Location: Massachusetts
Vehicle: 2002 Volvo S60
Posts: 27
paulf will become famous soon enough
I guess I'll have to bump this... anyone?
paulf is offline   Reply With Quote
Old March 12th, 2010, 09:01 AM   #3 (permalink)
10 Farad - Flux Capacity
Sonicxtacy02's CarPC Specs
 
Join Date: Aug 2008
Posts: 838
Sonicxtacy02 has much to be proud ofSonicxtacy02 has much to be proud ofSonicxtacy02 has much to be proud ofSonicxtacy02 has much to be proud ofSonicxtacy02 has much to be proud ofSonicxtacy02 has much to be proud ofSonicxtacy02 has much to be proud ofSonicxtacy02 has much to be proud ofSonicxtacy02 has much to be proud ofSonicxtacy02 has much to be proud of
Send a message via MSN to Sonicxtacy02 Send a message via Skype™ to Sonicxtacy02
Quote:
Originally Posted by paulf View Post
I guess I'll have to bump this... anyone?
there's about a 90% chance 9 and 10 aren't used now. I'm sure they have something to do with the elements in the media library that aren't currently used. i bet one is Rating (1-5), and one is song played count). Neither are actually used in CF3 so just have your plugin or software put zeroes in both those elements.
Sonicxtacy02 is offline   Reply With Quote
Old March 13th, 2010, 01:38 PM   #4 (permalink)
3 Farad - Moderate Capacity
chronus72488's CarPC Specs
 
Join Date: Jan 2010
Posts: 16
chronus72488 is on a distinguished road
^ agreed with Sonic, I was looking at my playlist file as well, and wondering the same thing. The other thing I noticed is when CF3.1 adds songs now, it puts a lot of spaces between letters, which I found odd. I was thinking about making an xml playlist exporter thats used for command-line purposes but i'm only semi-decent at c++ so if someone else is willing to take it up, i'd be happy to help any way i can.
chronus72488 is offline   Reply With Quote
Old March 13th, 2010, 08:30 PM   #5 (permalink)
3 Farad - Moderate Capacity
 
Join Date: Dec 2009
Location: Massachusetts
Vehicle: 2002 Volvo S60
Posts: 27
paulf will become famous soon enough
Quote:
Originally Posted by chronus72488 View Post
^ agreed with Sonic, I was looking at my playlist file as well, and wondering the same thing. The other thing I noticed is when CF3.1 adds songs now, it puts a lot of spaces between letters, which I found odd. I was thinking about making an xml playlist exporter thats used for command-line purposes but i'm only semi-decent at c++ so if someone else is willing to take it up, i'd be happy to help any way i can.
The "lot of spaces" you're seeing is because you're looking at the playlist file in a text editor that doesn't properly read UTF16 Little Endian files.

I learned the UTF16 Little Endian part after some serious mucking around. That's the only text file encoding that centrafuse will read as a playlist. Real annoying.

I'm working on a C# DLL file which will allow you to read and write to the centrafuse playlist format. I'm also working on a C# dll which reads and writes windows media player playlists. Once both work well, I will make a C# program that does the converting. I'll probably make a GUI version and a command line version. We'll see how this goes.

At this point, I can write a CF3 playlist file no problem. Reading it will be extremely easy as well.

Windows media player playlists should actually be a bit easier since C# has xml classes built in. I may even find a windows media player playlist reader already coded for C#. We'll see.
paulf is offline   Reply With Quote
The Following 2 Users Say Thank You to paulf For This Useful Post:
Old March 14th, 2010, 01:42 PM   #6 (permalink)
3 Farad - Moderate Capacity
 
Join Date: Dec 2009
Location: Massachusetts
Vehicle: 2002 Volvo S60
Posts: 27
paulf will become famous soon enough
Just an update:
So far my library can successfully read and write centrafuse playlist files and successfully read windows media player playlist files.

For those of you who know some programming, I've written a playlist class and a song class. The playlist class contains an ArrayList of songs.

The song class has two constructors, one which requires you to enter all the tag data and one which requires only the path and reads the tag data using TagLib Sharp.

The playlist class has methods to add a song, clear the playlist, read the playlist from a WMP, or CF playlist file, write the playlist to a CF playlist file.

I'm making a GUI to do the trick now.
paulf is offline   Reply With Quote
Old March 14th, 2010, 02:30 PM   #7 (permalink)
10 Farad - Flux Capacity
Gobanna's CarPC Specs
 
Gobanna's Avatar
 
Join Date: May 2008
Location: U.K
Vehicle: BMW E46
Posts: 631
Gobanna has a spectacular aura aboutGobanna has a spectacular aura aboutGobanna has a spectacular aura about
Quote:
For those of you who know some programming
(1993-96) does pascal & cobol count....

Pretty much got the gist... Excellent work and progress!
Gobanna is offline   Reply With Quote
Old March 14th, 2010, 02:53 PM   #8 (permalink)
3 Farad - Moderate Capacity
 
Join Date: Dec 2009
Location: Massachusetts
Vehicle: 2002 Volvo S60
Posts: 27
paulf will become famous soon enough
Attached to this post is a testing GUI. Extract the zip file and run CentrafusePlaylistBuilder.exe.

You can load a centrafuse or wmp playlist and then save it as a CF playlist.

Let me know how it works for you guys. It should work with all audio files, but I only tested it with mp3 files.

Last edited by paulf; March 16th, 2010 at 08:25 PM. Reason: File removed, see page 2 for alpha 2.
paulf is offline   Reply With Quote
Old March 14th, 2010, 04:04 PM   #9 (permalink)
10 Farad - Flux Capacity
Gobanna's CarPC Specs
 
Gobanna's Avatar
 
Join Date: May 2008
Location: U.K
Vehicle: BMW E46
Posts: 631
Gobanna has a spectacular aura aboutGobanna has a spectacular aura aboutGobanna has a spectacular aura about
I've tried it but it doesn't load wmp playlists... I've tried with just mp3 and them with just wma files, centrafuse playlists loads and saves fine....
Gobanna is offline   Reply With Quote
Old March 14th, 2010, 04:16 PM   #10 (permalink)
3 Farad - Moderate Capacity
 
Join Date: Dec 2009
Location: Massachusetts
Vehicle: 2002 Volvo S60
Posts: 27
paulf will become famous soon enough
Quote:
Originally Posted by Gobanna View Post
I've tried it but it doesn't load wmp playlists... I've tried with just mp3 and them with just wma files, centrafuse playlists loads and saves fine....
Okay. What version of windows media player are you using?
Can you attach a copy of the playlist which doesn't load?
paulf is offline   Reply With Quote
Reply

Bookmarks

Tags
cf31, format, playlist

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
help creating playlist mpl files mcbeth352001 General Centrafuse Questions 16 September 2nd, 2011 02:14 AM
UPDATE 19-07-08 - Playlist Plugin (Alpha) - What features do you want? blackstarzes Plugin Development 10 January 7th, 2009 08:03 AM



All times are GMT -4. The time now is 09:37 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Copyright ©2011 Centrafuse, Inc. All rights reserved.Ad Management plugin by RedTyger