5

How can I put text or transparent image into a video? I can display text overlayed camera output but how can I record it? Using opencv is an alternative but I don't really want to use opencv manager(or 25+ mb binary).

Is there a way to record overlayed video with Android SDK or 3rd party library. What are my options?

Update: I'm not looking for a "record to disc then load recorded video and process every frame" solution. I'm trying to find a way to process every camera frames before recording. Something like opencv.

bmeric
  • 1,124
  • 1
  • 17
  • 27

1 Answers1

3

You can get help from here to get video byes array of each frame from camera and then save them using some third party encoder. Now you can create bitmap from byte array, and using bitmap you can write a overlay text on it. Example code here and here is the link for the third party encoder AndroidFFmpeg

Community
  • 1
  • 1
Ali Imran
  • 8,927
  • 3
  • 39
  • 50
  • "save them using some third party encoder", actually this is what i'm asking. My problem isn't getting video frames, i can already process it and display. I'm looking for a solution to record it properly or process camera frames before recording. – bmeric Dec 13 '12 at 16:03
  • Check my updated answer. There is a library with example codes. – Ali Imran Dec 13 '12 at 17:44