ImMathanR / mp4parser

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

Segfault when combining 2 files on Android. #81

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
 - Combine 2 mp4 file where the total length will be over 30min

Using attached code when combing the below movie files a segfault error occurs:
A/libc﹕ Fatal signal 11 (SIGSEGV) at 0x54c3f8a0 (code=2), thread 14090 
(Compiler)

File 1 (15min) + File 2 (15min) = Segfault
File 1 (15min) + File 2 (14min 30sec) = Segfault
File 1 (15min) + File 2 (13min 30sec) = Works fine

All files used the same codecs & settings, recorded by android:
mp4 - H264/ACC - 640x480 15fps

Device: Samsung Galaxy S2

What is the expected output? What do you see instead?
The concatenation of the two files

What version of the product are you using? On what operating system?
Android 4.4.2  &  Android 4.0.2

Please provide any additional information below.
Android Studio Test project used to reproduce the error attached.

Original issue reported on code.google.com by joshhayw...@gmail.com on 22 Jan 2014 at 10:02

Attachments:

GoogleCodeExporter commented 8 years ago
Not sure how this evolved but it seems to me that this is somehow connected 
with a low memory situation. In the trunk I don't do memeropy mapping 
sample-wise anymore, I do it chunk-wise and this should lead to a much smaller 
amount of memory map operations. 
That might help

Original comment by Sebastian.Annies on 19 Jun 2014 at 3:43