Below the code i'm trying to use to stream live video.Mp4 video is opening but live stream is not opening receiving content is false.please guide me
// My code
import org.opencv.videoio.VideoCapture;
public class TestDemo {
public static void main(String s[]) {
nu.pattern.OpenCV.loadLocally();
VideoCapture capture = new VideoCapture();
boolean flag = capture.open("rtsp://admin:admin:xxxxxxx");//here i'm using cctv url
System.out.println(flag);
}
}
maven dependency
<dependency>
<groupId>org.openpnp</groupId>
<artifactId>opencv</artifactId>
<version>3.4.2-0</version>
</dependency>
<dependency>
<groupId>nu.pattern</groupId>
<artifactId>opencv</artifactId>
<version>2.4.9-4</version>
</dependency>