How to activate GPU usage?

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
Usul
Posts: 2
Joined: Mon Feb 06, 2023 6:27 am

How to activate GPU usage?

Post by Usul »

How to activate GPU usage?:
I'm on an 2019 Intel MBP which supports H.264 and H.265 hardware encoding by GPU.

Handbrake only utilises for the CPU by 100% and the GPU by 0%.

I couldn't find any settings to force Handbrake using the GPU.

Just for comparison: Smart Converter Pro 3.0 converts it within seconds.

Appreciate any help.

HandBrake version (e.g., 1.0.0):
Version 1.6.1 (2023012200)



MacOS Ventura 13.2




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

Code: Select all

[07:10:37] macgui: Handbrake Version: 1.6.1 (2023012200)
[07:10:37] Compile-time hardening features are enabled
[07:10:37] macgui: built-in presets updated
[07:10:37] hb_init: starting libhb thread
[07:11:04] macgui: ScanCore scanning titles with a duration of 10 seconds or more
[07:11:04] CPU: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
[07:11:04]  - Intel microarchitecture Kaby Lake
[07:11:04]  - logical processor count: 16
[07:11:04] hb_scan: path=/Users/roland/Library/Mobile Documents/com~apple~CloudDocs/Youtube + FB Downloads/Pippi Langstrumpf Kinofilm, 1969.mp4, title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image /Users/roland/Library/Mobile Documents/com~apple~CloudDocs/Youtube + FB Downloads/Pippi Langstrumpf Kinofilm, 1969.mp4
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
[07:11:04] bd: not a bd - trying as a stream/file instead
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[07:11:04] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/roland/Library/Mobile Documents/com~apple~CloudDocs/Youtube + FB Downloads/Pippi Langstrumpf Kinofilm, 1969.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.45.100
  Duration: 01:33:57.18, start: 0.000000, bitrate: 875 kb/s
  Stream #0:0[0x1](und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 737 kb/s, 50 fps, 50 tbr, 12800 tbn (default)
    Metadata:
      handler_name    : ISO Media file produced by Google Inc.
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](deu): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
    Metadata:
      handler_name    : ISO Media file produced by Google Inc.
      vendor_id       : [0][0][0][0]
[07:11:04] scan: decoding previews for title 1
[07:11:05] scan: audio 0x1: aac, rate=44100Hz, bitrate=127999 Deutsch (AAC LC) (2.0 ch) (127 kbps)
[07:11:05] scan: 10 previews, 1280x720, 50.000 fps, autocrop = 2/0/102/160, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[07:11:05] libhb: scan thread found 1 valid title(s)
[07:11:05] macgui: ScanCore scan done
[07:21:48] macgui: Failed to create bookmark: Error Domain=NSCocoaErrorDomain Code=256 "Could not open() the item" UserInfo={NSURL=file:///Users/roland/Library/Containers/fr.handbrake.HandBrake/Data/Movies/, NSDebugDescription=Could not open() the item}
[07:21:48] macgui: Failed to create bookmark: Error Domain=NSCocoaErrorDomain Code=256 "Could not open() the item" UserInfo={NSURL=file:///Users/roland/Library/Containers/fr.handbrake.HandBrake/Data/Movies/, NSDebugDescription=Could not open() the item}
[07:21:48] macgui: Failed to create bookmark: Error Domain=NSCocoaErrorDomain Code=256 "Could not open() the item" UserInfo={NSURL=file:///Users/roland/Library/Containers/fr.handbrake.HandBrake/Data/Movies/, NSDebugDescription=Could not open() the item}
[07:21:48] Compile-time hardening features are enabled
[07:21:49] hb_init: starting libhb thread
[07:21:49] macgui: fr.handbrake.HandBrakeXPCService scanning specifically for title: 1
[07:21:49] CPU: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
[07:21:49]  - Intel microarchitecture Kaby Lake
[07:21:49]  - logical processor count: 16
[07:21:49] hb_scan: path=/Users/roland/Library/Mobile Documents/com~apple~CloudDocs/Youtube + FB Downloads/Pippi Langstrumpf Kinofilm, 1969.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image /Users/roland/Library/Mobile Documents/com~apple~CloudDocs/Youtube + FB Downloads/Pippi Langstrumpf Kinofilm, 1969.mp4
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
[07:21:49] bd: not a bd - trying as a stream/file instead
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[07:21:49] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/roland/Library/Mobile Documents/com~apple~CloudDocs/Youtube + FB Downloads/Pippi Langstrumpf Kinofilm, 1969.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.45.100
  Duration: 01:33:57.18, start: 0.000000, bitrate: 875 kb/s
  Stream #0:0[0x1](und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 737 kb/s, 50 fps, 50 tbr, 12800 tbn (default)
    Metadata:
      handler_name    : ISO Media file produced by Google Inc.
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](deu): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
    Metadata:
      handler_name    : ISO Media file produced by Google Inc.
      vendor_id       : [0][0][0][0]
[07:21:49] scan: decoding previews for title 1
[07:21:49] scan: audio 0x1: aac, rate=44100Hz, bitrate=127999 Deutsch (AAC LC) (2.0 ch) (127 kbps)
[07:21:49] scan: 10 previews, 1280x720, 50.000 fps, autocrop = 2/0/102/160, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[07:21:49] libhb: scan thread found 1 valid title(s)
[07:21:49] macgui: Failed to create bookmark: Error Domain=NSCocoaErrorDomain Code=256 "Could not open() the item" UserInfo={NSURL=file:///Users/roland/Library/Containers/fr.handbrake.HandBrake/Data/Movies/, NSDebugDescription=Could not open() the item}
[07:21:49] macgui: fr.handbrake.HandBrakeXPCService scan done
[07:21:49] macgui: fr.handbrake.HandBrakeXPCService started encoding Pippi Langstrumpf Kinofilm, 1969 - Handbrake.mp4
[07:21:49] macgui: fr.handbrake.HandBrakeXPCService with preset Fast 1080p25 (my presets)
[07:21:49] Starting work at: Mon Feb  6 07:21:49 2023

[07:21:49] 1 job(s) to process
[07:21:49] Starting Task: Encoding Pass
[07:21:49] work: only 1 chapter, disabling chapter markers
[07:21:49] job configuration:
[07:21:49]  * source
[07:21:49]    + /Users/roland/Library/Mobile Documents/com~apple~CloudDocs/Youtube + FB Downloads/Pippi Langstrumpf Kinofilm, 1969.mp4
[07:21:49]    + title 1, chapter(s) 1 to 1
[07:21:49]    + container: mov,mp4,m4a,3gp,3g2,mj2
[07:21:49]    + data rate: 875 kbps
[07:21:49]  * destination
[07:21:49]    + /Users/roland/Library/Containers/fr.handbrake.HandBrake/Data/Movies/Pippi Langstrumpf Kinofilm, 1969 - Handbrake.mp4
[07:21:49]    + container: MPEG-4 (libavformat)
[07:21:49]      + align initial A/V stream timestamps
[07:21:49]  * video track
[07:21:49]    + decoder: h264 8-bit (yuv420p)
[07:21:49]      + bitrate 737 kbps
[07:21:49]    + filters
[07:21:49]      + 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:21:49]      + Decomb (mode=39)
[07:21:49]      + Framerate Shaper (mode=2:rate=27000000/1080000)
[07:21:49]        + frame rate: 50.000 fps -> peak rate limited to 25.000 fps
[07:21:49]      + Crop and Scale (width=1018:height=718:crop-top=2:crop-bottom=0:crop-left=102:crop-right=160)
[07:21:49]        + source: 1280 * 720, crop (2/0/102/160): 1018 * 718, scale: 1018 * 718
[07:21:49]    + Output geometry
[07:21:49]      + storage dimensions: 1018 x 718
[07:21:49]      + pixel aspect ratio: 1 : 1
[07:21:49]      + display dimensions: 1018 x 718
[07:21:49]    + encoder: H.264 (libx264)
[07:21:49]      + preset:  fast
[07:21:49]      + tune:    film
[07:21:49]      + profile: main
[07:21:49]      + level:   4.0
[07:21:49]      + quality: 22.00 (RF)
[07:21:49]      + color profile: 1-1-1
[07:21:49]      + chroma location: left
[07:21:49]  * audio track 1
[07:21:49]    + decoder: Deutsch (AAC LC) (2.0 ch) (127 kbps) (track 1, id 0x1)
[07:21:49]      + bitrate: 127 kbps, samplerate: 44100 Hz
[07:21:49]    + mixdown: Stereo
[07:21:49]    + encoder: AAC (Apple AudioToolbox)
[07:21:49]      + bitrate: 160 kbps, samplerate: 44100 Hz
[07:21:49] sync: expecting 281858 video frames
[07:21:49] encx264: encoding at constant RF 22.000000
[07:21:49] encx264: unparsed options: level=4.0:ref=2:deblock=-1,-1:8x8dct=0:weightp=1:subme=6:psy-rd=1,0.15:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=30
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 UnalignedStack
x264 [info]: profile Main, level 4.0, 4:2:0, 8-bit
[07:21:49] sync: first pts video is 0
[07:21:49] sync: "Chapter 1" (1) at frame 1 time 0
[07:21:49] sync: first pts audio 0x1 is 0
[07:23:05] macgui: fr.handbrake.HandBrakeXPCService encode canceled
[07:23:05] work: average encoding speed for job is 214.183701 fps
[07:23:05] comb detect: heavy 0 | light 22 | uncombed 16113 | total 16135
[07:23:05] decomb: deinterlaced 0 | blended 22 | unfiltered 16108 | total 16130
[07:23:05] vfr: 8062 frames output, 8063 dropped and 0 duped for CFR/PFR
[07:23:05] vfr: lost time: 0 (0 frames)
[07:23:05] vfr: gained time: 0 (0 frames) (0 not accounted for)
[07:23:05] aac-decoder done: 13951 frames, 0 decoder errors
[07:23:05] h264-decoder done: 16188 frames, 0 decoder errors
[07:23:05] sync: got 16149 frames, 281858 expected
[07:23:05] sync: framerate min 50.000 fps, max 50.000 fps, avg 50.000 fps
x264 [info]: frame I:55    Avg QP:18.14  size: 73208
x264 [info]: frame P:2126  Avg QP:21.93  size: 20595
x264 [info]: frame B:5823  Avg QP:25.07  size:  4880
x264 [info]: consecutive B-frames:  1.6%  2.7%  3.9% 91.7%
x264 [info]: mb I  I16..4: 25.3%  0.0% 74.7%
x264 [info]: mb P  I16..4:  7.0%  0.0%  9.1%  P16..4: 31.3% 22.4%  9.8%  0.0%  0.0%    skip:20.4%
x264 [info]: mb B  I16..4:  2.2%  0.0%  1.1%  B16..8: 26.6%  9.9%  0.8%  direct: 5.4%  skip:54.0%  L0:42.0% L1:48.1% BI: 9.9%
x264 [info]: coded y,uvDC,uvAC intra: 48.2% 57.4% 17.0% inter: 12.1% 10.7% 0.1%
x264 [info]: i16 v,h,dc,p: 37% 35% 11% 17%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 22% 18%  4%  7%  6%  6%  5%  5%
x264 [info]: i8c dc,h,v,p: 54% 22% 18%  6%
x264 [info]: Weighted P-Frames: Y:2.5% UV:0.4%
x264 [info]: ref P L0: 72.1% 27.9%
x264 [info]: ref B L0: 89.6% 10.4%
x264 [info]: ref B L1: 96.8%  3.2%
x264 [info]: kb/s:1904.71
[07:23:05] mux: track 0, 8003 frames, 76223746 bytes, 1888.13 kbps, fifo 2048
[07:23:05] mux: track 1, 13909 frames, 5158106 bytes, 127.77 kbps, fifo 4096
[07:23:05] Finished work at: Mon Feb  6 07:23:05 2023

[07:23:05] libhb: work result = 1
[07:23:05] macgui: Failed to create bookmark: Error Domain=NSCocoaErrorDomain Code=256 "Could not open() the item" UserInfo={NSURL=file:///Users/roland/Library/Containers/fr.handbrake.HandBrake/Data/Movies/, NSDebugDescription=Could not open() the item}
[07:23:05] macgui: Queue Done, there are no more pending encodes
[07:23:05] macgui: Failed to create bookmark: Error Domain=NSCocoaErrorDomain Code=256 "Could not open() the item" UserInfo={NSURL=file:///Users/roland/Library/Containers/fr.handbrake.HandBrake/Data/Movies/, NSDebugDescription=Could not open() the item}
[07:23:05] macgui: fr.handbrake.HandBrakeXPCService work canceled

User avatar
Ritsuka
HandBrake Team
Posts: 1650
Joined: Fri Jan 12, 2007 11:29 am

Re: How to activate GPU usage?

Post by Ritsuka »

Select one of the VideoToolBox encoders.
The hardware encoder ASIC is not a "GPU", so it won't count its usage under the GPU chart in Activity Monitor.
Usul
Posts: 2
Joined: Mon Feb 06, 2023 6:27 am

Re: How to activate GPU usage?

Post by Usul »

Thanks, but honestly, I don't get it. Can't find a section "Video Tool Box" in the preferences or the menu.
I'm new to Handbrake, please forgive me my beginners question.
User avatar
Ritsuka
HandBrake Team
Posts: 1650
Joined: Fri Jan 12, 2007 11:29 am

Re: How to activate GPU usage?

Post by Ritsuka »

It's a selectable encoder in the Video section of the main window.
Post Reply