forked from NabiKAZ/video2gif
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix filename for custom naming.
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
@ECHO OFF | ||
REM By: MDHEXT, Nabi KaramAliZadeh <[email protected]> | ||
REM Description: Video to GIF converter | ||
REM Version: 4.6 | ||
REM Version: 4.7 | ||
REM Url: https://github.com/MDHEXT/video2gif, forked from https://github.com/NabiKAZ/video2gif | ||
REM License: The MIT License (MIT) | ||
|
||
SETLOCAL ENABLEDELAYEDEXPANSION | ||
SET input="%~1" | ||
SET vid="%~dpnx1" | ||
SET output="%~dpn1.gif" | ||
SET FILEPATH="%~dp1" | ||
SET FILEPATH=%~dp1 | ||
|
||
SET "scale=" | ||
SET "fps=" | ||
|
@@ -26,7 +26,7 @@ GOTO :help_check_1 | |
|
||
:help_message | ||
ECHO ------------------------------------------------------------------------------------------------------------- | ||
ECHO [96mVideo to GIF converter v4.6 ^(C^) 2017-2021, MDHEXT ^&^ Nabi KaramAliZadeh ^<nabikaz@gmail.com^>[0m | ||
ECHO [96mVideo to GIF converter v4.7 ^(C^) 2017-2021, MDHEXT ^&^ Nabi KaramAliZadeh ^<nabikaz@gmail.com^>[0m | ||
ECHO [96mYou can download this fork from here: https://github.com/MDHEXT/video2gif[0m | ||
ECHO [96myou can download the original release here: https://github.com/NabiKAZ/video2gif[0m | ||
ECHO [96mThis tool uses ffmpeg, you can download that here: https://www.ffmpeg.org/download.html#build-windows[0m | ||
|
@@ -93,7 +93,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%%~2" & SHIFT | ||
IF "%~1" =="-o" SET "output=%FILEPATH%%~nx2" & SHIFT | ||
IF "%~1" =="-s" SET "start_time=%~2" & SHIFT | ||
IF "%~1" =="-e" SET "duration=%~2" & SHIFT | ||
IF "%~1" =="-c" SET "colormax=%~2" & SHIFT | ||
|