Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on android 5 (ffmpegkit version 6.0.LTS) #809

Closed
maf1ab0y opened this issue Aug 29, 2023 · 4 comments
Closed

Crash on android 5 (ffmpegkit version 6.0.LTS) #809

maf1ab0y opened this issue Aug 29, 2023 · 4 comments
Assignees
Labels
android Affect Android platform bug Something isn't working fixed-in-v6.0-1 library Affects the library v6.0

Comments

@maf1ab0y
Copy link

maf1ab0y commented Aug 29, 2023

When i upgraded ffmpeg-kit from 5.1.LTS to 6.0.LTS, ffmpeg-kit caused a crash when executing. It worked fine on android 5.0 before.

Command:
"-y -ss 0.0 -to 9.798 -i \"/storage/emulated/0/Movies/lts/lts_20230818_164826.mp4\" -filter_complex \"[0:v:0] scale=540:960,setsar=1/1[v0];[0:a:0]atempo=1.0,volume=1.0[a0]; [v0] [a0] concat=n=1:v=1:a=1[conv][cona]" -map "[conv]" -map "[cona]\" -c:v libx264 -force_key_frames 'expr:gte(t,n_forced*1)' -preset ultrafast -r 30 -shortest /storage/emulated/0/Movies/lts/lts_20230828_220513_edited.mp4"

Crash log:

java.lang.Error: FFmpegKit failed to start on brand: samsung, model: SM-J320G, device: j3xlte, api level: 22, abis: armeabi-v7a armeabi, 32bit abis: armeabi-v7a armeabi, 64bit abis: .
                                                                                                    	at com.arthenica.ffmpegkit.NativeLoader.loadLibrary(NativeLoader.java:50)
                                                                                                    	at com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKit(NativeLoader.java:189)
                                                                                                    	at com.arthenica.ffmpegkit.FFmpegKitConfig.<clinit>(FFmpegKitConfig.java:145)
                                                                                                    	at com.arthenica.ffmpegkit.FFmpegKit.executeAsync(FFmpegKit.java:207)

Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "ANativeWindow_release" referenced by "libavutil.so"...
                                                                                                    	at java.lang.Runtime.loadLibrary(Runtime.java:372)
                                                                                                    	at java.lang.System.loadLibrary(System.java:988)
                                                                                                    	at com.arthenica.ffmpegkit.NativeLoader.loadLibrary(NativeLoader.java:48)
                                                                                                    	at com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKit(NativeLoader.java:189) 
                                                                                                    	at com.arthenica.ffmpegkit.FFmpegKitConfig.<clinit>(FFmpegKitConfig.java:145) 
                                                                                                    	at com.arthenica.ffmpegkit.FFmpegKit.executeAsync(FFmpegKit.java:207) 
Screen Shot 2023-08-29 at 14 58 00
@tanersener
Copy link
Collaborator

Please provide the ffmpeg-kit package name, so it can be checked.

@tanersener tanersener added android Affect Android platform library Affects the library v6.0 needs-analysis We don't know that this is. It must be investigated further labels Aug 29, 2023
@maf1ab0y
Copy link
Author

maf1ab0y commented Aug 29, 2023

Here is the ffmpeg-kit package: 'com.arthenica:ffmpeg-kit-full-gpl:6.0.LTS`

@tanersener
Copy link
Collaborator

Thanks. I saw the problem. I'll ask developers to patch the release.

@tanersener tanersener added bug Something isn't working and removed needs-analysis We don't know that this is. It must be investigated further labels Sep 1, 2023
@tanersener
Copy link
Collaborator

This issue is fixed on version 6.0-1 for Android, on 6.0.1 for Flutter and on 6.0.1 for React Native.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Affect Android platform bug Something isn't working fixed-in-v6.0-1 library Affects the library v6.0
Projects
No open projects
Development

No branches or pull requests

3 participants