handBrake kills battery time on Macbook Pro i7

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
e2783
Posts: 1
Joined: Fri Oct 11, 2019 6:00 am

handBrake kills battery time on Macbook Pro i7

Post by e2783 » Fri Oct 11, 2019 6:50 am

Description of problem or question:

When I using Handbrake to convert standard videos offline just without the installed battery it drains is totally in 1-2h. Normal lifespan 6-7h full used.

Image

Steps to reproduce the problem (If Applicable):

Just load a video and start to convert

HandBrake version (e.g., 1.0.0):

1.2.2 and previous (last 2-4 versions)


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

Mac OS 10.15 Catalina and Previous


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

Code: Select all

HandBrake Activity Log for Session: 2019-10-11T06:07:18Z
Handbrake Version: 1.2.2 (2019022300)
tvs-jerks-7p-mdhd-avc-304.mp4
Preset: Fast 720p30
[07:07:18] macgui: QueueCore work done
[07:07:18] macgui: QueueCore scanning specifically for title: 1
[07:07:18] CPU: Intel(R) Core(TM) i7-4960HQ CPU @ 2.60GHz
[07:07:18]  - Intel microarchitecture Haswell
[07:07:18]  - logical processor count: 8
[07:07:18] hb_scan: path=/Users/andytreichler/Downloads/tvs-jerks-7p-mdhd-avc-304.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /Users/andytreichler/Downloads/tvs-jerks-7p-mdhd-avc-304.mkv
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[07:07:18] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
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:07:18] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/Users/andytreichler/Downloads/tvs-jerks-7p-mdhd-avc-304.mkv':
  Metadata:
    encoder         : libebml v1.3.7 + libmatroska v1.5.0
  Duration: 00:22:57.58, start: 0.000000, bitrate: 2976 kb/s
    Stream #0:0: Video: h264 (Main), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
    Metadata:
      BPS-eng         : 2817296
      DURATION-eng    : 00:22:57.520000000
      NUMBER_OF_FRAMES-eng: 34438
      NUMBER_OF_BYTES-eng: 485110267
      _STATISTICS_WRITING_APP-eng: mkvmerge v34.0.0 ('Sight and Seen') 64-bit
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(ger): Audio: aac (LC), 48000 Hz, stereo, fltp (default)
    Metadata:
      BPS-eng         : 156649
      DURATION-eng    : 00:22:57.578000000
      NUMBER_OF_FRAMES-eng: 64574
      NUMBER_OF_BYTES-eng: 26974681
      _STATISTICS_WRITING_APP-eng: mkvmerge v34.0.0 ('Sight and Seen') 64-bit
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[07:07:18] scan: decoding previews for title 1
[07:07:18] scan: audio 0x1: aac, rate=48000Hz, bitrate=1 Deutsch (AAC LC) (2.0 ch)
[07:07:18] scan: 10 previews, 1280x720, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[07:07:19] libhb: scan thread found 1 valid title(s)
[07:07:19] macgui: QueueCore scan done
[07:07:19] 1 job(s) to process
[07:07:19] starting job
[07:07:19] macgui: QueueCore started encoding tvs-jerks-7p-mdhd-avc-304.mp4
[07:07:19] macgui: QueueCore with preset Fast 720p30
[07:07:19] decomb filter thread started for segment 1
[07:07:19] decomb filter thread started for segment 3
[07:07:19] decomb filter thread started for segment 2
[07:07:19] decomb filter thread started for segment 0
[07:07:19] decomb filter thread started for segment 5
[07:07:19] decomb filter thread started for segment 4
[07:07:19] decomb check thread started for segment 0
[07:07:19] decomb filter thread started for segment 6
[07:07:19] decomb filter thread started for segment 7
[07:07:19] decomb check thread started for segment 1
[07:07:19] decomb check thread started for segment 2
[07:07:19] decomb check thread started for segment 6
[07:07:19] decomb check thread started for segment 7
[07:07:19] decomb check thread started for segment 5
[07:07:19] decomb check thread started for segment 3
[07:07:19] decomb check thread started for segment 4
[07:07:19] mask filter thread started for segment 1
[07:07:19] mask filter thread started for segment 0
[07:07:19] mask filter thread started for segment 2
[07:07:19] mask filter thread started for segment 4
[07:07:19] mask filter thread started for segment 3
[07:07:19] mask filter thread started for segment 5
[07:07:19] mask filter thread started for segment 6
[07:07:19] mask erode thread started for segment 0
[07:07:19] mask erode thread started for segment 1
[07:07:19] mask filter thread started for segment 7
[07:07:19] mask erode thread started for segment 2
[07:07:19] mask erode thread started for segment 3
[07:07:19] mask erode thread started for segment 4
[07:07:19] mask erode thread started for segment 5
[07:07:19] mask erode thread started for segment 6
[07:07:19] mask dilate thread started for segment 0
[07:07:19] mask dilate thread started for segment 1
[07:07:19] mask erode thread started for segment 7
[07:07:19] mask dilate thread started for segment 2
[07:07:19] mask dilate thread started for segment 3
[07:07:19] mask dilate thread started for segment 4
[07:07:19] mask dilate thread started for segment 5
[07:07:19] mask dilate thread started for segment 7
[07:07:19] mask dilate thread started for segment 6
[07:07:19] yadif thread started for segment 1
[07:07:19] yadif thread started for segment 2
[07:07:19] yadif thread started for segment 0
[07:07:19] yadif thread started for segment 3
[07:07:19] yadif thread started for segment 4
[07:07:19] yadif thread started for segment 6
[07:07:19] yadif thread started for segment 5
[07:07:19] yadif thread started for segment 7
[07:07:19] work: only 1 chapter, disabling chapter markers
[07:07:19] job configuration:
[07:07:19]  * source
[07:07:19]    + /Users/andytreichler/Downloads/tvs-jerks-7p-mdhd-avc-304.mkv
[07:07:19]    + title 1, chapter(s) 1 to 1
[07:07:19]    + container: matroska,webm
[07:07:19]    + data rate: 2976 kbps
[07:07:19]  * destination
[07:07:19]    + /Users/andytreichler/Movies/tvs-jerks-7p-mdhd-avc-304.mp4
[07:07:19]    + container: MPEG-4 (libavformat)
[07:07:19]      + align initial A/V stream timestamps
[07:07:19]  * video track
[07:07:19]    + decoder: h264
[07:07:19]    + filters
[07:07:19]      + 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:07:19]      + Decomb (mode=39)
[07:07:19]      + Framerate Shaper (mode=2:rate=27000000/900000)
[07:07:19]        + frame rate: 25.000 fps -> peak rate limited to 30.000 fps
[07:07:19]      + Crop and Scale (width=1280:height=720:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[07:07:19]        + source: 1280 * 720, crop (0/0/0/0): 1280 * 720, scale: 1280 * 720
[07:07:19]    + Output geometry
[07:07:19]      + storage dimensions: 1280 x 720
[07:07:19]      + pixel aspect ratio: 1 : 1
[07:07:19]      + display dimensions: 1280 x 720
[07:07:19]    + encoder: H.264 (libx264)
[07:07:19]      + preset:  fast
[07:07:19]      + profile: main
[07:07:19]      + level:   3.1
[07:07:19]      + quality: 21.00 (RF)
[07:07:19]      + color profile: 1-1-1
[07:07:19]  * audio track 1
[07:07:19]    + decoder: Deutsch (AAC LC) (2.0 ch) (track 1, id 0x1)
[07:07:19]      + samplerate: 48000 Hz
[07:07:19]    + mixdown: Stereo
[07:07:19]    + dither: triangular
[07:07:19]    + encoder: AAC (Apple AudioToolbox)
[07:07:19]      + bitrate: 160 kbps, samplerate: 48000 Hz
[07:07:19] sync: expecting 34439 video frames
[07:07:19] encx264: encoding at constant RF 21.000000
[07:07:19] encx264: unparsed options: level=3.1:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=14000:vbv-maxrate=14000:rc-lookahead=30
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 3.1, 4:2:0, 8-bit
[07:07:19] sync: first pts video is 0
[07:07:19] sync: "Kapitel 1" (1) at frame 1 time 0
[07:07:19] sync: first pts audio 0x1 is 0
[07:16:20] reader: done. 1 scr changes
[07:16:20] work: average encoding speed for job is 63.506676 fps
[07:16:20] comb detect: heavy 172 | light 1002 | uncombed 33264 | total 34438
[07:16:20] decomb: deinterlaced 172 | blended 1002 | unfiltered 33264 | total 34438
[07:16:20] vfr: 34438 frames output, 0 dropped and 0 duped for CFR/PFR
[07:16:20] vfr: lost time: 0 (0 frames)
[07:16:20] vfr: gained time: 0 (0 frames) (0 not accounted for)
[07:16:20] aac-decoder done: 64574 frames, 0 decoder errors
[07:16:20] h264-decoder done: 34438 frames, 0 decoder errors
[07:16:20] sync: got 34438 frames, 34439 expected
[07:16:20] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
x264 [info]: frame I:478   Avg QP:17.41  size: 68283
x264 [info]: frame P:9955  Avg QP:20.92  size: 20129
x264 [info]: frame B:24005 Avg QP:22.61  size:  6114
x264 [info]: consecutive B-frames:  3.8%  5.5% 12.4% 78.2%
x264 [info]: mb I  I16..4: 30.3%  0.0% 69.7%
x264 [info]: mb P  I16..4:  7.0%  0.0%  8.7%  P16..4: 41.6% 16.8%  7.5%  0.0%  0.0%    skip:18.4%
x264 [info]: mb B  I16..4:  3.9%  0.0%  1.2%  B16..8: 33.4%  7.0%  0.5%  direct: 8.4%  skip:45.6%  L0:43.3% L1:47.6% BI: 9.1%
x264 [info]: coded y,uvDC,uvAC intra: 44.7% 55.1% 15.1% inter: 10.9% 16.8% 0.3%
x264 [info]: i16 v,h,dc,p: 35% 23% 13% 29%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 18% 14%  6%  8%  9%  7%  8%  5%
x264 [info]: i8c dc,h,v,p: 52% 19% 23%  6%
x264 [info]: Weighted P-Frames: Y:0.3% UV:0.1%
x264 [info]: ref P L0: 74.8% 25.2%
x264 [info]: ref B L0: 86.8% 13.2%
x264 [info]: ref B L1: 97.0%  3.0%
x264 [info]: kb/s:2205.68
[07:16:21] mux: track 0, 34438 frames, 379776225 bytes, 2205.37 kbps, fifo 2048
[07:16:21] mux: track 1, 64577 frames, 24599279 bytes, 142.85 kbps, fifo 4096
[07:16:21] libhb: work result = 0

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

Re: handBrake kills battery time on Macbook Pro i7

Post by s55 » Fri Oct 11, 2019 7:23 am

This is Normal.

Advertised Battery life on Laptops is for light usage only. (Web Browsing, Email, Music, Video playback etc).
Under sustained high load (Video encoding, games, rendering etc), it rarely goes above 1~2 hours.

Your laptop will be using around 40~50Watts of power when under high load. Your battery is 97watt/hrs. Divide the two numbers for a really approximate battery life

mduell
Veteran User
Posts: 6669
Joined: Sat Apr 21, 2007 8:54 pm

Re: handBrake kills battery time on Macbook Pro i7

Post by mduell » Fri Oct 11, 2019 3:33 pm

Use the QuickSync (QSV) encoder for somewhat better battery life, at the expense of encoding efficiency.

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

Re: handBrake kills battery time on Macbook Pro i7

Post by s55 » Fri Oct 11, 2019 7:07 pm

Would be interesting to see what the delta is. It should favour quicksync but with filters/decode still on cpu, it can still hit the CPU pretty hard. Infact, if the scheduler works well, you may find higher boost clocks (less power efficient and higher heat output) which counters some of the savings.

Post Reply