I’m going to analyze the video while it is recording.
I have analyzing function to analyze the video.
But it needs the binary data of video.
What can i use?
I’m going to analyze the video while it is recording. I have analyzing function
Share
You need to set the sample buffer delegate on the
AVCaptureVideoDataOutputobject of yourAVCaptureSession. Make sure what ever you set as the sample buffer delegate adopts the following protocol,AVCaptureVideoDataOutputSampleBufferDelegate. Below is an example of how you would set the sample buffer delegate assuming the object you called it from adopts the protocol I mentioned.Then the you need to implement the following method
This will be called by your
AVCaptureVideoDataOutputobject and the binary data of the video will be insampleBuffer.Note
sampleBufferwill only contain a slice of the data.