javacv
javacv copied to clipboard
Java interface to OpenCV, FFmpeg, and more
> Pseudocode ```java public class Demo { private final static OpenCVFrameConverter.ToMat converter = new OpenCVFrameConverter.ToMat(); public static void main(String[] args) throws Exception { FFmpegFrameGrabber grabber = new FFmpegFrameGrabber("test.mp4") grabber.start(); Frame...
Get the exception in javacv "[libmp3lame @ 0x7f91cd0ce3c0] 4 frames left in the queue on closing" test file: [input_case.zip](https://github.com/bytedeco/javacv/files/12180978/input_case.zip) 1 The ffmpeg command does not have this exception. ``` ffmpeg...
```java public void liveStreamingVideos(List urls, String rtmpAddress, String tenantCode, int maxSize, double frameRate) { try { avutil.av_log_set_level(avutil.AV_LOG_INFO); FFmpegLogCallback.set(); int count = 0; FFmpegFrameRecorder recorder = new FFmpegFrameRecorder(rtmpAddress, 800, 450, 1);...
I'm using javacv-platform 1.5.8 to record rtmp stream of ip camera.(multi thread) I set timeout param: grabber.setOption("rw_timeout", 5 * 1000_000 + ""); grabber.setOption("stimeout", 10 * 1000_000 + ""); problem: when...
I encountered a problem in the development process. The Functional requirement is to obtain audio data through the sdk provided by the cartridge manufacturer. The audio data is continuously obtained...
lib version: ``` implementation 'org.bytedeco:openblas:0.3.23-1.5.9:linux-x86_64' implementation 'org.bytedeco:opencv:4.7.0-1.5.9:linux-x86_64' implementation 'org.bytedeco:ffmpeg:6.0-1.5.9:linux-x86_64' implementation 'org.bytedeco:javacpp:1.5.9:linux-x86_64' implementation 'org.bytedeco:javacv:1.5.9' ``` jdk version ``` openjdk version "11.0.19" 2023-04-18 ``` os version ``` Ubuntu 22.04.1 LTS ``` reproduce...
hi,expert I faced a problem when use javacv to accomplish a image compare,the background is I want to use java and selenium to acccomplish a automation test of slide confirmation...
try (PointerScope scope = new PointerScope()) { Mat image = Java2DFrameUtils.toMat(bufferedImage); Mat grayImage = new Mat(image.rows(), image.cols(), opencv_core.CV_8UC1); opencv_imgproc.cvtColor(image, grayImage, opencv_imgproc.COLOR_BGR2GRAY); Mat dest = new Mat(image.rows(), image.cols(), opencv_core.CV_8UC1); int rows...
Info: [http @ 0x7f2f24122bc0] Opening 'http://127.0.0.1/cloud/stream/af87abef2ae14c8f85272211273bcf09/60/index_306368110.mts' for reading Info: [hls @ 0x7f2f24d1ad80] Opening '/vod/hls/daznnbam3u8/index_019035.ts' for writing Info: [mpegts @ 0x7f2f2427a0c0] Opening '/vod/hls/daznnbam3u8/index_019015.ts' for writing Info: [hls @ 0x7f2f24d1ad80] Opening '/vod/hls/daznnbam3u8/index.m3u8.tmp'...
I am trying to use JavaCV in a JavaFX running in OSGi container. The bundle that is using JavaCV as dependency is resolved correctly, but once started it creates an...