简体   繁体   中英

Android FFMPEG video compression issue in Samsung Galaxy S4 device

I am using this library to compress video in android. App gets crash when I try to compress video second time. It works fine on other android devices except Samsung Galaxy S4. It gives the following signal on crash.

Fatal signal 11 (SIGSEGV) at 0x7b820a94 (code=2), thread 960 (Thread-1277)

I searched a lot for this issue but couldn't find solution. Any help would be greatly appreciated.

Android ffmpeg wrappers have an issue where the second run will often cause a crash - ffmpeg was never really designed to be used this way and it looks like it is just a clean up issue at the end of each run.

There is a common trick to get around this which involved loading and unloading the library - a number of Android ffmpeg wrapper do this including:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM