sannies / mp4parser

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

Optimize DefaultMp4Builder.build() #349

Closed takke closed 5 years ago

takke commented 5 years ago

When I cut the long movie using CroppedTrack, it takes so long time to build.

So I put the sample duration to the map and recycled to use it.

On my Android device it has been speeded up from (over)100s to 10 ms.