-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
javacv 1.5.10 java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.ffmpeg.global.avutil #2212
Comments
i have the same problem 1.5.9 is ok |
I find some function load by : Please help me fix this peoblem,thanks,in my mac book run all well,but in linux centos7 always export this error |
someone tell me, In Linux, it is necessary to compile the corresponding so file,right ? @paul-hammant |
@saudet help ~~ |
Please try again with Ubuntu |
Duplicate of bytedeco/javacpp-presets#1379 |
thanks, I use 1.5.9 version and os mirror base on centos7 install ffmpeg 4.3.1, can fix this problem |
run env {"java version":"1.8.0u192","nginx version":"openresty/1.9.7.3","tomcat version":"Tomcat/8.5.42","linux version":"CentOS release 6.6 (Final)","":"v3tomcat"}
export error code:
File sourceFile = new File(fileName);
frameGrabber = FFmpegFrameGrabber.createDefault(sourceFile);
trace log :
Exception in thread "pool-23-thread-1" java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.ffmpeg.global.avutil
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.bytedeco.javacpp.Loader.load(Loader.java:1289)
at org.bytedeco.javacpp.Loader.load(Loader.java:1234)
at org.bytedeco.javacpp.Loader.load(Loader.java:1210)
at org.bytedeco.ffmpeg.avformat.Read_packet_Pointer_BytePointer_int.(Read_packet_Pointer_BytePointer_int.java:45)
at org.bytedeco.javacv.FFmpegFrameGrabber.(FFmpegFrameGrabber.java:366)
at com.jd.ershou.oss.VideoHelper.convert2Mp4(VideoHelper.java:256)
at com.jd.ershou.oss.VideoHelper.start(VideoHelper.java:187)
at com.jd.ershou.sns.web.controller.FileUploadController$1.run(FileUploadController.java:406)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
The text was updated successfully, but these errors were encountered: