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

Exception when executing FFmpegKit.execute() #357

Closed
BigDaddyKahuna opened this issue Feb 23, 2022 · 6 comments
Closed

Exception when executing FFmpegKit.execute() #357

BigDaddyKahuna opened this issue Feb 23, 2022 · 6 comments

Comments

@BigDaddyKahuna
Copy link

Description
Receive a class not found exception when executing FFmpegKit.execute("ffmpeg -version")

Expected behavior
For the command to complete.

Current behavior
2022-02-23 14:54:27.865 12828-12828/com.atakmap.app.civ E/ACRA: ACRA caught a NoClassDefFoundError for com.atakmap.app.civ
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/arthenica/smartexception/java/Exceptions;
at com.arthenica.ffmpegkit.FFmpegKitConfig.(FFmpegKitConfig.java:134)
at com.arthenica.ffmpegkit.FFmpegKitConfig.parseArguments(FFmpegKitConfig.java:1299)
at com.arthenica.ffmpegkit.FFmpegKit.execute(FFmpegKit.java:167)

To Reproduce
Executing this:
FFmpegSession session = FFmpegKit.execute("ffmpeg");

Screenshots
If applicable, add screenshots to help explain your problem.

Logs
Post logs here or paste them to Ghostbin and insert the link here.

Environment

  • Platform: Android

  • Architecture: ARM

  • Version: 11

  • Source branch: main, development

  • Xcode version: ???

  • Cocoapods version: ???

  • Android Studio version: Android Studio Bumblebee | 2021.1.1 Patch 1 Build #AI-211.7628.21.2111.8139111, built on February 1, 2022 Runtime version: 11.0.11+9-b60-7590822 amd64 VM: OpenJDK 64-Bit Server VM by Oracle Corporation Windows 10 10.0 GC: G1 Young Generation, G1 Old Generation Memory: 1280M Cores: 8 Registry: external.system.auto.import.disabled=true Non-Bundled Plugins: org.jetbrains.kotlin (211-1.6.10-release-923-AS7442.40)

  • Android NDK version: 23.1.7779620

  • flutter doctor:

  • react-native info:

Other
This occurs on a Samsung Galaxy Tab A7 Lite tablet runing ATAK.

@BigDaddyKahuna
Copy link
Author

Added the dependency for the exception:

implementation 'com.arthenica:smart-exception-java:0.1.1'

and now getting:

2022-02-23 16:52:45.355 28246-28246/com.atakmap.app.civ E/ACRA: ACRA caught a Error for com.atakmap.app.civ
java.lang.Error: FFmpegKit failed to start on brand: samsung, model: SM-T220, device: gta7litewifi, 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:50)
at com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKitAbiDetect(NativeLoader.java:130)
at com.arthenica.ffmpegkit.AbiDetect.(AbiDetect.java:30)
at com.arthenica.ffmpegkit.AbiDetect.getNativeAbi(Native Method)
at com.arthenica.ffmpegkit.NativeLoader.loadNativeAbi(NativeLoader.java:65)
at com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKit(NativeLoader.java:173)
at com.arthenica.ffmpegkit.FFmpegKitConfig.(FFmpegKitConfig.java:145)
at com.arthenica.ffmpegkit.FFmpegKitConfig.parseArguments(FFmpegKitConfig.java:1299)
at com.arthenica.ffmpegkit.FFmpegKit.execute(FFmpegKit.java:167)

@BigDaddyKahuna
Copy link
Author

This issue is still outstanding.

@tanersener
Copy link
Collaborator

See #215

@julianD77
Copy link

@github-actions
Copy link

github-actions bot commented May 3, 2022

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.

@phcbest
Copy link

phcbest commented Jul 25, 2023

这是相关的:https ://github.com/tanersener/ffmpeg-kit/wiki/Smart-Exception-Dependency

Thank you, I have been reporting errors after compiling locally, and I finally found a solution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants