I have downloaded video trimming code from github from this link.
It’s working perfectly for the first time, but when I try to run it for the second time the code cr
https://lists.ffmpeg.org/pipermail/libav-user/2012-May/001964.html
Calling native method twice of third party library in an Activity causes the Android application to close down
read about the issue with static vars in 'ffmpeg.c' ...
I would bet that u have the same problem and need to do something (3 alternate choices) to reset or GC those vars:
get the java classloader that loaded the lib and GC it
in the c-layer do what the OP did in above link
write a 2nd shared lib that uses 'dlsym' and 'dlclose' on the first library during each call cycle
github , see the 'README' here
same issue that u r having