Satangelsx / mp4parser

Automatically exported from code.google.com/p/mp4parser
0 stars 0 forks source link

MovieCreator.build crashed when clip a large video #69

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.clip a large mp4 video
2.It crashed at  MovieCreator.build(randomAccessFile.getChannel());
3.

What is the expected output? What do you see instead?

the cliped file can not create.

What version of the product are you using? On what operating system?

use smooth-streaming-fragmenter-1.0-RC-26.jar

09-06 13:36:55.814: W/dalvikvm(11095): threadid=15: thread exiting with 
uncaught exception (group=0x40b73ac8)
09-06 13:36:55.824: E/AndroidRuntime(11095): FATAL EXCEPTION: Thread-2620
09-06 13:36:55.824: E/AndroidRuntime(11095): 
java.lang.IllegalArgumentException: offset=4080181248 size=1517
09-06 13:36:55.824: E/AndroidRuntime(11095):    at 
java.nio.MemoryBlock.mmap(MemoryBlock.java:102)
09-06 13:36:55.824: E/AndroidRuntime(11095):    at 
java.nio.FileChannelImpl.map(FileChannelImpl.java:244)
09-06 13:36:55.824: E/AndroidRuntime(11095):    at 
com.googlecode.mp4parser.AbstractBox.readContent(AbstractBox.java:71)
09-06 13:36:55.824: E/AndroidRuntime(11095):    at 
com.googlecode.mp4parser.AbstractBox.parseDetails(AbstractBox.java:185)
09-06 13:36:55.824: E/AndroidRuntime(11095):    at 
com.googlecode.mp4parser.AbstractBox.parse(AbstractBox.java:146)
09-06 13:36:55.824: E/AndroidRuntime(11095):    at 
com.coremedia.iso.AbstractBoxParser.parseBox(AbstractBoxParser.java:106)
09-06 13:36:55.824: E/AndroidRuntime(11095):    at 
com.googlecode.mp4parser.BasicContainer.next(BasicContainer.java:156)
09-06 13:36:55.824: E/AndroidRuntime(11095):    at 
com.googlecode.mp4parser.BasicContainer.hasNext(BasicContainer.java:132)
09-06 13:36:55.824: E/AndroidRuntime(11095):    at 
com.googlecode.mp4parser.util.LazyList$1.hasNext(LazyList.java:55)
09-06 13:36:55.824: E/AndroidRuntime(11095):    at 
com.googlecode.mp4parser.BasicContainer.getBoxes(BasicContainer.java:85)
09-06 13:36:55.824: E/AndroidRuntime(11095):    at 
com.googlecode.mp4parser.BasicContainer.getBoxes(BasicContainer.java:79)
09-06 13:36:55.824: E/AndroidRuntime(11095):    at 
com.googlecode.mp4parser.authoring.container.mp4.MovieCreator.build(MovieCreator
.java:47)
09-06 13:36:55.824: E/AndroidRuntime(11095):    at 
com.zte.videoplayer.TrimVideoUtils.startTrim(TrimVideoUtils.java:47)
09-06 13:36:55.824: E/AndroidRuntime(11095):    at 
com.zte.videoplayer.TrimVideo$3.run(TrimVideo.java:407)
09-06 13:36:55.824: E/AndroidRuntime(11095):    at 
java.lang.Thread.run(Thread.java:856)

Please provide any additional information below.

MovieCreator.build worked well when clip someother mp4 video.

Original issue reported on code.google.com by zhangyan...@gmail.com on 6 Sep 2013 at 9:10