Skip to content

Commit 717148c

Browse files
committed
Update scripts with latest NVENC version
Update scripts with latest NVENC version Signed-off-by: Bensuperpc <[email protected]>
1 parent 3690bba commit 717148c

File tree

3 files changed

+5
-25
lines changed

3 files changed

+5
-25
lines changed

video/gource-nvenc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if (( $# == 1 )); then
2323
#gource --multi-sampling --output-framerate 60 --seconds-per-day 2.0 --auto-skip-seconds 0.1 ./ -1920x1080 -o - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec hevc_nvenc -preset slow -b:v 64M -maxrate 96M -bufsize 384M $1
2424
gource --multi-sampling --output-framerate 60 --seconds-per-day 1.0 \
2525
--auto-skip-seconds 0.2 ./ -1920x1080 -o - | ffmpeg -y -r 60 \
26-
-f image2pipe -vcodec ppm -i - -vcodec hevc_nvenc -rc vbr_hq -cq 6 "$1"
26+
-f image2pipe -vcodec ppm -i - -vcodec hevc_nvenc -preset:v p7 -tune:v hq -rc:v vbr -cq:v 18 -b:v 0 "$1"
2727
else
2828
echo "Usage: ${0##*/} <ouput file>"
2929
exit 1

video/h265-nvenc-all.sh

Lines changed: 0 additions & 22 deletions
This file was deleted.

video/h265-nvenc.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@
1313
#// Modified: 24, July, 2021 //
1414
#// file: - //
1515
#// - //
16-
#// Source: - //
16+
#// Source: https://superuser.com/questions/1236275/how-can-i-use-crf-encoding-with-nvenc-in-ffmpeg/1236387#1236387 //
1717
#// OS: ALL //
1818
#// CPU: ALL //
1919
#// //
2020
#//////////////////////////////////////////////////////////////
2121

2222
if (( $# == 2 )); then
23-
ffmpeg -strict 2 -hwaccel auto -i "$1" -c:v hevc_nvenc -preset slow -rc vbr_hq -cq 18 -qmin 16 -qmax 20 -profile:v main10 -b:v 0K -c:a copy -map 0 "$2"
23+
# Old CUDA version
24+
#ffmpeg -strict 2 -hwaccel auto -i "$1" -c:v hevc_nvenc -preset slow -rc vbr_hq -cq 18 -qmin 16 -qmax 20 -profile:v main10 -b:v 0K -c:a copy -map 0 "$2"
25+
ffmpeg -strict 2 -i "$1" -c:v hevc_nvenc -preset:v p7 -tune:v hq -rc:v vbr -cq:v 18 -b:v 0 -c:a copy -map 0 "$2"
2426
fi

0 commit comments

Comments
 (0)