1 Star 0 Fork 1

M2-Team / FFmpegUniversal

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
FFmpegBuild.bat 2.47 KB
一键复制 编辑 原始数据 按行查看 历史
MouriNaruto 提交于 2018-05-04 22:00 . - Update to FFmpeg 4.0.
@setlocal
@echo off
rem Set the code page to reduce the compilation warnings
chcp 65001
rem Export full current PATH from environment into MSYS2
set MSYS2_PATH_TYPE=inherit
rem Set the MSYS2 bash path
set MSYS2_BIN="E:\Tools\msys64\usr\bin\bash.exe"
rem Set the Windows SDK version
set WindowsSDKversion=10.0.17134.0
set VSInstallerFolder="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer"
if %PROCESSOR_ARCHITECTURE%==x86 set VSInstallerFolder="%ProgramFiles%\Microsoft Visual Studio\Installer"
pushd %VSInstallerFolder%
for /f "usebackq tokens=*" %%i in (`vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath`) do (
set VS2017InstallDir=%%i
)
popd
rd /s /q "%~dp0Output/FFmpeg"
rd /s /q "%~dp0Output/FFmpeg_Temp"
rd /s /q "%~dp0FFmpegUniversal/FFmpeg"
rd /s /q "%~dp0FFmpegUniversalSDK/ARM"
rd /s /q "%~dp0FFmpegUniversalSDK/Win32"
rd /s /q "%~dp0FFmpegUniversalSDK/x64"
rd /s /q "%~dp0FFmpegUniversalSDK/libavcodec"
rd /s /q "%~dp0FFmpegUniversalSDK/libavdevice"
rd /s /q "%~dp0FFmpegUniversalSDK/libavfilter"
rd /s /q "%~dp0FFmpegUniversalSDK/libavformat"
rd /s /q "%~dp0FFmpegUniversalSDK/libavutil"
rd /s /q "%~dp0FFmpegUniversalSDK/libswresample"
rd /s /q "%~dp0FFmpegUniversalSDK/libswscale"
echo Building FFmpeg for Windows 10 apps x86...
echo:
setlocal
call "%VS2017InstallDir%\VC\Auxiliary\Build\vcvarsall.bat" x86 uwp %WindowsSDKversion%
%MSYS2_BIN% --login -x %~dp0FFmpegConfig.sh Static Win32
%MSYS2_BIN% --login -x %~dp0FFmpegConfig.sh Shared Win32
call "%~dp0FFmpegCopy.bat" Win32
endlocal
echo Building FFmpeg for Windows 10 apps x64...
echo:
setlocal
call "%VS2017InstallDir%\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64 uwp %WindowsSDKversion%
%MSYS2_BIN% --login -x %~dp0FFmpegConfig.sh Static x64
%MSYS2_BIN% --login -x %~dp0FFmpegConfig.sh Shared x64
call "%~dp0FFmpegCopy.bat" x64
endlocal
echo Building FFmpeg for Windows 10 apps ARM...
echo:
setlocal
call "%VS2017InstallDir%\VC\Auxiliary\Build\vcvarsall.bat" x86_arm uwp %WindowsSDKversion%
%MSYS2_BIN% --login -x %~dp0FFmpegConfig.sh Static ARM
%MSYS2_BIN% --login -x %~dp0FFmpegConfig.sh Shared ARM
call "%~dp0FFmpegCopy.bat" ARM
endlocal
echo Building FFmpeg for Windows 10 apps ARM64...
echo:
setlocal
call "%VS2017InstallDir%\VC\Auxiliary\Build\vcvarsall.bat" x86_arm64 uwp %WindowsSDKversion%
%MSYS2_BIN% --login -x %~dp0FFmpegConfig.sh Static ARM64
%MSYS2_BIN% --login -x %~dp0FFmpegConfig.sh Shared ARM64
call "%~dp0FFmpegCopy.bat" ARM64
endlocal
:Cleanup
@endlocal
1
https://gitee.com/M2-Team/FFmpegUniversal.git
git@gitee.com:M2-Team/FFmpegUniversal.git
M2-Team
FFmpegUniversal
FFmpegUniversal
master

搜索帮助