NVENC Incremental QP Settings

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
Arctic0ne
Posts: 3
Joined: Sat Jan 19, 2019 6:15 pm

NVENC Incremental QP Settings

Post by Arctic0ne »

Description of problem or question:

Is there a way to set an incremental QP setting when ripping with NVENC, like there is with normal x264 encoding? For example, using QP 21.25, instead of QP 21. The activity log seems to show that the QP value can be set to 21.XX, but using the normal -q setting does not appear to effect the QP value. Switching to the normal CRF would probably be ideal, if possible.

HandBrake version (e.g., 1.0.0):

1.2.2 (GUI)

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

Windows 10 LTSB 2016

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

Code: Select all

HandBrake 1.2.2 (2019022300)
OS: Microsoft Windows NT 10.0.14393.0
CPU: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
Ram: 16332 MB, 
GPU Information:
  NVIDIA GeForce GTX 1070 Ti - 25.21.14.1735
Screen: 2560x1440
Temp Dir: C:\Users\admin\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\admin\AppData\Roaming\HandBrake

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


# Starting Encode ...

[11:07:10] hb_init: starting libhb thread
[11:07:10] 1 job(s) to process
[11:07:10] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 1536,
        "DRC": 0.0,
        "Encoder": "vorbis",
        "Gain": 0.0,
        "Mixdown": 9,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 2,
        "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"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "D:\\Users\\admin\\Videos\\TV Shows\\Game of Thrones\\Season 1\\E01.Winter Is Coming.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "mkv"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "1080",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 10
    },
    "Title": 98,
    "Path": "E:\\"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": [
      {
        "Burn": true,
        "Default": false,
        "Forced": true,
        "ID": 1,
        "Offset": 0,
        "Track": 0
      },
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 1,
        "Offset": 0,
        "Track": 0
      }
    ]
  },
  "Video": {
    "Encoder": "nvenc_h264",
    "Level": "5.1",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "hq",
    "Profile": "high",
    "Quality": 22.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[11:07:10] CPU: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
[11:07:10]  - Intel microarchitecture Haswell
[11:07:10]  - logical processor count: 8
[11:07:10] Intel Quick Sync Video support: no
[11:07:10] hb_scan: path=E:\, title_index=98
src/libbluray/bdj/bdj.c:549: libbluray-j2se-1.0.2.jar not found.
src/libbluray/bdj/bdj.c:695: BD-J check: Failed to load libbluray.jar
src/libbluray/bdj/bdj.c:549: libbluray-j2se-1.0.2.jar not found.
src/libbluray/bdj/bdj.c:695: BD-J check: Failed to load libbluray.jar
[11:07:12] scan: BD has 105 title(s)
[11:07:12] bd: scanning title 98
[11:07:12] bd: playlist 00820.MPLS
[11:07:12] bd: duration is 01:01:39 (3699153 ms)
[11:07:12] bd: video id=0x1011, stream type=H.264, format 1080p
[11:07:12] bd: aspect = 16:9
[11:07:12] bd: audio id=0x1100, lang=English (AC3), 3cc=eng
[11:07:12] bd: audio id=0x761101, lang=English (AC3), 3cc=eng
[11:07:12] bd: audio id=0x721101, lang=English (TrueHD), 3cc=eng
[11:07:12] bd: audio id=0x1102, lang=Francais (AC3), 3cc=fra
[11:07:12] bd: audio id=0x1103, lang=español (AC3), 3cc=spa
[11:07:12] bd: audio id=0x1104, lang=español (AC3), 3cc=spa
[11:07:12] bd: audio id=0x1105, lang=Deutsch (AC3), 3cc=deu
[11:07:12] bd: audio id=0x1106, lang=italiano (AC3), 3cc=ita
[11:07:12] bd: audio id=0x1107, lang=English (AC3), 3cc=eng
[11:07:12] bd: subtitle id=0x1200, lang=English [PGS], 3cc=eng
[11:07:12] bd: subtitle id=0x1201, lang=Francais [PGS], 3cc=fra
[11:07:12] bd: subtitle id=0x1202, lang=español [PGS], 3cc=spa
[11:07:12] bd: subtitle id=0x1203, lang=español [PGS], 3cc=spa
[11:07:12] bd: subtitle id=0x1204, lang=Deutsch [PGS], 3cc=deu
[11:07:12] bd: subtitle id=0x1205, lang=italiano [PGS], 3cc=ita
[11:07:12] bd: subtitle id=0x1206, lang=Portugues [PGS], 3cc=por
[11:07:12] bd: subtitle id=0x1207, lang=Nederlands [PGS], 3cc=nld
[11:07:12] bd: subtitle id=0x1208, lang=dansk [PGS], 3cc=dan
[11:07:12] bd: subtitle id=0x1209, lang=suomi [PGS], 3cc=fin
[11:07:12] bd: subtitle id=0x120a, lang=norsk [PGS], 3cc=nor
[11:07:12] bd: subtitle id=0x120b, lang=svenska [PGS], 3cc=swe
[11:07:12] bd: chap 1 packet=960, 8008 ms
[11:07:12] bd: chap 2 packet=25382784, 430430 ms
[11:07:12] bd: chap 3 packet=1708151424, 100100 ms
[11:07:12] bd: chap 4 packet=2263308864, 557974 ms
[11:07:12] bd: chap 5 packet=4492483392, 632048 ms
[11:07:12] bd: chap 6 packet=7257812544, 649023 ms
[11:07:12] bd: chap 7 packet=10009015872, 624457 ms
[11:07:12] bd: chap 8 packet=12499118976, 632590 ms
[11:07:12] bd: chap 9 packet=15142891392, 64272 ms
[11:07:12] bd: chap 10 packet=15286151808, 250 ms
[11:07:12] bd: title 98 has 10 chapters
[11:07:12] scan: decoding previews for title 98
[11:07:12] scan: title angle(s) 1
[11:07:12] scan: audio 0x721101: truehd, rate=48000Hz, bitrate=128000 English (TrueHD) (7.1 ch)
[11:07:12] scan: audio 0x1103: ac3, rate=48000Hz, bitrate=256000 español (AC3) (2.0 ch) (Dolby Surround)
[11:07:12] scan: audio 0x1102: ac3, rate=48000Hz, bitrate=448000 Francais (AC3) (5.1 ch)
[11:07:12] scan: audio 0x1104: ac3, rate=48000Hz, bitrate=448000 español (AC3) (5.1 ch)
[11:07:12] scan: audio 0x1105: ac3, rate=48000Hz, bitrate=448000 Deutsch (AC3) (5.1 ch)
[11:07:12] scan: audio 0x1106: ac3, rate=48000Hz, bitrate=448000 italiano (AC3) (5.1 ch)
[11:07:12] scan: audio 0x1107: ac3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch)
[11:07:12] scan: audio 0x1100: ac3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch)
[11:07:12] scan: audio 0x761101: ac3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch) (Dolby Digital EX)
[11:07:13] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[11:07:13] scan: supported video decoders: avcodec qsv
[11:07:13] stream: 10 good frames, 0 errors (0%)
[11:07:13] libhb: scan thread found 1 valid title(s)
[11:07:13] starting job
[11:07:13] job configuration:
[11:07:13]  * source
[11:07:13]    + E:\
[11:07:13]    + title 98, chapter(s) 1 to 10
[11:07:13]  * destination
[11:07:13]    + D:\Users\admin\Videos\TV Shows\Game of Thrones\Season 1\E01.Winter Is Coming.mkv
[11:07:13]    + container: Matroska (libavformat)
[11:07:13]      + chapter markers
[11:07:13]  * video track
[11:07:13]    + decoder: h264
[11:07:13]      + bitrate 200 kbps
[11:07:13]    + filters
[11:07:13]      + Framerate Shaper (mode=1)
[11:07:13]        + frame rate: 23.976 fps -> constant 23.976 fps
[11:07:13]      + Subtitle renderer ()
[11:07:13]      + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[11:07:13]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[11:07:13]    + Output geometry
[11:07:13]      + storage dimensions: 1920 x 1080
[11:07:13]      + pixel aspect ratio: 1 : 1
[11:07:13]      + display dimensions: 1920 x 1080
[11:07:13]    + encoder: H.264 (NVEnc)
[11:07:13]      + preset:  hq
[11:07:13]      + profile: high
[11:07:13]      + level:   5.1
[11:07:13]      + quality: 22.00 (CQ)
[11:07:13]      + color profile: 1-1-1
[11:07:13]  * subtitle track 1, English [PGS] (track 0, id 0x1200, Picture) -> Render/Burn-in, Forced Only
[11:07:13]  * subtitle track 2, English [PGS] (track 0, id 0x1200, Picture) -> Passthrough
[11:07:13]  * audio track 1
[11:07:13]    + decoder: English (TrueHD) (7.1 ch) (track 3, id 0x721101)
[11:07:13]      + bitrate: 128 kbps, samplerate: 48000 Hz
[11:07:13]    + mixdown: 7.1 Channels
[11:07:13]    + dither: none
[11:07:13]    + encoder: Vorbis (libvorbis)
[11:07:13]      + bitrate: 1536 kbps, samplerate: 48000 Hz
src/libbluray/bdj/bdj.c:549: libbluray-j2se-1.0.2.jar not found.
src/libbluray/bdj/bdj.c:695: BD-J check: Failed to load libbluray.jar
src/libbluray/bdj/bdj.c:549: libbluray-j2se-1.0.2.jar not found.
src/libbluray/bdj/bdj.c:695: BD-J check: Failed to load libbluray.jar
[11:07:15] sync: expecting 88690 video frames
[11:07:15] encvorbis: opening libvorbis
[11:07:15] encavcodecInit: H.264 (Nvidia NVENC)
[11:07:15] encavcodec: encoding at rc=constqp QP 22.00
[11:07:15] encavcodec: encoding with stored aspect 1/1
[11:07:16] sync: first pts audio 0x721101 is 0
[11:07:16] sync: first pts video is 0
[11:07:16] sync: "Chapter 1" (1) at frame 1 time 0
[11:07:16] sync: "Chapter 2" (2) at frame 181 time 675675
[11:07:17] sync: first pts subtitle 0x1200 is 1129878

[11:09:44] sync: "Chapter 3" (3) at frame 10499 time 39406867
[11:10:45] sync: "Chapter 4" (4) at frame 12910 time 48457158
User avatar
s55
HandBrake Team
Posts: 10358
Joined: Sun Dec 24, 2006 1:05 pm

Re: NVENC Incremental QP Settings

Post by s55 »

Nope, afraid not. The log is agnostic to the encoder so it's not indicating whether an encoder supports more granular setting.
Deleted User 11865

Re: NVENC Incremental QP Settings

Post by Deleted User 11865 »

Arctic0ne wrote: Mon Apr 22, 2019 3:11 pm Description of problem or question:

Is there a way to set an incremental QP setting when ripping with NVENC, like there is with normal x264 encoding? For example, using QP 21.25, instead of QP 21. The activity log seems to show that the QP value can be set to 21.XX, but using the normal -q setting does not appear to effect the QP value. Switching to the normal CRF would probably be ideal, if possible.
NVENC does not support CRF. Constant QP encoding does not allow for fractional quantizers, in any encoder.
Post Reply