mirror of
https://github.com/keylase/nvidia-patch.git
synced 2026-08-12 09:11:24 +00:00
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
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
@echo off
|
@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 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 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 3M -f null - ^
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env pwsh
|
#!/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 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 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 3M -f null - `
|
||||||
|
|||||||
Reference in New Issue
Block a user