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)
- Clarification: Is it necessary to load the system library for FFMpeg kit?
- i am using ffmpeg_kit_video and adding text on video or image it working properly on my 2 or 3 android phones. but it gives issue in my client s24 device . please help me
- Is it possible to receive and show UDP live stream using FFPlay in Swiftui? HOT 1
- Null pointer dereference while using 'drawtext' filter (only in debug mode) HOT 1
- Can't run in macos with ffmpeg kit HOT 1
- How do i convert .flac file to .mp3 using ffmpeg-kit?
- 【Question】Can I set multiple font directory paths on iOS?
- libvpx Android build fails with latest NDK LTS version 26.2.11394342 HOT 1
- Support visionOS HOT 1
- Question/Request: More clarity on how to create a video that other apps can see (Android) HOT 1
- Problem with -shortest
- FFmpegKit failed to start on brand samsung: libffmpegkit_abidetect.so not found
- Xcode 15 build failed: enumerator value evaluates to -16, which cannot be narrowed to type 'NSUInteger' (aka 'unsigned long')
- React-native readme update for android HOT 2
- Can not build framework for ffmpeg for MacOS on Mac M2 HOT 1
- FFmpegKitFlutterPlugin 0x3014bb180 created. flutter: no initial uri flutter: false flutter: 47.0
- Fontconfig error: No writable cache directories HOT 1
- FFMpegKit is EXTREMELY slow HOT 2
- Image overlay over video as watermark HOT 1
- version contain "LTS", this is not allowed in Xcode 15. We can't use this library anymore HOT 1
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.