|
I want to retrieve the duration time, some pepople know?
|
|
|
|
|
I want to add a new field called "Score" in the tag. Does any one know how can i do that?
|
|
|
|
|
Is this available for embedded VC++4?
-- modified at 2:55 Friday 16th November, 2007
|
|
|
|
|
Wow, it's been a very, very long time since I've supported this project.
To answer your question, the CMP3Info class almost solely relies on the Win32 API and standard C libraries. I believe it might use CString from MFC, so that could be another basic dependency.
If embedded VC++4 supports the basic CreateFile, ReadFile, memcpy, etc. methods found in Win32 API/standard C libraries, then it should be trivial to port this basic library.
The source code for this project is fairly basic so a quick look and maybe a few tweaks should get it working for your platform if it doesn't already.
|
|
|
|
|
Message digest is something like the digital signature. I would like to add it to the id3 tag. How can I do that?
|
|
|
|
|
Sorry to reply a whole 3 years later, but this library only supports ID3v1, which does not have arbitrary key/value storage--i.e. message digests.
|
|
|
|
|
I know that some Mp3 file have a constant Bit Rate, but some files' bit Rate is different for each frame, so how do I judge it?
Shall we be friend?
|
|
|
|
|
i don't have time right now to really get into learning ID3 V2, so for now i will not be adding that capability to the CMP3Info class.
sorry, if anyone would like to add it manually and expand on the existing classes, feel free to.
I think that would require a new article on CP, but whatever
- Roman -
|
|
|
|
|
I have a problem
by compiling the demo Project or a other prog with the
scr MPInfo.cpp (and .h)
come this error :
C:\Programme\Microsoft Visual Studio\MyProjects\Kopie (9) von UPG Mp3 Player\MP3Info.cpp(194) : error C2065: 'INVALID_SET_FILE_POINTER' : undeclared identifier
C:\Programme\Microsoft Visual Studio\MyProjects\Kopie (9) von UPG Mp3 Player\MP3Info.cpp(194) : warning C4018: '!=' : signed/unsigned mismatch
C:\Programme\Microsoft Visual Studio\MyProjects\Kopie (9) von UPG Mp3 Player\MP3Info.cpp(247) : warning C4018: '!=' : signed/unsigned mismatch
Error executing cl.exe.
UPG Mp3 Player.exe - 1 error(s), 2 warning(s)
Please help me !!!
thanks.
|
|
|
|
|
INVALID_SET_FILE_POINTER (which has a constant value of -1) is defined in winbase.h, which is a standard include when using MFC
including <windows.h> also solves the problem
- Roman -
|
|
|
|
|
I've included the winbase.h in MP3Info.cpp file, but still has the same errors, why???
Edwina Wang
|
|
|
|
|
you shouldn't have to include winbase.h because it is automically included with all MFC projects
are you compiling with Visual Studio properly?
if nothing else works, i suggest doing this:
#define INVALID_SET_FILE_POINTER (-1)
somewhere in stdafx.h
however, this shouldn't be required if you compile properly.
Roman Nurik
|
|
|
|
|
Thanks very much.
It does work.
Thank you!
|
|
|
|
|
I got the same problem. And the local #define solves it. I am using Visual Studio 6. Maybe some setting is wrong?
|
|
|
|
|
hehe,
thank you~!
I am busy working on it~!
|
|
|
|
|
I have some 80 kbps MP3 files (V2 Level III) and I had to fix this matrix to get the code to read them correctly.
static int g_nMP3BitRate[6][16] = {
{0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1},
{0,32,48,56, 64, 80, 96,112,128,160,192,224,256,320,384,-1},
{0,32,40,48, 56, 64, 80, 96,112,128,160,192,224,256,320,-1},
{0,32,48,56, 64, 80, 96,112,128,144,160,176,192,224,256,-1},
{0, 8,16,24, 32, 40, 48, 56, 64, 80, 96,112,128,144,160,-1},
//incorrect? {0, 8,16,24, 32, 64, 80, 56, 64,128,160,112,128,256,320,-1},
{0, 8,16,24, 32, 40, 48, 56, 64, 80, 96,112,128,144,160,-1},
};
I came up with this change by reading the MPEG Header doc up on http://www.dv.co.yu/mpgscript/mpeghdr.htm
Paul C. Isaac
|
|
|
|
|
Thanks for your code.It's perfect!
But I spent several days to look for articles and still could not slove this problem. How to read ID3V2 info from mp3 fils.
If you are free, please write a class about this and all the people on the earth will appreciate you.(I'm a Chinese boy.)
If you have articles about ID3V2,please send to me:
wukw@263.net.cn
nevergrief@hotmail.com
I will write such a class about ID3V2 if possible and not very difficult.^_^
C++ lover ,haha
|
|
|
|
|
v2 is compressed, so it's a bit more work. There are classes to do it available on the web tho. Have you tried Google ?
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
I spent the whole night(about 8 hours)to look fot articles on the internet.
Of course I used the google.And I tried so many web site but couldn't find.
I was so disappointed and alost have a headache now.
Could you help me list the URLs? Or send the classes to me.
I use VC++ only , not use VB.
Best regards.Thanks;)
C++ lover
|
|
|
|
|
NeverGrief wrote:
I use VC++ only , not use VB.
Well, you know how to sweet talk me
Here is the stuff I found on google.
http://id3lib.sourceforge.net/api/tag__render_8cpp-source.html
http://www.id3.org/implement.html
and heaps of others that all seem to end up at id3lib.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
>>http://www.id3.org/implement.html
id3.org doesnt exist anymore, do you know anywhere else i can get information?
>>http://id3lib.sourceforge.net/api/tag__render_8cpp-source.html
I couldn't link to it too.
I have no other choices.
Execute me, if you are free, please send ID3V2-classes to me.
Thanks.
I love VC++ deeply!!!;P
I hate VB !(executely look down on programmers using VB)
C++ lover
|
|
|
|
|
My msn: nevergrief@hotmail
Please add me.
And yours??
I long for being friends with you!!!
We are both C++ lover!
C++ lover ,haha
|
|
|
|
|
I'm sorry, but your ISP is screwed. Both links are working fine.
NeverGrief wrote:
Execute me, if you are free, please send ID3V2-classes to me.
I think you mean 'excuse me', don't you ?
I have something kicking around, I'll try to find it later ( about to take my kid to the pool ). But I promise you that both those links work fine.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
at http://id3lib.sourceforge.net you may find what you
are looking for.
regards
and you are right: C++ rules, VB doesn't (although
I don't use VC++, but C++Builder)
|
|
|
|
|
NeverGrief wrote:
How to read ID3V2 info from mp3 fils.
Feel free to use MP3FileInfo.
Best Regards,
Christian Richardt
Those who know don't talk.
Those who talk don't know.
|
|
|
|
|