I am trying to add watermark on video at recording time only. But I am not getting any proper solution for it. I have tried this library to add watermark to a video which is already recorded. But this approach takes a long time to add watermark to pre-recorded video. So I changed my approach to adding watermark on video while recording only. Please tell me how can I achieve this.
Asked
Active
Viewed 992 times
1
-
Why don't you add a watermark as a frame layout on the main view? – Mahdi-Malv Feb 07 '19 at 10:39
-
Are you using android studio? – Mahdi-Malv Feb 07 '19 at 10:39
-
Yes I am using android studio. – bhagyawant biradar Feb 08 '19 at 07:30
1 Answers
2
Look into the ffmpeg library overlay
filter to achieve this. Here is the documentation for the above solution.

Iffat Fatima
- 1,610
- 2
- 16
- 27
-
I have used ffmpeg as well but it provides a way to add watermark to video file. I want to add a watermark while the video is getting recorded. – bhagyawant biradar Feb 08 '19 at 07:30
-
1@bhagyawantbiradar Check this post, you might be able to apply this to individual frames using ffmpeg during recording, but seeing how slow ffmpeg is, this is not a very good solution: https://stackoverflow.com/questions/24280023/get-modify-frames-while-recording-mp4-with-mediarecorder – Iffat Fatima Feb 11 '19 at 06:03