如何在不使用ffpeg Android的情况下在视频中添加文字?

时间:2017-03-07 07:31:07

标签: android video mediamuxer mediaextractor android-ffmpeg

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

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"};

0 个答案:

没有答案