Open jetamie opened 11 months ago
Please call grabber.stop() at the end.
Please call grabber.stop() at the end.
Sorry, I didn't write completely above, I used grabber.restart()
Please call grabber.stop() at the end.
Do I need to reinitialize the ToMat
object?
restart() might not always work. Try not to use it see if it works.
restart() might not always work. Try not to use it see if it works.
I need to read video frames in a loop, similar to FFmpeg's --loop parameter function
Creating multiple instances of FFmpegFrameGrabber should do what you need.
It worked very well at first, and I would repeat this logic over and over again, and immediately after a while, the JVM crashed, and here is the screenshot