python ff-mpeg无法在VM上运行

时间:2013-07-31 04:11:15

标签: python-2.7 ffmpeg

我有两个Windows 2008 R2 64位服务器,有两个不同的主机提供商(GoDaddy和公司B)。我的python脚本在GoDaddy的服务器上成功运行。它在公司B的服务器上无法成功运行。

我在两台服务器上安装了相同的软件:

  • Python 2.7 for Windows 32位
  • NumPY模块
  • setuptools的
  • 适用于Windows的EchoNest API

公司B服务器给我一个与使用python ff-mpeg模块的名为en-ffmpeg.exe的可执行文件有关的错误。确切的错误消息是

  

[dv @ 0x1449690]无法确定DV输入流的配置文件。   C:\ Music \ song1.mp3:打开文件时出错

song.mp3文件存在。我在公司B的服务器上安装了最新的Windows更新,但仍然出现错误。我认为错误是因为在此服务器上没有正确配置某些内容(缺少库或驱动程序?)。但是,我不知道那是什么!

请帮助:)

更新包括来自FFMPEG的命令和错误输出

命令:

  

c:\ Python27> en-ffmpeg -i“C:\ Music \ song1.mp3”-y -ac 2 -ar 44100   “c:\ users \ x07 dmini~1 \ x07ppdata \ local \ temp \ x02 \ tmpax82jf.wav”

完全错误:

FFmpeg version SVN-r17988-Komeil, Copyright (c) 2000-2009 Fabrice Bellard, et al
.
  configuration: --enable-memalign-hack --extra-cflags=-fno-common --enable-stat
ic --disable-shared --disable-debug --enable-gpl --enable-nonfree --enable-avfil
ter --enable-avfilter-lavf --enable-avisynth --enable-postproc --enable-pthreads
 --enable-libamr-nb --enable-libamr-wb --enable-libgsm --enable-libfaac --enable
-libfaad --enable-libmp3lame --enable-libschroedinger --enable-libspeex --enable
-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid
  libavutil     50. 0. 0 / 50. 0. 0
  libavcodec    52.21. 0 / 52.21. 0
  libavformat   52.31. 1 / 52.31. 1
  libavdevice   52. 1. 0 / 52. 1. 0
  libavfilter    0. 4. 0 /  0. 4. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Mar 15 2009 18:16:31, gcc: 4.3.0 20080305 (alpha-testing) mingw-20080
502
[dv @ 0x1449690]Can't determine profile of DV input stream.
C:\\Music\\song1.mp3: Error while opening file

我也试过从命令中删除双反斜杠,但是得到了同样的错误。

1 个答案:

答案 0 :(得分:1)

SVN-r17988绝对古老而且不受支持。使用来自Zeranoe FFmpeg Windows builds的较新的ffmpeg,它将起作用。

FFmpeg开发非常活跃,使用最新版本(或自行编译)将确保您没有遇到已修复的错误。