-
Notifications
You must be signed in to change notification settings - Fork 751
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
My k8s server architecture is aarch64. Aarch64 GNU / Linux. The Java project relies on javacv platform package version 1.5.3. An exception is thrown at runtime: could not initialize class org.bytedeco.javacv.ffmpegframegrabber. Can you help solve it? Thank you very much! #1081
Comments
Please upgrade to JavaCV 1.5.6 to get binaries for linux-arm64. |
I only relied on the javacv platform 1.5.3 package before. At present, I have tried many kinds of packages, but they can't solve the above error. Can I talk about Maven dependency specifically? Thank you very much |
It should also work with 1.5.3, but please upgrade to 1.5.6. Let me know if you are still having issues with 1.5.6 though. |
An error is reported after upgrading to 1.5.6, java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.ffmpeg.global.avutil |
Ok, could you set the "org.bytedeco.javacpp.logger.debug" system property to "true" and let me know what you get on the console with that? |
java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.ffmpeg.global.avutil |
-Dorg.bytedeco.javacpp.logger.debug=true |
It looks like your logger isn't allowing you to see anything from the stderr. You can also use SLF4J by setting "org.bytedeco.javacpp.logger" to "slf4j" and making sure that your logger is set to its debug level. |
|
@JoyJeck it looks like an ABI mismatch: What OS are you trying to run on? |
`2021-09-07 13:06:55.950 [TID: b9d16bf8e0754e759960d1adf66e2e80.75.16309912122370003] DEBUG [DubboServerHandler-###:28000-thread-38][Slf4jLogger.java:48] - Loading class org.bytedeco.javacpp.Loader 2021-09-07 13:06:56.150 [TID: b9d16bf8e0754e759960d1adf66e2e80.75.16309912122370003] DEBUG [DubboServerHandler-###:28000-thread-38][Slf4jLogger.java:48] - Failed to load /root/.javacpp/cache/ffmpeg-4.4-1.5.6-linux-arm64.jar/org/bytedeco/ffmpeg/linux-arm64/libjniavutil.so: java.lang.UnsatisfiedLinkError: /root/.javacpp/cache/ffmpeg-4.4-1.5.6-linux-arm64.jar/org/bytedeco/ffmpeg/linux-arm64/libjniavutil.so: /lib64/libstdc++.so.6: version |
amzn2.aarch64 #1 SMP Tue Jan 19 20:10:58 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux,thank you |
That just means your version of Linux is too old, please upgrade! |
Hello, I now use the command line solution to solve this problem, but I encounter another problem. How can I solve it? Thank you java.io.IOException: Cannot run program "ffmpeg -i {iname url} -y -f image2 -q:v 1 -ss 1 -s 460x750 -vframes 1 /Users/zhanglianghua/pic/d.jpg": error=2, No such file or directory |
It has been solved. Thank you very much |
My k8s server architecture is aarch64. Aarch64 GNU / Linux. The Java project relies on javacv platform package version 1.5.3. An exception is thrown at runtime: could not initialize class org.bytedeco.javacv.ffmpegframegrabber. Can you help solve it? Thank you very much!
The text was updated successfully, but these errors were encountered: