diff --git a/win/tools/patch-tester/patch-tester.bat b/win/tools/patch-tester/patch-tester.bat index 6e205b9..e1f3ef4 100755 --- a/win/tools/patch-tester/patch-tester.bat +++ b/win/tools/patch-tester/patch-tester.bat @@ -1,6 +1,6 @@ @echo off -ffmpeg.exe -y -hwaccel cuda -hwaccel_output_format cuda -f lavfi -i testsrc -t 50 ^ +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 - ^ diff --git a/win/tools/patch-tester/patch-tester.ps1 b/win/tools/patch-tester/patch-tester.ps1 index 181a540..38ed762 100755 --- a/win/tools/patch-tester/patch-tester.ps1 +++ b/win/tools/patch-tester/patch-tester.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/env pwsh -ffmpeg.exe -y -hwaccel cuda -hwaccel_output_format cuda -f lavfi -i testsrc -t 50 ` +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 - `