Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

UnsatisfiedLinkError in Java with VideoCapture

I have been able to connect to and open an rstp h264 IP camera stream, and grab the first frame. But this code:

import org.opencv.highgui.VideoCapture;

public class Connector {

    public static void main(final String[] args) throws Exception
    {
        VideoCapture capture = new VideoCapture("rtsp://109.110.33.67:1935/live/CAM-Shamora.stream");
        if (capture.isOpened()) {
            System.out.println("Video is captured");}
    }
}

give me exception

Exception in thread "main" java.lang.UnsatisfiedLinkError: org.opencv.highgui.VideoCapture.VideoCapture_1(Ljava/lang/String;)J
    at org.opencv.highgui.VideoCapture.VideoCapture_1(Native Method)
    at org.opencv.highgui.VideoCapture.<init>(VideoCapture.java:128)
    at Connector.main(Connector.java:13)

I use Opencv 2.4.9 and IntelliJIdea13

UnsatisfiedLinkError in Java with VideoCapture

I have been able to connect to and open an rstp h264 IP camera stream, and grab the first frame. But this code:

import org.opencv.highgui.VideoCapture;

public class Connector {

    public static void main(final String[] args) throws Exception
    {
        VideoCapture capture = new VideoCapture("rtsp://109.110.33.67:1935/live/CAM-Shamora.stream");
        if (capture.isOpened()) {
            System.out.println("Video is captured");}
    }
}

give me exception

Exception in thread "main" java.lang.UnsatisfiedLinkError: org.opencv.highgui.VideoCapture.VideoCapture_1(Ljava/lang/String;)J
    at org.opencv.highgui.VideoCapture.VideoCapture_1(Native Method)
    at org.opencv.highgui.VideoCapture.<init>(VideoCapture.java:128)
    at Connector.main(Connector.java:13)
Connector.main(Connector.java:7)

I use Opencv 2.4.9 and IntelliJIdea13

click to hide/show revision 3
retagged

updated 2014-08-21 00:48:52 -0600

berak gravatar image

UnsatisfiedLinkError in Java with VideoCapture

I have been able to connect to and open an rstp h264 IP camera stream, and grab the first frame. But this code:

import org.opencv.highgui.VideoCapture;

public class Connector {

    public static void main(final String[] args) throws Exception
    {
        VideoCapture capture = new VideoCapture("rtsp://109.110.33.67:1935/live/CAM-Shamora.stream");
        if (capture.isOpened()) {
            System.out.println("Video is captured");}
    }
}

give me exception

Exception in thread "main" java.lang.UnsatisfiedLinkError: org.opencv.highgui.VideoCapture.VideoCapture_1(Ljava/lang/String;)J
    at org.opencv.highgui.VideoCapture.VideoCapture_1(Native Method)
    at org.opencv.highgui.VideoCapture.<init>(VideoCapture.java:128)
    at Connector.main(Connector.java:7)

I use Opencv 2.4.9 and IntelliJIdea13