Skip to content

Commit

Permalink
removed CUDA decoding, small fixes
Browse files Browse the repository at this point in the history
CUDA decoding removed for wider input video compatibility, small fixes and updates
  • Loading branch information
keerah committed Oct 28, 2021
1 parent ab37e39 commit 9e6da8e
Show file tree
Hide file tree
Showing 35 changed files with 217 additions and 78 deletions.
2 changes: 1 addition & 1 deletion sendtoffmpeg_settings.cmd
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions to CUDA h264 mp4 420 10Mbit aac128.bat
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 ---]

Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions to CUDA h264 mp4 420 10Mbit.bat
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 ---]

Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions to CUDA h264 mp4 420 1Mbit.bat
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 ---]

Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions to CUDA h264 mp4 420 20Mbit aac192.bat
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 ---]

Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions to CUDA h264 mp4 420 20Mbit.bat
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 ---]

Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions to CUDA h264 mp4 420 2Mbit aac96.bat
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 ---]

Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions to CUDA h264 mp4 420 40Mbit aac320.bat
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 ---]

Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions to CUDA h264 mp4 420 40Mbit external wav aac256.bat
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions to CUDA h264 mp4 420 40Mbit external wav.bat
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions to CUDA h264 mp4 420 40Mbit.bat
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 ---]

Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions to CUDA h264 mp4 420 4Mbit aac96.bat
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 ---]

Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions to CUDA h264 mp4 420 4Mbit.bat
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 ---]

Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions to HQ Gif 120px 10fps.bat
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 ---]

Expand Down
Loading

0 comments on commit 9e6da8e

Please sign in to comment.