让人抓狂的ffmpeg,让人崩溃的exec函数

Microsoft Windows [版本 5.2.3790]
(C) 版权所有 1985-2003 Microsoft Corp.

C:\Documents and Settings\Administrator>E:/upload_code/FFmpeg/ffmpeg.exe -
i E:/2010/05/09/1273413491.flv -y -ss 00:00:09 -t 00:00:10 -s 320*240 -f mjpeg -
vframes 10 E:/2010/05/09/1273413491.jpg
FFmpeg version SVN-r19590, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --prefix=e:/ffmpeg_build/r19590 --enable-gpl --enable-nonfree -
-enable-version3 --enable-pthreads --enable-memalign-hack --enable-shared --disa
ble-static --enable-encoder=snow --disable-encoder=vorbis --disable-decoder=aac
--disable-encoder=aac --disable-ffserver --enable-mpegaudio-hp --enable-avisynth
--enable-bzlib --enable-libdirac --enable-libfaac --enable-libfaad --enable-lib
mp3lame --enable-libgsm --enable-libopenjpeg --enable-libschroedinger --enable-l
ibspeex --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-avfilter --enable
-avfilter-lavf --extra-cflags='-U__STRICT_ANSI__ -I/usr/local/include -I/usr/loc
al/include/schroedinger-1.0 -I/usr/local/include/dirac' --extra-ldflags=-L/usr/l
ocal/lib --extra-libs='-lpthreadGC2 -lstdc++'
  libavutil     50. 3. 0 / 50. 3. 0
  libavcodec    52.32. 0 / 52.32. 0
  libavformat   52.37. 0 / 52.37. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    0. 5. 0 /  0. 5. 0
  libswscale     0. 7. 1 /  0. 7. 1
  built on Aug  5 2009 12:50:56, gcc: 4.3.3
-------------------------------------------------------
  Support/discussion group : http://www.www.k686.com
-----------------------Enjoy it!-----------------------

E:/2010/05/09/1273413491.flv: no such file or directory

C:\Documents and Settings\Administrator>E:/upload_code/FFmpeg/ffmpeg.exe -
i E:/2010/05/09/1273413491.flv -y -ss 00:00:09 -t 00:00:10 -s 320*240 -f mjpeg -
vframes 10 E:/2010/05/09/1273413491.jpg
FFmpeg version SVN-r19590, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --prefix=e:/ffmpeg_build/r19590 --enable-gpl --enable-nonfree -
-enable-version3 --enable-pthreads --enable-memalign-hack --enable-shared --disa
ble-static --enable-encoder=snow --disable-encoder=vorbis --disable-decoder=aac
--disable-encoder=aac --disable-ffserver --enable-mpegaudio-hp --enable-avisynth
--enable-bzlib --enable-libdirac --enable-libfaac --enable-libfaad --enable-lib
mp3lame --enable-libgsm --enable-libopenjpeg --enable-libschroedinger --enable-l
ibspeex --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-avfilter --enable
-avfilter-lavf --extra-cflags='-U__STRICT_ANSI__ -I/usr/local/include -I/usr/loc
al/include/schroedinger-1.0 -I/usr/local/include/dirac' --extra-ldflags=-L/usr/l
ocal/lib --extra-libs='-lpthreadGC2 -lstdc++'
  libavutil     50. 3. 0 / 50. 3. 0
  libavcodec    52.32. 0 / 52.32. 0
  libavformat   52.37. 0 / 52.37. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    0. 5. 0 /  0. 5. 0
  libswscale     0. 7. 1 /  0. 7. 1
  built on Aug  5 2009 12:50:56, gcc: 4.3.3
-------------------------------------------------------
  Support/discussion group : http://www.www.k686.com
-----------------------Enjoy it!-----------------------


Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000
/1) -> 12.00 (12/1)
Input #0, flv, from 'E:/2010/05/09/1273413491.flv':
  Duration: 00:00:18.16, start: 0.000000, bitrate: 261 kb/s
    Stream #0.0: Video: flv, yuv420p, 320x240, 261 kb/s, 12 tbr, 1k tbn, 1k tbc
    Stream #0.1: Audio: mp3, 22050 Hz, 2 channels, s16
Output #0, mjpeg, to 'E:/2010/05/09/1273413491.jpg':
    Stream #0.0: Video: mjpeg, yuvj420p, 320x240, q=2-31, 200 kb/s, 90k tbn, 12
tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
frame=   10 fps=  0 q=15.4 Lsize=     128kB time=0.83 bitrate=1259.8kbits/s
video:128kB audio:0kB global headers:0kB muxing overhead 0.000000%

C:\Documents and Settings\Administrator>E:/upload_code/FFmpeg/ffmpeg.exe -
i E:/2010/05/09/1273413491.flv -y -ss 00:00:09 -t 00:00:10 -s 320*240 -f mjpeg -
vframes 10 E:/2010/05/09/1273413491.jpg

哭,网络访问执行不了啊.救命.

ffmpeg在windows 2003下采用exec函数执行,总是不成功怎么回事呢.在本地是可以的哦.能分析下么.
echo exec("ping localhost");
就可以执行,输出最后一行结果.但是ffmpeg就不行.没有任何输出.

你可能感兴趣的:(C++,c,SVN,gcc,HP)