From 4cdc72a0f760bff350806ff56658acf83af7765d Mon Sep 17 00:00:00 2001 From: Jai Luthra Date: Fri, 24 Mar 2023 22:59:15 +0530 Subject: [PATCH] Use 6 instead of 4 sessions to verify, as nvidia increased limit to 5 --- Verify-NVENC-patch.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Verify-NVENC-patch.md b/Verify-NVENC-patch.md index bb8fe65..c76d49e 100644 --- a/Verify-NVENC-patch.md +++ b/Verify-NVENC-patch.md @@ -3,11 +3,13 @@ From [@lars18th](https://github.com/keylase/nvidia-patch/issues/491) and [@relox ### Linux ``` 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 - + -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 - ``` This only requires to have installed a recent ffmpeg version compiled with nvenc enabled. Almost all distributions have it now. @@ -21,7 +23,9 @@ ffmpeg.exe -y -hwaccel cuda -hwaccel_output_format cuda ^ -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 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 - ``` ## Output