Add files via upload

This commit is contained in:
MDHEXT 2021-12-07 23:31:46 -07:00 committed by GitHub
parent 90a7be7117
commit 5c7bb2c35c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
@ECHO OFF
REM By: MDHEXT, Nabi KaramAliZadeh <nabikaz@gmail.com>
REM Description: Video to GIF converter
REM Version: 5.0
REM Version: 4.7
REM Url: https://github.com/MDHEXT/video2gif, forked from https://github.com/NabiKAZ/video2gif
REM License: The MIT License (MIT)
@ -35,7 +35,7 @@ GOTO :help_check_1
:help_message
ECHO -------------------------------------------------------------------------------------------------------------
ECHO Video to GIF converter v5.0 ^(C^) 2017-2021, MDHEXT ^&^ Nabi KaramAliZadeh ^<nabikaz@gmail.com^>
ECHO Video to GIF converter v4.7 ^(C^) 2017-2021, MDHEXT ^&^ Nabi KaramAliZadeh ^<nabikaz@gmail.com^>
ECHO You can download this fork from here: https://github.com/MDHEXT/video2gif
ECHO you can download the original release here: https://github.com/NabiKAZ/video2gif
ECHO This tool uses ffmpeg, you can download that here: https://www.ffmpeg.org/download.html#build-windows
@ -119,7 +119,7 @@ IF NOT "%~1" =="" (
IF "%~1" =="-m" SET "mode=%~2" & SHIFT
IF "%~1" =="-d" SET "dither=%~2" & SHIFT
IF "%~1" =="-b" SET "bayerscale=%~2" & SHIFT
IF "%~1" =="-o" SET "output=%FILEPATH%%~nx2" & SHIFT
IF "%~1" =="-o" SET "output="%FILEPATH%%~nx2.gif"" & SHIFT
IF "%~1" =="-s" SET "start_time=%~2" & SHIFT
IF "%~1" =="-e" SET "duration=%~2" & SHIFT
IF "%~1" =="-c" SET "colormax=%~2" & SHIFT
@ -154,12 +154,15 @@ IF DEFINED start_time (
IF DEFINED duration SET "trim=-ss !start_time! -t !duration!"
IF NOT DEFINED duration (
ECHO Please input a duration
GOTO :EOF
GOTO :cleanup
)
)
IF NOT DEFINED start_time (
IF DEFINED duration ECHO Please input a start time
IF DEFINED duration (
ECHO Please input a start time
GOTO :cleanup
)
)
SET frames=%palette%_%%05d
@ -224,4 +227,4 @@ START "" %output%
ECHO Deleting Temporary files...
RMDIR /S /Q "%WD%"
ENDLOCAL
ECHO Done!
ECHO Done!