'Android opencv: display frames as video

I want to create app, that open video, take every frame from video with openCV (videoCapture), make some image processing and then display frame as fast as possible.

I can open and read frames from video as Mat and I am able to display image as bitmap in Imageview to confirm that, what app read is what I want. Now I am looking for way to read frames in loop and display them as video (as fast as possible). Any hint or example would be appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source