titansgroup / k4l-video-trimmer

A library with UI and mechanisms to trim local videos on Android applications.
MIT License
782 stars 221 forks source link

While i set 120 as setMaxDuration it cuases this error but while i setMaxDuration 20 it works....is there any time limit for MaxDuration? #32

Open aNnYvIrUs opened 7 years ago

aNnYvIrUs commented 7 years ago

FATAL EXCEPTION: pool-8-thread-1 Process: com.peoplescience, PID: 10208 java.lang.OutOfMemoryError at java.nio.ByteBuffer.allocate(ByteBuffer.java:56) at life.knowledge4.videotrimmer.utils.FileDataSourceViaHeapImpl.map(FileDataSourceViaHeapImpl.java:70) at com.googlecode.mp4parser.BasicContainer.getByteBuffer(BasicContainer.java:223) at com.googlecode.mp4parser.authoring.samples.DefaultMp4SampleList.get(DefaultMp4SampleList.java:181) at com.googlecode.mp4parser.authoring.samples.DefaultMp4SampleList.get(DefaultMp4SampleList.java:1) at com.coremedia.iso.boxes.mdat.SampleList.get(SampleList.java:41) at com.coremedia.iso.boxes.mdat.SampleList.get(SampleList.java:1) at java.util.AbstractList$SimpleListIterator.next(AbstractList.java:55) at java.util.AbstractList$SubAbstractList$SubAbstractListIterator.next(AbstractList.java:201) at java.util.AbstractCollection.toArrayList(AbstractCollection.java:349) at java.util.AbstractCollection.toArray(AbstractCollection.java:339) at java.util.ArrayList.addAll(ArrayList.java:188) at com.googlecode.mp4parser.authoring.tracks.AppendTrack.getSamples(AppendTrack.java:372) at com.googlecode.mp4parser.authoring.builder.DefaultMp4Builder.build(DefaultMp4Builder.java:96) at life.knowledge4.videotrimmer.utils.TrimVideoUtils.genVideoUsingMp4Parser(TrimVideoUtils.java:131) at life.knowledge4.videotrimmer.utils.TrimVideoUtils.startTrim(TrimVideoUtils.java:64) at life.knowledge4.videotrimmer.K4LVideoTrimmer$11.execute(K4LVideoTrimmer.java:293) at life.knowledge4.videotrimmer.utils.BackgroundExecutor$Task.run(BackgroundExecutor.java:212) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841)