Skip to content

Commit 20fef60

Browse files
committed
nvenc gource force to use rgb0 pixel format
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
1 parent e45157a commit 20fef60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

video/gource-nvenc.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
if (($# == 1)); then
2323
git_url=$(git config --get remote.origin.url)
2424
# -2560x1440 # If not --fullscreen # --date-format "%Y-%m-%d" --elasticity 0.1 --max-user-speed 500
25-
# FFMPEG -pix_fmt yuv420p
25+
# FFMPEG -pix_fmt yuv420p yuvj420p rgb0
2626
gource --fullscreen --disable-input --multi-sampling --output-framerate 60 --seconds-per-day 0.1 \
2727
--hide mouse --filename-time 2 --max-files 0 --bloom-multiplier 0.8 --highlight-users --file-extension-fallback --path . \
2828
--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 -preset:v p7 -tune:v hq -rc:v vbr -cq:v 12 -b:v 0 -minrate:v 10M -maxrate:v 200M -bufsize:v 800M "$1"
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 10M -maxrate:v 200M -bufsize:v 800M "$1"
3030
else
3131
echo "Usage: ${0##*/} <ouput file>"
3232
exit 1

0 commit comments

Comments
 (0)