High CPU usage, low GPU 1650 usage

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
vkams
Posts: 4
Joined: Mon Nov 05, 2018 4:01 pm

High CPU usage, low GPU 1650 usage

Post by vkams »

Description of problem or question:
During transcoding, the processor was loaded by more than 80%, and the video card (Video engine load) by 3-4%. So the frame rate was 10 per second - slightly higher than without NVEnc at all.


Steps to reproduce the problem (If Applicable):




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 7 x64 Professional



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

Code: Select all

HandBrake 1.3.3 (2020061300)
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
CPU: AMD Phenom(tm) II X6 1090T Processor
Ram: 16382 MB, 
GPU Information:
  NVIDIA GeForce GTX 1650 SUPER - 27.21.14.6089
Screen: 1280x1024
Temp Dir: C:\Users\User\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\User\AppData\Roaming\HandBrake

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


# Starting Encode ...

[08:03:38] base preset: Fast 1080p30 (Modified)
[20:03:38] hb_init: starting libhb thread
[20:03:38] Starting work at: Sun Feb 28 20:03:38 2021
[20:03:38] 1 job(s) to process
[20:03:38] json job:
{
  "Audio": {
    "AudioList": [
      {
        "DRC": 0.0,
        "Encoder": "copy:aac",
        "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": "Глава 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "C:\\Users\\User\\Videos\\S1e2 - Web-Dl 2160P-1.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mkv"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 4,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "ID": 12,
        "Settings": {
          "crop-bottom": "258",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "260",
          "height": "822",
          "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": "F:\\0\\S1E2 - WEB-DL 2160p.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": true,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "nvenc_h264",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "slow",
    "Profile": "auto",
    "Quality": 17.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[20:03:38] CPU: AMD Phenom(tm) II X6 1090T Processor
[20:03:38]  - logical processor count: 6
[20:03:38] Intel Quick Sync Video support: no
[20:03:38] hb_scan: path=F:\0\S1E2 - WEB-DL 2160p.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image F:\0\S1E2 - WEB-DL 2160p.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:\0\S1E2 - WEB-DL 2160p.mkv\) failed
[20:03:38] 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
[20:03:38] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'F:\0\S1E2 - WEB-DL 2160p.mkv':
  Metadata:
    encoder         : libebml v1.4.1 + libmatroska v1.6.2
    creation_time   : 2021-01-15T23:47:08.000000Z
  Duration: 00:21:43.76, start: 0.000000, bitrate: 25985 kb/s
    Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 3840x2160, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
    Metadata:
      BPS-eng         : 25729028
      DURATION-eng    : 00:21:43.680000000
      NUMBER_OF_FRAMES-eng: 32592
      NUMBER_OF_BYTES-eng: 4192802490
      _STATISTICS_WRITING_APP-eng: mkvmerge v52.0.0 ('Secret For The Mad') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-15 23:47:08
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp (default)
    Metadata:
      BPS-eng         : 255490
      DURATION-eng    : 00:21:43.701000000
      NUMBER_OF_FRAMES-eng: 61111
      NUMBER_OF_BYTES-eng: 41635445
      _STATISTICS_WRITING_APP-eng: mkvmerge v52.0.0 ('Secret For The Mad') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-15 23:47:08
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[20:03:38] scan: decoding previews for title 1
[20:03:38] scan: audio 0x1: aac, rate=48000Hz, bitrate=1 Unknown (AAC LC) (2.0 ch)
[20:03:42] scan: 10 previews, 3840x2160, 25.000 fps, autocrop = 260/258/0/0, aspect 16:9, PAR 1:1
[20:03:42] scan: supported video decoders: avcodec qsv
[20:03:42] libhb: scan thread found 1 valid title(s)
[20:03:42] Skipping subtitle scan.  No suitable subtitle tracks.
[20:03:42] Starting Task: Encoding Pass
[20:03:42] Skipping vfr filter
[20:03:42] work: only 1 chapter, disabling chapter markers
[20:03:42] job configuration:
[20:03:42]  * source
[20:03:42]    + F:\0\S1E2 - WEB-DL 2160p.mkv
[20:03:42]    + title 1, chapter(s) 1 to 1
[20:03:42]    + container: matroska,webm
[20:03:42]    + data rate: 25985 kbps
[20:03:42]  * destination
[20:03:42]    + C:\Users\User\Videos\S1e2 - Web-Dl 2160P-1.mkv
[20:03:42]    + container: Matroska (libavformat)
[20:03:42]  * video track
[20:03:42]    + decoder: h264
[20:03:42]    + filters
[20:03:42]      + Decomb (mode=7)
[20:03:42]      + Crop and Scale (width=1920:height=822:crop-top=260:crop-bottom=258:crop-left=0:crop-right=0)
[20:03:42]        + source: 3840 * 2160, crop (260/258/0/0): 3840 * 1642, scale: 1920 * 822
[20:03:42]    + Output geometry
[20:03:42]      + storage dimensions: 1920 x 822
[20:03:42]      + pixel aspect ratio: 1 : 1
[20:03:42]      + display dimensions: 1920 x 822
[20:03:42]    + encoder: H.264 (NVEnc)
[20:03:42]      + preset:  slow
[20:03:42]      + profile: auto
[20:03:42]      + level:   auto
[20:03:42]      + quality: 17.00 (CQ)
[20:03:42]      + color profile: 1-1-1
[20:03:42]  * audio track 1
[20:03:42]    + decoder: Unknown (AAC LC) (2.0 ch) (track 1, id 0x1)
[20:03:42]      + samplerate: 48000 Hz
[20:03:42]    + AAC Passthru
[20:03:42] sync: expecting 32594 video frames
[20:03:42] encavcodecInit: H.264 (Nvidia NVENC)
[20:03:42] encavcodec: encoding at rc=vbr 17.00
[20:03:42] encavcodec: encoding with stored aspect 1/1
[20:03:43] sync: first pts audio 0x1 is 0
[20:03:43] sync: first pts video is 7200
[20:03:43] sync: "Глава 1" (1) at frame 1 time 7200
[21:02:54] reader: done. 1 scr changes
[21:03:03] work: average encoding speed for job is 9.161481 fps
[21:03:03] decomb: deinterlaced 32592 | blended 0 | unfiltered 0 | total 32592
[21:03:03] aac-decoder done: 61111 frames, 0 decoder errors
[21:03:03] h264-decoder done: 32592 frames, 0 decoder errors
[21:03:03] sync: got 32592 frames, 32594 expected
[21:03:03] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
[21:03:03] mux: track 0, 32592 frames, 1946374337 bytes, 11942.78 kbps, fifo 4096
[21:03:03] mux: track 1, 61111 frames, 41635445 bytes, 255.47 kbps, fifo 8192
[21:03:03] Finished work at: Sun Feb 28 21:03:03 2021
[21:03:03] libhb: work result = 0

# Encode Completed ...


User avatar
s55
HandBrake Team
Posts: 10347
Joined: Sun Dec 24, 2006 1:05 pm

Re: High CPU usage, low GPU 1650 usage

Post by s55 »

Your CPU is heavily bottlenecking the GPU. This is expected for your setup. Remember, only video encoding here is on the GPU. everything else is bound by the slow CPU.

If you don't need it, turn off Decomb on the filters tab. That'll gain you a few extra fps.
vkams
Posts: 4
Joined: Mon Nov 05, 2018 4:01 pm

Re: High CPU usage, low GPU 1650 usage

Post by vkams »

Thank you for immediate answer!
Why it's not possible to force GPU decoding?
User avatar
s55
HandBrake Team
Posts: 10347
Joined: Sun Dec 24, 2006 1:05 pm

Re: High CPU usage, low GPU 1650 usage

Post by s55 »

We don't support it for Nvidia. Hardware decoding in general proved to be too unreliable to support.

With your system, you'd still end up bottlenecking the card regardless. as A/V Sync processing, audio, any filtering is all done on the CPU and the pipeline going through system memory would bottleneck on bandwidth at some point too.
vkams
Posts: 4
Joined: Mon Nov 05, 2018 4:01 pm

Re: High CPU usage, low GPU 1650 usage

Post by vkams »

Thank you again! Yes, it's time to change the processor.
s55 wrote: Sun Feb 28, 2021 7:37 pm We don't support it for Nvidia. Hardware decoding in general proved to be too unreliable to support.
Last question: can't you do a quick decoding with CUDA?
User avatar
s55
HandBrake Team
Posts: 10347
Joined: Sun Dec 24, 2006 1:05 pm

Re: High CPU usage, low GPU 1650 usage

Post by s55 »

Everyone has moved away from CUDA to dedicated hardware for de/encoders so no, it's no longer viable.
Post Reply