From 0af16f318a4485728e66a97356657ab17c64e1c0 Mon Sep 17 00:00:00 2001 From: OMEGARAZER <869111+OMEGARAZER@users.noreply.github.com> Date: Mon, 3 Apr 2023 22:05:53 -0400 Subject: [PATCH] Add tester scripts Adds tester scripts to verify patching was completed successfully. --- tools/patch-tester/patch-tester.sh | 3 +++ win/tools/patch-tester/patch-tester.bat | 3 +++ win/tools/patch-tester/patch-tester.ps1 | 3 +++ 3 files changed, 9 insertions(+) create mode 100755 tools/patch-tester/patch-tester.sh create mode 100755 win/tools/patch-tester/patch-tester.bat create mode 100755 win/tools/patch-tester/patch-tester.ps1 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 -