Ask Your Question

Will_agner's profile - activity

2017-03-23 13:10:16 -0600 commented question Fail With JavaCV not Responding RTSP in frameGrabber.start()

Thank you for your 'open' help.

2017-03-23 12:28:55 -0600 received badge  Editor (source)
2017-03-23 12:28:31 -0600 asked a question Fail With JavaCV not Responding RTSP in frameGrabber.start()

I have one program to get one video in protocol rtsp using JavaCV:

My program is like this:

public static void main(String[] args){

    FrameGrabber frameGrabber = new 

    FFmpegFrameGrabber("rtsp://ip:port/login&password");

    CanvasFrame canvasFrame = new CanvasFrame("Test");

    frameGrabber.start();

    for(int i = 0; i<frameGrabber.getLengthInFrames(); i++){
       canvasFrame.showImage(frameGrabber.grab());
    }
    frameGrabber.flush();

    canvasFrame.dispose();
}

If I use one correct link rtsp my program return and I can deal with he.

But if the link are incorrect or the ipcam are desconnected the program not return in the command frameGrabber.start();

The program crash, not return error and not do more nothing.

I've already tried use try catch but didn't have sucess, the program not return.

Edit:

I did tests with other protocols like http, and it does not occur this problem, the program return one message that can not open the link, to http are ok, but when using rtsp not return.

2017-03-23 11:58:33 -0600 answered a question VideoCapture blocked after loosing connection

Post of the long time a go, but i have this problem to...

You managed to solve?

I no have acess to look in youtube now, i see later.