javacv
javacv copied to clipboard
not enough frames to estimate rate;consider increasing probersize
not enough frames to estimate rate;consider increasing probersize
So, did you try to increase probesize?
So, did you try to increase probesize?
I try ,but the camera is not on my side,I'll test it again tomorrow.This is my code
` try { FFmpegFrameGrabber Grabber = FFmpegFrameGrabber.createDefault(“rtsp://xxxxxx”);
Grabber.setOption("rtsp_transport", "tcp");
Grabber.setOption("stimeout", "6000000");
Grabber.setOption("max_delay", "3000000");
Grabber.start();
while (true)
{
Frame FrameInfo = Grabber.grabImage();
if (null == FrameInfo)
{
continue;
}
BufferedImage ImageBuffer = new Java2DFrameConverter().getBufferedImage(FrameInfo);
ImageIO.write(ImageBuffer, "jpeg", Out);
Grabber.stop();
break;
}
}
catch (Exception e)
{
Loger.Log.error(e.getMessage());
}
`
Another problem is that I use FFmpegFrameGrabber to capture a picture of the video, which takes a long time