windows下ffmpeg配置方法

來源:互聯網
上載者:User

windows下ffmpeg配置方法:
http://ffmpeg.arrozcru.org/wiki/index.php?title=MSys_MinGW

Preparing the MSys+MinGW system
1、Installing MSys
a、安裝MSYS-1.0.10.exe到 C:/msys/
   注意:安裝目錄去掉了 1.0
b、msys_dll
   解壓MSYS-1.0.11-20080821-dll.tar.gz到C:/msys/ ,覆蓋
c、安裝bash
   解壓bash-3.1-MSYS-1.0.11-snapshot.tar.bz2,bash_3.1,拷貝其中bin檔案夾中內容到C:/msys/bin  ,覆蓋了sh.exe
d、安裝coreutils
   解壓coreutils-5.97/bin/pr.exe to C:/msys/bin/
e、安裝make
   解壓make-3.81-MSYS-1.0.11-2.tar.bz2,把之前的make.exe改名make-3.79.exe,用新的make.exe覆蓋   之前的

用文字文件開啟C:/msys/msys.bat
若vc++的路徑地址為: C:/Program Files/Microsoft Visual Studio 9.0/VC/bin/vcvars32.bat
則把下句放在msys.bat的而最前面:
call "C:/Program Files/Microsoft Visual Studio 9.0/VC/bin/vcvars32.bat"

若 Windows x64, 在_WindowsNT label (line 36) 後 添加:
rem Hopefully a temporary workaround for getting MSYS shell to run on x64
rem (WoW64 cmd prompt sets PROCESSOR_ARCHITECTURE to x86)
if not "x%PROCESSOR_ARCHITECTURE%" == "xAMD64" goto _NotX64
set COMSPEC=%WINDIR%/SysWOW64/cmd.exe
%COMSPEC% /c %0 %1 %2 %3 %4 %5 %6 %7 %8 %9
goto EOF
:_NotX64

否則shell很開開啟又關閉

2、Installing MinGW
將minGW中的壓縮檔解壓到C:/msys/mingw
若是gcc version 4.2.1 則需要改動一下C:/msys/mingw/bin/ :
c++-sjlj.exe to c++.exe
cpp-sjlj.exe to cpp.exe
g++-sjlj.exe to g++.exe
gcc-sjlj.exe to gcc.exe

3、Integrating MinGW with MSys
將C:/msys/etc/fstab.sample拷貝一份改名為 C:/msys/etc/fstab
用文字文件開啟C:/msys/etc/fstab,修改:c:/mingw /mingw為c:/msys/mingw /mingw

4、安裝TortoiseSVN
安裝TortoiseSVN

5、CheckOut
設定d:/ffmpeg為目錄,用TortoiseSVN chekcout
將ffmpeg-checkout-snapshot.tar.bz2解壓縮至d:/ffmpeg

6、測試:
開啟msys.bat,
輸入cd /d/ffmpeg,路徑變化後,然後輸入./configure --enable-memalign-hack,斷行符號!
make

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.