Giter Club home page Giter Club logo

Comments (5)

Zazama avatar Zazama commented on July 21, 2024 1

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.

pbricout avatar pbricout commented on July 21, 2024

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.

Zazama avatar Zazama commented on July 21, 2024

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.

darrendavid avatar darrendavid commented on July 21, 2024

from node-id3.

adidahiya avatar adidahiya commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.