From bceab037969a770ce1a50f437f15dbdb918ffde3 Mon Sep 17 00:00:00 2001 From: keerah <9025818+keerah@users.noreply.github.com> Date: Mon, 20 Feb 2023 01:30:49 -0500 Subject: [PATCH] v3.1 Validation of digits in the frame counter Frame counter detection after delimiter feature A bit more restructuring Gif fps fix --- sendtoffmpeg_encoder01.cmd | 15 ++- sendtoffmpeg_encoder02.cmd | 102 +++++++++++++----- sendtoffmpeg_settings.cmd | 6 ++ to APNG forever loop.bat | 29 ++--- to CUDA h264 mp4 420 10Mbit aac128.bat | 21 ++-- to CUDA h264 mp4 420 10Mbit copy.bat | 21 ++-- to CUDA h264 mp4 420 1Mbit copy.bat | 21 ++-- to CUDA h264 mp4 420 20Mbit aac192.bat | 21 ++-- to CUDA h264 mp4 420 2Mbit aac96.bat | 21 ++-- to CUDA h264 mp4 420 40Mbit aac320.bat | 21 ++-- ...264 mp4 420 40Mbit external wav aac256.bat | 24 +++-- to CUDA h264 mp4 420 4Mbit aac96.bat | 21 ++-- to CUDA h264 mp4 420 4Mbit copy.bat | 21 ++-- to EXR squarifier.bat | 36 ++++--- to HQ Gif 1080px 25fps.bat | 29 +++-- to HQ Gif 120px 10fps.bat | 27 +++-- to HQ Gif 16 640px 10fps.bat | 27 +++-- to HQ Gif 304px 30fps.bat | 29 +++-- to HQ Gif 32 320px 10fps.bat | 27 +++-- to HQ Gif 32 616px 10fps.bat | 27 +++-- to HQ Gif 32 640px 10fps.bat | 27 +++-- to HQ Gif 420px 10fps.bat | 27 +++-- to HQ Gif 420px 15fps.bat | 29 +++-- to HQ Gif 64 640px 15fps.bat | 29 +++-- to HQ Gif 640px 15fps.bat | 29 +++-- to HQ Gif 640px 24fps.bat | 29 +++-- to HQ Gif 640px 25fps.bat | 29 +++-- to JPEG q10.bat | 21 ++-- to JPEG q100.bat | 21 ++-- to JPEG q40.bat | 21 ++-- to JPEG q90.bat | 21 ++-- to PNG hi.bat | 21 ++-- to PNG low 400px width.bat | 21 ++-- to PNG low.bat | 21 ++-- to h264 mp4 420 baseline L3 high 20 film.bat | 21 ++-- to h264 mp4 420 high 20 film aac256.bat | 21 ++-- to h264 mp4 420 high 25 film aac192.bat | 23 ++-- to h264 mp4 420 high 30 film aac256.bat | 23 ++-- to h264 mp4 420 very high 14 film aac256.bat | 10 +- ...y high 14 film scale lanczos 1080 copy.bat | 11 +- ... high 14 film scale lanczos 640 aac128.bat | 11 +- to h264 mp4 420 very high 16 film aac256.bat | 21 ++-- ... high 16 film scale lanczos 720 aac256.bat | 21 ++-- to h264 mp4 420 very high 18 film aac256.bat | 21 ++-- ... high 20 film scale lanczos 540 aac128.bat | 23 ++-- 45 files changed, 528 insertions(+), 570 deletions(-) diff --git a/sendtoffmpeg_encoder01.cmd b/sendtoffmpeg_encoder01.cmd index 5e8b1d6..2627175 100644 --- a/sendtoffmpeg_encoder01.cmd +++ b/sendtoffmpeg_encoder01.cmd @@ -1,12 +1,17 @@ REM This is one of the SenTo FFmpeg modular transcoders, keep it with the rest of the files -REM v3.05 +REM v3.1 -ECHO ---------------------------------------------------------------------------------------- +ECHO %divline% +ECHO SendTo FFmpeg encoder v3.1 by Keerah +ECHO %wset.hline1% +IF NOT "[%wset.hline2%]"=="[]" ECHO %wset.hline2% +ECHO %wset.hline3% +ECHO %divline% ECHO %argCount% files queued to encode FOR /L %%i IN (1,1,%argCount%) DO ( - ECHO ---------------------------------------------------------------------------------------- + ECHO %divline% SET "vlen=" FOR /F "tokens=* delims=" %%f IN ('call "%ffpath%ffprobe.exe" -v error -show_entries "format=duration" -of "default=noprint_wrappers=1:nokey=1" "!argFile[%%i].name!"') DO SET "vlen=%%f" @@ -100,6 +105,6 @@ FOR /L %%i IN (1,1,%argCount%) DO ( ) endlocal -ECHO ---------------------------------------------------------------------------------------- +ECHO %divline% ECHO SERVED -ECHO ---------------------------------------------------------------------------------------- \ No newline at end of file +ECHO %divline% \ No newline at end of file diff --git a/sendtoffmpeg_encoder02.cmd b/sendtoffmpeg_encoder02.cmd index 1143df3..c880f03 100644 --- a/sendtoffmpeg_encoder02.cmd +++ b/sendtoffmpeg_encoder02.cmd @@ -1,57 +1,109 @@ REM This is one of the SenTo FFmpeg modular transcoders, keep it with the rest of the files -REM v3.05 +REM v3.1 -ECHO ---------------------------------------------------------------------------------------- +ECHO %divline% +ECHO SendTo FFmpeg encoder v3.1 by Keerah +ECHO %wset.hline1% +IF NOT "[%wset.hline2%]"=="[]" ECHO %wset.hline2% +ECHO %wset.hline3% +ECHO %divline% ECHO %argCount% files queued to encode FOR /L %%i IN (1,1,%argCount%) DO ( - ECHO ---------------------------------------------------------------------------------------- + ECHO %divline% SET "vlen=" FOR /F "tokens=* delims=" %%f IN ('call "%ffpath%ffprobe.exe" -v error -show_entries "format=duration" -of "default=noprint_wrappers=1:nokey=1" "!argFile[%%i].name!"') DO SET "vlen=%%f" IF !vlen! == N/A ( - ECHO The source is a single image file with no length - + ECHO The source is a single image file with no length + SET "wset.audiocomp=" + IF !imgseq! GTR 0 ( REM detecting image sequence IF !frcounter! GTR 0 ( REM detecting the counter in the end of the filename SET "basename=!argFile[%%i].trname:~0,-%frcounter%!" SET "countername=!argFile[%%i].trname:~-%frcounter%!" - FOR /F "tokens=* delims=0" %%N IN ("!countername!") DO SET /A frnumber=%%N - IF !frnumber! GTR 0 ( - REM overwrite default framerate setting with the preset's one - SET /A fps=%wset.fps% - SET "argFile[%%i].name=!argFile[%%i].path!!basename!%%0!frcounter!d!argFile[%%i].ext!" - ECHO Image sequence detected - ECHO Basename: "!basename!" Start frame: !frnumber! Pattern: "!basename!%%0!frcounter!d" - SET "wset.seqfr=-framerate %fps% -start_number !frnumber! -pattern_type sequence" - REM No audio assumed - SET "wset.audiocomp=" + + SET "middelim=" + SET /A frnumber=-1 + SET "zer=" + FOR /L %%I IN (1,1,%frcounter%) DO SET "zer=!zer!0" + + IF !countername!==!zer! ( + REM Zero frame + SET /A frnumber=0 + ) ELSE ( + REM Validating frame number + SET "ddet=" + FOR /F "delims=0123456789" %%I IN ("!countername!") DO SET ddet=%%i + + IF defined ddet ( + ECHO The last %frcounter% symbols of the filename is not a number + + IF NOT [%frdelim%] == [] ( + REM Now let's try to use delimiter + FOR /f "tokens=1-3 delims=%frdelim%" %%A in ("!argFile[%%i].trname!") do ( + SET "beforedelim=%%A" + SET "middelim=%%B" + SET "afterdelim=%%C" + ) + REM Limiting the counter. Lazy way, will consider string length calculation in future to get all digits + SET "middelimtr=!middelim:~0,%frcounter%!" + + REM Validating frame number + SET "ddet=" + FOR /F "delims=0123456789" %%I IN ("!middelimtr!") DO SET ddet=%%i + IF defined ddet ( + ECHO No frame number after delimiter found. No sequence assumed + ) ELSE ( + ECHO Image sequence detected. Frame number after delimiter "%frdelim%". Digits:%frcounter% + REM Removing leading zeroes (if any) + FOR /F "tokens=* delims=0" %%N IN ("!middelimtr!") DO SET "frnumbername=%%N" + SET /A "frnumber=!frnumbername!" + ) + ) + ) ELSE ( + ECHO Image sequence detected. Frame number at the end of the filename. Digits:%frcounter% + REM Removing leading zeroes (if any) + FOR /F "tokens=* delims=0" %%N IN ("!countername!") DO SET "frnumbername=%%N" + SET /A "frnumber=!frnumbername!" + ) + ) + + IF !frnumber! GTR -1 ( + IF [!middelim!] == [] ( + REM Constructing the pattern in the end of the name + SET "argFile[%%i].name=!argFile[%%i].path!!basename!%%0%frcounter%d!argFile[%%i].ext!" + ECHO Basename:"!basename!" Start frame:!frnumber! Pattern:"!basename!%%0%frcounter%d" + ) ELSE ( + REM Constructing the pattern after the delimiter + REM !!! Needs a fix if middelim was trimmed to frcounter = add the trimmed part to filename!!! + IF !middelim! == !middelimtr! (SET "midsfx=") ELSE (SET midsfx=!middelim:~%frcounter%!) + SET "argFile[%%i].name=!argFile[%%i].path!!beforedelim!%frdelim%%%0%frcounter%d!midsfx!%frdelim%!afterdelim!!argFile[%%i].ext!" + ECHO Basename:"!beforedelim!" Start frame:!frnumber! Pattern:"!beforedelim!%frdelim%%%0%frcounter%d!midsfx!%frdelim%!afterdelim!" + ) + SET /A fps=!wset.fps! + SET "wset.seqfr=-framerate !fps! -start_number !frnumber! -pattern_type sequence" + ECHO The source and output FPS synced to !fps! ) ELSE ( - REM No sequence, no pattern SET "wset.seqfr=" - SET "wset.seqfrout=" ) - ) ELSE ( - REM detecting the counter after first found dot - REM No implementation yet ) ) ELSE ( SET "wset.seqfr=" - SET "wset.seqfrout=" ) ) ELSE ( - echo Video length is: !vlen! seconds + ECHO Video length is: !vlen! seconds ) ECHO Encoding file %%i of %argCount% ECHO STAGE 1: Generating a palette "%ffpath%ffmpeg.exe" !wset.params! !wset.seqfr! -i "!argFile[%%i].name!" !wset.prepass! !wset.seqfrout! -y "!argFile[%%i].trname!"palette.png - ECHO ---------------------------------------------------------------------------------------- + ECHO %divline% ECHO Encoding file %%i of %argCount% ECHO STAGE 2: Encoding to Gif using the generatied palette "%ffpath%ffmpeg.exe" !wset.params! !wset.seqfr! -i "!argFile[%%i].name!" -i "!argFile[%%i].trname!"palette.png !wset.videocomp! !wset.over! "!argFile[%%i].trname!"!wset.suff! @@ -59,6 +111,6 @@ FOR /L %%i IN (1,1,%argCount%) DO ( IF EXIST "!argFile[%%i].trname!palette.png" DEL /s "!argFile[%%i].trname!palette.png" > nul ) -ECHO ---------------------------------------------------------------------------------------- +ECHO %divline% ECHO SERVED -ECHO ---------------------------------------------------------------------------------------- \ No newline at end of file +ECHO %divline% \ No newline at end of file diff --git a/sendtoffmpeg_settings.cmd b/sendtoffmpeg_settings.cmd index d5e93da..eb9c1fe 100644 --- a/sendtoffmpeg_settings.cmd +++ b/sendtoffmpeg_settings.cmd @@ -41,6 +41,8 @@ REM It will aslo be used for the framerate of Gifs generated from sequences SET /A imgseq=1 REM Consider image sequences REM if 0 then ffmpeg won't look for image sequences even if the selected file is a part of one +REM When this option is on, be cautios if the files you specified are part of a sequence(s), +REM each of them can be encoded into a separate video then. SET /A frcounter=4 REM Frame counter digits @@ -51,3 +53,7 @@ SET "frdelim=." REM Framecounter delimiter (separation symbol) REM After the code fails to find frame numbers in the end of the filename, it will try REM to find the first delimiter symbol and detect if there's frame number after it. +REM Set this to "frdelim=" (empty string) if you do not want this detection to run. + +SET "divline=-----------------------------------------------------------------------------------------------" +REM Divider string used for UI diff --git a/to APNG forever loop.bat b/to APNG forever loop.bat index 9a55355..0f89312 100644 --- a/to APNG forever loop.bat +++ b/to APNG forever loop.bat @@ -14,26 +14,22 @@ FOR %%f IN (%*) DO ( ) IF %argCount% LEQ 0 ( - ECHO ----------------------------------------------------------------------------------- + ECHO %divline% ECHO NO FILE^(S^) SPECIFIED GOTO :End ) -ECHO ----------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: APNG plain, loop forever - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End @@ -48,6 +44,7 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=ECHO Preset: APNG plain, loop forever" SET "wset.params=-v %vbl% -hide_banner -stats" SET "wset.videocomp=-f apng -plays 0" SET "wset.audiocomp=" @@ -55,16 +52,22 @@ IF %quietover% == 1 (SET "wset.over=-y") ELSE (SET "wset.over=") IF %dscr% GTR 0 (SET "wset.dscr=_animpng") ELSE (SET "wset.dscr=") SET "wset.suff=!wset.dscr!.png" -ECHO ----------------------------------------------------------------------------------- +ECHO %divline% +ECHO SendTo FFmpeg encoder v3.1 by Keerah +ECHO %wset.hline1% +IF NOT "[%wset.hline2%]"=="[]" ECHO %wset.hline2% +ECHO %wset.hline3% +ECHO %divline% ECHO %argCount% files queued to encode + FOR /L %%i IN (1,1,%argCount%) DO ( - ECHO ----------------------------------------------------------------------------------- + ECHO %divline% FOR /F "tokens=* delims=" %%f IN ('call "%ffpath%ffprobe.exe" -v error -show_entries "format=duration" -of "default=noprint_wrappers=1:nokey=1" "!argFile[%%i].name!"') DO SET "vlen=%%f" - IF !vlen! NEQ "N/A" ( + IF !vlen! == N/A ( ECHO The source is a single image file with no length IF !imgseq! GTR 0 ( @@ -100,9 +103,9 @@ FOR /L %%i IN (1,1,%argCount%) DO ( "%ffpath%ffmpeg.exe" !wset.params! !seqfr! -i "!argFile[%%i].name!" !wset.videocomp! !wset.audiocomp! !seqfrout! !wset.over! "!argFile[%%i].trname!"!wset.suff! ) -ECHO ----------------------------------------------------------------------------------- -ECHO SERVED -ECHO ----------------------------------------------------------------------------------- +ECHO %divline% +ECHO SERVED +ECHO %divline% :End if %pse% GTR 0 PAUSE \ No newline at end of file diff --git a/to CUDA h264 mp4 420 10Mbit aac128.bat b/to CUDA h264 mp4 420 10Mbit aac128.bat index c4c598b..5278d9e 100644 --- a/to CUDA h264 mp4 420 10Mbit aac128.bat +++ b/to CUDA h264 mp4 420 10Mbit aac128.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: h264 mp4 CUDA 420, slow, 10 Mbps, kf 2 sec, Audio aac128 - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,6 +44,7 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: h264 mp4 CUDA 420, slow, 10 Mbps, kf 2 sec, Audio aac128" SET "wset.params=-v %vbl% -hide_banner -stats" SET "wset.videocomp=-c:v h264_nvenc -preset slow -b:v 10M -pix_fmt yuv420p -force_key_frames 0:00:02" REM The output video will have keyframes each 2 seconds due to -force_key_frames 0:00:02 diff --git a/to CUDA h264 mp4 420 10Mbit copy.bat b/to CUDA h264 mp4 420 10Mbit copy.bat index d564ff8..ee79f3d 100644 --- a/to CUDA h264 mp4 420 10Mbit copy.bat +++ b/to CUDA h264 mp4 420 10Mbit copy.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: h264 mp4 CUDA 420, slow, 10 Mbps, kf 2 sec, Audio copy - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,6 +44,7 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: h264 mp4 CUDA 420, slow, 10 Mbps, kf 2 sec, Audio copy" SET "wset.params=-v %vbl% -hide_banner -stats" SET "wset.videocomp=-c:v h264_nvenc -preset slow -b:v 10M -pix_fmt yuv420p -force_key_frames 0:00:02" REM The output video will have keyframes each 2 seconds due to -force_key_frames 0:00:02 diff --git a/to CUDA h264 mp4 420 1Mbit copy.bat b/to CUDA h264 mp4 420 1Mbit copy.bat index b81df39..0ece39f 100644 --- a/to CUDA h264 mp4 420 1Mbit copy.bat +++ b/to CUDA h264 mp4 420 1Mbit copy.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: h264 mp4 CUDA 420, slow, 1 Mbps, kf 2 sec, Audio Copy - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,6 +44,7 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: h264 mp4 CUDA 420, slow, 1 Mbps, kf 2 sec, Audio Copy" SET "wset.params=-v %vbl% -hide_banner -stats" SET "wset.videocomp=-c:v h264_nvenc -b:v 1M -pix_fmt yuv420p -preset slow -force_key_frames 0:00:02" REM The output video will have keyframes each 2 seconds due to -force_key_frames 0:00:02 diff --git a/to CUDA h264 mp4 420 20Mbit aac192.bat b/to CUDA h264 mp4 420 20Mbit aac192.bat index 86bedc6..314a416 100644 --- a/to CUDA h264 mp4 420 20Mbit aac192.bat +++ b/to CUDA h264 mp4 420 20Mbit aac192.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: h264 mp4 CUDA 420, slow, 20 Mbps, kf 2 sec, Audio aac192 - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,6 +44,7 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: h264 mp4 CUDA 420, slow, 20 Mbps, kf 2 sec, Audio aac192" SET "wset.params=-v %vbl% -hide_banner -stats" SET "wset.videocomp=-c:v h264_nvenc -preset slow -b:v 20M -pix_fmt yuv420p -force_key_frames 0:00:02" REM The output video will have keyframes each 2 seconds due to -force_key_frames 0:00:02 diff --git a/to CUDA h264 mp4 420 2Mbit aac96.bat b/to CUDA h264 mp4 420 2Mbit aac96.bat index 535b1f6..7e1850f 100644 --- a/to CUDA h264 mp4 420 2Mbit aac96.bat +++ b/to CUDA h264 mp4 420 2Mbit aac96.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: h264 mp4 CUDA 420, slow, 2 Mbps, no kf, Audio aac96 - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,6 +44,7 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: h264 mp4 CUDA 420, slow, 2 Mbps, no kf, Audio aac96" SET "wset.params=-v %vbl% -hide_banner -stats" SET "wset.videocomp=-c:v h264_nvenc -preset slow -b:v 2M -pix_fmt yuv420p" REM The output video will have keyframes each 2 seconds due to -force_key_frames 0:00:02 diff --git a/to CUDA h264 mp4 420 40Mbit aac320.bat b/to CUDA h264 mp4 420 40Mbit aac320.bat index 0d09eb1..57a0de1 100644 --- a/to CUDA h264 mp4 420 40Mbit aac320.bat +++ b/to CUDA h264 mp4 420 40Mbit aac320.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: h264 mp4 CUDA 420, slow, 40 Mbps, kf 2 sec, Audio aac320 - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,6 +44,7 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: h264 mp4 CUDA 420, slow, 40 Mbps, kf 2 sec, Audio aac320" SET "wset.params=-v %vbl% -hide_banner -stats" SET "wset.videocomp=-c:v h264_nvenc -preset slow -b:v 40M -pix_fmt yuv420p -force_key_frames 0:00:02" REM The output video will have keyframes each 2 seconds due to -force_key_frames 0:00:02 diff --git a/to CUDA h264 mp4 420 40Mbit external wav aac256.bat b/to CUDA h264 mp4 420 40Mbit external wav aac256.bat index 991bdda..2744bc8 100644 --- a/to CUDA h264 mp4 420 40Mbit external wav aac256.bat +++ b/to CUDA h264 mp4 420 40Mbit external wav aac256.bat @@ -5,10 +5,8 @@ REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmp setlocal enabledelayedexpansion -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v2.15 by Keerah -ECHO Preset: h264 mp4 CUDA 420, slow, 40 Mbps, kf 2 sec, External Audio to aac256 -ECHO This preset is single file only. Looking for audio source: %~n1.wav +SET "wset.hline1=Preset: h264 mp4 CUDA 420, slow, 40 Mbps, kf 2 sec, External Audio to aac256" +SET "wset.hline2=This preset is single file only. Looking for audio source: %~n1.wav" SET "cmdp=%~dp0" SET "argp=%~dp1" @@ -16,24 +14,32 @@ SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +ECHO %divline% +ECHO SendTo FFmpeg encoder v3.1 by Keerah +ECHO %wset.hline1% +IF NOT "[%wset.hline2%]"=="[]" ECHO %wset.hline2% +ECHO %wset.hline3% +ECHO %divline% +ECHO %argCount% files queued to encode + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! GOTO :End ) - ECHO ---------------------------------------------------------------------------------------- + ECHO %divline% IF %1.==. ( @@ -58,8 +64,8 @@ IF %1.==. ( ) :End -ECHO ---------------------------------------------------------------------------------------- +ECHO %divline% ECHO SERVED -ECHO ---------------------------------------------------------------------------------------- +ECHO %divline% if %pse% GTR 0 PAUSE \ No newline at end of file diff --git a/to CUDA h264 mp4 420 4Mbit aac96.bat b/to CUDA h264 mp4 420 4Mbit aac96.bat index d749f55..a351369 100644 --- a/to CUDA h264 mp4 420 4Mbit aac96.bat +++ b/to CUDA h264 mp4 420 4Mbit aac96.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: h264 mp4 CUDA 420, slow, 4 Mbps, no kf, Audio aac96 - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,6 +44,7 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: h264 mp4 CUDA 420, slow, 4 Mbps, no kf, Audio aac96" SET "wset.params=-v %vbl% -hide_banner -stats" SET "wset.videocomp=-c:v h264_nvenc -preset slow -b:v 4M -pix_fmt yuv420p" REM The output video will have keyframes each 2 seconds due to -force_key_frames 0:00:02 diff --git a/to CUDA h264 mp4 420 4Mbit copy.bat b/to CUDA h264 mp4 420 4Mbit copy.bat index 5b0c81e..2775189 100644 --- a/to CUDA h264 mp4 420 4Mbit copy.bat +++ b/to CUDA h264 mp4 420 4Mbit copy.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: h264 mp4 CUDA 420, slow, 4 Mbps, kf 2 sec, Audio copy - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO [--- Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,6 +44,7 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: h264 mp4 CUDA 420, slow, 4 Mbps, kf 2 sec, Audio copy" SET "wset.params=-v %vbl% -hide_banner -stats" SET "wset.videocomp=-c:v h264_nvenc -preset slow -b:v 4M -pix_fmt yuv420p -force_key_frames 0:00:02" REM The output video will have keyframes each 2 seconds due to -force_key_frames 0:00:02 diff --git a/to EXR squarifier.bat b/to EXR squarifier.bat index 5dedfec..8eb6701 100644 --- a/to EXR squarifier.bat +++ b/to EXR squarifier.bat @@ -13,16 +13,8 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ----------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ----------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: EXR linear half-float, zip16 -ECHO Scales to the next power of 2 to the maximum of width or height +SET "wset.hline1=Preset: EXR linear half-float, zip16" +SET "wset.hline2=Scales to the next power of 2 to the maximum of width or height" REM This one process only on per frame basis, no sequence detection, no video splitting as of yet @@ -32,18 +24,23 @@ SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( - IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -56,7 +53,12 @@ IF NOT EXIST "%ffpath%exiftool.exe" ( GOTO :End ) -ECHO ----------------------------------------------------------------------------------- +ECHO %divline% +ECHO SendTo FFmpeg encoder v3.1 by Keerah +ECHO %wset.hline1% +IF NOT "[%wset.hline2%]"=="[]" ECHO %wset.hline2% +ECHO %wset.hline3% +ECHO %divline% ECHO %argCount% files queued to encode @@ -77,7 +79,7 @@ SET "wset.suff=!wset.dscr!.exr" FOR /L %%i IN (1,1,%argCount%) DO ( - ECHO ----------------------------------------------------------------------------------- + ECHO %divline% REM fetch for the image dimensions using exiftool REM exiftool was chosen because of the its clean output, unlike the ffprobe's, less parsing is simpler and faster @@ -104,9 +106,9 @@ FOR /L %%i IN (1,1,%argCount%) DO ( "%ffpath%ffmpeg.exe" %wset.params% %wset.seqfr% -i "!argFile[%%i].name!" -vf "scale=!sFac!:!sFac!,setsar=1:1" %wset.videocomp% %wset.audiocomp% %wset.over% %wset.seqfrout% "!argFile[%%i].trname!"%wset.suff% ) -ECHO ----------------------------------------------------------------------------------- +ECHO %divline% ECHO SERVED -ECHO ----------------------------------------------------------------------------------- +ECHO %divline% :End if %pse% GTR 0 PAUSE \ No newline at end of file diff --git a/to HQ Gif 1080px 25fps.bat b/to HQ Gif 1080px 25fps.bat index b03c186..d0a30fb 100644 --- a/to HQ Gif 1080px 25fps.bat +++ b/to HQ Gif 1080px 25fps.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah.com -ECHO Preset: Gif 256 colors, 1080px width, 25 fps, 2 pass - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,10 +44,11 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings -SET "wset.fps=10" -SET "wset.params=-v %vbl% -hide_banner -stats" -SET "wset.prepass=-vf "fps=25,scale=1080:-1:flags=lanczos,palettegen"" -SET "wset.videocomp=-filter_complex "fps=25,scale=1080:-1:flags=lanczos[x];[x][1:v]paletteuse"" +SET "wset.hline1=Preset: Gif 256 colors, 1080px width, 25 fps, 2 pass" +SET "wset.fps=25" +SET "wset.params=-v %vbl% -hide_banner -stats -thread_queue_size 256" +SET "wset.prepass=-vf "fps=%wset.fps%,scale=1080:-1:flags=lanczos,palettegen"" +SET "wset.videocomp=-filter_complex "fps=%wset.fps%,scale=1080:-1:flags=lanczos[x];[x][1:v]paletteuse"" REM There's no alpha channel support yet. The output file will be saved to the same folder your source comes from. REM You can change the frame rate/resolution by changing fps=XX/scale=XXX values to your preference, just do it in both FFmpeg command lines. SET "wset.audiocomp=" diff --git a/to HQ Gif 120px 10fps.bat b/to HQ Gif 120px 10fps.bat index 1878999..d0ca055 100644 --- a/to HQ Gif 120px 10fps.bat +++ b/to HQ Gif 120px 10fps.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: Gif 256 colors, 120px width, 10 fps, 2 pass - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,10 +44,11 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: Gif 256 colors, 120px width, 10 fps, 2 pass" SET "wset.fps=10" -SET "wset.params=-v %vbl% -hide_banner -stats" -SET "wset.prepass=-vf "fps=10,scale=120:-1:flags=lanczos,palettegen"" -SET "wset.videocomp=-filter_complex "fps=10,scale=120:-1:flags=lanczos[x];[x][1:v]paletteuse"" +SET "wset.params=-v %vbl% -hide_banner -stats -thread_queue_size 256" +SET "wset.prepass=-vf "fps=%wset.fps%,scale=120:-1:flags=lanczos,palettegen"" +SET "wset.videocomp=-filter_complex "fps=%wset.fps%,scale=120:-1:flags=lanczos[x];[x][1:v]paletteuse"" REM There's no alpha channel support yet. The output file will be saved to the same folder your source comes from. REM You can change the frame rate/resolution by changing fps=XX/scale=XXX values to your preference, just do it in both FFmpeg command lines. SET "wset.audiocomp=" diff --git a/to HQ Gif 16 640px 10fps.bat b/to HQ Gif 16 640px 10fps.bat index 91b7dc5..52e2863 100644 --- a/to HQ Gif 16 640px 10fps.bat +++ b/to HQ Gif 16 640px 10fps.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: Gif 16 colors, 640px width, 10 fps, 2 pass - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,10 +44,11 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: Gif 16 colors, 640px width, 10 fps, 2 pass" SET "wset.fps=10" -SET "wset.params=-v %vbl% -hide_banner -stats" -SET "wset.prepass=-vf fps=10,scale=640:-1:flags=lanczos,palettegen=max_colors=16:stats_mode=full" -SET "wset.videocomp=-filter_complex "fps=10,scale=640:-1:flags=lanczos[x];[x][1:v]paletteuse"" +SET "wset.params=-v %vbl% -hide_banner -stats -thread_queue_size 256" +SET "wset.prepass=-vf "fps=%wset.fps%,scale=640:-1:flags=lanczos,palettegen=max_colors=16:stats_mode=full"" +SET "wset.videocomp=-filter_complex "fps=%wset.fps%,scale=640:-1:flags=lanczos[x];[x][1:v]paletteuse"" REM There's no alpha channel support yet. The output file will be saved to the same folder your source comes from. REM You can change the frame rate/resolution by changing fps=XX/scale=XXX values to your preference, just do it in both FFmpeg command lines. SET "wset.audiocomp=" diff --git a/to HQ Gif 304px 30fps.bat b/to HQ Gif 304px 30fps.bat index 8416ce9..7fd7fb8 100644 --- a/to HQ Gif 304px 30fps.bat +++ b/to HQ Gif 304px 30fps.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah.com -ECHO Preset: Gif 256 colors, 304px width, 30 fps, 2 pass, sierra2_4a - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,10 +44,11 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings -SET "wset.fps=10" -SET "wset.params=-v %vbl% -hide_banner -stats" -SET "wset.prepass=-vf "fps=30,scale=304:-1:flags=lanczos,palettegen=max_colors=128:stats_mode=full"" -SET "wset.videocomp=-filter_complex "fps=30,scale=304:-1:flags=lanczos[x];[x][1:v]paletteuse=dither=sierra2_4a"" +SET "wset.hline1=Preset: Gif 256 colors, 304px width, 30 fps, 2 pass, sierra2_4a" +SET "wset.fps=30" +SET "wset.params=-v %vbl% -hide_banner -stats -thread_queue_size 256" +SET "wset.prepass=-vf "fps=%wset.fps%,scale=304:-1:flags=lanczos,palettegen=max_colors=128:stats_mode=full"" +SET "wset.videocomp=-filter_complex "fps=%wset.fps%,scale=304:-1:flags=lanczos[x];[x][1:v]paletteuse=dither=sierra2_4a"" REM There's no alpha channel support yet. The output file will be saved to the same folder your source comes from. REM You can change the frame rate/resolution by changing fps=XX/scale=XXX values to your preference, just do it in both FFmpeg command lines. SET "wset.audiocomp=" diff --git a/to HQ Gif 32 320px 10fps.bat b/to HQ Gif 32 320px 10fps.bat index 0681e5c..1eb01ba 100644 --- a/to HQ Gif 32 320px 10fps.bat +++ b/to HQ Gif 32 320px 10fps.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: Gif 32 colors, 320px width, 10 fps, 2 pass - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,10 +44,11 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: Gif 32 colors, 320px width, 10 fps, 2 pass" SET "wset.fps=10" -SET "wset.params=-v %vbl% -hide_banner -stats" -SET "wset.prepass=-vf fps=10,scale=320:-1:flags=lanczos,palettegen=max_colors=32:stats_mode=full" -SET "wset.videocomp=-filter_complex "fps=10,scale=320:-1:flags=lanczos[x];[x][1:v]paletteuse"" +SET "wset.params=-v %vbl% -hide_banner -stats -thread_queue_size 256" +SET "wset.prepass=-vf "fps=%wset.fps%,scale=320:-1:flags=lanczos,palettegen=max_colors=32:stats_mode=full"" +SET "wset.videocomp=-filter_complex "fps=%wset.fps%,scale=320:-1:flags=lanczos[x];[x][1:v]paletteuse"" REM There's no alpha channel support yet. The output file will be saved to the same folder your source comes from. REM You can change the frame rate/resolution by changing fps=XX/scale=XXX values to your preference, just do it in both FFmpeg command lines. SET "wset.audiocomp=" diff --git a/to HQ Gif 32 616px 10fps.bat b/to HQ Gif 32 616px 10fps.bat index 385364e..0368a38 100644 --- a/to HQ Gif 32 616px 10fps.bat +++ b/to HQ Gif 32 616px 10fps.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah.com -ECHO Preset: Gif 32 colors, 616px width, 10 fps, 2 pass, Bayer 3 - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,10 +44,11 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Gif 32 colors, 616px width, 10 fps, 2 pass, Bayer 3" SET "wset.fps=10" -SET "wset.params=-v %vbl% -hide_banner -stats" -SET "wset.prepass=-vf "fps=10,scale=616:-1:flags=lanczos,palettegen=max_colors=32:stats_mode=full"" -SET "wset.videocomp=-filter_complex "fps=10,scale=616:-1:flags=lanczos[x];[x][1:v]paletteuse=dither=bayer:bayer_scale=3"" +SET "wset.params=-v %vbl% -hide_banner -stats -thread_queue_size 256" +SET "wset.prepass=-vf "fps=%wset.fps%,scale=616:-1:flags=lanczos,palettegen=max_colors=32:stats_mode=full"" +SET "wset.videocomp=-filter_complex "fps=%wset.fps%,scale=616:-1:flags=lanczos[x];[x][1:v]paletteuse=dither=bayer:bayer_scale=3"" REM There's no alpha channel support yet. The output file will be saved to the same folder your source comes from. REM You can change the frame rate/resolution by changing fps=XX/scale=XXX values to your preference, just do it in both FFmpeg command lines. SET "wset.audiocomp=" diff --git a/to HQ Gif 32 640px 10fps.bat b/to HQ Gif 32 640px 10fps.bat index 88773cc..956b076 100644 --- a/to HQ Gif 32 640px 10fps.bat +++ b/to HQ Gif 32 640px 10fps.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: Gif 32 colors, 640px width, 10 fps, 2 pass - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,10 +44,11 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Gif 32 colors, 640px width, 10 fps, 2 pass" SET "wset.fps=10" -SET "wset.params=-v %vbl% -hide_banner -stats" -SET "wset.prepass=-vf "fps=10,scale=640:-1:flags=lanczos,palettegen=max_colors=32"" -SET "wset.videocomp=-filter_complex "fps=10,scale=640:-1:flags=lanczos[x];[x][1:v]paletteuse"" +SET "wset.params=-v %vbl% -hide_banner -stats -thread_queue_size 256" +SET "wset.prepass=-vf "fps=%wset.fps%,scale=640:-1:flags=lanczos,palettegen=max_colors=32"" +SET "wset.videocomp=-filter_complex "fps=%wset.fps%,scale=640:-1:flags=lanczos[x];[x][1:v]paletteuse"" REM There's no alpha channel support yet. The output file will be saved to the same folder your source comes from. REM You can change the frame rate/resolution by changing fps=XX/scale=XXX values to your preference, just do it in both FFmpeg command lines. SET "wset.audiocomp=" diff --git a/to HQ Gif 420px 10fps.bat b/to HQ Gif 420px 10fps.bat index 21e5e61..5c2f236 100644 --- a/to HQ Gif 420px 10fps.bat +++ b/to HQ Gif 420px 10fps.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah.com -ECHO Preset: Gif 256 colors, 420px width, 10 fps, 2 pass - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,10 +44,11 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: Gif 256 colors, 420px width, 10 fps, 2 pass" SET "wset.fps=10" -SET "wset.params=-v %vbl% -hide_banner -stats" -SET "wset.prepass=-vf "fps=10,scale=420:-1:flags=lanczos,palettegen"" -SET "wset.videocomp=-filter_complex "fps=10,scale=420:-1:flags=lanczos[x];[x][1:v]paletteuse"" +SET "wset.params=-v %vbl% -hide_banner -stats -thread_queue_size 256" +SET "wset.prepass=-vf "fps=%wset.fps%,scale=420:-1:flags=lanczos,palettegen"" +SET "wset.videocomp=-filter_complex "fps=%wset.fps%,scale=420:-1:flags=lanczos[x];[x][1:v]paletteuse"" REM There's no alpha channel support yet. The output file will be saved to the same folder your source comes from. REM You can change the frame rate/resolution by changing fps=XX/scale=XXX values to your preference, just do it in both FFmpeg command lines. SET "wset.audiocomp=" diff --git a/to HQ Gif 420px 15fps.bat b/to HQ Gif 420px 15fps.bat index b39fcca..476522e 100644 --- a/to HQ Gif 420px 15fps.bat +++ b/to HQ Gif 420px 15fps.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah.com -ECHO Preset: Gif 256 colors, 420px width, 15 fps, 2 pass - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,10 +44,11 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings -SET "wset.fps=10" -SET "wset.params=-v %vbl% -hide_banner -stats" -SET "wset.prepass=-vf "fps=15,scale=420:-1:flags=lanczos,palettegen"" -SET "wset.videocomp=-filter_complex "fps=15,scale=420:-1:flags=lanczos[x];[x][1:v]paletteuse"" +SET "wset.hline1=Preset: Gif 256 colors, 420px width, 15 fps, 2 pass" +SET "wset.fps=15" +SET "wset.params=-v %vbl% -hide_banner -stats -thread_queue_size 256" +SET "wset.prepass=-vf "fps=%wset.fps%,scale=420:-1:flags=lanczos,palettegen"" +SET "wset.videocomp=-filter_complex "fps=%wset.fps%,scale=420:-1:flags=lanczos[x];[x][1:v]paletteuse"" REM There's no alpha channel support yet. The output file will be saved to the same folder your source comes from. REM You can change the frame rate/resolution by changing fps=XX/scale=XXX values to your preference, just do it in both FFmpeg command lines. SET "wset.audiocomp=" diff --git a/to HQ Gif 64 640px 15fps.bat b/to HQ Gif 64 640px 15fps.bat index d617132..68d0ecb 100644 --- a/to HQ Gif 64 640px 15fps.bat +++ b/to HQ Gif 64 640px 15fps.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ----------------------------------------------------------------------------------------] -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: Gif 64 colors, 640px width, 15 fps, 2 pass - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,10 +44,11 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings -SET "wset.fps=10" -SET "wset.params=-v %vbl% -hide_banner -stats" -SET "wset.prepass=-vf "fps=15,scale=640:-1:flags=lanczos,palettegen=max_colors=64"" -SET "wset.videocomp=-filter_complex "fps=15,scale=640:-1:flags=lanczos[x];[x][1:v]paletteuse"" +SET "wset.hline1=Preset: Gif 64 colors, 640px width, 15 fps, 2 pass" +SET "wset.fps=15" +SET "wset.params=-v %vbl% -hide_banner -stats -thread_queue_size 256" +SET "wset.prepass=-vf "fps=%wset.fps%,scale=640:-1:flags=lanczos,palettegen=max_colors=64"" +SET "wset.videocomp=-filter_complex "fps=%wset.fps%,scale=640:-1:flags=lanczos[x];[x][1:v]paletteuse"" REM There's no alpha channel support yet. The output file will be saved to the same folder your source comes from. REM You can change the frame rate/resolution by changing fps=XX/scale=XXX values to your preference, just do it in both FFmpeg command lines. SET "wset.audiocomp=" diff --git a/to HQ Gif 640px 15fps.bat b/to HQ Gif 640px 15fps.bat index c8dd43e..93fc999 100644 --- a/to HQ Gif 640px 15fps.bat +++ b/to HQ Gif 640px 15fps.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah.com -ECHO Preset: Gif 256 colors, 640px width, 15 fps, 2 pass - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,10 +44,11 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings -SET "wset.fps=10" -SET "wset.params=-v %vbl% -hide_banner -stats" -SET "wset.prepass=-vf "fps=15,scale=640:-1:flags=lanczos,palettegen"" -SET "wset.videocomp=-filter_complex "fps=15,scale=640:-1:flags=lanczos[x];[x][1:v]paletteuse"" +SET "wset.hline1=Preset: Gif 256 colors, 640px width, 15 fps, 2 pass" +SET "wset.fps=15" +SET "wset.params=-v %vbl% -hide_banner -stats -thread_queue_size 256" +SET "wset.prepass=-vf "fps=%wset.fps%,scale=640:-1:flags=lanczos,palettegen"" +SET "wset.videocomp=-filter_complex "fps=%wset.fps%,scale=640:-1:flags=lanczos[x];[x][1:v]paletteuse"" REM There's no alpha channel support yet. The output file will be saved to the same folder your source comes from. REM You can change the frame rate/resolution by changing fps=XX/scale=XXX values to your preference, just do it in both FFmpeg command lines. SET "wset.audiocomp=" diff --git a/to HQ Gif 640px 24fps.bat b/to HQ Gif 640px 24fps.bat index d80d205..6a43ba7 100644 --- a/to HQ Gif 640px 24fps.bat +++ b/to HQ Gif 640px 24fps.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah.com -ECHO Preset: Gif 256 colors, 640px width, 24 fps, 2 pass - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,10 +44,11 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings -SET "wset.fps=10" -SET "wset.params=-v %vbl% -hide_banner -stats" -SET "wset.prepass=-vf "fps=24,scale=640:-1:flags=lanczos,palettegen"" -SET "wset.videocomp=-filter_complex "fps=24,scale=640:-1:flags=lanczos[x];[x][1:v]paletteuse"" +SET /A wset.fps=24 +SET "wset.hline1=Preset: Gif 256 colors, 640px width, %wset.fps% fps, 2 pass" +SET "wset.params=-v %vbl% -hide_banner -stats -thread_queue_size 256" +SET "wset.prepass=-vf "fps=%wset.fps%,scale=640:-1:flags=lanczos,palettegen"" +SET "wset.videocomp=-filter_complex "fps=%wset.fps%,scale=640:-1:flags=lanczos[x];[x][1:v]paletteuse"" REM There's no alpha channel support yet. The output file will be saved to the same folder your source comes from. REM You can change the frame rate/resolution by changing fps=XX/scale=XXX values to your preference, just do it in both FFmpeg command lines. SET "wset.audiocomp=" diff --git a/to HQ Gif 640px 25fps.bat b/to HQ Gif 640px 25fps.bat index 19e2100..b380ea0 100644 --- a/to HQ Gif 640px 25fps.bat +++ b/to HQ Gif 640px 25fps.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah.com -ECHO Preset: Gif 256 colors, 640px width, 25 fps, 2 pass - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,10 +44,11 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings -SET "wset.fps=10" -SET "wset.params=-v %vbl% -hide_banner -stats" -SET "wset.prepass=-vf "fps=25,scale=640:-1:flags=lanczos,palettegen"" -SET "wset.videocomp=-filter_complex "fps=25,scale=640:-1:flags=lanczos[x];[x][1:v]paletteuse"" +SET "wset.hline1=Preset: Gif 256 colors, 640px width, 25 fps, 2 pass" +SET "wset.fps=25" +SET "wset.params=-v %vbl% -hide_banner -stats -thread_queue_size 256" +SET "wset.prepass=-vf "fps=%wset.fps%,scale=640:-1:flags=lanczos,palettegen"" +SET "wset.videocomp=-filter_complex "fps=%wset.fps%,scale=640:-1:flags=lanczos[x];[x][1:v]paletteuse"" REM There's no alpha channel support yet. The output file will be saved to the same folder your source comes from. REM You can change the frame rate/resolution by changing fps=XX/scale=XXX values to your preference, just do it in both FFmpeg command lines. SET "wset.audiocomp=" diff --git a/to JPEG q10.bat b/to JPEG q10.bat index c609d64..ec37580 100644 --- a/to JPEG q10.bat +++ b/to JPEG q10.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: JPEG quality 10 - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,6 +44,7 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: JPEG quality 10" SET "wset.params=-v %vbl% -hide_banner -stats" SET "wset.videocomp=-vf "scale=in_range=mpeg:out_range=full" -q:v 9" SET "wset.audiocomp=" diff --git a/to JPEG q100.bat b/to JPEG q100.bat index 679a3b3..9f997ad 100644 --- a/to JPEG q100.bat +++ b/to JPEG q100.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: JPEG quality 100 - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,6 +44,7 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: JPEG quality 100" SET "wset.params=-v %vbl% -hide_banner -stats" SET "wset.videocomp=-vf "scale=in_range=mpeg:out_range=full" -q:v 0" SET "wset.audiocomp=" diff --git a/to JPEG q40.bat b/to JPEG q40.bat index 095c9b2..1589311 100644 --- a/to JPEG q40.bat +++ b/to JPEG q40.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: JPEG quality 40 - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,6 +44,7 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: JPEG quality 40" SET "wset.params=-v %vbl% -hide_banner -stats" SET "wset.videocomp=-vf "scale=in_range=mpeg:out_range=full" -q:v 6" SET "wset.audiocomp=" diff --git a/to JPEG q90.bat b/to JPEG q90.bat index 37b0d66..7433e5d 100644 --- a/to JPEG q90.bat +++ b/to JPEG q90.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO --------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: JPEG quality 90 - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,6 +44,7 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: JPEG quality 90" SET "wset.params=-v %vbl% -hide_banner -stats" SET "wset.videocomp=-vf "scale=in_range=mpeg:out_range=full" -c:v 4 -q:v 1" SET "wset.audiocomp=" diff --git a/to PNG hi.bat b/to PNG hi.bat index b7a81e5..ff280c2 100644 --- a/to PNG hi.bat +++ b/to PNG hi.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: PNG, compression 0 - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,6 +44,7 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: PNG, compression 0" SET "wset.params=-v %vbl% -hide_banner -stats" SET "wset.videocomp=-compression_level 0" SET "wset.audiocomp=" diff --git a/to PNG low 400px width.bat b/to PNG low 400px width.bat index 747b73a..ebc0da4 100644 --- a/to PNG low 400px width.bat +++ b/to PNG low 400px width.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: PNG, compression 9, resize to width 400 - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,6 +44,7 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: PNG, compression 9, resize to width 400" SET "wset.params=-v %vbl% -hide_banner -stats" SET "wset.videocomp=-vf scale=400:-1 -sws_flags lanczos -compression_level 9" SET "wset.audiocomp=" diff --git a/to PNG low.bat b/to PNG low.bat index 30d5199..7693161 100644 --- a/to PNG low.bat +++ b/to PNG low.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: PNG, max compression of 9 - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,6 +44,7 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: PNG, max compression of 9" SET "wset.params=-v %vbl% -hide_banner -stats" SET "wset.videocomp=-compression_level 9" SET "wset.audiocomp=" diff --git a/to h264 mp4 420 baseline L3 high 20 film.bat b/to h264 mp4 420 baseline L3 high 20 film.bat index 5edcc37..25f1d02 100644 --- a/to h264 mp4 420 baseline L3 high 20 film.bat +++ b/to h264 mp4 420 baseline L3 high 20 film.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ----------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ----------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah.com -ECHO Preset: h264 mp4, 420 L3 3.0, veryslow, crf 20, Film, kf 2 sec, Audio aac128 - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,6 +44,7 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: h264 mp4, 420 L3 3.0, veryslow, crf 20, Film, kf 2 sec, Audio aac128" SET "wset.params=-v %vbl% -hide_banner -stats" SET "wset.videocomp=-c:v libx264 -profile:v baseline -level 3.0 -pix_fmt yuv420p -tune film -preset veryslow -crf 20 -force_key_frames 0:00:02" REM The output video will have keyframes each 2 seconds due to -force_key_frames 0:00:02 diff --git a/to h264 mp4 420 high 20 film aac256.bat b/to h264 mp4 420 high 20 film aac256.bat index 6903a28..aa03e2d 100644 --- a/to h264 mp4 420 high 20 film aac256.bat +++ b/to h264 mp4 420 high 20 film aac256.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ----------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ----------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: h264 mp4 420, veryslow, crf 20, GRAIN, kf 2 sec, Audio aac256 - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,6 +44,7 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=ECHO Preset: h264 mp4 420, veryslow, crf 20, GRAIN, kf 2 sec, Audio aac256" SET "wset.params=-v %vbl% -hide_banner -stats" SET "wset.videocomp=-c:v libx264 -preset veryslow -crf 20 -pix_fmt yuv420p -tune film -force_key_frames 0:00:02" REM The output video will have keyframes each 2 seconds due to -force_key_frames 0:00:02 diff --git a/to h264 mp4 420 high 25 film aac192.bat b/to h264 mp4 420 high 25 film aac192.bat index ffa5840..84093da 100644 --- a/to h264 mp4 420 high 25 film aac192.bat +++ b/to h264 mp4 420 high 25 film aac192.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ----------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ----------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: h264 mp4 420, veryslow, crf 25, FILM, kf 2 sec, Audio aac192 - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( - ECHO Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! + ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,6 +44,7 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: h264 mp4 420, veryslow, crf 25, FILM, kf 2 sec, Audio aac192" SET "wset.params=-v %vbl% -hide_banner -stats" SET "wset.videocomp=-c:v libx264 -preset veryslow -crf 25 -pix_fmt yuv420p -tune film -force_key_frames 0:00:02" REM The output video will have keyframes each 2 seconds due to -force_key_frames 0:00:02 diff --git a/to h264 mp4 420 high 30 film aac256.bat b/to h264 mp4 420 high 30 film aac256.bat index 97b88c3..4216f71 100644 --- a/to h264 mp4 420 high 30 film aac256.bat +++ b/to h264 mp4 420 high 30 film aac256.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ----------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ----------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: h264 mp4 420, veryslow, crf 30, GRAIN, kf 2 sec, Audio aac256 - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( - ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! + ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO ----------------------------------------------------------------------------------- + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,6 +44,7 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: h264 mp4 420, veryslow, crf 30, GRAIN, kf 2 sec, Audio aac256" SET "wset.params=-v %vbl% -hide_banner -stats" SET "wset.videocomp=-c:v libx264 -preset veryslow -crf 30 -pix_fmt yuv420p -tune film -force_key_frames 0:00:02" REM The output video will have keyframes each 2 seconds due to -force_key_frames 0:00:02 diff --git a/to h264 mp4 420 very high 14 film aac256.bat b/to h264 mp4 420 very high 14 film aac256.bat index 3063681..00c0e70 100644 --- a/to h264 mp4 420 very high 14 film aac256.bat +++ b/to h264 mp4 420 very high 14 film aac256.bat @@ -14,14 +14,11 @@ FOR %%f IN (%*) DO ( ) IF %argCount% LEQ 0 ( - ECHO ----------------------------------------------------------------------------------- + ECHO %divline% ECHO NO FILE^(S^) SPECIFIED GOTO :End ) -ECHO ----------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah.com -ECHO Preset: h264 mp4 420 veryslow, crf 14, GRAIN, kf 2sec, Audio aac256 SET "cmdp=%~dp0" SET "argp=%~dp1" @@ -29,11 +26,11 @@ SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End @@ -48,6 +45,7 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: h264 mp4 420 veryslow, crf 14, GRAIN, kf 2sec, Audio aac256" SET "wset.params=-v %vbl% -hide_banner -stats" SET "wset.videocomp=-c:v libx264 -preset veryslow -crf 14 -pix_fmt yuv420p -tune film -force_key_frames 0:00:02" REM The output video will have keyframes each 2 seconds due to -force_key_frames 0:00:02 diff --git a/to h264 mp4 420 very high 14 film scale lanczos 1080 copy.bat b/to h264 mp4 420 very high 14 film scale lanczos 1080 copy.bat index 28cb275..70e804e 100644 --- a/to h264 mp4 420 very high 14 film scale lanczos 1080 copy.bat +++ b/to h264 mp4 420 very high 14 film scale lanczos 1080 copy.bat @@ -14,26 +14,22 @@ FOR %%f IN (%*) DO ( ) IF %argCount% LEQ 0 ( - ECHO ----------------------------------------------------------------------------------- + ECHO %divline% ECHO NO FILE^(S^) SPECIFIED GOTO :End ) -ECHO ----------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: h264 mp4 420, veryslow, crf 14, lanczos 1080p, Film, kf 2 sec, Copy - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End @@ -48,6 +44,7 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: h264 mp4 420, veryslow, crf 14, lanczos 1080p, Film, kf 2 sec, Copy" SET "wset.params=-v %vbl% -hide_banner -stats" SET "wset.videocomp=-c:v libx264 -preset veryslow -crf 14 -pix_fmt yuv420p -vf scale=-1:1080 -sws_flags lanczos -tune film -force_key_frames 0:00:02" REM The output video will have keyframes each 2 seconds due to -force_key_frames 0:00:02 diff --git a/to h264 mp4 420 very high 14 film scale lanczos 640 aac128.bat b/to h264 mp4 420 very high 14 film scale lanczos 640 aac128.bat index cccdfc1..06fe5a4 100644 --- a/to h264 mp4 420 very high 14 film scale lanczos 640 aac128.bat +++ b/to h264 mp4 420 very high 14 film scale lanczos 640 aac128.bat @@ -14,26 +14,22 @@ FOR %%f IN (%*) DO ( ) IF %argCount% LEQ 0 ( - ECHO ----------------------------------------------------------------------------------- + ECHO %divline% ECHO NO FILE^(S^) SPECIFIED GOTO :End ) -ECHO ----------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: h264 mp4 420, veryslow, crf 16, lanczos 640p, FILM, kf 2 sec, aac128 - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End @@ -48,6 +44,7 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: h264 mp4 420, veryslow, crf 16, lanczos 640p, FILM, kf 2 sec, aac128" SET "wset.params=-v %vbl% -hide_banner -stats" SET "wset.videocomp=-c:v libx264 -preset veryslow -crf 16 -pix_fmt yuv420p -vf scale=-1:640 -sws_flags lanczos -tune film -force_key_frames 0:00:02" REM The output video will have keyframes each 2 seconds due to -force_key_frames 0:00:02 diff --git a/to h264 mp4 420 very high 16 film aac256.bat b/to h264 mp4 420 very high 16 film aac256.bat index 3b16660..75d670e 100644 --- a/to h264 mp4 420 very high 16 film aac256.bat +++ b/to h264 mp4 420 very high 16 film aac256.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: h264 mp4, 420 veryslow, crf 16, Film, kf 2sec, Audio aac256 - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,6 +44,7 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: h264 mp4, 420 veryslow, crf 16, Film, kf 2sec, Audio aac256" SET "wset.params=-v %vbl% -hide_banner -stats" SET "wset.videocomp=-c:v libx264 -preset veryslow -crf 16 -pix_fmt yuv420p -tune film -force_key_frames 0:00:02" REM The output video will have keyframes each 2 seconds due to -force_key_frames 0:00:02 diff --git a/to h264 mp4 420 very high 16 film scale lanczos 720 aac256.bat b/to h264 mp4 420 very high 16 film scale lanczos 720 aac256.bat index 77ff2ec..9a54495 100644 --- a/to h264 mp4 420 very high 16 film scale lanczos 720 aac256.bat +++ b/to h264 mp4 420 very high 16 film scale lanczos 720 aac256.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: h264 mp4 420, veryslow, crf 16, lanczos 720p, Film, kf 2 sec, aac256 - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,6 +44,7 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: h264 mp4 420, veryslow, crf 16, lanczos 720p, Film, kf 2 sec, aac256" SET "wset.params=-v %vbl% -hide_banner -stats" SET "wset.videocomp=-c:v libx264 -preset veryslow -crf 16 -pix_fmt yuv420p -vf scale=-1:720 -sws_flags lanczos -tune film -force_key_frames 0:00:02" REM The output video will have keyframes each 2 seconds due to -force_key_frames 0:00:02 diff --git a/to h264 mp4 420 very high 18 film aac256.bat b/to h264 mp4 420 very high 18 film aac256.bat index 3542d90..fa58127 100644 --- a/to h264 mp4 420 very high 18 film aac256.bat +++ b/to h264 mp4 420 very high 18 film aac256.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v3.0 by Keerah -ECHO Preset: h264 mp4 420, veryslow, crf 18, Film, kf 2 sec, Audio aac256 - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,6 +44,7 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: h264 mp4 420, veryslow, crf 18, Film, kf 2 sec, Audio aac256" SET "wset.params=-v %vbl% -hide_banner -stats" SET "wset.videocomp=-c:v libx264 -preset veryslow -crf 18 -pix_fmt yuv420p -tune film -force_key_frames 0:00:02" REM The output video will have keyframes each 2 seconds due to -force_key_frames 0:00:02 diff --git a/to h264 mp4 420 very high 20 film scale lanczos 540 aac128.bat b/to h264 mp4 420 very high 20 film scale lanczos 540 aac128.bat index 2ee4ec6..5eadedc 100644 --- a/to h264 mp4 420 very high 20 film scale lanczos 540 aac128.bat +++ b/to h264 mp4 420 very high 20 film scale lanczos 540 aac128.bat @@ -13,33 +13,29 @@ FOR %%f IN (%*) DO ( SET "argFile[!argCount!].path=%%~dpf" ) -IF %argCount% LEQ 0 ( - ECHO ---------------------------------------------------------------------------------------- - ECHO NO FILE^(S^) SPECIFIED - GOTO :End -) - -ECHO ---------------------------------------------------------------------------------- -ECHO SendTo FFmpeg encoder v2.2 by Keerah.com -ECHO Preset: h264 mp4 420, veryslow, crf 24, lanczos 540p, Film, kf 2 sec, aac128 - SET "cmdp=%~dp0" SET "argp=%~dp1" REM get settings IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( CALL "%argp%sendtoffmpeg_settings.cmd" - ECHO Settings: *LOCAL*, Verbosity: !vbl! + SET "wset.hline3=Settings: *LOCAL*, Verbosity: !vbl!" ) ELSE ( IF EXIST "%cmdp%sendtoffmpeg_settings.cmd" ( CALL "%cmdp%sendtoffmpeg_settings.cmd" - ECHO Settings: Global, Verbosity: !vbl! + SET "wset.hline3=Settings: Global, Verbosity: !vbl!" ) ELSE ( - ECHO ^! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! + ECHO ! Sorry, the sendtoffmpeg_settings.cmd is unreacheable. Unable to continue! GOTO :End ) ) +IF %argCount% LEQ 0 ( + ECHO %divline% + ECHO NO FILE^(S^) SPECIFIED + GOTO :End +) + REM Check for ffmpeg IF NOT EXIST "%ffpath%ffmpeg.exe" ( ECHO ^! Sorry, the path to ffmpeg.exe is unreacheable. Unable to continue! @@ -48,6 +44,7 @@ IF NOT EXIST "%ffpath%ffmpeg.exe" ( REM compression settings +SET "wset.hline1=Preset: h264 mp4 420, veryslow, crf 24, lanczos 540p, Film, kf 2 sec, aac128" SET "wset.params=-v %vbl% -hide_banner -stats" SET "wset.videocomp=-c:v libx264 -preset veryslow -crf 24 -pix_fmt yuv420p -vf scale=-1:540 -sws_flags lanczos -tune film -force_key_frames 0:00:02" REM The output video will have keyframes each 2 seconds due to -force_key_frames 0:00:02