bravobit / FFmpeg-Android

FFMpeg/FFprobe compiled for Android
https://bravobit.nl/
MIT License
739 stars 175 forks source link

Would you mind to upload dynamic(.so) & static(.a) libraries also? #38

Open DastanIqbal opened 6 years ago

DastanIqbal commented 6 years ago

I asked because when I am executing binary with cmds. Its working fine till, I am not closing screen. but when I press poweroff button, then process stopped suddenly. I was thinking may be I load .so file & execute cmd from JNI, then may be it will work. or may be you can fix poweroff process kill issue.

Brianvdb commented 6 years ago

Does the ffmpeg command stop when pausing the app/activity? This should not happen.

In Android developer settings, did you enable Don't keep activities. Destroy activity as soon as the user leaves it?

DastanIqbal commented 6 years ago

Ya its working when phone is On, on Pause/Stop state. but when I turnoff screen, then its suddenly stopped .

Its disabled Don't keep activities. Destroy activity as soon as the user leaves it

Its happening on certain devices, Tested on these Asus T00J(4.4), Huawei P10 Plus (8.0)

Brianvdb commented 6 years ago

What if you run it in a foreground service?

DastanIqbal commented 6 years ago

Ya I have tried service, bind service, thread, Async task, RxJava thread too. In all these cases its same, Let me know if anyting else I can try,

DastanIqbal commented 6 years ago

only difference I found in other similar kind of app is they are using dynamic library & using JNI to call ffmpeg method,

and I tried to execute binary from JNI also, by generating .so file for calling & loading ffmpeg binary. but It didn't work.