简体   繁体   中英

How to capture frame by frame images from Android video recording in real time

I want to get realtime frames from video. like camera is open and I am getting frames per seconds.

I have also gone through google example of video capturing app via camera2 API https://github.com/googlesamples/android-Camera2Video , But couldn't find any such method/way.

I know this is possible as video broadcasters and apps like snapchat who does realtime video processing must be doing something like this.

Also I require 30 frames/seconds.

One can get frames by using ImageReader for camera2 API. And preview callback for camera1 API.

Here is how to do it with camera2 API.

One can also explore this library for working example with both camera2 and camera1 API.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM