Mind Control Forums  

Go Back   Mind Control Forums > Public Categories > Hundred Miles Software > Hundred Miles Software: UltraID3Lib Support

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old March 12th, 2009, 05:16 PM
ares ares is offline
Registered User
 
Join Date: Mar 2009
Posts: 6
ID3v2 null reference

Hi every one!

during my tests iīve faced a problem. my problem is simple yet not easy to fix because i canīt figure out why it doesnīt work. let me explain...

few of my files doesnīt have ID3v2 so when i check them the Id3v2 is null... thatīs ok so far but if i want to add a coverart i need ID3v2 in order to store that cover in the file.. my problem comes that if i try to add an ID3v2 to the file i canīt! i tried to instantiate the null reference in order to create a new class and save it but no luck

what am trying is this:

id3.ID3v2Tag = new ID3v2Tag();

of course it fails as thereīs not constructor for that which i need in order to fill the id3.ID3v2Tag that equals to "Null" at this point. last but not least iīve noticed that the library doesnīt recognize the duration on some files and it returns "00:00:00" but it recognize the id3 tags without problems... is that probably a bug???(check out the attached pic)

can someone help me out with that?

UPDATE:
id3.ID3v23Tag doesnīt exist for me nor id3.WriteFlag
Attached Thumbnails
Click image for larger version

Name:	bug.jpg
Views:	106
Size:	99.9 KB
ID:	36  

Last edited by ares; March 12th, 2009 at 05:48 PM.
Reply With Quote
  #2  
Old March 12th, 2009, 09:06 PM
MitchHonnert's Avatar
MitchHonnert MitchHonnert is offline
Moderator
 
Join Date: Nov 2005
Location: Cincinnati
Posts: 642
Quote:
few of my files doesnīt have ID3v2 so when i check them the Id3v2 is null
There's definately something going on because when a file doesn't have an ID3 tag, the ID3v1Tag and ID3v2Tag classes should be empty, but instanciated. I just tried stripping off the ID3v2 tag of a file and this is the behavior I got. Maybe there's something unique about the files you're trying to read. Can you post them somewhere where I could download them?

- Mitchell S. Honnert
Reply With Quote
  #3  
Old March 13th, 2009, 02:08 AM
ares ares is offline
Registered User
 
Join Date: Mar 2009
Posts: 6
Quote:
Originally Posted by MitchHonnert View Post
There's definately something going on because when a file doesn't have an ID3 tag, the ID3v1Tag and ID3v2Tag classes should be empty, but instanciated. I just tried stripping off the ID3v2 tag of a file and this is the behavior I got. Maybe there's something unique about the files you're trying to read. Can you post them somewhere where I could download them?

- Mitchell S. Honnert
Iīll try to upload the file to zshare so you can download the file and check it... one thing i noticed is that Windows media player recognize that file and cover for some strange reasons.

as i sayd in my last post i noticed that some of the code iīve found for the library doesnīt work for me as its missed somehow... such as ID3v23Tag etc.. and also the Duration on some files are 00:00:00 which is very strange.

Hereīs the link of the file without ID3v2Tag:
http://www.zshare.net/audio/56964752cdeda7a7/

Hereīs the link of the file with 00:00:00 duration:
http://www.zshare.net/audio/56964817efff4e2f/

Thanks for your help and awesome library!
Reply With Quote
  #4  
Old April 12th, 2009, 09:58 AM
tusk tusk is offline
Registered User
 
Join Date: May 2007
Posts: 102
Mitch> For his 2nd problem, I highly believe it's connected to the Mpeg infos pb I was posting on (here).

I tested his mp3 with UltraID3lib -vs- the Mpeg lib I wrote and it's the same as in my mp3 tests. (Ulib has an error and cant calculate Bitrate + duration, therefore giving 00:00)


Hope this helps
Reply With Quote
  #5  
Old April 14th, 2009, 03:48 AM
tusk tusk is offline
Registered User
 
Join Date: May 2007
Posts: 102
Quote:
Hereīs the link of the file without ID3v2Tag:
http://www.zshare.net/audio/56964752cdeda7a7/
Ares > For this file, do you manage to have UltraId3 "Read" it ?? Because here it gives me an exception right away.


Mitch > Looking a little bit into this specific file, it looks like to me that there's an issue with the TIME frame. UltraId3 has an error "{Name = "ID3v2DurationHoursMinutesFrame" FullName = "HundredMilesSoftware.UltraID3Lib.ID3v2DurationHour sMinutesFrame"}"

I filled the TIME frame data with $00 and UltraId3 lib could then .Read it normally and gave good results.
Reply With Quote
  #6  
Old April 17th, 2009, 04:44 PM
ares ares is offline
Registered User
 
Join Date: Mar 2009
Posts: 6
Quote:
Originally Posted by tusk View Post
Ares > For this file, do you manage to have UltraId3 "Read" it ?? Because here it gives me an exception right away.


Mitch > Looking a little bit into this specific file, it looks like to me that there's an issue with the TIME frame. UltraId3 has an error "{Name = "ID3v2DurationHoursMinutesFrame" FullName = "HundredMilesSoftware.UltraID3Lib.ID3v2DurationHour sMinutesFrame"}"

I filled the TIME frame data with $00 and UltraId3 lib could then .Read it normally and gave good results.
i was able to handle the error but anyways i get 00:00 and no id3 at all.. it seems like it doesnīt work somehow.. sadly i havenīt found a fix for that. anyways here are few pics of the app am coding in C# so you get an idea what am doing
here is also a small video of the app in action:
http://www.youtube.com/watch?v=T0oXi...layer_embedded
Attached Thumbnails
Click image for larger version

Name:	1.jpg
Views:	67
Size:	98.6 KB
ID:	37   Click image for larger version

Name:	4.jpg
Views:	71
Size:	99.2 KB
ID:	39   Click image for larger version

Name:	6.jpg
Views:	71
Size:	98.3 KB
ID:	40   Click image for larger version

Name:	8.jpg
Views:	74
Size:	98.1 KB
ID:	41   Click image for larger version

Name:	17.jpg
Views:	66
Size:	96.8 KB
ID:	42  


Last edited by ares; April 17th, 2009 at 04:48 PM.
Reply With Quote
  #7  
Old April 17th, 2009, 04:53 PM
ares ares is offline
Registered User
 
Join Date: Mar 2009
Posts: 6
i couldnīt post one more pic in my last post... this one shows my app a bit better i guess...
Attached Thumbnails
Click image for larger version

Name:	6a39625c2e7c7ca221576d9418e23e6c.jpg
Views:	67
Size:	72.3 KB
ID:	43   Click image for larger version

Name:	16.jpg
Views:	62
Size:	96.7 KB
ID:	44  

Last edited by ares; April 17th, 2009 at 05:01 PM.
Reply With Quote
  #8  
Old December 23rd, 2009, 06:18 AM
haden haden is offline
Registered User
 
Join Date: Sep 2009
Posts: 3
solved???

Hi

Was the problem with duration ever solved? I'm facing the same problem, and it can't read the bitrate as well. all others are fine.

Regards
Kim
Reply With Quote
  #9  
Old January 5th, 2010, 08:44 PM
MitchHonnert's Avatar
MitchHonnert MitchHonnert is offline
Moderator
 
Join Date: Nov 2005
Location: Cincinnati
Posts: 642
I tried to download the files from ares too late and was not able to get them. Would you be able to upload them somewhere so I could use them to diagnose the problem?

- Mitchell S. Honnert
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On

Forum Jump


All times are GMT -5. The time now is 07:35 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
2003-2008 Rainlands