ffmpeg Drawtext过滤器音频解码错误

时间:2016-03-19 14:10:01

标签: android audio video ffmpeg

我使用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 command.length 9 03-19 21:01:15.901   23960-23960 / com.github.hiteshsondhi88.sampleffmpeg D / CVPLAY:进展   :建于2014年10月7日15:08:46,gcc 4.8(海湾合作委员会)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前缀= /家庭/ SB /源代码/ ffmpeg的-的Android /工具链功能的Android /斌/ ARM-Linux的androideabi-   --arch = arm --cpu = cortex-a8 --enable-runtime-cpudetect --sysroot = / home / sb / Source-Code / ffmpeg-android / toolchain-android / 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-代码/ ffmpeg的-的Android /工具链功能的Android /包括   -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE = 2 -fno-strict-overflow -fstack-protector-all -mfpu = neon' --extra-LDFLAGS =' -L /家/ SB /源代码/ ffmpeg的-机器人/工具链-机器人/ lib中   -Wl,-z,relro -Wl,-z,现在-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:进展   :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:进展   :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:进展   :编码器:MEncoder SVN-r33883(20110719-gcc4.5.2)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:进展   :持续时间: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

0 个答案:

没有答案
相关问题