Android – add text or pictures when recording video?
I'm trying to record and edit videos. In order to edit, I found a useful library called ffmpeg4android in Android. However, I'm still in the dilemma of recording videos. That's what I want:
1 / add text or image to video when recording 2 / add filter when recording video
I found that there is a library gpuimage for Android, but it only has some examples related to taking photos, not recording videos)
If you have any method or any suggestion that the library can do this, please let me know
Thank you first!
Link I read during research: add overlay while record video on Android how to record video with gpuimage? FFMpeg add text to actual video file after recording in Android
resolvent:
You can use the blend filter to add overlay images to the video
You cannot add text directly, but you can add text to an image on the canvas
The Android gpuimage library itself does not support video recording, but you can try to use the Android gpuimage videorecording library. It is a branch of Android GPU image, which also provides video recording
android-gpuimage-videorecording
See gpuimagemoviewriter class
It should point out the right direction for you to develop your own video writer on gpuimage
The idea is:
>Draw on current screen surface > switch to encoder input surface and draw previous frame buffer again > switch back to screen surface
Other useful links: EGL surface helper, media encoder