My goal is to get access to every single frame while recording a video.
I'm using Camera2 API.
What I want is to take every single frame while recording, and the frames should be exactly equal to each frame of result video, not preview frames.
Of course I can access each frame after recording is over using tools like OpenCV or FFMPEG or something, but right now I need to get them real-time while recording.
Bitmap, Image, ByteBuffer, byte[] or as file, whatever type is OK if I can access each data.
I've searched some tutorials and found this series, especially this video, but that's not exactly what I need. That tutorial includes how to take a photo while recording a video.
Can anybody help me?