Ask Your Question

zebox's profile - activity

2020-08-13 11:48:09 -0600 received badge  Popular Question (source)
2020-04-19 13:39:41 -0600 received badge  Popular Question (source)
2019-05-03 03:31:49 -0600 received badge  Enthusiast
2019-05-02 09:59:23 -0600 commented question What is way correct for capture rtsp stream from IP Camera?

What do I wrong? cv::VideoCapture stream("rtspsrc location=\"rtsp://admin:[email protected]:554/mode=real&idc=1

2019-05-02 09:56:33 -0600 commented question What is way correct for capture rtsp stream from IP Camera?

What do I wrong? cv::VideoCapture stream("rtspsrc location=\"rtsp://admin:[email protected]:554/mode=real&idc=1

2019-04-30 10:10:16 -0600 commented question What is way correct for capture rtsp stream from IP Camera?

I test with example from here: Example But when I open video from local webcamera (as device 0) app work normally(

2019-04-30 10:10:02 -0600 commented question What is way correct for capture rtsp stream from IP Camera?

I test with example from here: link text But when I open video from local webcamera (as device 0) app work normally(

2019-04-30 08:28:34 -0600 commented question What is way correct for capture rtsp stream from IP Camera?

I detect the issue. I have frame freezing only when I try use analytics features (for example, face detection). If I cap

2019-04-30 08:28:27 -0600 commented question What is way correct for capture rtsp stream from IP Camera?

I detect issue. I have frame freezing only when I try use analytics features (for example, face detection). If I capturi

2019-04-30 08:05:44 -0600 commented question What is way correct for capture rtsp stream from IP Camera?

No.I Need capture rtsp stream from camera and then processing it with openCV features.) Anyway, Thanks!

2019-04-30 07:44:23 -0600 commented question What is way correct for capture rtsp stream from IP Camera?

No. Need capture rtsp stream from camera and then processing it with openCV features.) Anyway, Thanks!

2019-04-30 06:32:34 -0600 commented question What is way correct for capture rtsp stream from IP Camera?

Do you mean read each png file and then delete it? But I get additional workload to filesystem (write, read and delete

2019-04-30 05:29:37 -0600 commented question What is way correct for capture rtsp stream from IP Camera?

Yes, it work. I execute this command and .png files been created in images folder. But what do I to do next with this fi

2019-04-30 05:29:14 -0600 commented question What is way correct for capture rtsp stream from IP Camera?

Yes, it work. I executed this command and .png files begun created in images folder. But what do I to do next with this

2019-04-30 00:20:05 -0600 edited question What is way correct for capture rtsp stream from IP Camera?

What is way correct for capture rtsp stream from IP Camera? Hi! Could you advice right way for capture rtsp stream from

2019-04-30 00:17:45 -0600 asked a question What is way correct for capture rtsp stream from IP Camera?

What is way correct for capture rtsp stream from IP Camera? Hi! Could you advice right way for capture rtsp stream from

2015-09-20 03:30:10 -0600 received badge  Editor (source)
2015-09-20 03:13:51 -0600 asked a question RTSP stream in Java (Eclipse) VideoCapture.read() error

Hi for All!

I try develope application on Java with OpenCV wich must grab rtsp stream from DVR. My code as every example:

import org.opencv.videoio.VideoCapture;

    public class Main {
    static {

        System.loadLibrary("opencv_java300");
    }

    public static void main(String[] args) {
        // TODO Auto-generated method stub

        VideoCapture cap = new VideoCapture("rtsp://admin:[email protected]/h264/ch1/main/av_stream");
                try {
            System.out.println("Delay waiting..");
            Thread.sleep(10000); // wait while stream open from dvr
            System.out.println("Delay end..");
        } catch(InterruptedException ex) {
            Thread.currentThread().interrupt();
        }

        if (!cap.isOpened()) {
            System.exit(-1);
        }
         System.out.println("Prepare to Get frame..");
        // Matrix for storing image
                Mat image = new Mat();
                // Frame for displaying image
                MyFrame frame = new MyFrame(); // Some frame creation custom class
                frame.setVisible(true);

                // Main loop
                while (true) {
                    // Read current camera frame into matrix

                    cap.read(image);  
                     System.out.println("Geting frame..");
                        try {
                            System.out.println("Frame delay waiting..");
                            Thread.sleep(500);
                            System.out.println("Delay end..");
                        } catch(InterruptedException ex) {
                            Thread.currentThread().interrupt();
                        }
                    // Render frame if the camera is still acquiring images
                    if (image != null) {
                        frame.render(image);
                    } else {
                        System.out.println("No captured frame -- camera disconnected");
                        break;
                    }
                }
    }

But I get some frames to my (JFram+JPanel) window and run stop at this line

cap.read(image);

after some wait I get error:

GStreamer Plugin: Embedded video playback halted; module source reported: Could not read from resource.
OpenCV Error: Unspecified error (GStreamer: unable to start pipeline) in icvStartPipeline, file /home/myuser/git/opencv/modules/videoio/src/cap_gstreamer.cpp, line 383
Exception in thread "main"

I understand, this error report about rtsp sourcce problem, but if I get this stream in VLC, video work fine.

This problem only rtsp stream. If I try grab local media file or webcam all work fine. :(

OS: LinuxMint 17.2, OpenCV 3.0.0

Please help!