enhancementhelp wanted
Metriche repository
- Star
- (6985 star)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
Hi,
I am trying to generate stream of frames after reading it in Java 8.
FFmpegFrameGrabber gb = new FFmpegFrameGrabber (videoFile);
Stream.iterate(grabber.grabImage(), x - {
try {
return grabber.grabImage()
} catch(Exception e) {
}
return null;
});
In java 9 I can use takeWhile(frame -> frame != null) but I am not sure how to do it in Java 8. Is there any api provide in API that directly returns stream of frames?