Comments (5)
Yes, this is not working and is out of scope for this library atm.
You will have to use an AIF parser and replace the ID3 tag or replace the buffer and chunk size manually.
Something like this: https://gist.github.com/Zazama/9e83dee3ca074f3ff907d8d034b77efb (be careful with that code, there are no validity checks)
from node-id3.
This library is not designed to work with AIFF file format directly.
ID3 Tag is primarily designed to be transparent for MPEG streamed audio file format.
AIFF case is special. AIFF file format, it is a different file format and based on chunks.
An ID3 library can read from AIFF because it can find the ID3 block anywhere in the file.
However in the case of the AIFF file format, updating/writing/rewriting is not possible directly with this library as any change will move the ID3 block to beginning, this breaks the AIFF file format.
The correct way to do it is to use an AIFF library, to read the AIFF ID3 chunk to process with this library and to give it back to the AIFF library to rewrite/update the ID3 chunk.
See
https://exiftool.org/TagNames/AIFF.html
and
https://exiftool.org/TagNames/ID3.html
See also:
https://en.wikipedia.org/wiki/Audio_Interchange_File_Format
https://www.mmsp.ece.mcgill.ca/Documents/AudioFormats/AIFF/AIFF.html
On some forums, some people suggest to convert the AIFF files to MP3 files, maybe this is an alternative solution for you.
from node-id3.
Feel free to write if you have questions, I'm just closing because this is something that this library is not handling
from node-id3.
from node-id3.
Heads up to others who attempted to use this library to write tags to AIFF files like myself and may have corrupted some of their media files. I found that node-taglib-sharp works perfectly fine for AIFF files 👍
from node-id3.
Related Issues (20)
- ImageBuffer returns undefined after editing other tags HOT 2
- Explain in docs that `write` doesn't create new file =) HOT 4
- "releaseTime" tag not read from AIFF file HOT 6
- Duration not supported HOT 1
- Add constants for obscure tag values HOT 7
- update function does not take v4 tags into account
- Changes and fixes for new API release
- Incorrect timestamps on Syncronized lyrics HOT 16
- Setting synchronisedLyrics to undefined throws an error HOT 4
- [BuG] MP3 File is corrupted HOT 8
- Not reading id3v1 HOT 1
- Support for audio formats other than mp3 HOT 4
- Support large files HOT 2
- Issues with metadata being read by certain players HOT 2
- Basic adding tags not working HOT 5
- iTunes/Apple Music GRP1 grouping tag is not supported
- Possible song corruption when editing metadata while playing the song. HOT 5
- Using CTOC Entry Count byte causes issue with large number of entries HOT 8
- Support Different Text Encodings
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-id3.