Performance issues Core i7 8550U

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
razorback
Posts: 24
Joined: Wed Apr 25, 2018 7:47 am

Performance issues Core i7 8550U

Post by razorback »

Description of problem or question:
When running Handbrake 1.1 on my Noteook and looking into TaskManager the following behaviour is encountered:
During pass 1 (scanning) the CPU runs at 3,9 GHz
When starting into pass 2 (encoding) CPU clock drops to 2,14 GHz and stays there.
This of course increases runtime considerably.

And it happens no matter which source codec into which target codec I try to encode.
As in the sample in the log (h.264 to h.264) or also tried h.h264 to h.265 or whole BD to h.265 etc. etc.

Why so ?

Steps to reproduce the problem (If Applicable):




HandBrake version (e.g., 1.0.0):
see log



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



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

Code: Select all

HandBrake 1.1.0 (2018040700) - 64bit
OS: Microsoft Windows NT 10.0.16299.0 - 64bit
CPU: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
Ram: 8067 MB, 
GPU Information:
  NVIDIA GeForce MX150 - 23.21.13.8873
  Intel(R) UHD Graphics 620 - 22.20.16.4749
Screen: 1920x1080
Temp Dir: C:\Users\Wolfgang LEHRER\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Wolfgang LEHRER\AppData\Roaming\HandBrake Team\HandBrake\1.1.0.0

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


# Starting Encode ...

[07:11:23] thread 25c845e68f0 exited ("libhb")
[07:11:23] thread 25c845e68f0 joined ("libhb")
[07:11:23] hb_init: starting libhb thread
[07:11:23] thread 25c83f402c0 started ("libhb")
[07:11:23] thread 25c8410ce30 started ("work")
[07:11:23] 1 job(s) to process
[07:11:23] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": 65536,
        "Gain": 0.0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 48000,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      1073807360,
      1073743872,
      1074003968,
      1073750016,
      1090519040,
      1074790400,
      1074266112,
      1107296256
    ],
    "FallbackEncoder": 2048
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "D:\\dvbrec\\Don Raffe H264-22.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": 2097152
  },
  "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": 11,
        "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": "C:\\JD-Work\\Don Raffe.ts"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": 65536,
    "Level": "4.0",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "medium",
    "Profile": "main",
    "Quality": 22.0,
    "HWDecode": false,
    "QSV": {
      "Decode": true,
      "AsyncDepth": 0
    }
  }
}
[07:11:23] CPU: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
[07:11:23]  - Intel microarchitecture Kaby Lake
[07:11:23]  - logical processor count: 8
[07:11:23] Intel Quick Sync Video support: yes
[07:11:23]  - Intel Media SDK hardware: API 1.24 (minimum: 1.3)
[07:11:23]  - H.264 encoder: yes
[07:11:23]     - preferred implementation: hardware (any) via D3D11
[07:11:23]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[07:11:23]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[07:11:23]     - preferred implementation: hardware (any) via D3D11
[07:11:23]     - capabilities (hardware):  bpyramid icq vsinfo opt1
[07:11:23] hb_scan: path=C:\JD-Work\Don Raffe.ts, title_index=1
[07:11:23] thread 25c8410c8f0 started ("scan")
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image C:\JD-Work\Don Raffe.ts
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
[07:11:23] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.3
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
[07:11:23] dvd: not a dvd - trying as a stream/file instead
[07:11:23] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[07:11:23] Found the following PIDS
[07:11:23]     Video PIDS :
[07:11:23]       0x1011 type H.264 (0x1b)
[07:11:23]     Audio PIDS :
[07:11:23]       0x1100 type MPEG2 (0x4)
[07:11:23]     Subtitle PIDS :
[07:11:23]     Other PIDS :
[07:11:23]       0x1001 type Unknown (0xff) (PCR)
[07:11:23] stream id 0x1100 (type 0x4 substream 0x0) audio 0x1100
[07:11:23] stream doesn't seem to have video IDR frames
[07:11:23] scan: decoding previews for title 1
[07:11:23] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[07:11:23] scan: preview 1
[07:11:23] fifo_close: trashing 0 buffer(s)
[07:11:23] scan: audio 0x1100: mp2, rate=48000Hz, bitrate=200000 English (MPEG) (2.0 ch)
[07:11:23] scan: preview 2
[07:11:24] scan: preview 3
[07:11:24] scan: preview 4
[07:11:24] scan: preview 5
[07:11:24] scan: preview 6
[07:11:24] scan: preview 7
[07:11:24] scan: preview 8
[07:11:24] scan: preview 9
[07:11:24] scan: preview 10
[07:11:24] stream: 9 good frames, 0 errors (0%)
[07:11:24] scan: 10 previews, 1920x1080, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[07:11:24] scan: supported video decoders: avcodec qsv
[07:11:24] Freed 6 buffers of size 1024
[07:11:24] Freed 1 buffers of size 2048
[07:11:24] Freed 1 buffers of size 4096
[07:11:24] Freed 1 buffers of size 8192
[07:11:24] Freed 1 buffers of size 16384
[07:11:24] Freed 1 buffers of size 32768
[07:11:24] Freed 1 buffers of size 65536
[07:11:24] Freed 1 buffers of size 131072
[07:11:24] Freed 2 buffers of size 262144
[07:11:24] Freed 2 buffers of size 4194304
[07:11:24] Freed 1 buffers of size 8388608
[07:11:24] Allocated 17567744 bytes of buffers on this pass and Freed 17567744 bytes, 0 bytes leaked
[07:11:24] thread 25c8410c8f0 exited ("scan")
[07:11:24] thread 25c8410c8f0 joined ("scan")
[07:11:24] libhb: scan thread found 1 valid title(s)
[07:11:24] Adding subtitle scan pass
[07:11:24] Skipping subtitle scan.  No suitable subtitle tracks.
[07:11:24] starting job
[07:11:24] thread 25c8410c1f0 started ("decomb_filter_segment")
[07:11:24] thread 25c8410c030 started ("decomb_filter_segment")
[07:11:24] thread 25c8410b930 started ("decomb_filter_segment")
[07:11:24] thread 25c8410cc70 started ("decomb_filter_segment")
[07:11:24] thread 25c8410cab0 started ("decomb_filter_segment")
[07:11:24] decomb filter thread started for segment 1
[07:11:24] thread 25c8410c3b0 started ("decomb_filter_segment")
[07:11:24] decomb filter thread started for segment 0
[07:11:24] thread 25c8410b070 started ("decomb_filter_segment")
[07:11:24] decomb filter thread started for segment 2
[07:11:24] thread 25c8410c730 started ("decomb_filter_segment")
[07:11:24] thread 25c8410b5b0 started ("decomb_check_segment")
[07:11:24] decomb filter thread started for segment 3
[07:11:24] thread 25c8410b230 started ("decomb_check_segment")
[07:11:24] decomb check thread started for segment 0
[07:11:24] thread 25c8410b770 started ("decomb_check_segment")
[07:11:24] decomb filter thread started for segment 4
[07:11:24] thread 25c8410c570 started ("decomb_check_segment")
[07:11:24] decomb filter thread started for segment 6
[07:11:24] thread 25c8410b3f0 started ("decomb_check_segment")
[07:11:24] decomb check thread started for segment 3
[07:11:24] thread 25c8410baf0 started ("decomb_check_segment")
[07:11:24] decomb filter thread started for segment 5
[07:11:24] thread 25c8410bcb0 started ("decomb_check_segment")
[07:11:24] decomb check thread started for segment 1
[07:11:24] thread 25c8410be70 started ("decomb_check_segment")
[07:11:24] thread 25c845ece70 started ("mask_filter_segment")
[07:11:24] decomb check thread started for segment 2
[07:11:24] thread 25c845ede30 started ("mask_filter_segment")
[07:11:24] mask filter thread started for segment 0
[07:11:24] thread 25c845ec770 started ("mask_filter_segment")
[07:11:24] decomb check thread started for segment 4
[07:11:24] decomb check thread started for segment 5
[07:11:24] thread 25c845ed030 started ("mask_filter_segment")
[07:11:24] thread 25c845ec070 started ("mask_filter_segment")
[07:11:24] decomb check thread started for segment 6
[07:11:24] thread 25c845eccb0 started ("mask_filter_segment")
[07:11:24] decomb check thread started for segment 7
[07:11:24] thread 25c845ed1f0 started ("mask_filter_segment")
[07:11:24] decomb filter thread started for segment 7
[07:11:24] thread 25c845edab0 started ("mask_filter_segment")
[07:11:24] thread 25c845ed570 started ("mask_erode_segment")
[07:11:24] thread 25c845edc70 started ("mask_erode_segment")
[07:11:24] mask filter thread started for segment 1
[07:11:24] mask filter thread started for segment 2
[07:11:24] thread 25c845ec230 started ("mask_erode_segment")
[07:11:24] thread 25c845ec3f0 started ("mask_erode_segment")
[07:11:24] mask filter thread started for segment 3
[07:11:24] mask filter thread started for segment 5
[07:11:24] thread 25c845ec5b0 started ("mask_erode_segment")
[07:11:24] thread 25c845ec930 started ("mask_erode_segment")
[07:11:24] mask erode thread started for segment 4
[07:11:24] thread 25c845ed3b0 started ("mask_erode_segment")
[07:11:24] mask erode thread started for segment 5
[07:11:24] thread 25c845ecaf0 started ("mask_erode_segment")
[07:11:24] mask erode thread started for segment 0
[07:11:24] mask filter thread started for segment 7
[07:11:24] thread 25c845ed730 started ("mask_dilate_segment")
[07:11:24] thread 25c845ed8f0 started ("mask_dilate_segment")
[07:11:24] mask dilate thread started for segment 0
[07:11:24] thread 25cf6cf3af0 started ("mask_dilate_segment")
[07:11:24] thread 25cf6cf4570 started ("mask_dilate_segment")
[07:11:24] mask dilate thread started for segment 2
[07:11:24] thread 25cf6cf3930 started ("mask_dilate_segment")
[07:11:24] mask erode thread started for segment 3
[07:11:24] thread 25cf6cf4730 started ("mask_dilate_segment")
[07:11:24] mask filter thread started for segment 4
[07:11:24] thread 25c83f41980 started ("mask_dilate_segment")
[07:11:24] thread 25cf6cf3770 started ("mask_dilate_segment")
[07:11:24] mask dilate thread started for segment 6
[07:11:24] thread 25cf6cf4ab0 started ("yadif_filter_segment")
[07:11:24] thread 25cf6cf41f0 started ("yadif_filter_segment")
[07:11:24] mask dilate thread started for segment 7
[07:11:24] thread 25cf6cf4e30 started ("yadif_filter_segment")
[07:11:24] mask erode thread started for segment 7
[07:11:24] thread 25cf6cf33f0 started ("yadif_filter_segment")
[07:11:24] mask erode thread started for segment 1
[07:11:24] thread 25cf6cf43b0 started ("yadif_filter_segment")
[07:11:24] mask dilate thread started for segment 1
[07:11:24] thread 25cf6cf3cb0 started ("yadif_filter_segment")
[07:11:24] mask erode thread started for segment 2
[07:11:24] thread 25cf6cf3070 started ("yadif_filter_segment")
[07:11:24] mask dilate thread started for segment 3
[07:11:24] thread 25c83f409c0 started ("yadif_filter_segment")
[07:11:24] mask dilate thread started for segment 4
[07:11:24] mask dilate thread started for segment 5
[07:11:24] work: track 1, dithering not supported by codec
[07:11:24] work: only 1 chapter, disabling chapter markers
[07:11:24] job configuration:
[07:11:24]  * source
[07:11:24]    + C:\JD-Work\Don Raffe.ts
[07:11:24]    + title 1, chapter(s) 1 to 1
[07:11:24]  * destination
[07:11:24] mask filter thread started for segment 6
[07:11:24]    + D:\dvbrec\Don Raffe H264-22.mkv
[07:11:24]    + container: Matroska (libavformat)
[07:11:24]  * video track
[07:11:24]    + decoder: h264_qsv
[07:11:24]      + bitrate 200 kbps
[07:11:24]    + filters
[07:11:24]      + 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)
[07:11:24]      + Decomb (mode=39)
[07:11:24]      + Framerate Shaper (mode=0)
[07:11:24] yadif thread started for segment 0
[07:11:24]        + frame rate: same as source (around 25.000 fps)
[07:11:24]      + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[07:11:24]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[07:11:24]    + Output geometry
[07:11:24]      + storage dimensions: 1920 x 1080
[07:11:24]      + pixel aspect ratio: 1 : 1
[07:11:24]      + display dimensions: 1920 x 1080
[07:11:24]    + encoder: H.264 (libx264)
[07:11:24]      + preset:  medium
[07:11:24]      + profile: main
[07:11:24]      + level:   4.0
[07:11:24]      + quality: 22.00 (RF)
[07:11:24]  * audio track 1
[07:11:24]    + decoder: English (MPEG) (2.0 ch) (track 1, id 0x1100)
[07:11:24]      + bitrate: 200 kbps, samplerate: 48000 Hz
[07:11:24]    + mixdown: Stereo
[07:11:24]    + encoder: AAC (libavcodec)
[07:11:24]      + bitrate: 160 kbps, samplerate: 48000 Hz
[07:11:24] mask erode thread started for segment 6
[07:11:24] yadif thread started for segment 1
[07:11:24] yadif thread started for segment 2
[07:11:24] yadif thread started for segment 3
[07:11:24] yadif thread started for segment 4
[07:11:24] yadif thread started for segment 5
[07:11:24] yadif thread started for segment 6
[07:11:24] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[07:11:24] yadif thread started for segment 7
[07:11:24] sync: expecting 162985 video frames
[07:11:24] thread 25c83f3aec0 started ("Audio Synchronization")
[07:11:24] encx264: encoding at constant RF 22.000000
[07:11:24] encx264: unparsed options: level=4.0:8x8dct=0:vbv-bufsize=25000:vbv-maxrate=20000
[07:11:24] encx264: opening libx264 (pass 0)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 4.0
[07:11:24] Writing Metadata to output file...
[07:11:24] thread 25c83f3ce40 started ("Muxer")
[07:11:24] thread 25c83f3fa00 started ("Reader")
[07:11:24] thread 25c83f417c0 started ("Audio decoder (libavcodec)")
[07:11:24] thread 25c83f3be80 started ("Video decoder (libavcodec)")
[07:11:24] thread 25c83f3edc0 started ("Video Synchronization")
[07:11:24] thread 25c83f3d000 started ("AVCodec Audio encoder (libavcodec)")
[07:11:24] thread 25c83f3f140 started ("H.264/AVC encoder (libx264)")
[07:11:24] thread 25c83f41b40 started ("Muxer")
[07:11:24] thread 25c83f3bcc0 started ("Comb Detect")
[07:11:24] thread 25c83f3dfc0 started ("Decomb")
[07:11:24] thread 25c83f3ef80 started ("Framerate Shaper")
[07:11:24] thread 25c83f3ad00 started ("Crop and Scale")
[07:11:24] sync: first pts video is 0
[07:11:24] sync: first pts audio 0x1100 is 3600
User avatar
s55
HandBrake Team
Posts: 10350
Joined: Sun Dec 24, 2006 1:05 pm

Re: Performance issues Core i7 8550U

Post by s55 »

First pass isn't CPU intensive, so won't be using the cores as heavily.

2nd Pass is very CPU intensive. Since this is a 15watt part, it won't boost much above 1.8Ghz during an encode. 4Ghz is only a single core boost, not an all core boost. It's also only available within thermal and power limits. 15W is a low power part so there is no room for high clock speeds expect in very short bursts.

https://ark.intel.com/products/122589/I ... o-4_00-GHz

So your system is behaving as designed.
razorback
Posts: 24
Joined: Wed Apr 25, 2018 7:47 am

Re: Performance issues Core i7 8550U

Post by razorback »

Thank you very much indeed - just one detail I forgot to ask:

What does this line in the log mean :
[07:11:23] Intel Quick Sync Video support: yes
[07:11:23] - Intel Media SDK hardware: API 1.24 (minimum: 1.3)

Do I need any update ??

PS:
meanwhile I have updated the Intel UHD 620 driver
the line above reads now API 1.25
So this API thing is buried somewhere in the driver itself.

Why does it say "minimum 1.3" ???
Woodstock
Veteran User
Posts: 4614
Joined: Tue Aug 27, 2013 6:39 am

Re: Performance issues Core i7 8550U

Post by Woodstock »

Version numbers aren't like decimal numbers. "1 point 24" is greater than "1 point 3" in this case.

Think of it as, "The 24th edition of the version 1 interface", compared to the "3rd edition of the version 1 interface".
Post Reply