Search code examples
androidandroid-mediarecorder

How to add a Date/Time to video capture?


I want to record video with Date/Time (put/draw current time and date on the each frame in some corner).

I din't really found any solution. I saw some similar questions here, but they doesn't have answers.

So I want to use MediaRecorder class to record video (I already implemented this) and somehow add Date/Time at each frame so later I could open recorded video with some video player and see this Date/Time.


Solution

  • If you want to add text into original video file, it will not be that simple. You need external tools to handle this, for example FFMPEG. this links give you more info about this topic: How to add text on video recording? and How to embed text while recording video in Android?