Created
April 21, 2020 08:00
-
-
Save AdamStormhardtGH/2ea3b28865e682c9b3744e0a9fd4d728 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### from all over the net - doom9.org etc | |
# https://forum.doom9.org/showthread.php?p=1885049#post1885049 | |
ffmpeg -i "park_joy_1080p50.y4m" -f yuv4mpegpipe -strict -1 - | nvencc64 -c hevc --vbrhq 0 --vbr-quality 31 -u quality --output-depth 10 --lookahead 32 -b 5 --ref 7 --nonrefp --aq --aq-temporal --bref-mode middle --mv-precision q-pel -i - -o "park_joy_1080p50_31.mkv" | |
ffmpeg -i "park_joy_2160p50.y4m" -f yuv4mpegpipe -strict -1 - | nvencc64 -c hevc --vbrhq 0 --vbr-quality 40.5 -u quality --output-depth 10 --lookahead 32 -b 5 --ref 7 --nonrefp --aq --aq-temporal --bref-mode middle --mv-precision q-pel -i - -o "park_joy_2160p50_40.5.mkv" | |
x264 "park_joy_1080p50.y4m" --preset veryslow --tune film --pass 1 --bitrate 10000 -o "park_joy_1080p50_x264.264" | |
x264 "park_joy_1080p50.y4m" --preset veryslow --tune film --pass 2 --bitrate 10000 -o "park_joy_1080p50_x264.264" | |
# https://forum.doom9.org/showthread.php?p=1885293#post1885293 | |
Test: | |
Code: | |
nvencc64 --lossless --output-res 1920x858 --sar 1:1 --vpp-resize spline16 --avhw -i tearsofsteel_4k.mov -o lossless.mp4 | |
nvencc64 -c hevc --vbrhq 0 --vbr-quality 23.5 -u quality --max-bitrate 100000 --output-depth 10 --lookahead 32 -b 5 --ref 7 --nonrefp --aq --aq-temporal --bref-mode middle --mv-precision q-pel --fps 24 --sar 1:1 --log nvenc_hevc_235redoll.txt -i lossless.mp4 -o "nvenc_hevc_23.5redoll.265" | |
ffmpeg -hwaccel nvdec -i lossless.mp4 -pix_fmt yuv420p -f yuv4mpegpipe - | nvencc64 -c hevc --vbrhq 0 --vbr-quality 23.5 -u quality --max-bitrate 100000 --output-depth 10 --lookahead 32 -b 5 --ref 7 --nonrefp --aq --aq-temporal --bref-mode middle --mv-precision q-pel --fps 24 --sar 1:1 --log nvenc_hevc_235redoll.txt -i - -o "nvenc_hevc_23.5redollff.265" | |
nvencc64 -c hevc --vbrhq 0 --vbr-quality 23.5 -u quality --max-bitrate 100000 --output-depth 10 --lookahead 32 -b 5 --ref 7 --nonrefp --aq --aq-temporal --bref-mode middle --mv-precision q-pel --output-res 1920x858 --vpp-resize spline16 --fps 24 --sar 1:1 --log nvenc_hevc_235redollres.txt -i tearsofsteel_4k.mov -o "nvenc_hevc_23.5redollres.265" | |
Results: | |
Code: | |
md5sum *.265 | |
3fc06fa71b9296a8d02615cbc1120266 *nvenc_hevc_23.5redoll.265 (679,960,787 Bytes) | |
3fc06fa71b9296a8d02615cbc1120266 *nvenc_hevc_23.5redollff.265 (679,960,787 Bytes) | |
8c235b6c4b781a9d78c0149d18e9ea76 *nvenc_hevc_23.5redollres.265 (677,089,067 Bytes) | |
# | |
These were all done at -encMode 2 (quality from 0-11, 0 is best), 1pass VBR (they don't have 2 pass yet). | |
SvtHevcEncApp.exe from 20191017 | |
1) Default intra period and lookahead (turns out to be gopsize 49, LAD 48) | |
Code: | |
"SvtHevcEncApp.exe" -i "yuv420p10le.yuv" -w 1920 -h 1080 -n 500 -bit-depth 10 -color-format 1 -intra-period -2 -rc 1 -profile 2 -fps-num 50 -fps-denom 1 -encMode 2 -tbr 10000000 -b SVT-HEVC_20191017_enc2_rc1_10Mbps_intraauto_ladauto.hevc | |
2) (1) + SAO off | |
Code: | |
"SvtHevcEncApp.exe" -i "yuv420p10le.yuv" -w 1920 -h 1080 -n 500 -bit-depth 10 -color-format 1 -intra-period -2 -rc 1 -profile 2 -fps-num 50 -fps-denom 1 -encMode 2 -tbr 10000000 -sao 0 -b SVT-HEVC_20191017_enc2_rc1_10Mbps_intraauto_ladauto_sao0.hevc | |
3) intra-period 250, LAD 250 | |
Code: | |
"SvtHevcEncApp.exe" -i "yuv420p10le.yuv" -w 1920 -h 1080 -n 500 -bit-depth 10 -color-format 1 -intra-period 250 -rc 1 -profile 2 -fps-num 50 -fps-denom 1 -encMode 2 -tbr 10000000 -lad 250 -b SVT-HEVC_20191017_enc2_rc1_10Mbps_intra250_lad250.hevc | |
4) (3) + SAO off | |
Code: | |
"SvtHevcEncApp.exe" -i "yuv420p10le.yuv" -w 1920 -h 1080 -n 500 -bit-depth 10 -color-format 1 -intra-period 250 -rc 1 -profile 2 -fps-num 50 -fps-denom 1 -encMode 2 -tbr 10000000 -lad 250 -sao 0 -b SVT-HEVC_20191017_enc2_rc1_10Mbps_intraauto_ladauto_sao0.hevc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment