It is necessary to take data from the camera of the smartphone and encode it in H.264
If, for example, we can take bytes in a method public void onPreviewFrame(byte[] data, Camera camera)
So what are the next steps? How to transfer MediaCodec-ku in a separate stream? Thank.
At the exit I want to receive byte[]
already in encoded form.
grafika
, but there they are recorded in the memory of the phone, also using MediaMuxer native - Konstantin