OutOfMemoryError creating a Movie
See original GitHub issueHello,
I’m using mp4parser 1.1.2.1, and I’m having a problem creating a movie.
Movie movie = MovieCreator.build(new FileDataSourceImpl(video.getPath()));
this is the log:
java.lang.OutOfMemoryError: Failed to allocate a 271631603 byte allocation with 16777216 free bytes and 69MB until OOM at java.nio.ByteBuffer.allocate(ByteBuffer.java:56) at com.googlecode.mp4parser.AbstractBox.parse(AbstractBox.java:110) at com.coremedia.iso.AbstractBoxParser.parseBox(AbstractBoxParser.java:107) at com.googlecode.mp4parser.BasicContainer.next(BasicContainer.java:185) at com.googlecode.mp4parser.BasicContainer.hasNext(BasicContainer.java:161) at com.googlecode.mp4parser.util.LazyList.blowup(LazyList.java:30) at com.googlecode.mp4parser.util.LazyList.size(LazyList.java:77) at com.googlecode.mp4parser.BasicContainer.getBoxes(BasicContainer.java:80) at com.googlecode.mp4parser.authoring.samples.DefaultMp4SampleList.<init>(DefaultMp4SampleList.java:36) at com.coremedia.iso.boxes.mdat.SampleList.<init>(SampleList.java:33) at com.googlecode.mp4parser.authoring.Mp4TrackImpl.<init>(Mp4TrackImpl.java:64) at com.googlecode.mp4parser.authoring.container.mp4.MovieCreator.build(MovieCreator.java:57) at com.android.df.ContinuousCaptureActivity.trimVideo(ContinuousCaptureActivity.java:915) at com.android.df.ContinuousCaptureActivity.fileSaveComplete(ContinuousCaptureActivity.java:568) at com.android.df.ContinuousCaptureActivity.access$100(ContinuousCaptureActivity.java:97) at com.android.df.ContinuousCaptureActivity$MainHandler.handleMessage(ContinuousCaptureActivity.java:200) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5461) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
If you need more information I would appreciate It.
Thank you.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:7
- Comments:6
Same for me. version 1.1.21 the latest one. Had to went back to 1.1.7 this version does not throw that exception.
Same for version 1.9.27. Did you solved this @OrangeDynamic?