High GPU Usage of the UI (not using hardware encoding)

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
andrewk89
Novice
Posts: 65
Joined: Thu Jun 13, 2013 4:29 pm

High GPU Usage of the UI (not using hardware encoding)

Post by andrewk89 »

Description of problem or question:
When the Handbrake queue is open, Windows Task Manager reports really high GPU usage - around 20% of the GPU for "3D".

If you close / minimize the queue window, GPU 3D usage goes down. But that's not helpful when you're actually trying to manage the queue.

Steps to reproduce the problem (If Applicable):
Launch the Windows Task Manager. Select the Performance tab. Select the GPU.

Open the queue window while encoding - GPU 3D usage goes up to ~20%.

Close or minimize the queue window - GPU 3D usage goes down to ~5-7%

Handbrake could be a little more resource-friendly.

HandBrake version (e.g., 1.0.0):
1.3.3

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

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

Code: Select all

HandBrake 1.3.3 (2020062600)
OS: Microsoft Windows NT 10.0.19042.0
CPU: AMD Ryzen 7 3700X 8-Core Processor             
Ram: 32694 MB, 
GPU Information:
  NVIDIA GeForce GTX 1660 - 27.21.14.5671
Screen: 1920x1080
Temp Dir: C:\Users\Andrew\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Andrew\AppData\Roaming\HandBrake

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


# Starting Encode ...

[13:07:45] hb_init: starting libhb thread
[13:07:45] Starting work at: Sat Feb 27 13:07:45 2021
[13:07:45] 1 job(s) to process
[13:07:45] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 64,
        "DRC": 0.0,
        "Encoder": "fdk_haac",
        "Gain": 13.0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 44100,
        "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": true,
    "File": "D:\file.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 9,
        "Settings": {
          "cb-frame-count": 2,
          "cb-origin-tune": 1.0,
          "cb-patch-size": 7,
          "cb-prefilter": 0,
          "cb-range": 3,
          "cb-strength": 6.0,
          "y-frame-count": 2,
          "y-origin-tune": 1.0,
          "y-patch-size": 7,
          "y-prefilter": 0,
          "y-range": 3,
          "y-strength": 6.0
        }
      },
      {
        "ID": 14,
        "Settings": {
          "cb-size": 7,
          "cb-strength": 0.25,
          "y-size": 7,
          "y-strength": 0.25
        }
      },
      {
        "ID": 12,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "540",
          "width": "960"
        }
      },
      {
        "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": "D:\file.mp4"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x265",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "medium",
    "Profile": "auto",
    "Quality": 23.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[13:07:45] CPU: AMD Ryzen 7 3700X 8-Core Processor
[13:07:45]  - logical processor count: 16
[13:07:45] Intel Quick Sync Video support: no
[13:07:45] hb_scan: path=D:\file.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image D:\file.mp4
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(D:\file.mp4\) failed
[13:07:45] 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:07:45] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\file.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.46.101
  Duration: 00:29:07.18, start: 0.000000, bitrate: 3408 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 3280 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 121 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
[13:07:45] scan: decoding previews for title 1
[13:07:45] scan: audio 0x1: aac, rate=48000Hz, bitrate=121879 Unknown (AAC LC) (2.0 ch) (121 kbps)
[13:07:45] scan: 10 previews, 1920x1080, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[13:07:45] scan: supported video decoders: avcodec qsv
[13:07:45] libhb: scan thread found 1 valid title(s)
[13:07:45] Skipping subtitle scan.  No suitable subtitle tracks.
[13:07:45] Starting Task: Encoding Pass
[13:07:45] Skipping vfr filter
[13:07:45] NLMeans using SSE2 optimizations
[13:07:45] NLMeans using 12 threads
[13:07:45] MTFrame thread started for segment 0
[13:07:45] MTFrame thread started for segment 1
[13:07:45] MTFrame thread started for segment 2
[13:07:45] MTFrame thread started for segment 3
[13:07:45] MTFrame thread started for segment 4
[13:07:45] MTFrame thread started for segment 5
[13:07:45] MTFrame thread started for segment 6
[13:07:45] MTFrame thread started for segment 7
[13:07:45] MTFrame thread started for segment 9
[13:07:45] MTFrame thread started for segment 8
[13:07:45] MTFrame thread started for segment 11
[13:07:45] MTFrame thread started for segment 10
[13:07:45] MTFrame thread started for segment 12
[13:07:45] MTFrame thread started for segment 13
[13:07:45] MTFrame thread started for segment 14
[13:07:45] MTFrame thread started for segment 15
[13:07:45] work: only 1 chapter, disabling chapter markers
[13:07:45] job configuration:
[13:07:45]  * source
[13:07:45]    + D:\file.mp4
[13:07:45]    + title 1, chapter(s) 1 to 1
[13:07:45]    + container: mov,mp4,m4a,3gp,3g2,mj2
[13:07:45]    + data rate: 3408 kbps
[13:07:45]  * destination
[13:07:45]    + D:\file.mp4
[13:07:45]    + container: MPEG-4 (libavformat)
[13:07:45]      + align initial A/V stream timestamps
[13:07:45]  * video track
[13:07:45]    + decoder: h264
[13:07:45]      + bitrate 3280 kbps
[13:07:45]    + filters
[13:07:45]      + Denoise (nlmeans) (y-strength=6:y-origin-tune=1:y-patch-size=7:y-range=3:y-frame-count=2:y-prefilter=0:cb-strength=6:cb-origin-tune=1:cb-patch-size=7:cb-range=3:cb-frame-count=2:cb-prefilter=0)
[13:07:45]      + Crop and Scale (width=960:height=540:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[13:07:45]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 960 * 540
[13:07:45]      + Sharpen (unsharp) (y-strength=0.25:y-size=7:cb-strength=0.25:cb-size=7)
[13:07:45]    + Output geometry
[13:07:45]      + storage dimensions: 960 x 540
[13:07:45]      + pixel aspect ratio: 1 : 1
[13:07:45]      + display dimensions: 960 x 540
[13:07:45]    + encoder: H.265 (libx265)
[13:07:45]      + preset:  medium
[13:07:45]      + profile: auto
[13:07:45]      + level:   auto
[13:07:45]      + quality: 23.00 (RF)
[13:07:45]      + color profile: 1-1-1
[13:07:45]  * audio track 1
[13:07:45]    + decoder: Unknown (AAC LC) (2.0 ch) (121 kbps) (track 1, id 0x1)
[13:07:45]      + bitrate: 121 kbps, samplerate: 48000 Hz
[13:07:45]    + mixdown: Stereo
[13:07:45]    + gain: 13dB
[13:07:45]    + dither: none
[13:07:45]    + encoder: HE-AAC (libfdk_aac)
[13:07:45]      + bitrate: 64 kbps, samplerate: 44100 Hz
[13:07:45] sync: expecting 43679 video frames
x265 [info]: HEVC encoder version 3.2.1+1-b5c86a64bbbe
x265 [info]: build info [Windows][GCC 9.2.0][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [info]: Main profile, Level-3 (Main tier)
x265 [info]: Thread pool created using 16 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 4 / wpp(9 rows)
x265 [warning]: Source height < 720p; disabling lookahead-slices
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 3
x265 [info]: Keyframe min / max / scenecut / bias: 25 / 250 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 3 / off / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-23.0 / 0.60
x265 [info]: tools: rd=3 psy-rd=2.00 early-skip rskip signhide tmvp b-intra
x265 [info]: tools: strong-intra-smoothing deblock sao
[13:07:46] sync: first pts video is 0
[13:07:46] sync: "Chapter 1" (1) at frame 1 time 0
[13:07:46] sync: first pts audio 0x1 is 0
Post Reply