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.

  • I would not want to get into ffmpeg for this case - Konstantin
  • Unfortunately, there is no time to look for a solution for you, but here it seems that the correct request is in google google.com.ua/… - Vladyslav Matviienko
  • @metalurgus. Well, I do not ask for a solution, I ask only for advice. In Google, I learned a lot of information. including an example of Google's grafika , but there they are recorded in the memory of the phone, also using MediaMuxer native - Konstantin

0