H.265 (Nvidia nvenc) settings

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
deano
Posts: 2
Joined: Sun Jul 26, 2020 8:18 pm

H.265 (Nvidia nvenc) settings

Post by deano »

Description of problem or question:
Using h.265(nvidia nvenc) encoder none of the settings seem to change anything.
Changing Constant quaility slider up and down anywhere from say 22 to 17
or the Encoder preset from quality from high quality, high performance or slow settings
None change the size of the file or bitrate of the file.

Just encoded 11 different 4k Blu-Rays using various settings and they always end with
around a 19500kbps rate.
is there a reason that none of the settings change anything in the encoding quality or bitrate?



Steps to reproduce the problem (If Applicable):
tried all different settings in the sliders



HandBrake version (e.g., 1.0.0):

1.3.3 (2020061300)


Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):

Windows 10 Pro


HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

HandBrake 1.3.3 (2020061300)
OS: Microsoft Windows NT 10.0.18363.0
CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
Ram: 16339 MB, 
GPU Information:
  Microsoft Remote Display Adapter - 10.0.18362.693
  NVIDIA GeForce GTX 1660 - 27.21.14.5167
Screen: 2560x1440
Temp Dir: C:\Users\DeanoZ170\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\DeanoZ170\AppData\Roaming\HandBrake

-------------------------------------------


# Starting Encode ...

[10:08:27] base preset: deano advanced (Modified)
[10:08:27] hb_init: starting libhb thread
[10:08:27] Starting work at: Sun Jul 26 10:08:27 2020
[10:08:27] 1 job(s) to process
[10:08:27] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 1152,
        "DRC": 0.0,
        "Encoder": "av_aac",
        "Gain": 0.0,
        "Mixdown": 9,
        "NormalizeMixLevel": false,
        "Samplerate": 48000,
        "Name": "Surround 7.1",
        "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"
      },
      {
        "Name": "Chapter 2"
      },
      {
        "Name": "Chapter 3"
      },
      {
        "Name": "Chapter 4"
      },
      {
        "Name": "Chapter 5"
      },
      {
        "Name": "Chapter 6"
      },
      {
        "Name": "Chapter 7"
      },
      {
        "Name": "Chapter 8"
      },
      {
        "Name": "Chapter 9"
      },
      {
        "Name": "Chapter 10"
      },
      {
        "Name": "Chapter 11"
      },
      {
        "Name": "Chapter 12"
      },
      {
        "Name": "Chapter 13"
      },
      {
        "Name": "Chapter 14"
      },
      {
        "Name": "Chapter 15"
      },
      {
        "Name": "Chapter 16"
      },
      {
        "Name": "Chapter 17"
      },
      {
        "Name": "Chapter 18"
      },
      {
        "Name": "Chapter 19"
      },
      {
        "Name": "Chapter 20"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "E:\\The Mummy (2017).mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 12,
        "Settings": {
          "crop-bottom": "280",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "280",
          "height": "1600",
          "width": "3840"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 20
    },
    "Title": 1,
    "Path": "F:\\Video\\The Mummy 2017\\The Mummy_t03.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": "hq",
    "Profile": "auto",
    "Quality": 20.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[10:08:27] CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
[10:08:27]  - Intel microarchitecture Skylake
[10:08:27]  - logical processor count: 8
[10:08:27] Intel Quick Sync Video support: no
[10:08:27] hb_scan: path=F:\Video\The Mummy 2017\The Mummy_t03.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image F:\Video\The Mummy 2017\The Mummy_t03.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(F:\Video\The Mummy 2017\The Mummy_t03.mkv\) failed
[10:08:27] 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
[10:08:27] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'F:\Video\The Mummy 2017\The Mummy_t03.mkv':
  Metadata:
    title           : The Mummy
    encoder         : libmakemkv v1.15.2 (1.3.10/1.5.2) win(x64-release)
    creation_time   : 2020-07-23T03:11:34.000000Z
  Duration: 01:50:06.43, start: 0.000000, bitrate: 70040 kb/s
    Chapter #0:0: start 0.000000, end 498.706542
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 498.706542, end 798.631167
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 798.631167, end 1171.295125
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 1171.295125, end 1480.145333
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 1480.145333, end 1734.107375
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 1734.107375, end 2141.389250
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 2141.389250, end 2375.748375
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 2375.748375, end 2820.067250
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 2820.067250, end 3057.429375
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 3057.429375, end 3409.572833
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 3409.572833, end 3643.514875
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 3643.514875, end 4138.008875
    Metadata:
      title           : Chapter 12
    Chapter #0:12: start 4138.008875, end 4563.850958
    Metadata:
      title           : Chapter 13
    Chapter #0:13: start 4563.850958, end 4778.440333
    Metadata:
      title           : Chapter 14
    Chapter #0:14: start 4778.440333, end 4996.408083
    Metadata:
      title           : Chapter 15
    Chapter #0:15: start 4996.408083, end 5186.848333
    Metadata:
      title           : Chapter 16
    Chapter #0:16: start 5186.848333, end 5614.734125
    Metadata:
      title           : Chapter 17
    Chapter #0:17: start 5614.734125, end 5822.775292
    Metadata:
      title           : Chapter 18
    Chapter #0:18: start 5822.775292, end 5987.731750
    Metadata:
      title           : Chapter 19
    Chapter #0:19: start 5987.731750, end 6606.433167
    Metadata:
      title           : Chapter 20
    Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc
    Metadata:
      BPS-eng         : 65069898
      DURATION-eng    : 01:50:06.433166666
      NUMBER_OF_FRAMES-eng: 158396
      NUMBER_OF_BYTES-eng: 53734990569
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-07-23 03:11:34
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: truehd, 48000 Hz, 7.1, s32 (24 bit) (default)
    Metadata:
      title           : Surround 7.1
      BPS-eng         : 4926746
      DURATION-eng    : 01:50:06.434166666
      NUMBER_OF_FRAMES-eng: 7927721
      NUMBER_OF_BYTES-eng: 4068527896
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-07-23 03:11:34
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 34750
      DURATION-eng    : 01:37:53.471770833
      NUMBER_OF_FRAMES-eng: 2716
      NUMBER_OF_BYTES-eng: 25513376
      SOURCE_ID-eng   : 0012A0
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-07-23 03:11:34
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[10:08:27] scan: decoding previews for title 1
[10:08:27] scan: audio 0x1: truehd, rate=48000Hz, bitrate=1 English (TrueHD) (7.1 ch)
[10:08:32] scan: 10 previews, 3840x2160, 23.976 fps, autocrop = 280/280/0/0, aspect 16:9, PAR 1:1
[10:08:32] scan: supported video decoders: avcodec qsv
[10:08:32] libhb: scan thread found 1 valid title(s)
[10:08:32] Starting Task: Subtitle Scan
[10:08:32] job configuration:
[10:08:32]  * source
[10:08:32]    + F:\Video\The Mummy 2017\The Mummy_t03.mkv
[10:08:32]    + title 1, chapter(s) 1 to 20
[10:08:32]    + container: matroska,webm
[10:08:32]    + data rate: 70040 kbps
[10:08:32]  * destination
[10:08:32]    + E:\The Mummy (2017).mp4
[10:08:32]    + container: MPEG-4 (libavformat)
[10:08:32]      + align initial A/V stream timestamps
[10:08:32]      + chapter markers
[10:08:32]  * video track
[10:08:32]    + decoder: hevc
[10:08:32]    + filters
[10:08:32]      + Framerate Shaper (mode=1)
[10:08:32]        + frame rate: 23.976 fps -> constant 23.976 fps
[10:08:32]      + Crop and Scale (width=3840:height=1600:crop-top=280:crop-bottom=280:crop-left=0:crop-right=0)
[10:08:32]        + source: 3840 * 2160, crop (280/280/0/0): 3840 * 1600, scale: 3840 * 1600
[10:08:32]    + Output geometry
[10:08:32]      + storage dimensions: 3840 x 1600
[10:08:32]      + pixel aspect ratio: 1 : 1
[10:08:32]      + display dimensions: 3840 x 1600
[10:08:32]  * Foreign Audio Search: Render/Burn-in, Forced Only
[10:08:32]    + subtitle, English [PGS] (track 0, id 0x2, Picture)
[10:08:32] sync: expecting 158395 video frames
[10:09:09] reader: done. 1 scr changes
[10:09:09] work: average encoding speed for job is 0.000000 fps
[10:09:09] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[10:09:09] vfr: lost time: 0 (0 frames)
[10:09:09] vfr: gained time: 0 (0 frames) (0 not accounted for)
[10:09:09] hevc-decoder done: 0 frames, 0 decoder errors
[10:09:09] sync: got 0 frames, 158395 expected
[10:09:09] Subtitle track 0 (id 0x2) 'English [PGS]': 1358 hits (0 forced)
[10:09:09] No candidate detected during subtitle scan
[10:09:09] Starting Task: Encoding Pass
[10:09:09] job configuration:
[10:09:09]  * source
[10:09:09]    + F:\Video\The Mummy 2017\The Mummy_t03.mkv
[10:09:09]    + title 1, chapter(s) 1 to 20
[10:09:09]    + container: matroska,webm
[10:09:09]    + data rate: 70040 kbps
[10:09:09]  * destination
[10:09:09]    + E:\The Mummy (2017).mp4
[10:09:09]    + container: MPEG-4 (libavformat)
[10:09:09]      + align initial A/V stream timestamps
[10:09:09]      + chapter markers
[10:09:09]  * video track
[10:09:09]    + decoder: hevc
[10:09:09]    + filters
[10:09:09]      + Framerate Shaper (mode=1)
[10:09:09]        + frame rate: 23.976 fps -> constant 23.976 fps
[10:09:09]      + Crop and Scale (width=3840:height=1600:crop-top=280:crop-bottom=280:crop-left=0:crop-right=0)
[10:09:09]        + source: 3840 * 2160, crop (280/280/0/0): 3840 * 1600, scale: 3840 * 1600
[10:09:09]    + Output geometry
[10:09:09]      + storage dimensions: 3840 x 1600
[10:09:09]      + pixel aspect ratio: 1 : 1
[10:09:09]      + display dimensions: 3840 x 1600
[10:09:09]    + encoder: H.265 (NVEnc)
[10:09:09]      + preset:  hq
[10:09:09]      + profile: auto
[10:09:09]      + level:   auto
[10:09:09]      + quality: 20.00 (CQ)
[10:09:09]      + color profile: 9-16-9
[10:09:09]  * audio track 1
[10:09:09]    + name: Surround 7.1
[10:09:09]    + decoder: English (TrueHD) (7.1 ch) (track 1, id 0x1)
[10:09:09]      + samplerate: 48000 Hz
[10:09:09]    + mixdown: 7.1 Channels
[10:09:09]    + dither: none
[10:09:09]    + encoder: AAC (libavcodec)
[10:09:09]      + bitrate: 1152 kbps, samplerate: 48000 Hz
[10:09:09] sync: expecting 158395 video frames
[10:09:09] encavcodecInit: H.265 (Nvidia NVENC)
[10:09:09] encavcodec: encoding at rc=vbr 20.00
[10:09:09] encavcodec: encoding with stored aspect 1/1
[10:09:09] sync: first pts audio 0x1 is 0
[10:09:09] sync: first pts video is 0
[10:09:09] sync: "Chapter 1" (1) at frame 1 time 0
[10:14:32] sync: "Chapter 2" (2) at frame 11958 time 44883588
[10:18:13] sync: "Chapter 3" (3) at frame 19154 time 71895573
[10:22:33] sync: "Chapter 4" (4) at frame 28087 time 105427822
[10:26:02] sync: "Chapter 5" (5) at frame 35494 time 133231848
[10:29:14] sync: "Chapter 6" (6) at frame 41583 time 156088432
[10:34:17] sync: "Chapter 7" (7) at frame 51348 time 192743801
[10:36:54] sync: "Chapter 8" (8) at frame 56967 time 213836122
[10:42:13] sync: "Chapter 9" (9) at frame 67620 time 253824821
[10:45:15] sync: "Chapter 10" (10) at frame 73310 time 275183658
[10:49:00] sync: "Chapter 11" (11) at frame 81749 time 306861555
[10:51:53] sync: "Chapter 12" (12) at frame 87358 time 327916338
[10:57:38] sync: "Chapter 13" (13) at frame 99214 time 372420798
[11:02:43] sync: "Chapter 14" (14) at frame 109424 time 410746586
[11:05:18] sync: "Chapter 15" (15) at frame 114574 time 430078398
[11:07:53] sync: "Chapter 16" (16) at frame 119800 time 449695496
[11:10:15] sync: "Chapter 17" (17) at frame 124366 time 466835118
[11:16:11] sync: "Chapter 18" (18) at frame 134624 time 505341086
[11:19:01] sync: "Chapter 19" (19) at frame 139612 time 524064791
[11:21:15] sync: "Chapter 20" (20) at frame 143563 time 538895857
[11:26:38] reader: done. 1 scr changes
[11:26:40] work: average encoding speed for job is 34.062569 fps
[11:26:40] vfr: 158396 frames output, 0 dropped and 0 duped for CFR/PFR
[11:26:40] vfr: lost time: 0 (0 frames)
[11:26:40] vfr: gained time: 0 (0 frames) (0 not accounted for)
[11:26:40] truehd-decoder done: 7927721 frames, 0 decoder errors
[11:26:40] hevc-decoder done: 158396 frames, 0 decoder errors
[11:26:40] sync: got 158396 frames, 158395 expected
[11:26:40] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
[11:26:40] mux: track 0, 158396 frames, 15828613512 bytes, 19167.39 kbps, fifo 1024
[11:26:40] mux: track 1, 309677 frames, 916208960 bytes, 1109.47 kbps, fifo 2048
[11:26:40] Finished work at: Sun Jul 26 11:26:40 2020
[11:26:40] libhb: work result = 0

# Encode Completed ...



deano
Posts: 2
Joined: Sun Jul 26, 2020 8:18 pm

Re: H.265 (Nvidia nvenc) settings

Post by deano »

Is anybody using Nvidia Nvenc in handbrake ?

User avatar
BradleyS
Moderator
Posts: 1859
Joined: Thu Aug 09, 2007 12:16 pm

Re: H.265 (Nvidia nvenc) settings

Post by BradleyS »

We're aware of recent issues in this regard. See also: https://github.com/HandBrake/HandBrake/issues/2873

Post Reply