2013-07-31 14 views
0

我有兩臺Windows 2008 R2 64位服務器和兩個不同的主機提供商(GoDaddy和B公司)。我的python腳本在GoDaddy的服務器上成功運行。python ff-mpeg不能在虛擬機上工作

  • 的Python 2.7的Windows 32位
  • numpy的模塊
  • setuptools的
  • :它不與B公司

    我安裝了兩臺服務器上相同的軟件在服務器上運行成功對於Windows

B公司服務器EchoNest API是給我相關的可執行文件的錯誤稱爲EN-FFM使用python ff-mpeg模塊的peg.exe。確切的錯誤信息是

[dv @ 0x1449690]Can't determine profile of DV input stream. C:\Music\song1.mp3: Error while opening file

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

如果這涉及ffmpeg,則需要包含ffmpeg命令和完整的ffmpeg控制檯輸出。 – LordNeckbeard

+0

更新爲包含ffmpeg錯誤和輸出 – Bob

+0

它工作LordNeckbeard!我非常感謝:)我只是不知道爲什麼舊版本在我的GoDaddy服務器上工作,而不是與我的其他主機提供商。奇怪的。我不認爲我可以將評論標記爲答案。你想寫一個正式的答案,以便我可以接受它嗎? – Bob

回答

1

SVN-r17988是絕對古老的,不受支持。用戶從Zeranoe FFmpeg Windows builds更新的ffmpeg,它會工作。

FFmpeg開發非常活躍,使用最新版本(或自己編譯)將確保您沒有遇到已經修復的錯誤。