0

I m working on a project, where I need to record video from camera. At the time of recording we are showing some text over screen. But we are not able to record that text along with preview part. Is this posible to record both.

I am using https://github.com/googlesamples/android-Camera2Video example to record video.

Please help.

Himanshu Shekher Jha
  • 1,334
  • 2
  • 14
  • 27

1 Answers1

1

I actually don't think that's possible. You can fetch video frames from a camera preview, but there's no good way to encode them back to video. The MediaRecorder can only record the actual direct camera input into a video file.

I will suggest you to look at MediaCodec and MediaMuxer

Also, see this post if you can use ffmpeg.

Community
  • 1
  • 1
rupinderjeet
  • 2,984
  • 30
  • 54