我正在使用ffmpeg在视频上绘制文字 . 我按照http://hiteshsondhi88.github.io/ffmpeg-android-java/中的说明进行操作

我在我的应用程序中成功安装了ffmpeg库 . 当我运行此命令

-r 25 -i "+inputvid+" -vf \"drawtext=fontsize=30:box=1:fontfile=/usr/share/fonts/a.ttf:text='Stack_Overflow':x=(w-text_w)/2:y=(h-text_h-line_h)/2\" -strict -2 "+outvid

它启动过程并显示这些行 .

元数据:

编码器:MEncoder SVN-r33883(20110719-gcc4.5.2)

持续时间:00:01:29.92,开始:0.000000,比特率:945 kb / s

流#0:0:视频:mpeg4(高级简单配置文件)(XVID / 0x44495658),yuv420p,1280x720 [SAR 1:1 DAR 16:9],805 kb / s,25 fps,25 tbr,25 tbn,25 tbc

流#0:1:音频:mp3(U [0] [0] [0] / 0x0055),44100 Hz,立体声,s16p,128 kb / s

然后什么都没发生

我该如何编译这个命令?

完整的控制台输出

进度:警告:链接器:/data/data/com.github.hiteshsondhi88.sampleffmpeg/files/ffmpeg具有文本重定位 . 这会浪费内存并防止安全性增强 . 请修理 . 03-19 21:01:15.891 23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:已启动命令:ffmpeg command.length 9 03-19 21:01:15.891 23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:进度:ffmpeg版本n2.4.2版权所有(c)2000-2014 FFmpeg开发者03-19 21:01:15.901 23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:已启动命令:ffmpeg命令 . 长度9 03-19 21:01:15.901 23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:进度:建于2014年10月7日15:08:46,gcc 4.8(GCC)03-19 21:01: 15.901 23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:已启动命令:ffmpeg command.length 9 03-19 21:01:15.901 23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:进度:配置: - target-os = linux --cross-prefix = / home / sb / Source-Code / ffmpeg-android / toolchain-android / bin / arm-linux-androideabi- -arch = arm -cpu = cortex- a8 --enable-runtime-cpudetect --sysroot = / home / sb / Source-Code / ffmpeg-android / toolchain-androi d / sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver - enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config = / home / sb / Source-Code / ffmpeg-android / ffmpeg-pkg-config --prefix = / home / sb / Source-Code / ffmpeg-android / build / armeabi-v7a-neon --extra-cflags =' -I / home / sb / Source-Code / ffmpeg-android / toolchain-android / include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE = 2 -fno-strict-overflow -fstack-protector-all -mfpu = neon'-extra-ldflags =' -L / home / sb / Source-Code / ffmpeg-android / toolchain-android / lib -Wl,-z,relro -Wl,-z,now -pie'-extra-libs =' - lpng -lexpat -lm '--extra-cxxflags = 03-19 21:01:15.951 23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:已启动命令:ffmpeg command.length 9 03-19 21:01:15.951 23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:进展:libavutil 54. 7.100 / 54. 7.100 03-19 21:01:15.951 23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:已启动命令:ffmpeg command.length 9 03-19 21:01:15.951 23960- 23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:进度:libavcodec 56. 1.100 / 56. 1.100 03-19 21:01:15.961 23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:已启动命令:ffmpeg command.length 9 03-19 21:01:15.961 23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:进度:libavformat 56. 4.101 / 56. 4.101 03-19 21:01:15.971 23960-23960 / com .github.hiteshsondhi88.sampleffmpeg D / CVPLAY:已启动命令:ffmpeg command.length 9 03-19 21:01:15.971 23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:progress:libavdevice 56. 0.100 / 56 . 0.100 03-19 21:01:15.971 23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:已启动命令:ffmpeg command.length 9 03-19 21:01:15.971 23960-23960 / com.github.hiteshsondhi88 . sampleffmpeg D / CVPLAY:进度:libavfilter 5 . 1.100 / 5. 1.100 03-19 21:01:15.981 23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:已启动命令:ffmpeg command.length 9 03-19 21:01:15.981 23960-23960 / com .github.hiteshsondhi88.sampleffmpeg D / CVPLAY:进度:libswscale 3. 0.100 / 3. 0.100 03-19 21:01:15.981 23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:已启动命令:ffmpeg command.length 9 03-19 21:01:15.981 23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:进度:libswresample 1. 1.100 / 1. 1.100 03-19 21:01:15.991 23960-23960 / com.github . hiteshsondhi88.sampleffmpeg D / CVPLAY:开始了命令:ffmpeg command.length 9 03-19 21:01:15.991 23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:progress:libpostproc 53. 0.100 / 53. 0.100 03-19 21:01:16.081 23960- 23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:已启动命令:ffmpeg command.length 9 03-19 21:01:16.081 23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:进度:输入#0, avi,来自'/storage/emulated/0/CvPlay/cv.avi':03-19 21:01:16.091 23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:已启动命令:ffmpeg command.length 9 03 -19 21:01:16.091 23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:进度:元数据:03-19 21:01:16.101 23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:已开始命令:ffmpeg command.length 9 03-19 21:01:16.101 23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:progress:encoder:MEncoder SVN-r33883(20110719-gcc4.5.2)03-19 21: 01:16.101 23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:Starte d命令:ffmpeg command.length 9 03-19 21:01:16.101 23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:进度:持续时间:00:01:29.92,开始:0.000000,比特率:945 kb / s 03-19 21:01:16.111 23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:已启动命令:ffmpeg command.length 9 03-19 21:01:16.111 23960-23960 / com.github.hiteshsondhi88 . sampleffmpeg D / CVPLAY:进度:流#0:0:视频:mpeg4(高级简单配置文件)(XVID / 0x44495658),yuv420p,1280x720 [SAR 1:1 DAR 16:9],805 kb / s,25 fps,25 tbr,25 tbn,25 tbc 03-19 21:01:16.111 23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:已启动命令:ffmpeg command.length 9 03-19 21:01:16.111 23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:进度:流#0:1:音频:mp3(U [0] [0] [0] / 0x0055),44100 Hz,立体声,s16p,128 kb / s