mIRC Home    About    Download    Register    News    Help

Print Thread
#68363 18/01/04 01:30 AM
Joined: Jan 2004
Posts: 26
M
module Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Jan 2004
Posts: 26
Anyone know of a good DLL with mpeg functions, like bitrate, samplerate, legnth, etc? I know mIRC has these functions built-in but it's still too slow, takes about 40 seconds to construct my mp3 database (using a hashtable) on a p4 1.4GHz 512MB Ram.


It's not in the GUI, it's in the source.
#68364 18/01/04 05:08 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
40 seconds doesnt sound so bad. how many mp3s?


If its lag, then get all the filenames and then roll through them on a timer.

#68365 18/01/04 09:06 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
A function intergrated into mirc is always going to run faster than a dll that mirc has to make a call out to (And load if not already so) then process, then return.


-KingTomato
#68366 18/01/04 11:57 AM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Not really. mIRC only needs to call the DLL once and it should be able to take care of the rest. Whether a DLL for reading MPEG details would be any faster is difficult to tell.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#68367 19/01/04 01:12 AM
Joined: Jan 2004
Posts: 26
M
module Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Jan 2004
Posts: 26
I have about 1400 mp3s. I agree with starbucks, a DLL is much faster, I use one to output the files in the mp3 directory to a file and I benchmarked it using $findfile, the DLL was more efficient. I guess I could always run another instance of mIRC for the database building or maybe store all the files of the mp3 directory into a hash table and save it for later use. Then match upon those, may speed up the process a little..


It's not in the GUI, it's in the source.
#68368 19/01/04 01:24 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Keep in mind that each call to $sound tells mIRC to open the file, read the data then close the file. So if you're going to retrieve the artist, title and bitrate information out of an mp3 file, mIRC will open & close it 3 times. It could be much faster if all the necessary information would be read in one instance, which is what a DLL can efficiently do.


Link Copied to Clipboard