--编辑--
你正在使用"-f mp4",那么在你的ffmpeg配置/构建中,是否要求支持mp4格式?请使用"ffmpeg -formats"进行验证。
查看你的日志并转到"libavcodec/mux.c"的源代码。
在源代码的第124行搜索函数"avformat_alloc_output_context2",这就是你的日志错误来自的地方,根据你的pastebin #210。
根据该方法的第146行和你的pastebin,你没有为'filename'设置一个值...
在你的pastebin #209-210中,这是一个非常奇怪的输出文件名吗?特别是考虑到你的CLI参数例程显示ffmpeg.c已经接受了一个输出文件名。
以下内容在Linux上运行,但取决于你的Android版本的ffmpeg构建......
ffmpeg -y -loop 1 -t 3.03 -i ~/Pictures/yaya_speech_choose2.png -r 1 -vcodec libx264 -b:v 200k -bt 350k -f mp4 ~/Videos/dummy.mp4
ffmpeg version N-35901-g27a3415 Copyright (c) 2000-2012 the FFmpeg developers
built on Oct 7 2012 12:06:43 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --enable-gpl --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3
libavutil 51. 73.102 / 51. 73.102
libavcodec 54. 64.100 / 54. 64.100
libavformat 54. 29.105 / 54. 29.105
libavdevice 54. 3.100 / 54. 3.100
libavfilter 3. 19.102 / 3. 19.102
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 16.100 / 0. 16.100
libpostproc 52. 1.100 / 52. 1.100
Input #0, image2, from '/home/rob/Pictures/yaya_speech_choose2.png':
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgb24, 1080x1920, 25 fps, 25 tbr, 25 tbn, 25 tbc
-t is not an input option, keeping it for the next output; consider fixing your command line.
[libx264 @ 0x1e32500] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
[libx264 @ 0x1e32500] profile High 4:4:4 Predictive, level 4.0, 4:4:4 8-bit
[libx264 @ 0x1e32500] 264 - core 128 r10 198a7ea - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=1 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=200 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/home/rob/Videos/dummy.mp4':
Metadata:
encoder : Lavf54.29.105
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv444p, 1080x1920, q=-1--1, 200 kb/s, 16384 tbn, 1 tbc
Stream mapping:
Stream #0:0 -> #0:0 (png -> libx264)
Press [q] to stop, [?] for help
frame= 4 fps=1.8 q=32766.0 Lsize= 236kB time=00:00:02.00 bitrate= 968.3kbits/s dup=0 drop=59
video:236kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.350287
[libx264 @ 0x1e32500] frame I:1 Avg QP: 9.29 size:239979
[libx264 @ 0x1e32500] frame P:1 Avg QP: 9.85 size: 128
[libx264 @ 0x1e32500] frame B:2 Avg QP: 9.92 size: 192
[libx264 @ 0x1e32500] consecutive B-frames: 25.0
[libx264 @ 0x1e32500] mb I I16..4: 36.2
[libx264 @ 0x1e32500] mb P I16..4: 0.0
[libx264 @ 0x1e32500] mb B I16..4: 0.0
[libx264 @ 0x1e32500] final ratefactor: 24.49
[libx264 @ 0x1e32500] 8x8 transform intra:49.0
[libx264 @ 0x1e32500] coded y,u,v intra: 37.6
[libx264 @ 0x1e32500] i16 v,h,dc,p: 84
[libx264 @ 0x1e32500] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 9
[libx264 @ 0x1e32500] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17
[libx264 @ 0x1e32500] Weighted P-Frames: Y:0.0
[libx264 @ 0x1e32500] kb/s:480.98