File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 22
22
if (( $# == 1 )) ; then
23
23
# 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
24
24
gource --multi-sampling --output-framerate 60 --seconds-per-day 1.0 \
25
- --auto-skip-seconds 0.2 ./ -1920x1080 -o - | ffmpeg -y -r 60 \
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 "
25
+ --auto-skip-seconds 0.2 ./ -2560x1440 -o - | ffmpeg -y -r 60 \
26
+ -f image2pipe -vcodec ppm -i - -vcodec hevc_nvenc -preset:v p7 -tune:v hq -rc:v vbr -cq:v 18 -b:v 0 -minrate:v 5M -maxrate:v 30M -bufsize:v 120M " $1 "
27
27
else
28
28
echo " Usage: ${0##*/ } <ouput file>"
29
29
exit 1
Original file line number Diff line number Diff line change 10
10
# // //
11
11
# // Script, 2020 //
12
12
# // Created: 21, November, 2020 //
13
- # // Modified: 24, July , 2021 //
13
+ # // Modified: 26, September , 2021 //
14
14
# // file: - //
15
15
# // - //
16
16
# // Source: https://superuser.com/questions/1236275/how-can-i-use-crf-encoding-with-nvenc-in-ffmpeg/1236387#1236387 //
17
+ # // https://superuser.com/questions/1633516/convert-ffmpeg-encoding-from-libx264-to-h264-nvenc/1650962#1650962
17
18
# // OS: ALL //
18
19
# // CPU: ALL //
19
20
# // //
20
21
# //////////////////////////////////////////////////////////////
21
22
22
23
if (( $# == 2 )) ; then
23
24
# 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 "
25
+ # ffmpeg -threads 0 -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"
26
+ # -threads 4 -hwaccel cuvid -c:v h264_cuvid
27
+ ffmpeg -strict 2 \
28
+ -i " $1 " \
29
+ -c:v hevc_nvenc -gpu:v 0 \
30
+ -preset:v p7 -tune:v hq -rc:v vbr -cq:v 16 -b:v 0 -minrate:v 5M -maxrate:v 30M -bufsize:v 120M \
31
+ -c:a copy -map 0 " $2 "
26
32
fi
You can’t perform that action at this time.
0 commit comments