Skip to content

Commit 65c4609

Browse files
committed
Upgrade quality on gource-nvenc
Signed-off-by: Bensuperpc <[email protected]>
1 parent 6e7b190 commit 65c4609

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

video/gource-h265.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if (($# == 1)); then
2727
--hide mouse --filename-time 2 --max-files 0 --bloom-multiplier 0.8 --highlight-users --file-extension-fallback --path . \
2828
--auto-skip-seconds 0.9 --background-colour 000000 --key --stop-at-end --title "$git_url" --output-ppm-stream - | ffmpeg -y -r 60 \
2929
-f image2pipe -vcodec ppm -i - -vcodec libx265 -preset medium \
30-
-crf 12 -bf 0 -minrate:v 5M -maxrate:v 200M -bufsize:v 800M "$1"
30+
-crf 12 -bf 0 -minrate:v 5M -maxrate:v 300M -bufsize:v 800M "$1"
3131
else
3232
echo "Usage: ${0##*/} <ouput file>"
3333
exit 1

video/gource-nvenc.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@
1010
#// //
1111
#// Script, 2020 //
1212
#// Created: 21, November, 2020 //
13-
#// Modified: 28, September, 2021 //
13+
#// Modified: 29, September, 2021 //
1414
#// file: - //
1515
#// - //
1616
#// Source: https://gist.github.com/rafi/365926 //
17+
#// https://superuser.com/a/1296511/1057976
1718
#// OS: ALL //
1819
#// CPU: ALL //
1920
#// //
@@ -26,7 +27,9 @@ if (($# == 1)); then
2627
gource --fullscreen --disable-input --multi-sampling --output-framerate 60 --seconds-per-day 0.1 \
2728
--hide mouse --filename-time 2 --max-files 0 --bloom-multiplier 0.8 --highlight-users --file-extension-fallback --path . \
2829
--auto-skip-seconds 0.1 --background-colour 000000 --key --stop-at-end --title "$git_url" --output-ppm-stream - | ffmpeg -y -r 60 \
29-
-f image2pipe -vcodec ppm -i - -vcodec hevc_nvenc -pix_fmt rgb0 -preset:v p7 -tune:v hq -rc:v vbr -cq:v 12 -b:v 0 -minrate:v 5M -maxrate:v 200M -bufsize:v 800M "$1"
30+
-f image2pipe -vcodec ppm -i - -vcodec hevc_nvenc \
31+
-bf:v 3 -rc-lookahead:v 32 -refs:v 16 -b_ref_mode:v middle \
32+
-pix_fmt rgb0 -preset:v p7 -tune:v hq -rc:v vbr -cq:v 10 -b:v 0 -minrate:v 1M -maxrate:v 400M -bufsize:v 800M "$1"
3033
else
3134
echo "Usage: ${0##*/} <ouput file>"
3235
exit 1

0 commit comments

Comments
 (0)