gpac / mp4box.js

JavaScript version of GPAC's MP4Box tool
https://gpac.github.io/mp4box.js/
BSD 3-Clause "New" or "Revised" License
1.94k stars 328 forks source link

Reading custom metadata #231

Open robd opened 3 years ago

robd commented 3 years ago

I'm trying to read custom metadata which I'm writing into my mp4 using ffmpeg using the following command line arg:

-metadata custom_metadata="My Data"

I've been looking over the tools and have looked through the ISOFile obj created by MP4Box.createFile() and have seen the code for extracting the handler name, which I guess is similar maybe? But I've not been able to work out how to access any other metadata.

Would be helpful to be able get this at global level for the mp4 and the stream level for the video stream.

Any help much appreciated!

cconcolato commented 3 years ago

If you share an example file, I could see if/how to expose it.