CPU usage on MacPro 2010 5.1

HandBrake for Mac 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
Sisko125
Posts: 1
Joined: Mon Jan 24, 2022 6:05 pm

CPU usage on MacPro 2010 5.1

Post by Sisko125 »

Description of problem or question:

Just wondering why some task (encoding) uses almost 100% cpu while others uses only 50% cpu even though I have the same encoding specs "Very Fast 1084 F30 ". The log below is the file that hits 50% cpu usage. WHY??


Steps to reproduce the problem (If Applicable):

Just change the file to another one


HandBrake version (e.g., 1.0.0):


1.2.2

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


Yosemite 10.10 Mac OSX

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

Code: Select all

HandBrake Activity Log for Session: 2022-01-23T18:24:42Z
Handbrake Version: 1.2.2 (2019022300)
Videos for Cats to Watch  Birds Being Awesome.mp4
Preset: Very Fast 1080p30
[14:24:42] macgui: QueueCore prevented sleep
[14:24:42] macgui: QueueCore scanning specifically for title: 1
[14:24:42] CPU: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz
[14:24:42]  - logical processor count: 24
[14:24:42] hb_scan: path=/Users/serge/Desktop/Videos for Cats to Watch  Birds Being Awesome - Watch at Home with Your Cat on TV.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /Users/serge/Desktop/Videos for Cats to Watch  Birds Being Awesome - Watch at Home with Your Cat on TV.mp4
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[14:24:42] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
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
[14:24:42] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/serge/Desktop/Videos for Cats to Watch  Birds Being Awesome - Watch at Home with Your Cat on TV.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2021-11-25T00:26:49.000000Z
  Duration: 08:36:15.14, start: 0.000000, bitrate: 411 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 640x360 [SAR 1:1 DAR 16:9], 313 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
      creation_time   : 2021-11-25T00:26:49.000000Z
      handler_name    : ISO Media file produced by Google Inc. Created on: 11/24/2021.
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 95 kb/s (default)
    Metadata:
      creation_time   : 2021-11-25T00:26:49.000000Z
      handler_name    : ISO Media file produced by Google Inc. Created on: 11/24/2021.
[14:24:42] scan: decoding previews for title 1
[14:24:42] scan: audio 0x1: aac, rate=44100Hz, bitrate=95999 Unknown (AAC LC) (2.0 ch)
[14:24:42] scan: 10 previews, 640x360, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[14:24:42] libhb: scan thread found 1 valid title(s)
[14:24:42] macgui: QueueCore scan done
[14:24:42] 1 job(s) to process
[14:24:42] starting job
[14:24:42] macgui: QueueCore started encoding Videos for Cats to Watch  Birds Being Awesome.mp4
[14:24:42] macgui: QueueCore with preset Very Fast 1080p30
[14:24:42] decomb filter thread started for segment 0
[14:24:42] decomb filter thread started for segment 1
[14:24:42] decomb filter thread started for segment 2
[14:24:42] decomb filter thread started for segment 3
[14:24:42] decomb filter thread started for segment 4
[14:24:42] decomb filter thread started for segment 5
[14:24:42] decomb filter thread started for segment 7
[14:24:42] decomb filter thread started for segment 6
[14:24:42] decomb filter thread started for segment 8
[14:24:42] decomb filter thread started for segment 10
[14:24:42] decomb filter thread started for segment 9
[14:24:42] decomb filter thread started for segment 11
[14:24:42] decomb filter thread started for segment 12
[14:24:42] decomb filter thread started for segment 13
[14:24:42] decomb filter thread started for segment 14
[14:24:42] decomb filter thread started for segment 15
[14:24:42] decomb filter thread started for segment 16
[14:24:42] decomb filter thread started for segment 17
[14:24:42] decomb filter thread started for segment 18
[14:24:42] decomb filter thread started for segment 19
[14:24:42] decomb filter thread started for segment 20
[14:24:42] decomb filter thread started for segment 21
[14:24:42] decomb filter thread started for segment 22
[14:24:42] decomb filter thread started for segment 23
[14:24:42] decomb check thread started for segment 0
[14:24:42] decomb check thread started for segment 1
[14:24:42] decomb check thread started for segment 2
[14:24:42] decomb check thread started for segment 3
[14:24:42] decomb check thread started for segment 4
[14:24:42] decomb check thread started for segment 5
[14:24:42] decomb check thread started for segment 6
[14:24:42] decomb check thread started for segment 7
[14:24:42] decomb check thread started for segment 8
[14:24:42] decomb check thread started for segment 9
[14:24:42] decomb check thread started for segment 10
[14:24:42] decomb check thread started for segment 11
[14:24:42] decomb check thread started for segment 12
[14:24:42] decomb check thread started for segment 13
[14:24:42] decomb check thread started for segment 14
[14:24:42] decomb check thread started for segment 15
[14:24:42] decomb check thread started for segment 16
[14:24:42] decomb check thread started for segment 17
[14:24:42] decomb check thread started for segment 18
[14:24:42] decomb check thread started for segment 19
[14:24:42] decomb check thread started for segment 20
[14:24:42] decomb check thread started for segment 21
[14:24:42] yadif thread started for segment 0
[14:24:42] yadif thread started for segment 1
[14:24:42] yadif thread started for segment 2
[14:24:42] yadif thread started for segment 3
[14:24:42] yadif thread started for segment 4
[14:24:42] yadif thread started for segment 5
[14:24:42] yadif thread started for segment 6
[14:24:42] yadif thread started for segment 7
[14:24:42] yadif thread started for segment 8
[14:24:42] yadif thread started for segment 9
[14:24:42] yadif thread started for segment 10
[14:24:42] yadif thread started for segment 11
[14:24:42] yadif thread started for segment 12
[14:24:42] yadif thread started for segment 13
[14:24:42] yadif thread started for segment 14
[14:24:42] yadif thread started for segment 15
[14:24:42] yadif thread started for segment 16
[14:24:42] yadif thread started for segment 17
[14:24:42] yadif thread started for segment 18
[14:24:42] yadif thread started for segment 19
[14:24:42] yadif thread started for segment 20
[14:24:42] yadif thread started for segment 21
[14:24:42] yadif thread started for segment 22
[14:24:42] yadif thread started for segment 23
[14:24:42] work: only 1 chapter, disabling chapter markers
[14:24:42] job configuration:
[14:24:42]  * source
[14:24:42]    + /Users/serge/Desktop/Videos for Cats to Watch  Birds Being Awesome - Watch at Home with Your Cat on TV.mp4
[14:24:42]    + title 1, chapter(s) 1 to 1
[14:24:42]    + container: mov,mp4,m4a,3gp,3g2,mj2
[14:24:42]    + data rate: 411 kbps
[14:24:42]  * destination
[14:24:42]    + /Users/serge/Desktop/Videos for Cats to Watch  Birds Being Awesome.mp4
[14:24:42]    + container: MPEG-4 (libavformat)
[14:24:42]      + align initial A/V stream timestamps
[14:24:42]  * video track
[14:24:42]    + decoder: h264
[14:24:42]      + bitrate 313 kbps
[14:24:42]    + filters
[14:24:42]      + Comb Detect (mode=0:spatial-metric=2:motion-thresh=2:spatial-thresh=3:filter-mode=1:block-thresh=80:block-width=16:block-height=16)
[14:24:42]      + Decomb (mode=39)
[14:24:42]      + Framerate Shaper (mode=2:rate=27000000/900000)
[14:24:42]        + frame rate: 25.000 fps -> peak rate limited to 30.000 fps
[14:24:42]      + Crop and Scale (width=640:height=360:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[14:24:42]        + source: 640 * 360, crop (0/0/0/0): 640 * 360, scale: 640 * 360
[14:24:42]    + Output geometry
[14:24:42]      + storage dimensions: 640 x 360
[14:24:42]      + pixel aspect ratio: 1 : 1
[14:24:42]      + display dimensions: 640 x 360
[14:24:42]    + encoder: H.264 (libx264)
[14:24:42]      + preset:  veryfast
[14:24:42]      + profile: main
[14:24:42]      + level:   4.0
[14:24:42]      + quality: 24.00 (RF)
[14:24:42]      + color profile: 1-1-1
[14:24:42]  * audio track 1
[14:24:42]    + decoder: Unknown (AAC LC) (2.0 ch) (track 1, id 0x1)
[14:24:42]      + bitrate: 95 kbps, samplerate: 44100 Hz
[14:24:42]    + mixdown: Stereo
[14:24:42]    + dither: triangular
[14:24:42]    + encoder: AAC (Apple AudioToolbox)
[14:24:42]      + bitrate: 160 kbps, samplerate: 44100 Hz
[14:24:42] sync: expecting 774378 video frames
[14:24:42] encx264: encoding at constant RF 24.000000
[14:24:42] encx264: unparsed options: level=4.0:ref=1:8x8dct=0:weightp=1:subme=2:mixed-refs=0:trellis=0:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=10
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
x264 [info]: profile Main, level 4.0, 4:2:0, 8-bit
[14:24:42] sync: first pts video is 0
[14:24:42] sync: "Chapter 1" (1) at frame 1 time 0
[14:24:42] sync: first pts audio 0x1 is 0
[14:45:19] reader: done. 1 scr changes
[14:45:20] work: average encoding speed for job is 625.826355 fps
[14:45:20] comb detect: heavy 7115 | light 29129 | uncombed 738133 | total 774377
[14:45:20] decomb: deinterlaced 7115 | blended 29129 | unfiltered 738133 | total 774377
[14:45:20] vfr: 774377 frames output, 0 dropped and 0 duped for CFR/PFR
[14:45:20] vfr: lost time: 0 (0 frames)
[14:45:20] vfr: gained time: 0 (0 frames) (0 not accounted for)
[14:45:20] aac-decoder done: 1333988 frames, 0 decoder errors
[14:45:20] h264-decoder done: 774377 frames, 0 decoder errors
[14:45:20] sync: got 774377 frames, 774378 expected
[14:45:20] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
x264 [info]: frame I:3129  Avg QP:22.17  size: 53091
x264 [info]: frame P:315359 Avg QP:25.57  size:  1594
x264 [info]: frame B:455889 Avg QP:30.56  size:   316
x264 [info]: consecutive B-frames: 17.0% 10.4%  8.9% 63.6%
x264 [info]: mb I  I16..4:  0.5%  0.0% 99.5%
x264 [info]: mb P  I16..4:  0.1%  0.0%  1.3%  P16..4: 19.4%  3.9%  2.8%  0.0%  0.0%    skip:72.5%
x264 [info]: mb B  I16..4:  0.1%  0.0%  0.5%  B16..8:  2.3%  1.3%  0.3%  direct: 0.8%  skip:94.8%  L0:42.5% L1:43.1% BI:14.5%
x264 [info]: coded y,uvDC,uvAC intra: 85.3% 83.9% 48.7% inter: 4.1% 2.4% 0.1%
x264 [info]: i16 v,h,dc,p: 18% 28% 20% 34%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 20% 12%  8% 10%  8% 11%  7% 10%
x264 [info]: i8c dc,h,v,p: 47% 24% 16% 13%
x264 [info]: Weighted P-Frames: Y:1.3% UV:0.1%
x264 [info]: kb/s:209.96
[14:45:20] mux: track 0, 774377 frames, 812803555 bytes, 209.92 kbps, fifo 8192
[14:45:20] mux: track 1, 1333991 frames, 635957382 bytes, 164.25 kbps, fifo 16384
[14:45:20] libhb: work result = 0

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

Re: CPU usage on MacPro 2010 5.1

Post by s55 »

A number of factors affect CPU scaling. Resolution in particular might be for your case. The lower the resolution the content, the less threads will be saturated.

Regardless, it's normal to see wide variances depending on settings, source and hardware. With high core counts as you have your more likely to see it. Older Xeons in particular have weak single core performance so can actually cause bottlenecks as well.
Post Reply