Skip to content

Commit be98e5b

Browse files
authored
Add files via upload
1 parent 88444ea commit be98e5b

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

gifconv.bat

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,18 @@ SET "bayerscale="
1919
SET "start_time="
2020
SET "duration="
2121
SET "colormax="
22+
SET "version="
23+
SET "build="
2224

2325
SET WD=%TEMP%\GIFCONV
2426
SET palette=%WD%\template
27+
FOR /F "delims=" %%a in ('ffmpeg -version') DO (
28+
IF NOT DEFINED version (
29+
SET "version=%%a"
30+
) ELSE IF NOT DEFINED build (
31+
SET "build=%%a"
32+
)
33+
)
2534
GOTO :help_check_1
2635

2736
:help_message
@@ -74,22 +83,22 @@ GOTO :EOF
7483
IF %mode% GTR 3 (
7584
ECHO Not a valid mode
7685
GOTO :EOF
77-
)ELSE IF %mode% LSS 1 (
86+
) ELSE IF %mode% LSS 1 (
7887
ECHO Not a valid mode
7988
GOTO :EOF
8089
)
8190
IF %dither% GTR 6 (
8291
ECHO Not a valid dither algorithm
8392
GOTO :EOF
84-
)ELSE IF %dither% LSS 1 (
93+
) ELSE IF %dither% LSS 1 (
8594
ECHO Not a valid dither algorithm
8695
GOTO :EOF
8796
)
8897
IF DEFINED bayerscale (
8998
IF !bayerscale! GTR 5 (
9099
ECHO Not a valid bayerscale value
91100
GOTO :EOF
92-
)ELSE IF !bayerscale! LSS 1 (
101+
) ELSE IF !bayerscale! LSS 1 (
93102
ECHO Not a valid bayerscale value
94103
GOTO :EOF
95104
)
@@ -123,6 +132,7 @@ GOTO :help_check_2
123132
IF %input% == "" GOTO :help_message
124133
IF %input% == "help" GOTO :help_message
125134
IF %input% == "h" GOTO :help_message
135+
IF %input% == "-h" GOTO :help_message
126136
GOTO :varin
127137

128138
:help_check_2
@@ -133,6 +143,8 @@ IF NOT DEFINED dither SET dither=1
133143
GOTO :safchek
134144

135145
:script_start
146+
ECHO %version%
147+
ECHO %build%
136148
ECHO Creating Working Directory...
137149
MD "%WD%"
138150

0 commit comments

Comments
 (0)