recording (hls) phone camera screen to obtain image data

Can I get the image buffer data by recording the phone camera screen to use the filter http live streaming (hls) function? (For example, getting data from a video recorded once every two seconds during recording)