sannies / mp4parser

A Java API to read, write and create MP4 files
Apache License 2.0
2.76k stars 568 forks source link

Add metadata while trimming file #242

Closed ValentineKh closed 7 years ago

ValentineKh commented 7 years ago

Hello. I need to add custom metaData to file during creation. I've used com/googlecode/mp4parser/ShortenExample.java and org/mp4parser/examples/metadata/MetaDataInsert.java. But this solution reopens the file several times and requires twice bigger space in the storage.

Could you please suggest me some ideas how to add metadata during file creation. Or how to add FreeBox to the file while trimming?

Thanks.

ValentineKh commented 7 years ago

I've figured out. In class DefaultMp4Builder I found this: /**