Window 10 Encoding Slow, Mac Encoding Fast

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
theinvenntor
Posts: 1
Joined: Tue Apr 17, 2018 11:54 pm

Window 10 Encoding Slow, Mac Encoding Fast

Post by theinvenntor »

Description of problem or question:
I have long used HandBrake with my Mac Pro 5,1 system which uses a 2 x 6-core Xeon running at 3.06 GHz. I noted than when Version 1.1.0 was released that I could now do a 2 pass H.265 encode at much greater speed. I also noted that it seemed to take advantage of all of my available CPU cores and was using 85% to 95% of my available processing power on my Mac Pro.

I also have a Windows 10 system that use 2 x 4 Xeon running at 2.7 GHz.

On my windows box using the very same encoding present that I made on my Mac, I can only get 25 to 30% CPU utilization. Needless to say, using HandBrake on Windows 10 is PAINFULLY SLOW by comparison! This same situation has always been present with other previous versions of HandBrake as well. I have spent hours and hours on the web, looking at logs, etc. trying to find out why Handbrake does not take full utilization of CPU cores within Windows. I saw somewhere that on Windows, Handbrake was limited to 6 cores. Assuming this true, this still would not account for such a large difference between HandBrake usage on the two different operating systems.

I would like to use my Windows 10 PC to use for Handbrake encoding but, require it to use at least 50% CPU utilization. Othewise, what is the point! If anyone can help, please let me know.



Steps to reproduce the problem (If Applicable):
Take any 1080P, re-encode from H.264 to H.265 with same frame rate and same picture size. Make preset on each system identical. Encode files on each system and examine performance



HandBrake version (e.g., 1.0.0):

Version 1.1.0 on both Mac and Windows 10


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

Window 10 Pro version 1709



HandBrake Activity Log ***required*** (see How-to get an activity log)
Note, have not included the activity log for my mac since it works fine. Below is the activity log from my Windows 10 box.


HandBrake 1.1.0 (2018040700) - 64bit
OS: Microsoft Windows NT 10.0.16299.0 - 64bit
CPU: Intel(R) Xeon(R) CPU E5-2680 0 @ 2.70GHz
Ram: 32718 MB,
GPU Information:
NVIDIA GeForce 6600 - 9.18.13.908


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


# Starting Encode ...

[17:43:07] hb_init: starting libhb thread
[17:43:07] 1 job(s) to process
[17:43:07] 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:\\Babylon 5 HEVC\\Babylon 5 S03E01 - Matters of Honor-1.m4v",
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": false
},
"Mux": 131072
},
"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": "816",
"width": "1440"
}
},
{
"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:\\Babylon 5 Upscaled\\Babylon 5 S03E01 - Matters of Honor.mp4"
},
"Subtitle": {
"Search": {
"Burn": true,
"Default": false,
"Enable": true,
"Forced": true
},
"SubtitleList": []
},
"Video": {
"Encoder": 4096,
"Level": "auto",
"Bitrate": 4000,
"TwoPass": true,
"Turbo": false,
"ColorMatrixCode": 0,
"Options": "",
"Preset": "fast",
"Profile": "auto",
"HWDecode": false,
"QSV": {
"Decode": false,
"AsyncDepth": 0
}
}
}
[17:43:07] CPU: Intel(R) Xeon(R) CPU E5-2680 0 @ 2.70GHz
[17:43:07] - Intel microarchitecture Sandy Bridge
[17:43:07] - logical processor count: 32
[17:43:07] Intel Quick Sync Video support: no
[17:43:07] hb_scan: path=D:\Babylon 5 Upscaled\Babylon 5 S03E01 - Matters of Honor.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image D:\Babylon 5 Upscaled\Babylon 5 S03E01 - Matters of Honor.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
[17:43:07] 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
[17:43:07] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\Babylon 5 Upscaled\Babylon 5 S03E01 - Matters of Honor.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
title : BABYLON5_SEASON3_DISC1
encoder : Lavf56.15.102
genre : Movie
Duration: 00:43:42.50, start: 0.000000, bitrate: 9071 kb/s
Stream #0:0(und): Video: mpeg4 (Simple Profile) [mp4v / 0x7634706D]
yuv420p, 1440x816 [PAR 1:1 DAR 30:17], 8938 kb/s
29.97 fps, 11988 tbn (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) [mp4a / 0x6134706D]
44100 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
handler_name : SoundHandler
[17:43:07] scan: decoding previews for title 1
[17:43:07] scan: audio 0x1: aac, rate=44100Hz, bitrate=128003 Unknown (AAC) (2.0 ch)
[17:43:07] scan: 10 previews, 1440x816, 29.970 fps, autocrop = 0/0/0/0, aspect 1.76:1, PAR 1:1
[17:43:07] libhb: scan thread found 1 valid title(s)
[17:43:07] Skipping subtitle scan. No suitable subtitle tracks.
[17:43:07] starting job
[17:43:07] decomb filter thread started for segment 0
[17:43:07] decomb filter thread started for segment 1
[17:43:07] decomb filter thread started for segment 2
[17:43:07] decomb filter thread started for segment 8
[17:43:07] decomb filter thread started for segment 10
[17:43:07] decomb filter thread started for segment 12
[17:43:07] decomb filter thread started for segment 14
[17:43:07] decomb filter thread started for segment 7
[17:43:07] decomb filter thread started for segment 18
[17:43:07] decomb filter thread started for segment 9
[17:43:07] decomb filter thread started for segment 4
[17:43:07] decomb filter thread started for segment 11
[17:43:07] decomb filter thread started for segment 5
[17:43:07] decomb filter thread started for segment 13
[17:43:07] decomb filter thread started for segment 6
[17:43:07] decomb check thread started for segment 2
[17:43:07] decomb filter thread started for segment 16
[17:43:07] decomb check thread started for segment 6
[17:43:07] decomb check thread started for segment 9
[17:43:07] decomb filter thread started for segment 19
[17:43:07] decomb check thread started for segment 14
[17:43:07] decomb check thread started for segment 16
[17:43:07] decomb check thread started for segment 18
[17:43:07] decomb filter thread started for segment 23
[17:43:07] decomb filter thread started for segment 24
[17:43:07] decomb check thread started for segment 24
[17:43:07] decomb check thread started for segment 26
[17:43:07] decomb filter thread started for segment 27
[17:43:07] decomb filter thread started for segment 28
[17:43:07] mask filter thread started for segment 0
[17:43:07] decomb filter thread started for segment 30
[17:43:07] decomb filter thread started for segment 31
[17:43:07] decomb check thread started for segment 0
[17:43:07] decomb check thread started for segment 1
[17:43:07] mask filter thread started for segment 9
[17:43:07] mask filter thread started for segment 11
[17:43:07] decomb check thread started for segment 4
[17:43:07] mask filter thread started for segment 16
[17:43:07] decomb filter thread started for segment 17
[17:43:07] decomb check thread started for segment 7
[17:43:07] decomb check thread started for segment 8
[17:43:07] decomb filter thread started for segment 3
[17:43:07] decomb check thread started for segment 10
[17:43:07] decomb check thread started for segment 11
[17:43:07] mask filter thread started for segment 28
[17:43:07] decomb check thread started for segment 13
[17:43:07] decomb filter thread started for segment 20
[17:43:07] decomb check thread started for segment 15
[17:43:07] decomb filter thread started for segment 21
[17:43:07] decomb check thread started for segment 17
[17:43:07] decomb filter thread started for segment 22
[17:43:07] decomb check thread started for segment 19
[17:43:07] decomb check thread started for segment 20
[17:43:07] decomb check thread started for segment 21
[17:43:07] decomb check thread started for segment 22
[17:43:07] decomb check thread started for segment 23
[17:43:07] decomb filter thread started for segment 25
[17:43:07] decomb check thread started for segment 25
[17:43:07] decomb filter thread started for segment 26
[17:43:07] decomb check thread started for segment 27
[17:43:07] mask erode thread started for segment 19
[17:43:07] decomb check thread started for segment 29
[17:43:07] decomb check thread started for segment 30
[17:43:07] decomb check thread started for segment 31
[17:43:07] decomb filter thread started for segment 29
[17:43:07] mask filter thread started for segment 1
[17:43:07] mask filter thread started for segment 2
[17:43:07] mask filter thread started for segment 3
[17:43:07] mask filter thread started for segment 4
[17:43:07] mask filter thread started for segment 5
[17:43:07] mask dilate thread started for segment 3
[17:43:07] mask filter thread started for segment 7
[17:43:07] mask filter thread started for segment 8
[17:43:07] decomb filter thread started for segment 15
[17:43:07] mask filter thread started for segment 10
[17:43:07] mask dilate thread started for segment 11
[17:43:07] mask filter thread started for segment 12
[17:43:07] mask filter thread started for segment 13
[17:43:07] mask filter thread started for segment 14
[17:43:07] mask filter thread started for segment 15
[17:43:07] decomb check thread started for segment 5
[17:43:07] mask filter thread started for segment 17
[17:43:07] mask filter thread started for segment 18
[17:43:07] mask dilate thread started for segment 24
[17:43:07] mask filter thread started for segment 20
[17:43:07] mask filter thread started for segment 21
[17:43:07] mask filter thread started for segment 22
[17:43:07] mask filter thread started for segment 23
[17:43:07] mask filter thread started for segment 24
[17:43:07] mask filter thread started for segment 25
[17:43:07] yadif thread started for segment 3
[17:43:07] mask filter thread started for segment 27
[17:43:07] decomb check thread started for segment 12
[17:43:07] mask filter thread started for segment 29
[17:43:07] mask filter thread started for segment 30
[17:43:07] mask filter thread started for segment 31
[17:43:07] mask erode thread started for segment 0
[17:43:07] mask erode thread started for segment 1
[17:43:07] mask erode thread started for segment 2
[17:43:07] mask erode thread started for segment 3
[17:43:07] mask erode thread started for segment 4
[17:43:07] mask erode thread started for segment 5
[17:43:07] yadif thread started for segment 24
[17:43:07] mask erode thread started for segment 7
[17:43:07] mask erode thread started for segment 8
[17:43:07] mask erode thread started for segment 9
[17:43:07] mask erode thread started for segment 10
[17:43:07] mask erode thread started for segment 11
[17:43:07] work: track 1, dithering not supported by codec
[17:43:07] mask erode thread started for segment 12
[17:43:07] work: only 1 chapter, disabling chapter markers
[17:43:07] job configuration:
[17:43:07] * source
[17:43:07] mask erode thread started for segment 13
[17:43:07] + D:\Babylon 5 Upscaled\Babylon 5 S03E01 - Matters of Honor.mp4
[17:43:07] + title 1, chapter(s) 1 to 1
[17:43:07] + container: mov,mp4,m4a,3gp,3g2,mj2
[17:43:07] + data rate: 9071 kbps
[17:43:07] * destination
[17:43:07] + D:\Babylon 5 HEVC\Babylon 5 S03E01 - Matters of Honor-1.m4v
[17:43:07] + container: MPEG-4 (libavformat)
[17:43:07] * video track
[17:43:07] + decoder: mpeg4
[17:43:07] + bitrate 8938 kbps
[17:43:07] + filters
[17:43:07] mask erode thread started for segment 14
[17:43:07] + 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)
[17:43:07] mask erode thread started for segment 15
[17:43:07] + Decomb (mode=39)
[17:43:07] + Framerate Shaper (mode=0)
[17:43:07] + frame rate: same as source (around 29.970 fps)
[17:43:07] + Crop and Scale (width=1440:height=816:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[17:43:07] + source: 1440 * 816, crop (0/0/0/0): 1440 * 816, scale: 1440 * 816
[17:43:07] + Output geometry
[17:43:07] + storage dimensions: 1440 x 816
[17:43:07] + pixel aspect ratio: 1 : 1
[17:43:07] mask erode thread started for segment 16
[17:43:07] + display dimensions: 1440 x 816
[17:43:07] + encoder: H.265 (libx265)
[17:43:07] + preset: fast
[17:43:07] + profile: auto
[17:43:07] + bitrate: 4000 kbps, pass: 1
[17:43:07] * audio track 1
[17:43:07] + decoder: Unknown (AAC) (2.0 ch) (track 1, id 0x1)
[17:43:07] + bitrate: 128 kbps, samplerate: 44100 Hz
[17:43:07] + mixdown: Stereo
[17:43:07] + encoder: AAC (libavcodec)
[17:43:07] mask erode thread started for segment 17
[17:43:07] + bitrate: 160 kbps, samplerate: 48000 Hz
[17:43:07] mask erode thread started for segment 18
[17:43:07] decomb check thread started for segment 28
[17:43:07] mask erode thread started for segment 20
[17:43:07] mask erode thread started for segment 21
[17:43:07] mask erode thread started for segment 22
[17:43:07] mask erode thread started for segment 23
[17:43:07] mask erode thread started for segment 24
[17:43:07] mask erode thread started for segment 25
[17:43:07] mask erode thread started for segment 26
[17:43:07] mask erode thread started for segment 27
[17:43:07] mask erode thread started for segment 28
[17:43:07] mask erode thread started for segment 29
[17:43:07] mask erode thread started for segment 30
[17:43:07] mask erode thread started for segment 31
[17:43:07] mask dilate thread started for segment 0
[17:43:07] mask dilate thread started for segment 1
[17:43:07] mask dilate thread started for segment 2
[17:43:07] mask filter thread started for segment 6
[17:43:07] mask dilate thread started for segment 4
[17:43:07] mask dilate thread started for segment 5
[17:43:07] mask dilate thread started for segment 6
[17:43:07] mask dilate thread started for segment 7
[17:43:07] mask dilate thread started for segment 8
[17:43:07] mask dilate thread started for segment 9
[17:43:07] mask dilate thread started for segment 10
[17:43:07] decomb check thread started for segment 3
[17:43:07] mask dilate thread started for segment 12
[17:43:07] mask dilate thread started for segment 13
[17:43:07] mask dilate thread started for segment 14
[17:43:07] mask dilate thread started for segment 15
[17:43:07] mask dilate thread started for segment 16
[17:43:07] mask dilate thread started for segment 17
[17:43:07] mask dilate thread started for segment 18
[17:43:07] mask dilate thread started for segment 19
[17:43:07] mask dilate thread started for segment 20
[17:43:07] mask dilate thread started for segment 21
[17:43:07] mask dilate thread started for segment 22
[17:43:07] mask dilate thread started for segment 23
[17:43:07] mask filter thread started for segment 19
[17:43:07] mask dilate thread started for segment 25
[17:43:07] mask dilate thread started for segment 26
[17:43:07] mask dilate thread started for segment 27
[17:43:07] mask dilate thread started for segment 28
[17:43:07] mask dilate thread started for segment 29
[17:43:07] mask dilate thread started for segment 30
[17:43:07] mask dilate thread started for segment 31
[17:43:07] yadif thread started for segment 0
[17:43:07] yadif thread started for segment 1
[17:43:07] yadif thread started for segment 2
[17:43:07] mask filter thread started for segment 26
[17:43:07] yadif thread started for segment 4
[17:43:07] yadif thread started for segment 5
[17:43:07] yadif thread started for segment 6
[17:43:07] yadif thread started for segment 7
[17:43:07] yadif thread started for segment 8
[17:43:07] yadif thread started for segment 9
[17:43:07] yadif thread started for segment 10
[17:43:07] yadif thread started for segment 11
[17:43:07] yadif thread started for segment 12
[17:43:07] yadif thread started for segment 13
[17:43:07] yadif thread started for segment 14
[17:43:07] yadif thread started for segment 15
[17:43:07] yadif thread started for segment 16
[17:43:07] yadif thread started for segment 17
[17:43:07] yadif thread started for segment 18
[17:43:07] yadif thread started for segment 19
[17:43:07] yadif thread started for segment 20
[17:43:07] yadif thread started for segment 21
[17:43:07] yadif thread started for segment 22
[17:43:07] yadif thread started for segment 23
[17:43:07] mask erode thread started for segment 6
[17:43:07] yadif thread started for segment 25
[17:43:07] yadif thread started for segment 26
[17:43:07] yadif thread started for segment 27
[17:43:07] yadif thread started for segment 28
[17:43:07] yadif thread started for segment 29
[17:43:07] yadif thread started for segment 30
[17:43:07] yadif thread started for segment 31
[17:43:07] sync: expecting 78596 video frames
x265 [info]: HEVC encoder version 2.6
x265 [info]: build info [Windows][GCC 7.2.0][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x265 [info]: Main profile, Level-4 (Main tier)
x265 [info]: Thread pool 0 using 16 threads on numa nodes 0
x265 [info]: Thread pool 1 using 16 threads on numa nodes 1
x265 [info]: Slices : 1
x265 [info]: frame threads / pool features : 5 / wpp(13 rows)
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 / 2
x265 [info]: Keyframe min / max / scenecut / bias: 30 / 300 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt : 15 / 4 / 0
x265 [info]: b-pyramid / weightp / weightb : 1 / 1 / 0
x265 [info]: References / ref-limit cu / depth : 3 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree : 1 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress : ABR-4000 kbps / 0.60
x265 [info]: tools: rd=2 psy-rd=2.00 rskip signhide tmvp fast-intra
x265 [info]: tools: strong-intra-smoothing lslices=5 deblock sao stats-write
[17:43:07] sync: first pts video is 0
[17:43:07] sync: "Chapter 1" (1) at frame 1 time 0
[17:43:07] sync: first pts audio 0x1 is 0

# Encode Stopped

[18:37:35] work: average encoding speed for job is 19.634430 fps
[18:37:35] comb detect: heavy 8823 | light 13767 | uncombed 41549 | total 64139
[18:37:35] decomb: deinterlaced 8823 | blended 13766 | unfiltered 41541 | total 64130
[18:37:35] vfr: lost time: 0 (0 frames)
[18:37:35] vfr: gained time: 0 (0 frames) (0 not accounted for)
[18:37:35] aac-decoder done: 92278 frames, 0 decoder errors
[18:37:35] mpeg4-decoder done: 64193 frames, 0 decoder errors
[18:37:35] sync: got 64150 frames, 78596 expected
[18:37:35] sync: framerate min 29.970 fps, max 29.970 fps, avg 29.970 fps
x265 [info]: frame I: 284, Avg QP:16.43 kb/s: 15465.89
x265 [info]: frame P: 12690, Avg QP:17.49 kb/s: 9729.17
x265 [info]: frame B: 51113, Avg QP:22.18 kb/s: 2522.56
x265 [info]: Weighted P-Frames: Y:10.0% UV:6.7%
x265 [info]: consecutive B-frames: 1.1% 0.2% 0.2% 0.3% 98.1%
encoded 64087 frames in 3267.59s (19.61 fps), 4006.91 kb/s, Avg QP:21.22
[18:37:35] libhb: work result = 1

# Encode Completed ...

Code: Select all

Please replace this text with the contents of your log file between the two code tags - OR -  provide a pastebin URL in place of these 3 lines.
Post Reply