Write AAC Metadata
NodeJS module that will allow you to write aac (m4a, m4b) metadata using ffmpeg
Installation
npm install write-aac-metadata --saveyarn add write-aac-metadata
Usage
const writeMetadata = async { await }
If you want to modify a file in place don't pass anything to the 3rd parameter. Ffmpeg doesn't allow this directly so to simulate it a new file is created with the input file's name and a guid on the end. After the metadata has been added and the new file is finished the original file is deleted and the new file is renamed to be the same name as the original file. This package also copies the creation date of the original file to the new file
Metadata
Set whatever metadata you want updated. Any fields that are left as undefined will not be changed and the current value of the metadata will be copied to the output file
Options
These are the options you can pass as the 4th parameter