When switching to H.265 (Nvidia NVEnc) or H.264 (Nvidia NVEnc) instead of the CPU-based modes, performance is much improved as I would expect, but I've discovered that it when using 'Constant Quality', unlike the CPU modes, NVEnc is not using variable bitrate, so content with minimal change is coming out far larger than it should. Is there anything I can set in 'Advanced Options' to make the NVEnc encoder behave the same way as the CPU encoder?
Steps to reproduce the problem (If Applicable):
As above, replicated with several files - the bitrate of all files transcoded is the same (+/- 1%) if the same RF value is used.
HandBrake version (e.g., 1.0.0):
1.3.1 (2020010400)
Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Windows 10 Pro 1709
HandBrake Activity Log ***required*** (see How-to get an activity log)
Code: Select all
HandBrake 1.3.1 (2020010400)
OS: Microsoft Windows NT 10.0.16299.0
CPU: Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz
Ram: 8143 MB,
GPU Information:
NVIDIA GeForce GTX 960 - 25.21.14.1935
Screen: 3840x2160
Temp Dir: C:\Users\Sam Morris\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Sam Morris\AppData\Roaming\HandBrake
-------------------------------------------
# Starting Encode ...
[01:15:33] base preset: Fast 1080p30 (Modified)
[13:15:33] hb_init: starting libhb thread
[13:15:33] Starting work at: Mon Apr 27 13:15:33 2020
[13:15:33] 1 job(s) to process
[13:15:33] json job:
{
"Audio": {
"AudioList": [
{
"DRC": 0.0,
"Encoder": "copy",
"Gain": 0.0,
"Mixdown": -1,
"NormalizeMixLevel": false,
"Samplerate": 0,
"Track": 0,
"DitherMethod": 0
}
],
"CopyMask": [
"copy:aac",
"copy:ac3",
"copy:dtshd",
"copy:dts",
"copy:eac3",
"copy:flac",
"copy:mp3",
"copy:truehd"
],
"FallbackEncoder": "ac3"
},
"Destination": {
"ChapterList": [
{
"Name": "Chapter 1"
}
],
"ChapterMarkers": true,
"AlignAVStart": false,
"File": "E:\\Dashcam\\2020\\20200127\\20200127 C-Front RF24N.mkv",
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": false
},
"Mux": "mkv"
},
"Filters": {
"FilterList": [
{
"ID": 4,
"Settings": {
"mode": "7"
}
},
{
"ID": 3,
"Settings": {
"block-height": "16",
"block-thresh": "40",
"block-width": "16",
"filter-mode": "2",
"mode": "3",
"motion-thresh": "1",
"spatial-metric": "2",
"spatial-thresh": "1"
}
},
{
"ID": 12,
"Settings": {
"crop-bottom": "0",
"crop-left": "0",
"crop-right": "0",
"crop-top": "0",
"height": "1080",
"width": "1920"
}
},
{
"ID": 6,
"Settings": {
"mode": "0"
}
}
]
},
"PAR": {
"Num": 1,
"Den": 1
},
"Metadata": {},
"SequenceID": 0,
"Source": {
"Angle": 1,
"Range": {
"Type": "chapter",
"Start": 1,
"End": 1
},
"Title": 1,
"Path": "E:\\output\\20200127 C-Front.mkv"
},
"Subtitle": {
"Search": {
"Burn": true,
"Default": false,
"Enable": true,
"Forced": true
},
"SubtitleList": []
},
"Video": {
"Encoder": "nvenc_h265",
"Level": "auto",
"TwoPass": false,
"Turbo": false,
"ColorMatrixCode": 0,
"Options": "",
"Preset": "slow",
"Profile": "auto",
"Quality": 24.0,
"QSV": {
"Decode": false,
"AsyncDepth": 0
}
}
}
[13:15:33] CPU: Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz
[13:15:33] - Intel microarchitecture Kaby Lake
[13:15:33] - logical processor count: 6
[13:15:33] Intel Quick Sync Video support: no
[13:15:33] hb_scan: path=E:\output\20200127 C-Front.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image E:\output\20200127 C-Front.mkv
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv
src/libbluray/bluray.c:2585: nav_get_title_list(E:\output\20200127 C-Front.mkv\) failed
[13:15:33] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[13:15:33] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'E:\output\20200127 C-Front.mkv':
Metadata:
encoder : libebml v1.3.9 + libmatroska v1.5.2
creation_time : 2020-04-27T10:54:37.000000Z
Duration: 00:08:33.70, start: 0.000000, bitrate: 10337 kb/s
Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 1k tbn, 60 tbc (default)
Metadata:
BPS-eng : 10238797
DURATION-eng : 00:08:33.701000000
NUMBER_OF_FRAMES-eng: 15411
NUMBER_OF_BYTES-eng: 657460088
_STATISTICS_WRITING_APP-eng: mkvmerge v35.0.0 ('All The Love In The World') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2020-04-27 10:54:37
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1: Audio: aac (LC), 32000 Hz, mono, fltp (default)
Metadata:
BPS-eng : 95999
DURATION-eng : 00:08:33.665000000
NUMBER_OF_FRAMES-eng: 16052
NUMBER_OF_BYTES-eng: 6163968
_STATISTICS_WRITING_APP-eng: mkvmerge v35.0.0 ('All The Love In The World') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2020-04-27 10:54:37
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[13:15:33] scan: decoding previews for title 1
[13:15:33] scan: audio 0x1: aac, rate=32000Hz, bitrate=1 Unknown (AAC LC) (1.0 ch)
[13:15:33] scan: 10 previews, 1920x1080, 30.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[13:15:33] scan: supported video decoders: avcodec qsv
[13:15:33] libhb: scan thread found 1 valid title(s)
[13:15:33] Skipping subtitle scan. No suitable subtitle tracks.
[13:15:33] Starting Task: Encoding Pass
[13:15:33] Skipping vfr filter
[13:15:33] Skipping crop/scale filter
[13:15:33] Auto Passthru: allowed codecs are AAC, AC3, E-AC3, TrueHD, DTS, DTS-HD, MP3, FLAC
[13:15:33] Auto Passthru: fallback is AC3
[13:15:33] Auto Passthru: using AAC Passthru for track 1
[13:15:33] work: only 1 chapter, disabling chapter markers
[13:15:33] job configuration:
[13:15:33] * source
[13:15:33] + E:\output\20200127 C-Front.mkv
[13:15:33] + title 1, chapter(s) 1 to 1
[13:15:33] + container: matroska,webm
[13:15:33] + data rate: 10337 kbps
[13:15:33] * destination
[13:15:33] + E:\Dashcam\2020\20200127\20200127 C-Front RF24N.mkv
[13:15:33] + container: Matroska (libavformat)
[13:15:33] * video track
[13:15:33] + decoder: h264
[13:15:33] + filters
[13:15:33] + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[13:15:33] + Decomb (mode=39)
[13:15:33] + Output geometry
[13:15:33] + storage dimensions: 1920 x 1080
[13:15:33] + pixel aspect ratio: 1 : 1
[13:15:33] + display dimensions: 1920 x 1080
[13:15:33] + encoder: H.265 (NVEnc)
[13:15:33] + preset: slow
[13:15:33] + profile: auto
[13:15:33] + level: auto
[13:15:33] + quality: 24.00 (CQ)
[13:15:33] + color profile: 1-1-1
[13:15:33] * audio track 1
[13:15:33] + decoder: Unknown (AAC LC) (1.0 ch) (track 1, id 0x1)
[13:15:33] + samplerate: 32000 Hz
[13:15:33] + AAC Passthru
[13:15:33] sync: expecting 15411 video frames
[13:15:33] encavcodecInit: H.265 (Nvidia NVENC)
[13:15:33] encavcodec: encoding at rc=vbr 24.00
[13:15:33] encavcodec: encoding with stored aspect 1/1
[13:15:33] sync: first pts video is 0
[13:15:33] sync: "Chapter 1" (1) at frame 1 time 0
[13:15:33] sync: first pts audio 0x1 is 0
[13:17:54] reader: done. 1 scr changes
[13:17:54] work: average encoding speed for job is 109.660034 fps
[13:17:54] comb detect: heavy 177 | light 1658 | uncombed 13576 | total 15411
[13:17:54] decomb: deinterlaced 177 | blended 1658 | unfiltered 13576 | total 15411
[13:17:54] aac-decoder done: 16052 frames, 0 decoder errors
[13:17:54] h264-decoder done: 15411 frames, 0 decoder errors
[13:17:54] sync: got 15411 frames, 15411 expected
[13:17:54] sync: framerate min 30.000 fps, max 30.000 fps, avg 30.000 fps
[13:17:55] mux: track 0, 15411 frames, 617201897 bytes, 9611.24 kbps, fifo 512
[13:17:55] mux: track 1, 16052 frames, 6163968 bytes, 95.99 kbps, fifo 512
[13:17:55] Finished work at: Mon Apr 27 13:17:55 2020
[13:17:55] libhb: work result = 0
# Encode Completed ...