Files
nvidia-patch/win/tools/patch-tester/patch-tester.bat
Bertaz 03151e791c win: fix patch-tester (#1099)
* win: fix patch-tester

updates ffmpeg command as per documentation

* win: fix patch-tester ffmpeg command

Replaces testsrc with testsrc2 for correct pixel format for latest ffmpeg
Fixes position of duration parameter `-t`
Adds cuda:0 to explicitly select the first CUDA device

* win: change patch-tester input duration

Uses the duration(d) parameter for the source instead of generic option '-t'
Changes source's duration to 150s (2:30 minutes) so that encoding output is shown longer
2026-08-05 10:57:24 +05:30

17 lines
1.2 KiB
Batchfile
Executable File

@echo off
ffmpeg.exe -y -init_hw_device cuda:0 -hwaccel cuda -hwaccel_output_format cuda -f lavfi -i testsrc2=d=150 ^
-vf hwupload -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 1M -f null - ^
-vf hwupload -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 2M -f null - ^
-vf hwupload -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 3M -f null - ^
-vf hwupload -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 4M -f null - ^
-vf hwupload -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 5M -f null - ^
-vf hwupload -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 6M -f null - ^
-vf hwupload -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 7M -f null - ^
-vf hwupload -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 8M -f null - ^
-vf hwupload -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 9M -f null - ^
-vf hwupload -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 10M -f null - ^
-vf hwupload -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 11M -f null - ^
-vf hwupload -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 12M -f null - ^
-vf hwupload -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 13M -f null -