From 9e6da8e6505adc432a41474b013e17b2a6c6a407 Mon Sep 17 00:00:00 2001 From: keerah <9025818+keerah@users.noreply.github.com> Date: Thu, 28 Oct 2021 22:36:51 +0300 Subject: [PATCH] removed CUDA decoding, small fixes CUDA decoding removed for wider input video compatibility, small fixes and updates --- sendtoffmpeg_settings.cmd | 2 +- to CUDA h264 mp4 420 10Mbit aac128.bat | 6 +- to CUDA h264 mp4 420 10Mbit.bat | 6 +- to CUDA h264 mp4 420 1Mbit.bat | 6 +- to CUDA h264 mp4 420 20Mbit aac192.bat | 6 +- to CUDA h264 mp4 420 20Mbit.bat | 6 +- to CUDA h264 mp4 420 2Mbit aac96.bat | 6 +- to CUDA h264 mp4 420 40Mbit aac320.bat | 6 +- ...264 mp4 420 40Mbit external wav aac256.bat | 6 +- to CUDA h264 mp4 420 40Mbit external wav.bat | 6 +- to CUDA h264 mp4 420 40Mbit.bat | 6 +- to CUDA h264 mp4 420 4Mbit aac96.bat | 6 +- to CUDA h264 mp4 420 4Mbit.bat | 6 +- to HQ Gif 120px 10fps.bat | 4 +- to HQ Gif 16 640px 10fps.bat | 75 +++++++++++++++++++ to HQ Gif 304px 15fps.bat | 4 +- to HQ Gif 32 320px 10fps.bat | 4 +- to HQ Gif 32 640px 10fps.bat | 4 +- to HQ Gif 420px 10fps.bat | 6 +- to HQ Gif 420px 15fps.bat | 4 +- to HQ Gif 616px 15fps.bat | 4 +- to HQ Gif 640px 15fps.bat | 4 +- to Hap.bat | 4 +- to h264 mp4 420 baseline L3 high 20 film.bat | 4 +- to h264 mp4 420 high 20 film aac256.bat | 4 +- ...p4 420 high 20 film baseline level 3.0.bat | 4 +- to h264 mp4 420 high 30 film aac256.bat | 64 ++++++++++++++++ to h264 mp4 420 very high 14 film aac256.bat | 4 +- ...0 very high 14 film scale lanczos 1080.bat | 4 +- ... high 14 film scale lanczos 540 aac128.bat | 4 +- to h264 mp4 420 very high 14 film.bat | 4 +- to h264 mp4 420 very high 16 film aac256.bat | 4 +- ... high 16 film scale lanczos 720 aac256.bat | 4 +- to h264 mp4 420 very high 18 film.bat | 4 +- ... high 20 film scale lanczos 540 aac128.bat | 4 +- 35 files changed, 217 insertions(+), 78 deletions(-) create mode 100644 to HQ Gif 16 640px 10fps.bat create mode 100644 to h264 mp4 420 high 30 film aac256.bat diff --git a/sendtoffmpeg_settings.cmd b/sendtoffmpeg_settings.cmd index 6bb64b1..4c6eaa4 100644 --- a/sendtoffmpeg_settings.cmd +++ b/sendtoffmpeg_settings.cmd @@ -1,5 +1,5 @@ REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2019 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg REM SendTo_FFmpeg settings file diff --git a/to CUDA h264 mp4 420 10Mbit aac128.bat b/to CUDA h264 mp4 420 10Mbit aac128.bat index 96d5a80..e6aaa35 100644 --- a/to CUDA h264 mp4 420 10Mbit aac128.bat +++ b/to CUDA h264 mp4 420 10Mbit aac128.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -13,7 +13,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.1 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi MP4 h264 module has been invoked ---] ECHO [--- Preset: CUDA 420, slow, 10 Mbps, kf 2 sec, Audio aac128 ---] @@ -50,7 +50,7 @@ FOR /L %%i IN (1,1,%argCount%) DO ( for /F "delims=" %%f in ('call "%ffpath%ffprobe.exe" -v error -show_entries "format=duration" -of "default=noprint_wrappers=1:nokey=1" "!argVec[%%i]!"') do echo [ Video length is: %%f - "%ffpath%ffmpeg.exe" -v %vbl% -hide_banner -stats -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i "!argVec[%%i]!" -c:v h264_nvenc -preset slow -b:v 10M -pix_fmt yuv420p -force_key_frames 0:00:02 -c:a aac -b:a 128k -y "!argVn[%%i]!%dscrName%.mp4" + "%ffpath%ffmpeg.exe" -v %vbl% -hide_banner -stats -i "!argVec[%%i]!" -c:v h264_nvenc -preset slow -b:v 10M -pix_fmt yuv420p -force_key_frames 0:00:02 -c:a aac -b:a 128k -y "!argVn[%%i]!%dscrName%.mp4" ) :End diff --git a/to CUDA h264 mp4 420 10Mbit.bat b/to CUDA h264 mp4 420 10Mbit.bat index 363b566..acd834b 100644 --- a/to CUDA h264 mp4 420 10Mbit.bat +++ b/to CUDA h264 mp4 420 10Mbit.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -13,7 +13,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.1 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi MP4 h264 module has been invoked ---] ECHO [--- Preset: CUDA 420, slow, 10 Mbps, keyfr 2 sec, Audio Copy ---] @@ -50,7 +50,7 @@ FOR /L %%i IN (1,1,%argCount%) DO ( for /F "delims=" %%f in ('call "%ffpath%ffprobe.exe" -v error -show_entries "format=duration" -of "default=noprint_wrappers=1:nokey=1" "!argVec[%%i]!"') do echo [ Video length is: %%f - "%ffpath%ffmpeg.exe" -v %vbl% -hide_banner -stats -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i "!argVec[%%i]!" -c:v h264_nvenc -preset slow -b:v 10M -pix_fmt yuv420p -force_key_frames 0:00:02 -c:a copy -y "!argVn[%%i]!%dscrName%.mp4" + "%ffpath%ffmpeg.exe" -v %vbl% -hide_banner -stats -i "!argVec[%%i]!" -c:v h264_nvenc -preset slow -b:v 10M -pix_fmt yuv420p -force_key_frames 0:00:02 -c:a copy -y "!argVn[%%i]!%dscrName%.mp4" ) :End diff --git a/to CUDA h264 mp4 420 1Mbit.bat b/to CUDA h264 mp4 420 1Mbit.bat index ae10d24..1b73418 100644 --- a/to CUDA h264 mp4 420 1Mbit.bat +++ b/to CUDA h264 mp4 420 1Mbit.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -13,7 +13,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.1 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi MP4 h264 module has been invoked ---] ECHO [--- Preset: CUDA 420, slow, 1 Mbps, kf 2 sec, Audio Copy ---] @@ -50,7 +50,7 @@ FOR /L %%i IN (1,1,%argCount%) DO ( for /F "delims=" %%f in ('call "%ffpath%ffprobe.exe" -v error -show_entries "format=duration" -of "default=noprint_wrappers=1:nokey=1" "!argVec[%%i]!"') do echo [ Video length is: %%f - "%ffpath%ffmpeg.exe" -v %vbl% -hide_banner -stats -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i "!argVec[%%i]!" -c:v h264_nvenc -preset slow -b:v 1M -pix_fmt yuv420p -force_key_frames 0:00:02 -c:a copy -y "!argVn[%%i]!%dscrName%.mp4" + "%ffpath%ffmpeg.exe" -v %vbl% -hide_banner -stats -i "!argVec[%%i]!" -c:v h264_nvenc -b:v 1M -pix_fmt yuv420p -preset slow -force_key_frames 0:00:02 -c:a copy -y "!argVn[%%i]!%dscrName%.mp4" ) :End diff --git a/to CUDA h264 mp4 420 20Mbit aac192.bat b/to CUDA h264 mp4 420 20Mbit aac192.bat index 2b7264a..807917a 100644 --- a/to CUDA h264 mp4 420 20Mbit aac192.bat +++ b/to CUDA h264 mp4 420 20Mbit aac192.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -13,7 +13,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.1 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi MP4 h264 module has been invoked ---] ECHO [--- Preset: CUDA 420, slow, 20 Mbps, kf 2 sec, Audio aac192 ---] @@ -50,7 +50,7 @@ FOR /L %%i IN (1,1,%argCount%) DO ( for /F "delims=" %%f in ('call "%ffpath%ffprobe.exe" -v error -show_entries "format=duration" -of "default=noprint_wrappers=1:nokey=1" "!argVec[%%i]!"') do echo [ Video length is: %%f - "%ffpath%ffmpeg.exe" -v %vbl% -hide_banner -stats -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i "!argVec[%%i]!" -c:v h264_nvenc -preset slow -b:v 20M -pix_fmt yuv420p -force_key_frames 0:00:02 -c:a aac -b:a 192k -y "!argVn[%%i]!%dscrName%.mp4" + "%ffpath%ffmpeg.exe" -v %vbl% -hide_banner -stats -i "!argVec[%%i]!" -c:v h264_nvenc -preset slow -b:v 20M -pix_fmt yuv420p -force_key_frames 0:00:02 -c:a aac -b:a 192k -y "!argVn[%%i]!%dscrName%.mp4" ) :End diff --git a/to CUDA h264 mp4 420 20Mbit.bat b/to CUDA h264 mp4 420 20Mbit.bat index aef4a32..25574ac 100644 --- a/to CUDA h264 mp4 420 20Mbit.bat +++ b/to CUDA h264 mp4 420 20Mbit.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -13,7 +13,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.1 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi MP4 h264 module has been invoked ---] ECHO [--- Preset: CUDA 420, slow, 20 Mbps, kf 2 sec, Audio Copy ---] @@ -50,7 +50,7 @@ FOR /L %%i IN (1,1,%argCount%) DO ( for /F "delims=" %%f in ('call "%ffpath%ffprobe.exe" -v error -show_entries "format=duration" -of "default=noprint_wrappers=1:nokey=1" "!argVec[%%i]!"') do echo [ Video length is: %%f - "%ffpath%ffmpeg.exe" -v %vbl% -hide_banner -stats -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i "!argVec[%%i]!" -c:v h264_nvenc -preset slow -b:v 20M -pix_fmt yuv420p -force_key_frames 0:00:02 -c:a copy -y "!argVn[%%i]!%dscrName%.mp4" + "%ffpath%ffmpeg.exe" -v %vbl% -hide_banner -stats -i "!argVec[%%i]!" -c:v h264_nvenc -preset slow -b:v 20M -pix_fmt yuv420p -force_key_frames 0:00:02 -c:a copy -y "!argVn[%%i]!%dscrName%.mp4" ) :End diff --git a/to CUDA h264 mp4 420 2Mbit aac96.bat b/to CUDA h264 mp4 420 2Mbit aac96.bat index 4d3fbe6..bb7d552 100644 --- a/to CUDA h264 mp4 420 2Mbit aac96.bat +++ b/to CUDA h264 mp4 420 2Mbit aac96.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -13,7 +13,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.1 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi MP4 h264 module has been invoked ---] ECHO [--- Preset: CUDA 420, slow, 2 Mbps, nokeyfr, Audio aac96 ---] @@ -50,7 +50,7 @@ FOR /L %%i IN (1,1,%argCount%) DO ( for /F "delims=" %%f in ('call "%ffpath%ffprobe.exe" -v error -show_entries "format=duration" -of "default=noprint_wrappers=1:nokey=1" "!argVec[%%i]!"') do echo [ Video length is: %%f - "%ffpath%ffmpeg.exe" -v %vbl% -hide_banner -stats -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i "!argVec[%%i]!" -c:v h264_nvenc -preset slow -b:v 2M -pix_fmt yuv420p -c:a aac -b:a 96k -y "!argVn[%%i]!%dscrName%.mp4" + "%ffpath%ffmpeg.exe" -v %vbl% -hide_banner -stats -i "!argVec[%%i]!" -c:v h264_nvenc -preset slow -b:v 2M -pix_fmt yuv420p -c:a aac -b:a 96k -y "!argVn[%%i]!%dscrName%.mp4" ) :End diff --git a/to CUDA h264 mp4 420 40Mbit aac320.bat b/to CUDA h264 mp4 420 40Mbit aac320.bat index 039d96e..684c14f 100644 --- a/to CUDA h264 mp4 420 40Mbit aac320.bat +++ b/to CUDA h264 mp4 420 40Mbit aac320.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -13,7 +13,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.1 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi MP4 h264 module has been invoked ---] ECHO [--- Preset: CUDA 420, slow, 40 Mbps, kf 2 sec, Audio aac320 ---] @@ -50,7 +50,7 @@ FOR /L %%i IN (1,1,%argCount%) DO ( for /F "delims=" %%f in ('call "%ffpath%ffprobe.exe" -v error -show_entries "format=duration" -of "default=noprint_wrappers=1:nokey=1" "!argVec[%%i]!"') do echo [ Video length is: %%f - "%ffpath%ffmpeg.exe" -v %vbl% -hide_banner -stats -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i "!argVec[%%i]!" -c:v h264_nvenc -preset slow -b:v 40M -pix_fmt yuv420p -force_key_frames 0:00:02 -c:a aac -b:a 320k -y "!argVn[%%i]!%dscrName%.mp4" + "%ffpath%ffmpeg.exe" -v %vbl% -hide_banner -stats -i "!argVec[%%i]!" -c:v h264_nvenc -preset slow -b:v 40M -pix_fmt yuv420p -force_key_frames 0:00:02 -c:a aac -b:a 320k -y "!argVn[%%i]!%dscrName%.mp4" ) :End 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 1df52db..d6d5b39 100644 --- a/to CUDA h264 mp4 420 40Mbit external wav aac256.bat +++ b/to CUDA h264 mp4 420 40Mbit external wav aac256.bat @@ -1,12 +1,12 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion ECHO [---------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.03 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.13 by Keerah.com ---] ECHO [--- MP4 h264 module has been invoked, this preset is single file only ---] ECHO [--- Preset: CUDA 420, slow, 40 Mbps, kf 2 sec, External Audio to aac256 ---] ECHO [--- Using external audio source file: %~n1.wav @@ -43,7 +43,7 @@ IF %1.==. ( for /F "delims=" %%f in ('call "%ffpath%ffprobe.exe" -v error -show_entries "format=duration" -of "default=noprint_wrappers=1:nokey=1" "!argVec[%%i]!"') do echo [ Video length is: %%f - "%ffpath%ffmpeg.exe" -v %vbl% -hide_banner -stats -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i %1 -i "%~n1.wav" -c:a aac -b:a 256k -shortest -c:v h264_nvenc -preset slow -b:v 40M -pix_fmt yuv420p -force_key_frames 0:00:02 -y "%~n1%dscrName%.mp4" + "%ffpath%ffmpeg.exe" -v %vbl% -hide_banner -stats -i %1 -i "%~n1.wav" -c:a aac -b:a 256k -shortest -c:v h264_nvenc -preset slow -b:v 40M -pix_fmt yuv420p -force_key_frames 0:00:02 -y "%~n1%dscrName%.mp4" ) :End diff --git a/to CUDA h264 mp4 420 40Mbit external wav.bat b/to CUDA h264 mp4 420 40Mbit external wav.bat index 768f373..802d378 100644 --- a/to CUDA h264 mp4 420 40Mbit external wav.bat +++ b/to CUDA h264 mp4 420 40Mbit external wav.bat @@ -1,12 +1,12 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion ECHO [---------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.03 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.13 by Keerah.com ---] ECHO [--- MP4 h264 module has been invoked, this preset is single file only ---] ECHO [--- Preset: CUDA 420, slow, 40 Mbps, kf 2 sec, External Audio to aac256 ---] ECHO [--- Using external audio source file: %~n1.wav @@ -43,7 +43,7 @@ IF %1.==. ( for /F "delims=" %%f in ('call "%ffpath%ffprobe.exe" -v error -show_entries "format=duration" -of "default=noprint_wrappers=1:nokey=1" "!argVec[%%i]!"') do echo [ Video length is: %%f - "%ffpath%ffmpeg.exe" -v %vbl% -hide_banner -stats -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i %1 -i %~n1.wav -c:a aac -b:a 256k -shortest -c:v h264_nvenc -preset slow -b:v 40M -pix_fmt yuv420p -force_key_frames 0:00:02 -y %~n1%dscrName%.mp4 + "%ffpath%ffmpeg.exe" -v %vbl% -hide_banner -stats -i %1 -i %~n1.wav -c:a aac -b:a 256k -shortest -c:v h264_nvenc -preset slow -b:v 40M -pix_fmt yuv420p -force_key_frames 0:00:02 -y %~n1%dscrName%.mp4 ) :End diff --git a/to CUDA h264 mp4 420 40Mbit.bat b/to CUDA h264 mp4 420 40Mbit.bat index 37198aa..23a9377 100644 --- a/to CUDA h264 mp4 420 40Mbit.bat +++ b/to CUDA h264 mp4 420 40Mbit.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -13,7 +13,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.1 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi MP4 h264 module has been invoked ---] ECHO [--- Preset: CUDA 420, slow, 40 Mbps, kf 2 sec, Audio Copy ---] @@ -50,7 +50,7 @@ FOR /L %%i IN (1,1,%argCount%) DO ( for /F "delims=" %%f in ('call "%ffpath%ffprobe.exe" -v error -show_entries "format=duration" -of "default=noprint_wrappers=1:nokey=1" "!argVec[%%i]!"') do echo [ Video length is: %%f - "%ffpath%ffmpeg.exe" -v %vbl% -hide_banner -stats -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i "!argVec[%%i]!" -c:v h264_nvenc -preset slow -b:v 40M -pix_fmt yuv420p -force_key_frames 0:00:02 -c:a copy -y "!argVn[%%i]!%dscrName%.mp4" + "%ffpath%ffmpeg.exe" -v %vbl% -hide_banner -stats -i "!argVec[%%i]!" -c:v h264_nvenc -preset slow -b:v 40M -pix_fmt yuv420p -force_key_frames 0:00:02 -c:a copy -y "!argVn[%%i]!%dscrName%.mp4" ) :End diff --git a/to CUDA h264 mp4 420 4Mbit aac96.bat b/to CUDA h264 mp4 420 4Mbit aac96.bat index 462ef98..f966c8d 100644 --- a/to CUDA h264 mp4 420 4Mbit aac96.bat +++ b/to CUDA h264 mp4 420 4Mbit aac96.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -13,7 +13,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.1 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi MP4 h264 module has been invoked ---] ECHO [--- Preset: CUDA 420, slow, 4 Mbps, no kf, Audio aac96 ---] @@ -50,7 +50,7 @@ FOR /L %%i IN (1,1,%argCount%) DO ( for /F "delims=" %%f in ('call "%ffpath%ffprobe.exe" -v error -show_entries "format=duration" -of "default=noprint_wrappers=1:nokey=1" "!argVec[%%i]!"') do echo [ Video length is: %%f - "%ffpath%ffmpeg.exe" -v %vbl% -hide_banner -stats -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i "!argVec[%%i]!" -c:v h264_nvenc -preset slow -b:v 4M -pix_fmt yuv420p -c:a aac -b:a 96k -y "!argVn[%%i]!%dscrName%.mp4" + "%ffpath%ffmpeg.exe" -v %vbl% -hide_banner -stats -i "!argVec[%%i]!" -c:v h264_nvenc -preset slow -b:v 4M -pix_fmt yuv420p -c:a aac -b:a 96k -y "!argVn[%%i]!%dscrName%.mp4" ) :End diff --git a/to CUDA h264 mp4 420 4Mbit.bat b/to CUDA h264 mp4 420 4Mbit.bat index 328300d..37f68f5 100644 --- a/to CUDA h264 mp4 420 4Mbit.bat +++ b/to CUDA h264 mp4 420 4Mbit.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -13,7 +13,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.1 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi MP4 h264 module has been invoked ---] ECHO [--- Preset: CUDA 420, slow, 4 Mbps, keyfr 2 sec, Audio Copy ---] @@ -50,7 +50,7 @@ FOR /L %%i IN (1,1,%argCount%) DO ( for /F "delims=" %%f in ('call "%ffpath%ffprobe.exe" -v error -show_entries "format=duration" -of "default=noprint_wrappers=1:nokey=1" "!argVec[%%i]!"') do echo [ Video length is: %%f - "%ffpath%ffmpeg.exe" -v %vbl% -hide_banner -stats -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i "!argVec[%%i]!" -c:v h264_nvenc -preset slow -b:v 4M -pix_fmt yuv420p -force_key_frames 0:00:02 -c:a copy -y "!argVn[%%i]!%dscrName%.mp4" + "%ffpath%ffmpeg.exe" -v %vbl% -hide_banner -stats -i "!argVec[%%i]!" -c:v h264_nvenc -preset slow -b:v 4M -pix_fmt yuv420p -force_key_frames 0:00:02 -c:a copy -y "!argVn[%%i]!%dscrName%.mp4" ) :End diff --git a/to HQ Gif 120px 10fps.bat b/to HQ Gif 120px 10fps.bat index 4cd86b8..a3b16b6 100644 --- a/to HQ Gif 120px 10fps.bat +++ b/to HQ Gif 120px 10fps.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -12,7 +12,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.15 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi GIF module has been invoked ---] ECHO [--- Preset: 10 fps, 120px, 2 pass ---] diff --git a/to HQ Gif 16 640px 10fps.bat b/to HQ Gif 16 640px 10fps.bat new file mode 100644 index 0000000..2287a6b --- /dev/null +++ b/to HQ Gif 16 640px 10fps.bat @@ -0,0 +1,75 @@ +@ECHO OFF +REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved +REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg + +setlocal enabledelayedexpansion + +set argCount=0 +for %%x in (%*) do ( + set /A argCount+=1 + set "argVec[!argCount!]=%%~x" +) + +ECHO [---------------------------------------------------------------------------------] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] +ECHO [--- Multi GIF module has been invoked ---] +ECHO [--- Preset: 10 fps, 640px, 16 colors, 2 pass ---] + +SET "cmdp=%~dp0" +SET "argp=%~dp1" + +IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( + CALL "%argp%sendtoffmpeg_settings.cmd" + ECHO [--- Settings: LOCAL ---] +) ELSE ( + CALL "%cmdp%sendtoffmpeg_settings.cmd" + ECHO [--- Settings: GLOBAL ---] +) + +IF %argCount% == 0 ( + + ECHO [---------------------------------------------------------------------------------] + ECHO [ NO FILE SPECIFIED ] + GOTO End +) + +IF %argCount% GTR 1 ( + + ECHO [---------------------------------------------------------------------------------] + ECHO [ %argCount% files queued to encode +) + +IF %dscr% GTR 0 (SET "dscrName=_hqgif") ELSE (SET "dscrName=") + +FOR /L %%i IN (1,1,%argCount%) DO ( + + ECHO [---------------------------------------------------------------------------------] + ECHO [ Encoding file %%i of %argCount% + ECHO [ STAGE 1: Generating a palette ] + + "%ffpath%ffmpeg.exe" -v %vbl% -i "!argVec[%%i]!" -vf fps=10,scale=640:-1:flags=lanczos,palettegen=max_colors=16:stats_mode=full -y "!argVec[%%i]!"_palette.png + + ECHO [---------------------------------------------------------------------------------] + ECHO [ Encoding file %%i of %argCount% + ECHO [ STAGE 2: Encoding to Gif using the generatied palette ] + + "%ffpath%ffmpeg.exe" -v %vbl% -hide_banner -stats -i "!argVec[%%i]!" -i "!argVec[%%i]!"_palette.png -filter_complex "fps=10,scale=640:-1:flags=lanczos[x];[x][1:v]paletteuse" -y "!argVec[%%i]!"%dscrName%.gif + + IF EXIST "!argVec[%%i]!"_palette.png DEL /s "!argVec[%%i]!"_palette.png > nul +) + +:End +ECHO [---------------------------------------------------------------------------------] +ECHO [ SERVED ] +ECHO [---------------------------------------------------------------------------------] +IF %pse% GTR 0 PAUSE + +rem the main settings are defined in file sendtoffmpeg_settings.cmd, read the description inside it +rem This script creates high quality GIFs and supports multiple file selection at once (processes them in queue) +rem All videos rescaled to 540 pixels and stripped to 15 fps. The script doesn't have alpha channel support yet though. +rem You can change frame rate changing fps=15 value to your preference, just do it in both FFmpeg command lines. +rem The output file will be saved to the same folder your source comes from. +rem The script works in 2 stages (2 pass encoding). First one scans the source and creates a colour palette of it to minimise your Gif size. +rem And the second pass creates the Gif itself. +rem To encode just a piece of your source video add to command parameters something like -ss 12:23 -t 35 where -ss is start time and -t is duration \ No newline at end of file diff --git a/to HQ Gif 304px 15fps.bat b/to HQ Gif 304px 15fps.bat index 434d5a2..d5bc6f2 100644 --- a/to HQ Gif 304px 15fps.bat +++ b/to HQ Gif 304px 15fps.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -12,7 +12,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.15 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi GIF module has been invoked ---] ECHO [--- Preset: 30 fps, 304px, 2 pass ---] diff --git a/to HQ Gif 32 320px 10fps.bat b/to HQ Gif 32 320px 10fps.bat index 4ff9ffa..cb82dab 100644 --- a/to HQ Gif 32 320px 10fps.bat +++ b/to HQ Gif 32 320px 10fps.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -12,7 +12,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.15 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi GIF module has been invoked ---] ECHO [--- Preset: 10 fps, 320px, 32 colors, 2 pass ---] diff --git a/to HQ Gif 32 640px 10fps.bat b/to HQ Gif 32 640px 10fps.bat index 60242cf..f787ff0 100644 --- a/to HQ Gif 32 640px 10fps.bat +++ b/to HQ Gif 32 640px 10fps.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -12,7 +12,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.15 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi GIF module has been invoked ---] ECHO [--- Preset: 10 fps, 640px, 32 colors, 2 pass ---] diff --git a/to HQ Gif 420px 10fps.bat b/to HQ Gif 420px 10fps.bat index aabd510..c240d3b 100644 --- a/to HQ Gif 420px 10fps.bat +++ b/to HQ Gif 420px 10fps.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -12,7 +12,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.15 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi GIF module has been invoked ---] ECHO [--- Preset: 10 fps, 420px, 2 pass ---] @@ -54,7 +54,7 @@ FOR /L %%i IN (1,1,%argCount%) DO ( ECHO [ Encoding file %%i of %argCount% ECHO [ STAGE 2: Encoding to Gif using the generatied palette ] - "%ffpath%ffmpeg.exe" -v %vbl% -i -hide_banner -stats "!argVec[%%i]!" -i "!argVec[%%i]!"_palette.png -filter_complex "fps=10,scale=420:-1:flags=lanczos[x];[x][1:v]paletteuse" -y "!argVec[%%i]!"%dscrName%.gif + "%ffpath%ffmpeg.exe" -v %vbl% -hide_banner -stats -i "!argVec[%%i]!" -i "!argVec[%%i]!"_palette.png -filter_complex "fps=10,scale=420:-1:flags=lanczos[x];[x][1:v]paletteuse" -y "!argVec[%%i]!"%dscrName%.gif IF EXIST "!argVec[%%i]!"_palette.png DEL /s "!argVec[%%i]!"_palette.png > nul ) diff --git a/to HQ Gif 420px 15fps.bat b/to HQ Gif 420px 15fps.bat index f477975..8c2fd68 100644 --- a/to HQ Gif 420px 15fps.bat +++ b/to HQ Gif 420px 15fps.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -12,7 +12,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.15 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi GIF module has been invoked ---] ECHO [--- Preset: 15 fps, 420px, 2 pass ---] diff --git a/to HQ Gif 616px 15fps.bat b/to HQ Gif 616px 15fps.bat index 7b894b7..3d4fd0e 100644 --- a/to HQ Gif 616px 15fps.bat +++ b/to HQ Gif 616px 15fps.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -12,7 +12,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.15 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi GIF module has been invoked ---] ECHO [--- Preset: 30 fps, 304px, 2 pass ---] diff --git a/to HQ Gif 640px 15fps.bat b/to HQ Gif 640px 15fps.bat index fb4d572..5267a9e 100644 --- a/to HQ Gif 640px 15fps.bat +++ b/to HQ Gif 640px 15fps.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -12,7 +12,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.15 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi GIF module has been invoked ---] ECHO [--- Preset: 15 fps, 640px, 2 pass ---] diff --git a/to Hap.bat b/to Hap.bat index 8d402c2..56316de 100644 --- a/to Hap.bat +++ b/to Hap.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -13,7 +13,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.1 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi HAP module has been invoked ---] ECHO [--- Preset: HAP default, audio copy ---] 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 a057d73..1021ad7 100644 --- a/to h264 mp4 420 baseline L3 high 20 film.bat +++ b/to h264 mp4 420 baseline L3 high 20 film.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -13,7 +13,7 @@ for %%x in (%*) do ( ) ECHO [------------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.1 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi MP4 h264 module has been invoked ---] ECHO [--- Preset: 420 L3 baseline 3.0, veryslow, crf 20, FILM, kf 2 sec, Audio aac128 ---] diff --git a/to h264 mp4 420 high 20 film aac256.bat b/to h264 mp4 420 high 20 film aac256.bat index fea3dcf..59e3f7a 100644 --- a/to h264 mp4 420 high 20 film aac256.bat +++ b/to h264 mp4 420 high 20 film aac256.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -13,7 +13,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.1 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi MP4 h264 module has been invoked ---] ECHO [--- Preset: 420, veryslow, crf 20, GRAIN, kf 2 sec, Audio aac256 ---] diff --git a/to h264 mp4 420 high 20 film baseline level 3.0.bat b/to h264 mp4 420 high 20 film baseline level 3.0.bat index 9559a12..f5c0f4a 100644 --- a/to h264 mp4 420 high 20 film baseline level 3.0.bat +++ b/to h264 mp4 420 high 20 film baseline level 3.0.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -13,7 +13,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.1 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi MP4 h264 module has been invoked ---] ECHO [--- Preset: 420 baseline 3.0, veryslow, crf 20, FILM, kf 2 sec, Audio aac128 ---] diff --git a/to h264 mp4 420 high 30 film aac256.bat b/to h264 mp4 420 high 30 film aac256.bat new file mode 100644 index 0000000..db94ae7 --- /dev/null +++ b/to h264 mp4 420 high 30 film aac256.bat @@ -0,0 +1,64 @@ +@ECHO OFF +REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved +REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg + +setlocal enabledelayedexpansion + +set argCount=0 +for %%x in (%*) do ( + set /A argCount+=1 + set "argVec[!argCount!]=%%~x" + set "argVn[!argCount!]=%%~nx" +) + +ECHO [---------------------------------------------------------------------------------] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] +ECHO [--- Multi MP4 h264 module has been invoked ---] +ECHO [--- Preset: 420, veryslow, crf 30, GRAIN, kf 2 sec, Audio aac256 ---] + +set "cmdp=%~dp0" +set "argp=%~dp1" + +IF EXIST "%argp%sendtoffmpeg_settings.cmd" ( + CALL "%argp%sendtoffmpeg_settings.cmd" + ECHO [--- Settings: LOCAL ---] +) ELSE ( + CALL "%cmdp%sendtoffmpeg_settings.cmd" + ECHO [--- Settings: GLOBAL ---] +) + +IF %argCount% == 0 ( + + ECHO [---------------------------------------------------------------------------------] + ECHO [ NO FILE SPECIFIED ] + GOTO End +) + +IF %argCount% GTR 1 ( + + ECHO [---------------------------------------------------------------------------------] + ECHO [ %argCount% files queued to encode +) + +IF %dscr% GTR 0 (SET "dscrName=_420_crf30_aac256") ELSE (SET "dscrName=") + +FOR /L %%i IN (1,1,%argCount%) DO ( + + ECHO [---------------------------------------------------------------------------------] + ECHO [ Transcoding %%i of %argCount%: !argVn[%%i]! + + for /F "delims=" %%f in ('call "%ffpath%ffprobe.exe" -v error -show_entries "format=duration" -of "default=noprint_wrappers=1:nokey=1" "!argVec[%%i]!"') do echo [ Video length is: %%f + + "%ffpath%ffmpeg.exe" -v %vbl% -hide_banner -stats -i "!argVec[%%i]!" -c:v libx264 -preset veryslow -crf 30 -pix_fmt yuv420p -tune film -force_key_frames 0:00:02 -c:a aac -b:a 256k -y "!argVn[%%i]!%dscrName%.mp4" +) + +:End +ECHO [---------------------------------------------------------------------------------] +ECHO [ SERVED ] +ECHO [---------------------------------------------------------------------------------] + +if %pse% GTR 0 PAUSE + +rem the main settings are defined in file sendtoffmpeg_settings.cmd, read the description inside it +rem The output video will have keyframes each 2 seconds due to -force_key_frames 0:00:02 \ No newline at end of file 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 4d8943b..2971da2 100644 --- a/to h264 mp4 420 very high 14 film aac256.bat +++ b/to h264 mp4 420 very high 14 film aac256.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -13,7 +13,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.1 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi MP4 h264 module has been invoked ---] ECHO [--- Preset: 420 veryslow, crf 14, GRAIN, kf 2sec, Audio aac256 ---] diff --git a/to h264 mp4 420 very high 14 film scale lanczos 1080.bat b/to h264 mp4 420 very high 14 film scale lanczos 1080.bat index 07f61f6..2e48eef 100644 --- a/to h264 mp4 420 very high 14 film scale lanczos 1080.bat +++ b/to h264 mp4 420 very high 14 film scale lanczos 1080.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -13,7 +13,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.1 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi MP4 h264 module has been invoked ---] ECHO [--- Preset: 420, veryslow, crf 14, scale lanczos 1080p, FILM, kf 2 sec, Audio Copy ---] diff --git a/to h264 mp4 420 very high 14 film scale lanczos 540 aac128.bat b/to h264 mp4 420 very high 14 film scale lanczos 540 aac128.bat index 80cfa25..4891a3f 100644 --- a/to h264 mp4 420 very high 14 film scale lanczos 540 aac128.bat +++ b/to h264 mp4 420 very high 14 film scale lanczos 540 aac128.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -13,7 +13,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.1 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi MP4 h264 module has been invoked ---] ECHO [--- Preset: 420, veryslow, crf 16, scale lanczos 540p, FILM, kf 2 sec, Audio aac128---] diff --git a/to h264 mp4 420 very high 14 film.bat b/to h264 mp4 420 very high 14 film.bat index 8cd39b1..055ced1 100644 --- a/to h264 mp4 420 very high 14 film.bat +++ b/to h264 mp4 420 very high 14 film.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -13,7 +13,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.1 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi MP4 h264 module has been invoked ---] ECHO [--- Preset: 420, veryslow, crf 14, FILM, kf 2 sec, Audio Copy ---] 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 b56f6d3..38dc4df 100644 --- a/to h264 mp4 420 very high 16 film aac256.bat +++ b/to h264 mp4 420 very high 16 film aac256.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -13,7 +13,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.1 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi MP4 h264 module has been invoked ---] ECHO [--- Preset: 420 veryslow, crf 16, GRAIN, kf 2sec, Audio aac256 ---] 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 679ff74..766f25c 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 @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -13,7 +13,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.1 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi MP4 h264 module has been invoked ---] ECHO [--- Preset: 420, veryslow, crf 16, scale lanczos 720p, FILM, kf 2 sec, Audio aac256---] diff --git a/to h264 mp4 420 very high 18 film.bat b/to h264 mp4 420 very high 18 film.bat index c0a1c38..a8b671b 100644 --- a/to h264 mp4 420 very high 18 film.bat +++ b/to h264 mp4 420 very high 18 film.bat @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -13,7 +13,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.1 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi MP4 h264 module has been invoked ---] ECHO [--- Preset: 420, veryslow, crf 18, FILM kf 2 sec, Audio Copy ---] 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 0a54b08..53635c5 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 @@ -1,6 +1,6 @@ @ECHO OFF REM SendTo_FFmpeg is a set of windows batches for effortless and free transcoding -REM Copyright (c) 2018-2020 Keerah, keerah.com. All rights reserved +REM Copyright (c) 2018-2021 Keerah, keerah.com. All rights reserved REM More information at https://keerah.com https://github.com/keerah/SendTo_FFmpeg setlocal enabledelayedexpansion @@ -13,7 +13,7 @@ for %%x in (%*) do ( ) ECHO [---------------------------------------------------------------------------------------] -ECHO [--- SendTo FFmpeg encoder v1.1 by Keerah.com ---] +ECHO [--- SendTo FFmpeg encoder v2.2 by Keerah.com ---] ECHO [--- Multi MP4 h264 module has been invoked ---] ECHO [--- Preset: 420, veryslow, crf 24, scale lanczos 540p, FILM, kf 2 sec, Audio aac128---]