Author Topic: AAC tags  (Read 3057 times)

3delite

  • Posts: 907
AAC tags
« on: 19 Oct '12 - 14:03 »
Hi!

Just a simple question.
What tagging format(s) does AAC files support?



Ian @ un4seen

  • Administrator
  • Posts: 20433
Re: AAC tags
« Reply #1 on: 19 Oct '12 - 14:10 »
Plain AAC (not in an MP4 container) files don't have a particular tag system, but BASS supports ID3 and APE tags in them (and all other files too).

3delite

  • Posts: 907
Re: AAC tags
« Reply #2 on: 19 Oct '12 - 14:39 »
Yes, I am curious about plain AAC files.
Ok. Thanx! I'll do some tests, especially what other software supports.
Tried Foobar2000, when I click on save it says not supported format. In dbPowerAmp after I edit some fields and click ok/save it just closes and when I open the file again, no tags.
Does BASS supports ID3 means ID3v2 too? ::)
I am always suggesting ID3v2 because I think it is the most developed tagging system.
« Last Edit: 19 Oct '12 - 14:42 by 3delite »

Ian @ un4seen

  • Administrator
  • Posts: 20433
Re: AAC tags
« Reply #3 on: 19 Oct '12 - 16:18 »
Yes, BASS supports both BASS_TAG_ID3 and BASS_TAG_ID3V2 tags (as well as BASS_TAG_APE and BASS_TAG_APE_BINARY) with all file formats.

3delite

  • Posts: 907
Re: AAC tags
« Reply #4 on: 20 Oct '12 - 13:34 »
Ok. Thank you!

But then there's a bug in the AAC add-on. Accidentally I tagged an MP4 file with ID3v2 a couple of days ago and BASS could not open it. Didn't investigate it just remember that it could not be played and it showed up as 0 playtime on my list.

Ian @ un4seen

  • Administrator
  • Posts: 20433
Re: AAC tags
« Reply #5 on: 22 Oct '12 - 13:40 »
Please upload that MP4 file to have a look at here:

   ftp.un4seen.com/incoming/

3delite

  • Posts: 907
Re: AAC tags
« Reply #6 on: 24 Oct '12 - 13:49 »
Uploaded file 'Tagged with ID3v2.mp4'.
Tried now once again and it seems BASS is processing the file for some seconds but without success.
Please inform me if the problem is with the ID3v2 tag, it is created by my ID3v2 Library.

Ian @ un4seen

  • Administrator
  • Posts: 20433
Re: AAC tags
« Reply #7 on: 24 Oct '12 - 14:56 »
I see what's going wrong. Tagging software will often add some padding (bunch of 0s) after ID3v2 tags to leave room for more tags to be inserted, so BASS will skip any 0s that it finds after the ID3v2 tags to get to the audio data. The problem in this case is that MP4 files start with 3x 0s and they're getting skipped too, which means that the MP4 file structure is no longer valid. I don't think this is a big concern though, as MP4 has its own tagging system and ID3v2 tags don't belong there :)

3delite

  • Posts: 907
Re: AAC tags
« Reply #8 on: 29 Oct '12 - 09:54 »
It's ok.

But if you wish I can give you a little help to seek to exactly at the ID3v2's end.
It's tad simple.
Basically if you find and 'ID3' at the start of the file jump 3 bytes, then read 4 bytes 'size' and unsync it and skip that many bytes. And you are at the start of the real audio file.
I thought BASS already does this BTW. ::)

Ian @ un4seen

  • Administrator
  • Posts: 20433
Re: AAC tags
« Reply #9 on: 29 Oct '12 - 12:59 »
Yes, BASS does use the size information from the ID3v2 tag header, but some software adds padding outside of the ID3v2 tag, ie. the ID3v2 header's size information doesn't include the padding. So BASS also looks for padding after the ID3 tag.

3delite

  • Posts: 907
Re: AAC tags
« Reply #10 on: 30 Oct '12 - 13:08 »
Ah, I see. Cool then.

Ok. thank you!