If you want to do this via command line, you can use the FFmpeg library :
Most built-in gallery apps have a "Video Editor" or "Create" tool. IMG_2516.MP4
Use the built-in Clipchamp editor. Import your MP4, drag it to the timeline, and select the Text tab on the left sidebar. If you want to do this via command
ffmpeg -i IMG_2516.MP4 -vf "drawtext=text='Your Text Here':x=(w-text_w)/2:y=(h-text_h)/2:fontsize=24:fontcolor=white" output.mp4 Use code with caution. Copied to clipboard drag it to the timeline