Skip to content

Conversation

@ion-dev
Copy link
Contributor

@ion-dev ion-dev commented Nov 8, 2024

After updating M4A/MP4 tags, parsers can no longer read the tags (file systems, ID3 tag readers etc).

I discovered the issue related to incorrect udtaHeader.totalBoxSize.

This pull request fixes the issue by saving the current totalBoxSizebefore earlier on the sequence.

@ion-dev ion-dev mentioned this pull request Nov 8, 2024
@subframe7536
Copy link
Contributor

subframe7536 commented Nov 8, 2024

Seems that this PR also fix #103

I merge it in my fork

@benrr101 benrr101 merged commit 6afd3d6 into benrr101:develop Nov 13, 2024
1 check passed
@benrr101
Copy link
Owner

Thank you for looking into this @ion-dev. I'm really sorry I haven't done much with this project in a while.

@ion-dev
Copy link
Contributor Author

ion-dev commented Nov 13, 2024

@benrr101 no worries! We're really grateful for the work you've done. I'm glad I was able to help.

Will you be doing do an NPM release with the fix?

@benrr101
Copy link
Owner

@ion-dev I was hoping someone would ask so I could give an update. I meant to do a release back in March but got stuck - the updates to how VBR headers are processed caused integration test failures. Basically stuff where bitrates are off by one or the duration is off by tens of milliseconds. I'm not happy with how those headers are being used, so I'm going to put some serious effort into understanding and fixing it. Then I'll have a release out.

@ion-dev
Copy link
Contributor Author

ion-dev commented Nov 14, 2024

@ion-dev I was hoping someone would ask so I could give an update. I meant to do a release back in March but got stuck - the updates to how VBR headers are processed caused integration test failures. Basically stuff where bitrates are off by one or the duration is off by tens of milliseconds. I'm not happy with how those headers are being used, so I'm going to put some serious effort into understanding and fixing it. Then I'll have a release out.

Sounds good, if you need any help I'm happy to have a go! Otherwise, what's your ETA for getting the release out?

@ion-dev ion-dev deleted the patch-1 branch November 14, 2024 12:19
@benrr101
Copy link
Owner

@ion-dev my hope is to have it out by the end of the week, but ... no guarantees. The good news is I've restructured the vbr header stuff enough that all the Xing headers (LAME, et al) are working correctly, and I have a full test suite for them now. Tonight I'm trying to hunt down an encoder for Fraunhofer VBR files so I can have a sample with a VBRI header. All in all, this is probably low stakes since probably like 90% of MP3s out there these days are encoded with LAME, but if I can properly test something, I want to.

@benrr101
Copy link
Owner

@ion-dev New release is out https://www.npmjs.com/package/node-taglib-sharp/v/6.0.0 🚢
There are a handful of breaking changes if you are messing with MP3 audio headers, and I will cover those in the release notes when I write them first thing tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants