Comments (8)
There should be a longer stack trace in logcat. Have you looked at it?
from ffmpeg-kit.
I Am also facing this issue, the crash occurs suddenly, below are the complete logs
LOGCAT:
2021-05-17 11:20:49.095 29656-29656/com.devdhiv.starherowe I/ffmpeg-kit: Loading ffmpeg-kit.
2021-05-17 11:20:49.098 29656-29656/com.devdhiv.starherowe E/System: java.io.FileNotFoundException: /data/app/4NtlWDNmJ9ibAw7vmqtDJQ==/com.devdhiv.starherowe-Fc6sBda5a3BVJ9p3kTYjEA==/base.apk (No such file or directory)-lfYrP4wRgNDBhSD58L6qw==/com.devdhiv.starherowe-Y9aBoG6pNpqJbA31v9mRKA==/lib/arm64/libffmpegkit.so in namespace classloader-namespace
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:265)
at java.util.zip.ZipFile.(ZipFile.java:187)
at java.util.jar.JarFile.(JarFile.java:169)
at java.util.jar.JarFile.(JarFile.java:106)
at libcore.io.ClassPathURLStreamHandler.(ClassPathURLStreamHandler.java:46)
at dalvik.system.DexPathList$NativeLibraryElement.maybeInit(DexPathList.java:859)
at dalvik.system.DexPathList$NativeLibraryElement.findNativeLibrary(DexPathList.java:880)
at dalvik.system.DexPathList.findLibrary(DexPathList.java:595)
at dalvik.system.BaseDexClassLoader.findLibrary(BaseDexClassLoader.java:281)
at java.lang.Runtime.loadLibrary0(Runtime.java:1061)
at java.lang.Runtime.loadLibrary0(Runtime.java:1008)
at java.lang.System.loadLibrary(System.java:1664)
at com.arthenica.ffmpegkit.NativeLoader.loadLibrary(NativeLoader.java:45)
at com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKitAbiDetect(NativeLoader.java:127)
at com.arthenica.ffmpegkit.AbiDetect.(AbiDetect.java:30)
at com.arthenica.ffmpegkit.AbiDetect.getNativeAbi(Native Method)
at com.arthenica.ffmpegkit.NativeLoader.loadNativeAbi(NativeLoader.java:62)
at com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKit(NativeLoader.java:167)
at com.arthenica.ffmpegkit.FFmpegKitConfig.(FFmpegKitConfig.java:100)
at com.arthenica.ffmpegkit.FFmpegKitConfig.getLogRedirectionStrategy(FFmpegKitConfig.java:1094)
at com.arthenica.ffmpegkit.FFmpegSession.(FFmpegSession.java:76)
at com.arthenica.ffmpegkit.FFmpegKit.executeAsync(FFmpegKit.java:95)
at com.arthenica.ffmpegkit.FFmpegKit.executeAsync(FFmpegKit.java:183)
at com.devdhiv.starherowe.helpers.ExecuteFfmpegCommand$Companion.execute(ExecuteFfmpegCommand.kt:35)
at com.devdhiv.starherowe.activities.EditVideoActivity.startProcessing(EditVideoActivity.kt:1127)
at com.devdhiv.starherowe.activities.EditVideoActivity.access$startProcessing(EditVideoActivity.kt:64)
at com.devdhiv.starherowe.activities.EditVideoActivity$saveOverlayImage$2.onSuccess(EditVideoActivity.kt:886)
at com.devdhiv.starherowe.helpers.photoeditor.PhotoEditor$8$1.onPostExecute(PhotoEditor.java:893)
at com.devdhiv.starherowe.helpers.photoeditor.PhotoEditor$8$1.onPostExecute(PhotoEditor.java:853)
at android.os.AsyncTask.finish(AsyncTask.java:771)
at android.os.AsyncTask.access$900(AsyncTask.java:199)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:788)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:254)
at android.app.ActivityThread.main(ActivityThread.java:8199)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)
2021-05-17 11:20:49.104 29656-29656/com.devdhiv.starherowe E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.devdhiv.starherowe, PID: 29656
java.lang.Error: FFmpegKit failed to start on brand: OPPO, model: CPH2119, device: OP4C51L1, api level: 30, abis: arm64-v8a armeabi-v7a armeabi, 32bit abis: armeabi-v7a armeabi, 64bit abis: arm64-v8a.
at com.arthenica.ffmpegkit.NativeLoader.loadLibrary(NativeLoader.java:47)
at com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKit(NativeLoader.java:183)
at com.arthenica.ffmpegkit.FFmpegKitConfig.(FFmpegKitConfig.java:100)
at com.arthenica.ffmpegkit.FFmpegKitConfig.getLogRedirectionStrategy(FFmpegKitConfig.java:1094)
at com.arthenica.ffmpegkit.FFmpegSession.(FFmpegSession.java:76)
at com.arthenica.ffmpegkit.FFmpegKit.executeAsync(FFmpegKit.java:95)
at com.arthenica.ffmpegkit.FFmpegKit.executeAsync(FFmpegKit.java:183)
at com.devdhiv.starherowe.helpers.ExecuteFfmpegCommand$Companion.execute(ExecuteFfmpegCommand.kt:35)
at com.devdhiv.starherowe.activities.EditVideoActivity.startProcessing(EditVideoActivity.kt:1127)
at com.devdhiv.starherowe.activities.EditVideoActivity.access$startProcessing(EditVideoActivity.kt:64)
at com.devdhiv.starherowe.activities.EditVideoActivity$saveOverlayImage$2.onSuccess(EditVideoActivity.kt:886)
at com.devdhiv.starherowe.helpers.photoeditor.PhotoEditor$8$1.onPostExecute(PhotoEditor.java:893)
at com.devdhiv.starherowe.helpers.photoeditor.PhotoEditor$8$1.onPostExecute(PhotoEditor.java:853)
at android.os.AsyncTask.finish(AsyncTask.java:771)
at android.os.AsyncTask.access$900(AsyncTask.java:199)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:788)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:254)
at android.app.ActivityThread.main(ActivityThread.java:8199)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)
Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: library "libavfilter.so" not found: needed by /data/app/
at java.lang.Runtime.loadLibrary0(Runtime.java:1087)
at java.lang.Runtime.loadLibrary0(Runtime.java:1008)
at java.lang.System.loadLibrary(System.java:1664)
at com.arthenica.ffmpegkit.NativeLoader.loadLibrary(NativeLoader.java:45)
at com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKit(NativeLoader.java:183)
at com.arthenica.ffmpegkit.FFmpegKitConfig.(FFmpegKitConfig.java:100)
at com.arthenica.ffmpegkit.FFmpegKitConfig.getLogRedirectionStrategy(FFmpegKitConfig.java:1094)
at com.arthenica.ffmpegkit.FFmpegSession.(FFmpegSession.java:76)
at com.arthenica.ffmpegkit.FFmpegKit.executeAsync(FFmpegKit.java:95)
at com.arthenica.ffmpegkit.FFmpegKit.executeAsync(FFmpegKit.java:183)
at com.devdhiv.starherowe.helpers.ExecuteFfmpegCommand$Companion.execute(ExecuteFfmpegCommand.kt:35)
at com.devdhiv.starherowe.activities.EditVideoActivity.startProcessing(EditVideoActivity.kt:1127)
at com.devdhiv.starherowe.activities.EditVideoActivity.access$startProcessing(EditVideoActivity.kt:64)
at com.devdhiv.starherowe.activities.EditVideoActivity$saveOverlayImage$2.onSuccess(EditVideoActivity.kt:886)
at com.devdhiv.starherowe.helpers.photoeditor.PhotoEditor$8$1.onPostExecute(PhotoEditor.java:893)
at com.devdhiv.starherowe.helpers.photoeditor.PhotoEditor$8$1.onPostExecute(PhotoEditor.java:853)
at android.os.AsyncTask.finish(AsyncTask.java:771)
at android.os.AsyncTask.access$900(AsyncTask.java:199)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:788)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:254)
at android.app.ActivityThread.main(ActivityThread.java:8199)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)
2021-05-17 11:20:51.688 1087-17089/? I/FFmpegExtractor: [SniffFFMPEGCommon:L2801]found stream 0 id 0x15002 codec aac
2021-05-17 11:20:51.689 1087-17089/? I/FFmpegExtractor: [SniffFFMPEGCommon:L2801]found stream 1 id 0x1b codec h264
2021-05-17 11:20:51.689 1087-17089/? I/FFmpegExtractor: [mp4]video codec(h264), confidence should be larger than MPEG4Extractor
2021-05-17 11:20:51.689 1087-17089/? D/FFmpegExtractor: [SniffFFMPEG:L2922] ffmpeg detected media content as 'video/mp4' with confidence 0.43
2021-05-17 11:20:51.689 1087-17089/? I/FFmpegExtractor: [Sniff:L2963] confidence:0.430000
2021-05-17 11:20:51.706 1087-17089/? D/OplusMPEG4Extractor: [BetterSniffMPEG4:L7303] 1 A:1 V:1
from ffmpeg-kit.
There should be a longer stack trace in logcat. Have you looked at it?
I found one more important line of error recently
Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: library "libavfilter.so" not found
but as i mentioned before App not crashes every time
..
from ffmpeg-kit.
Then, I suggest using APK Analyser to check if libavfilter.so
is packaged inside your apk file.
from ffmpeg-kit.
It's right there as you can see...
from ffmpeg-kit.
java.lang.Error: FFmpegKit failed to start on brand: OnePlus, model: AC2001, device: Nord, api level: 30, abis: arm64-v8a armeabi-v7a armeabi, 32bit abis: armeabi-v7a armeabi, 64bit abis: arm64-v8a
Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: library "libavfilter.so" not found
We need to look at the stack trace then. These messages above are not stack traces. They are just the error messages. They don't show the method calls made.
from ffmpeg-kit.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from ffmpeg-kit.
I am also having the same crash issue, but don't know how to solve it
I analysed my apk it contains libffmpegkit_abidetect.so in all the abi filters
And this crash is encountered on firebase not in test devices
These are some error traces on firebase :
com.arthenica.ffmpegkit.NativeLoader.a (NativeLoader.java:6)
com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKitAbiDetect (NativeLoader.java:1)
com.arthenica.ffmpegkit.AbiDetect. (AbiDetect.java:1)
com.arthenica.ffmpegkit.AbiDetect.getNativeAbi (AbiDetect.java)
com.arthenica.ffmpegkit.NativeLoader.c (NativeLoader.java:6)
com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKit (NativeLoader.java:1)
com.arthenica.ffmpegkit.FFmpegKitConfig. (FFmpegKitConfig.java:1)
com.arthenica.ffmpegkit.FFmpegKitConfig.getLogRedirectionStrategy (FFmpegKitConfig.java:1)
com.arthenica.ffmpegkit.FFmpegSession. (FFmpegSession.java:1)
com.arthenica.ffmpegkit.FFmpegKit.executeAsync (FFmpegKit.java:1)
from ffmpeg-kit.
Related Issues (20)
- In flutter library provide a properties getters and setters in dart syntax, as a property, instead of methods get*() and set*() HOT 1
- Multiple commands produce ~'/Frameworks/ffmpegkit.framework' HOT 1
- File conversion to mp3 returning failure everytime. HOT 2
- Can't remove console.logs in index.js HOT 1
- Request support for vulkan and libplacebo HOT 1
- React-Native/Expo | Cannot use libx265 HOT 4
- [EXPO] How to use --speed flag? HOT 1
- No such filter: 'transpose=2' HOT 4
- [Android] - [Question] Create video from in memory images? HOT 1
- get some error while merging audio with image HOT 1
- Add clearCompletedSessions please:
- MissingPluginException(No implementation found for method getLogLevel on channel flutter.arthenica.com/ffmpeg_kit) package:flutter/src/services/platform_channel.dart 332:7 MethodChannel._invokeMethod HOT 9
- Is there any way to pause and resume the conversion process? HOT 4
- configureCodec returning error -61
- Android No match for targetSdk 34
- Can not set libx264 encoder Settings will report error other encoders no problem HOT 1
- Feature Request: Support --speed flag in ffmpeg_kit_flutter
- Draw Text HOT 1
- Android | Thumbnail generation for HLS video stream
- Apple | Not able to build project
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ffmpeg-kit.