1

我正在使用 MediaMuxer 和 MediaExtractor 对视频进行转码。现在我想在视频的某个位置添加文字。我怎样才能做到这一点?基本上我正在录制视频并以较低的分辨率对其进行转码,现在我想在不使用 ffmpeg 的情况下添加文本覆盖。我尝试使用 ffmpeg 添加水印,但它需要太多时间。我正在使用这个库。这是我的命令:

String[] complexCommand = {"-y" ,"-i", "/storage/emulated/0/Download/VID.mp4","-strict",
                        "experimental", "-vf", "movie="
                        +"/storage/emulated/0/Download/iqm_logo.png [watermark]; [in][watermark] overlay=main_w/2-overlay_w/2:450 [out]",
                        "-b:v", "1540k", "-c:v", "libx264","-threads","30","-preset","ultrafast","-r", "30","-s", "1080x1920","-c:a", "copy",
                        "/storage/emulated/0/Download/watermark.mp4"};
4

0 回答 0