title: Android Camera2 : How to access every single frames while Recording video?
body: <p>My goal is to get access to every single frame while recording a video.<Br>
  I'm using <code>Camera2</code> API.</p>
  <p>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.
  <br>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.</p>
  <p><code>Bitmap</code>, <code>Image</code>, <code>ByteBuffer</code>, <code>byte[]</code> or as file, whatever type is OK if I can access each data.</p>
  <p>I've searched some tutorials and found <a href="https://www.youtube.com/watch?v=CuvVpsFc77w&amp;list=PL9jCwTXYWjDIHNEGtsRdCTk79I9-95TbJ" rel="nofollow noreferrer">this series</a>, especially <a href="https://www.youtube.com/watch?v=rMkwhX5-t4Y&amp;list=PL9jCwTXYWjDIHNEGtsRdCTk79I9-95TbJ&amp;index=18" rel="nofollow noreferrer">this video</a>, but that's not exactly what I need.
  That tutorial includes how to take a photo while recording a video.</p>
  <p>Can anybody help me?</p>