Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development


Reply
 
Share Thread Tools Display Modes
Old 08-21-2006, 05:58 PM   #31
Constant Bitrate
 
Join Date: Jan 2006
Location: Montreal, QC, CA
Posts: 196
enitalp is on a distinguished road
Just checked and it seems that i have a memory leak. not good. the memory keep going up while in main menu doing nothing.
enitalp is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 08-21-2006, 06:54 PM   #32
Newbie
 
nosoup4me's Avatar
 
Join Date: Aug 2006
Location: Fort Wayne, Indiana
Posts: 21
nosoup4me is an unknown quantity at this point
[QUOTE=enitalp;900610]Yes i will.
I'm thinking since the begining off making a database for media, and update it at each launch of EniCar. Will be alble to have all the tag, but i'm still searching the best method to do it.
QUOTE]

"id3lib is an open-source, cross-platform software development library for reading, writing, and manipulating ID3v1 and ID3v2 tags. It is an on-going project whose primary goals are full compliance with the ID3v2 standard, portability across several platforms, and providing a powerful and feature-rich API with a highly stable and efficient implementation."

http://id3lib.sourceforge.net/

I do not know if this will help but It appears the code should be able to extraxt anything you want...including pics; which I am very interested in... most of my tunes are singles (not albums) and the album art is embedded.
nosoup4me is offline   Reply With Quote
Old 08-21-2006, 07:44 PM   #33
Variable Bitrate
 
marazi's Avatar
 
Join Date: Dec 2005
Location: Skien, Norway
Posts: 258
marazi is on a distinguished road
great work...
will there be full flash support...??
cdr's latest skin freedom dont work... its flashed based...
marazi is offline   Reply With Quote
Old 08-22-2006, 12:52 AM   #34
Newbie
 
tcghost's Avatar
 
Join Date: Mar 2006
Location: FL
Posts: 32
tcghost is on a distinguished road
Quote: Originally Posted by enitalp View Post
Yes i will.



I'm thinking since the begining off making a database for media, and update it at each launch of EniCar. Will be alble to have all the tag, but i'm still searching the best method to do it.



For memory i don't have a solution yet. this was not my main concern. As it's the maximum as all skin & bitmap are in memory after the startup, memory will not grow up. For the 80% i didn't check yet. but it's not normal. Just checked. and without playing a song widows sometimes says 47% when in audio_browser. and 0% when playing my song lol. I have to add my cpu usage. I think windows is going mad by the way i'm using it. It's my first development under windows. I'm used to xbox & ps2 lol.



general slowness ? only on loading ? or in general ?
I'm surprised and chocked.

for xbmc good idea. i will check that.


And for all thanks for the support.


well, on startup, mostly... it takes around half a minute to load.
tcghost is offline   Reply With Quote
Old 08-22-2006, 01:44 AM   #35
FreeDrive Creator
 
CdRsKuLL's Avatar
 
Join Date: Feb 2004
Location: Manchester
Posts: 3,196
CdRsKuLL will become famous soon enough
Quote: Originally Posted by enitalp View Post
I knew i forget something before making my first showable version. Hope your not mad with this. I love your skin, use it in my car, that's why it was my guinea pig.

Could i use it ?

If not i will remove it from my EniCar distribution. Not planing to distribute it with EniCar, it was just because of the first version got a limit support of other skin.

Sorry about that.

not a problem at all.. :-) watching your work... will be doing some tests later on just how fast flash can be with our FE :-)

CdR
CdRsKuLL is offline   Reply With Quote
Old 08-22-2006, 07:30 AM   #36
Constant Bitrate
 
Join Date: Jan 2006
Location: Montreal, QC, CA
Posts: 196
enitalp is on a distinguished road
Quote: Originally Posted by marazi View Post
great work...
will there be full flash support...??
cdr's latest skin freedom dont work... its flashed based...

Yes flash will be fully supported. For the instant i only support command comming from flash, i don't send anything to flash (skinner will understand).
Hope to do that soon.

Quote: Originally Posted by tcghost View Post
well, on startup, mostly... it takes around half a minute to load.

half a minute ? i think you are the winner of the slowest skin loading
Ok i cheat a little as i have two Raptor 10000tr/min in raid. but on mc2.0 skin i'm at 4/5 secs not 30 !
enitalp is offline   Reply With Quote
Old 08-22-2006, 07:36 AM   #37
Constant Bitrate
 
Join Date: Jan 2006
Location: Montreal, QC, CA
Posts: 196
enitalp is on a distinguished road
Quote: Originally Posted by CdRsKuLL View Post
not a problem at all.. :-) watching your work... will be doing some tests later on just how fast flash can be with our FE :-)

CdR

I hope flash will be fast. For the instant i only take command from flash and don' t send any label to it. soon. And i need to get ride of a stupid white flashing things when i hide the flash control when changing page . Windows can be stupid sometimes.
When you hide a CWnd or move it, it does it immediatly, and paint a white square at the position of the window. Made some test with two screen (i have a lilliput touchscreen as my secondary display on my work computer), so i'm able to step by step the process without other window interfering in EniCar window. And instead of sending a paint message windows directly paint white square. So i need to deferred the window/move close myself. during the paint.
enitalp is offline   Reply With Quote
Old 08-22-2006, 09:30 AM   #38
Newbie
 
tcghost's Avatar
 
Join Date: Mar 2006
Location: FL
Posts: 32
tcghost is on a distinguished road
Quote: Originally Posted by enitalp View Post
half a minute ? i think you are the winner of the slowest skin loading
Ok i cheat a little as i have two Raptor 10000tr/min in raid. but on mc2.0 skin i'm at 4/5 secs not 30 !

I was running it on my dual core laptop with 1 gb of ram too... :-/

does it read through the music and video directories at startup? cause I have more than 100 gb of files in those directories
tcghost is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 08-22-2006, 10:05 AM   #39
Constant Bitrate
 
Join Date: Jan 2006
Location: Montreal, QC, CA
Posts: 196
enitalp is on a distinguished road
Quote: Originally Posted by tcghost View Post
I was running it on my dual core laptop with 1 gb of ram too... :-/

does it read through the music and video directories at startup? cause I have more than 100 gb of files in those directories

Yes at startup i parse the media directory to memorize the directory tree. No operation on the file.

For me the execution of this part of code is less than 0.1s, and i'm in slow debug mode.

for mp3 dir = 5.5go 660 files
video dir = 4.6go 115 files.
not that much file but it's very fast. no reason to be slow.

it must be the skin loading. In the next version i will add a splash screen with operation in progress before showing the menu. and i will log all in a log file. That way i could see the crashing problem, and the speed problem at loading.

Last edited by enitalp; 08-22-2006 at 10:08 AM..
enitalp is offline   Reply With Quote
Old 08-22-2006, 10:43 AM   #40
Constant Bitrate
 
Join Date: Jan 2006
Location: Montreal, QC, CA
Posts: 196
enitalp is on a distinguished road
Ok, i've made a patch to the version 0.02
added some log info before the main menu showing. So i could check the slow problem.
I don't want to let this problem here, peharps there is a huge problem and it must be resolve now.

this is the new version of the version 0.02. new exe to replace the old one.
After reaching the main page you should have a enicar.log in the enicar directory. post me the result.
http://www.enitalp.com/EniCarV0.02.rar

here is mine : The time is in second since the start. the precision in the millisecond.

EniCar started
0.000 Start Register Command
0.000 End Register Command
0.000 Start Reader init
0.000 End Reader init
0.000 Start Read enicar.ini
0.000 End Read enicar.ini
0.000 Start Cache Media
0.000 Start cache subdir mp3
0.015 End cache subdir mp3
0.015 Start cache subdir video
0.031 End cache subdir video
0.031 Start sort mp3
0.031 End sort mp3
0.031 Start sort video
0.031 End sort video
0.031 End Cache Media
0.031 Start Video Window
0.031 End Video Window
0.031 Start Mplayer init
0.047 End Mplayer init
0.047 Start loading skin
0.047 load general.ini
0.047 load folder.gif
0.062 load media.gif
0.062 start finding *.skin
0.062 end finding *.skin
0.062 Start Loading skin Page :
0.062 c:\src\enicar\skin\MC2.0\audio_browser.skin
0.203 End Loading skin page
0.203 Start Loading skin Page :
0.203 c:\src\enicar\skin\MC2.0\audio_browser1.skin
0.328 End Loading skin page
0.328 Start Loading skin Page :
0.328 c:\src\enicar\skin\MC2.0\Audio_Player.skin
0.687 End Loading skin page
0.687 Start Loading skin Page :
0.687 c:\src\enicar\skin\MC2.0\exit_menu.skin
0.765 End Loading skin page
0.765 Start Loading skin Page :
0.765 c:\src\enicar\skin\MC2.0\EXTERNAL_GPS.skin
0.843 End Loading skin page
0.843 Start Loading skin Page :
0.843 c:\src\enicar\skin\MC2.0\game.skin
1.000 End Loading skin page
1.000 Start Loading skin Page :
1.000 c:\src\enicar\skin\MC2.0\games.skin
1.093 End Loading skin page
1.093 Start Loading skin Page :
1.093 c:\src\enicar\skin\MC2.0\LAUNCH.skin
1.187 End Loading skin page
1.187 Start Loading skin Page :
1.187 c:\src\enicar\skin\MC2.0\menu.skin
1.328 End Loading skin page
1.328 Start Loading skin Page :
1.328 c:\src\enicar\skin\MC2.0\mixer.skin
1.437 End Loading skin page
1.437 Start Loading skin Page :
1.437 c:\src\enicar\skin\MC2.0\NUMOSK.skin
1.515 End Loading skin page
1.515 Start Loading skin Page :
1.515 c:\src\enicar\skin\MC2.0\obd.skin
1.562 End Loading skin page
1.562 Start Loading skin Page :
1.562 c:\src\enicar\skin\MC2.0\OSK.skin
1.687 End Loading skin page
1.687 Start Loading skin Page :
1.687 c:\src\enicar\skin\MC2.0\RADIO_MENU_FUNCTION.skin
1.765 End Loading skin page
1.765 Start Loading skin Page :
1.765 c:\src\enicar\skin\MC2.0\Radio_Player.skin
1.890 End Loading skin page
1.890 Start Loading skin Page :
1.890 c:\src\enicar\skin\MC2.0\skin_browser.skin
2.000 End Loading skin page
2.000 Start Loading skin Page :
2.000 c:\src\enicar\skin\MC2.0\status.skin
2.109 End Loading skin page
2.109 Start Loading skin Page :
2.109 c:\src\enicar\skin\MC2.0\tv.skin
2.203 End Loading skin page
2.203 Start Loading skin Page :
2.203 c:\src\enicar\skin\MC2.0\video_browser.skin
2.328 End Loading skin page
2.328 Start Loading skin Page :
2.328 c:\src\enicar\skin\MC2.0\video_player.skin
2.453 End Loading skin page
2.453 Start Loading skin Page :
2.453 c:\src\enicar\skin\MC2.0\wbrowser.skin
2.547 End Loading skin page
2.547 Start Loading skin Page :
2.547 c:\src\enicar\skin\MC2.0\weather.skin
2.656 End Loading skin page
2.656 Start Loading skin Page :
2.656 c:\src\enicar\skin\MC2.0\weather_detail.skin
2.781 End Loading skin page
2.781 End loading skin
enitalp is offline   Reply With Quote
Old 08-22-2006, 04:33 PM   #41
Newbie
 
tcghost's Avatar
 
Join Date: Mar 2006
Location: FL
Posts: 32
tcghost is on a distinguished road
ok, here's mine... I guess I was right about the large music db... perhaps it's better to cache all the stuff to a db (kinda like xbmc :P ) or at least do it in a separate thread... or both...

my music folder is 79.2 GB. 14,247 files in 1,160 folders

Code:
EniCar started 0.000 Start Register Command 0.000 End Register Command 0.000 Start Reader init 0.000 End Reader init 0.000 Start Read enicar.ini 0.000 End Read enicar.ini 0.000 Start Cache Media 0.000 Start cache subdir mp3 21.500 End cache subdir mp3 21.500 Start cache subdir video 24.360 End cache subdir video 24.360 Start sort mp3 24.360 End sort mp3 24.360 Start sort video 24.360 End sort video 24.360 End Cache Media 24.360 Start Video Window 24.360 End Video Window 24.360 Start Mplayer init 24.360 End Mplayer init 24.375 Start loading skin 24.375 load general.ini 24.375 load folder.gif 24.391 load media.gif 24.406 start finding *.skin 24.406 end finding *.skin 24.406 Start Loading skin Page : 24.406 D:\Download\EniCar\Skin\MC2.0\audio_browser.skin 24.594 End Loading skin page 24.594 Start Loading skin Page : 24.594 D:\Download\EniCar\Skin\MC2.0\audio_browser1.skin 24.719 End Loading skin page 24.719 Start Loading skin Page : 24.719 D:\Download\EniCar\Skin\MC2.0\Audio_Player.skin 25.141 End Loading skin page 25.141 Start Loading skin Page : 25.141 D:\Download\EniCar\Skin\MC2.0\exit_menu.skin 25.219 End Loading skin page 25.219 Start Loading skin Page : 25.219 D:\Download\EniCar\Skin\MC2.0\EXTERNAL_GPS.skin 25.313 End Loading skin page 25.313 Start Loading skin Page : 25.313 D:\Download\EniCar\Skin\MC2.0\game.skin 25.453 End Loading skin page 25.453 Start Loading skin Page : 25.453 D:\Download\EniCar\Skin\MC2.0\games.skin 25.563 End Loading skin page 25.563 Start Loading skin Page : 25.563 D:\Download\EniCar\Skin\MC2.0\LAUNCH.skin 25.672 End Loading skin page 25.672 Start Loading skin Page : 25.672 D:\Download\EniCar\Skin\MC2.0\menu.skin 25.797 End Loading skin page 25.797 Start Loading skin Page : 25.797 D:\Download\EniCar\Skin\MC2.0\mixer.skin 25.922 End Loading skin page 25.922 Start Loading skin Page : 25.922 D:\Download\EniCar\Skin\MC2.0\NUMOSK.skin 25.985 End Loading skin page 25.985 Start Loading skin Page : 25.985 D:\Download\EniCar\Skin\MC2.0\obd.skin 26.047 End Loading skin page 26.047 Start Loading skin Page : 26.047 D:\Download\EniCar\Skin\MC2.0\OSK.skin 26.188 End Loading skin page 26.188 Start Loading skin Page : 26.188 D:\Download\EniCar\Skin\MC2.0\RADIO_MENU_FUNCTION.skin 26.266 End Loading skin page 26.266 Start Loading skin Page : 26.266 D:\Download\EniCar\Skin\MC2.0\Radio_Player.skin 26.406 End Loading skin page 26.406 Start Loading skin Page : 26.406 D:\Download\EniCar\Skin\MC2.0\skin_browser.skin 26.516 End Loading skin page 26.516 Start Loading skin Page : 26.516 D:\Download\EniCar\Skin\MC2.0\status.skin 26.625 End Loading skin page 26.625 Start Loading skin Page : 26.625 D:\Download\EniCar\Skin\MC2.0\tv.skin 26.735 End Loading skin page 26.735 Start Loading skin Page : 26.735 D:\Download\EniCar\Skin\MC2.0\video_browser.skin 26.875 End Loading skin page 26.875 Start Loading skin Page : 26.875 D:\Download\EniCar\Skin\MC2.0\video_player.skin 26.985 End Loading skin page 26.985 Start Loading skin Page : 26.985 D:\Download\EniCar\Skin\MC2.0\wbrowser.skin 27.094 End Loading skin page 27.094 Start Loading skin Page : 27.094 D:\Download\EniCar\Skin\MC2.0\weather.skin 27.235 End Loading skin page 27.235 Start Loading skin Page : 27.235 D:\Download\EniCar\Skin\MC2.0\weather_detail.skin 27.344 End Loading skin page 27.344 End loading skin


Last edited by tcghost; 08-22-2006 at 04:35 PM..
tcghost is offline   Reply With Quote
Old 08-22-2006, 04:40 PM   #42
Constant Bitrate
 
Join Date: Jan 2006
Location: Montreal, QC, CA
Posts: 196
enitalp is on a distinguished road
There must be a bug somewhere.

0.000 Start cache subdir mp3 <=== this is the findfirst findnext, very simple thing
21.500 End cache subdir mp3

24.360 Start sort mp3 <=== this is the quicksort to sort by alphabetical order & by kind the file i found previously
24.360 End sort mp3

The quicksort takes no time to parse the thousand of file. and it's the heaviest code.

Could you give the the complete path to your mp3 lowest directory.
if the path is more than 255 character then i blow up my stack.

thanks.

Last edited by enitalp; 08-22-2006 at 04:46 PM..
enitalp is offline   Reply With Quote
Old 08-22-2006, 04:44 PM   #43
Newbie
 
tcghost's Avatar
 
Join Date: Mar 2006
Location: FL
Posts: 32
tcghost is on a distinguished road
Quote: Originally Posted by enitalp View Post
There must be a bug somewhere.

0.000 Start cache subdir mp3 <=== this is the findfirst findnext, very simple thing
21.500 End cache subdir mp3

24.360 Start sort mp3 <=== this is the quicksort to sort by alphabetical order & by kind the file i found previously
24.360 End sort mp3

The quicksort takes no time to parse the thousand of file. and it's the heaviest code.

well, I just changed MUSIC_DIR to a directory with only a couple of albums and it started up in 5 seconds. All of this is on a network drive, which I'm sure doesn't help as well...

I still don't think it's a good idea to parse the whole music/videos folders every time at startup
tcghost is offline   Reply With Quote
Old 08-22-2006, 05:01 PM   #44
Constant Bitrate
 
Join Date: Jan 2006
Location: Montreal, QC, CA
Posts: 196
enitalp is on a distinguished road
Ok i think i found the bug. This version should be much faster. (i change the version 0.02 again).

Last edited by enitalp; 08-22-2006 at 05:05 PM..
enitalp is offline   Reply With Quote
Old 08-22-2006, 05:04 PM   #45
Constant Bitrate
 
Join Date: Jan 2006
Location: Montreal, QC, CA
Posts: 196
enitalp is on a distinguished road
Quote: Originally Posted by tcghost View Post
well, I just changed MUSIC_DIR to a directory with only a couple of albums and it started up in 5 seconds. All of this is on a network drive, which I'm sure doesn't help as well...

I still don't think it's a good idea to parse the whole music/videos folders every time at startup

Centrafuse works with a pre generated media database. and i don't like it.
My first idea was to save the database, and check at startup if any change was done, to update my database. But checking the change take the same time as construct the database . I don't like the idea of pressing a button somewhere to create the database like centrafuse. i have to found a middle between those two solution.
enitalp is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
REQUEST: Run Multiple RR instances Jarrod Road Runner 33 12-21-2008 08:54 AM
How do I use the Extension Plugin Interface ? guino RR FAQ 0 06-11-2006 06:49 PM
RR doesn't start Phoco on initial load.. DutchBurner Road Runner 16 11-04-2005 02:17 PM
RR Interchange - Update RR via a USB Media Stick Gobby Road Runner 60 10-04-2005 05:48 PM
status update.... 0l33l PowerVoice 17 05-05-2005 01:22 PM



All times are GMT -5. The time now is 03:57 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
"VaultWiki" powered by VaultWiki v2.5.2.
Copyright © 2008 - 2009, Cracked Egg Studios.Ad Management by RedTyger
Message Board Statistics