FFmpeg Encoding Batch Scripts – Windows 10

@echo off
echo video convert h264_nvenc-mp4
echo ==========================
echo video codec : h264_nvenc
echo audio codec : aac
echo ==========================
echo.
set /p input= Input File Path (in quotes "") : 
set /p output= Output File Path (in quotes "") : 
set /p vb= Video Bitrate : 
set /p gop= GOP : 
echo on
ffmpeg -hwaccel cuvid -c:v h264_cuvid -i %input% -c:v h264_nvenc -g %gop% -b:v %vb% -c:a aac -metadata:s title="" -metadata:s:a language=eng -loglevel verbose %output%
pause
@echo off
echo video convert h264 to hevc mp4
echo ==========================
echo video codec : hevc_nvenc
echo audio codec : aac
echo ==========================
echo.
set /p input= Input File Path (in quotes "") : 
set /p output= Output File Path (in quotes "") : 
set /p vb= Video Bitrate : 
set /p gop= GOP : 
echo on
ffmpeg -hwaccel cuvid -c:v h264_cuvid -i %input% -c:v hevc_nvenc -g %gop% -b:v %vb% -c:a aac -metadata:s title="" -metadata:s:a language=eng -loglevel verbose %output%
pause

Leave a Reply

Your email address will not be published. Required fields are marked *