-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.cmd
More file actions
38 lines (25 loc) · 1.01 KB
/
configure.cmd
File metadata and controls
38 lines (25 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@echo off
::setlocal EnableExtensions EnableDelayedExpansion
::title scaling down and compressing video
set EXIF_VER=13.50_64
set FFMPEG_VER=7.1
set USER_PATH=%CD%
set SCRIPT_PATH=%~dp0
set TMP_PATH=%SCRIPT_PATH%\tmp
set BIN_PATH=%SCRIPT_PATH%\bin
set FFMPEG_URL=https://download.dorkusmalorkus.org/ffmpeg-%FFMPEG_VER%-full_build-shared.zip
set EXIFTOOL_URL=https://download.dorkusmalorkus.org/exiftool-%EXIF_VER%.zip
if not exist %TMP_PATH%\ (
mkdir %TMP_PATH%
)
if not exist %BIN_PATH%\ (
mkdir %BIN_PATH%
)
powershell Invoke-WebRequest %FFMPEG_URL% -OutFile %TMP_PATH%\ffmpeg.zip
powershell Expand-Archive %TMP_PATH%\ffmpeg.zip -DestinationPath %TMP_PATH%\
powershell Invoke-WebRequest %EXIFTOOL_URL% -OutFile %TMP_PATH%\exiftool.zip
powershell Expand-Archive %TMP_PATH%\exiftool.zip -DestinationPath %TMP_PATH%\
copy /v /y %TMP_PATH%\ffmpeg-%FFMPEG_VER%-full_build-shared\bin\* %BIN_PATH%\
xcopy /v /y /e %TMP_PATH%\exiftool-%EXIF_VER%\* %BIN_PATH%\
rename "%BIN_PATH%\exiftool(-k).exe" exiftool.exe
exit /b 0