diff --git a/tools/patch-tester/patch-tester.sh b/tools/patch-tester/patch-tester.sh new file mode 100755 index 0000000..4c1e90b --- /dev/null +++ b/tools/patch-tester/patch-tester.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -f lavfi -i testsrc -t 50 -vf hwupload -c:a copy -c:v h264_nvenc -b:v 4M -f null - -vf hwupload -c:a copy -c:v h264_nvenc -b:v 1M -f null - -vf hwupload -c:a copy -c:v h264_nvenc -b:v 8M -f null - -vf hwupload -c:a copy -c:v h264_nvenc -b:v 6M -f null - -vf hwupload -c:a copy -c:v h264_nvenc -b:v 5M -f null - -vf hwupload -c:a copy -c:v h264_nvenc -b:v 7M -f null - diff --git a/win/tools/patch-tester/patch-tester.bat b/win/tools/patch-tester/patch-tester.bat new file mode 100755 index 0000000..2c5f6ec --- /dev/null +++ b/win/tools/patch-tester/patch-tester.bat @@ -0,0 +1,3 @@ +@echo off + +ffmpeg.exe -y -hwaccel cuda -hwaccel_output_format cuda -f lavfi -i testsrc -t 50 -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 1M -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 6M -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 7M -f null - diff --git a/win/tools/patch-tester/patch-tester.ps1 b/win/tools/patch-tester/patch-tester.ps1 new file mode 100755 index 0000000..aeded0f --- /dev/null +++ b/win/tools/patch-tester/patch-tester.ps1 @@ -0,0 +1,3 @@ +#!/usr/bin/env pwsh + +ffmpeg.exe -y -hwaccel cuda -hwaccel_output_format cuda -f lavfi -i testsrc -t 50 -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 1M -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 6M -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 7M -f null -