javacv
javacv copied to clipboard
Java interface to OpenCV, FFmpeg, and more
grabImage get frame will bo null? what reason
how to encode avframe to avpacket.and how to decode avpacket to avframe
frame video filter:fps=fps=0.2**,crop=639:216:0:0** crop=639:216:0:0 will cause NullPointerExcepttion **filter.push(frame); Frame frameImg; if ((frameImg = filter.pull()) != null) { if (frameImg.image != null) { log.info("frame image width:{} height:{}", frameImg.imageWidth, frameImg.imageHeight); log.info("save image...
I use new version 1.5.5 with example code JavaFxPlayVideo.java on JavaFX 8 For grabbing local webcam I use `FrameGrabber grabber = new OpenCVFrameGrabber(1);` because `FFmpegFrameGrabber grabber = FFmpegFrameGrabber.createDefault(1);` is no...
My device has multiple cameras, identified by camera IDs. `VideoCapture videoCapture = new VideoCapture(WEBCAM_DEVICE_INDEX);` Although they can be started, they start up very slow. It usually takes about 20 seconds...
Basically I set up a video conference tool. Sometimes the receiving part of the streams throws a series of errors as shown below: `[flv @ 0x7fce98b6d400] Packet mismatch -1057119111 7279...
Hi I am found this source which shows how to read video from cam and audio from microphone https://github.com/bytedeco/javacv/blob/master/samples/WebcamAndMicrophoneCapture.java#L120 ; Every time I run the example I get this exception...
`opencv_dnn.blobFromImages` method supports multiple pictures inference at the same time. Is it necessary to put at least two pictures? I found that when I put in only one picture, I...
this is my code ``` public static void packetRecord(String inputFile, String outputFile) throws FrameGrabber.Exception, FrameRecorder.Exception { FFmpegFrameGrabber grabber = new FFmpegFrameGrabber(inputFile); grabber.start(); FFmpegFrameRecorder recorder = new FFmpegFrameRecorder(outputFile, grabber.getImageWidth(), grabber.getImageHeight(), grabber.getAudioChannels());...
Hello, Sorry for my question: How can I draw a rotated Rectangle? Thanks Alex