Closed ZhanPro closed 4 months ago
The version is 1.5.8
Please try again with the snapshots: http://bytedeco.org/builds/
Oh, thanks, I‘ll try it
Please try again with the snapshots: http://bytedeco.org/builds/ So it's a known issue in 1.5.8 ?
Duplicate of #2255
I have followed the instructions to upgrade the version of JavaCV to 1.5.11-SNAPSHOT. However, I encountered an issue: after the upgrade, my program runs fine on macOS when packaged into a JAR, but it fails to run on Linux, with the following error:
Caused by: 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.
The dependencies I am using are:
`
<artifactId>javacv</artifactId>
<version>1.5.11-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>javacpp</artifactId>
<version>1.5.11-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>ffmpeg-platform</artifactId>
<version>7.0-1.5.11-SNAPSHOT</version>
</dependency>
`
What is the reason for this?
操作系统 CentOS 7.6.1810 内核版本 Linux 5.10.0-136.16.0.mt20230627.508.mt2203sp1.x86_64 CPU 型号 Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz
I sincerely look forward to your reply.
Please try again with Ubuntu
On Mon, Jul 29, 2024, 17:15 ZhanPro @.***> wrote:
I sincerely look forward to your reply.
— Reply to this email directly, view it on GitHub https://github.com/bytedeco/javacv/issues/2256#issuecomment-2255292085, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZMQFYWVWMI5ASYXS6FJB3ZOX22BAVCNFSM6AAAAABLPV2KGWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJVGI4TEMBYGU . You are receiving this because you modified the open/close state.Message ID: @.***>
Please try again with Ubuntu … On Mon, Jul 29, 2024, 17:15 ZhanPro @.> wrote: I sincerely look forward to your reply. — Reply to this email directly, view it on GitHub <#2256 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZMQFYWVWMI5ASYXS6FJB3ZOX22BAVCNFSM6AAAAABLPV2KGWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJVGI4TEMBYGU . You are receiving this because you modified the open/close state.Message ID: @.>
However, all our online servers are running on CentOS.
so, is there any other way?
When I use JavaCV's FFmpegFrameGrabber and FFmpegFrameRecorder in Java to perform audio format conversion, an off-heap memory leak occurred.
Here is my code : `@Slf4j public class JavaCVDecoder implements IDecoder {
`