Handbrake using < 55% of my dual CPU System for h.254

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
AndreiP
Posts: 20
Joined: Thu Nov 02, 2017 4:54 pm

Handbrake using < 55% of my dual CPU System for h.254

Post by AndreiP »

Hi,

I recently got a used 10year old dual CPU mainboard from a friend and decided to use that for some x265 encodings (with two 10year old XEON E5620 CPUs installed). However handbrake is only using 50-60% from the CPU while the same handbrake version (stable and nightly) settings and test movie on my notebook caused a 99% workload.

My DUAL CPU System:
- Windows High Performance Profile
- BIOS up to date
- HD RAID (Mirrored) [between 0-2MB/sec disk I/O with very rare peaks to 12MB]
- 24GB RAM [only 2 GB in use during encoding]
- CPU affinity is set to both CPUs
- Process priority is set to above normal

Handbrake Settings:
- h.265 MKV 720p30 profile
- Constant Quality 20
- One Audio Stream with Bitrate 256 and Stereo Mixdown
- No Subtitles
- Priority Level: High

Can somebody explain that? I would expect the same 99% usage on the DUAL CPU board as well as seen on my 2 year old notebook...
Last edited by AndreiP on Sat Jan 06, 2018 12:15 am, edited 2 times in total.
User avatar
s55
HandBrake Team
Posts: 10350
Joined: Sun Dec 24, 2006 1:05 pm

Re: Handbrake using < 55% of my dual CPU System for h.254

Post by s55 »

Can you post the full log and what CPU's your using

I'm guessing we are dealing with old Core2 generation parts. You may well be maxing out memory bandwidth or some other resource. Those CPU's are weak for encoding.
AndreiP
Posts: 20
Joined: Thu Nov 02, 2017 4:54 pm

Re: Handbrake using < 55% of my dual CPU System for h.254

Post by AndreiP »

Sure, below is the log, the CPU infos are in my initial posting (or in the log). Regarding the old CPU usage, I can see a 99% usage on an very old notebook (T7600) as well, and that notebook is from 2007. However not on the dual CPU board. I also would say its not a RAM issue as only 2 GB from 24GB are used (or did you mean the RAM speed). It also couldbn´t be the HD speed as there aren´t that much read/write actions seen in the performance monitor.

Code: Select all

HandBrake Nightly 20180104000850-faab5c4-master (2018010501) - 64bit
OS: Microsoft Windows NT 6.3.9600.0 - 64bit
CPU: Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz
Ram: 24565 MB, 
GPU Information:
  Microsoft Basic Display Adapter - 6.3.9600.16384
Screen: 1920x1080
Temp Dir: C:\Users\Administrator\AppData\Local\Temp\2\
Install Dir: C:\Program Files\HandBrake Nightly
Data Dir: C:\Users\Administrator\AppData\Roaming\HandBrake Team\HandBrake\1.1.0.0

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


# Starting Encode ...

[16:02:01] hb_init: starting libhb thread
[16:02:01] 1 job(s) to process
[16:02:01] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 256,
        "DRC": 0.0,
        "Encoder": 65536,
        "Gain": 0.0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      1073807360,
      1073743872,
      1074003968,
      1073750016,
      1090519040,
      1074790400,
      1074266112,
      1107296256
    ],
    "FallbackEncoder": 2048
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "00:00:00.000"
      },
      {
        "Name": "00:03:13.985"
      },
      {
        "Name": "00:06:15.125"
      },
      {
        "Name": "00:09:19.058"
      },
      {
        "Name": "00:11:32.191"
      },
      {
        "Name": "00:13:59.797"
      },
      {
        "Name": "00:16:19.187"
      },
      {
        "Name": "00:19:39.178"
      },
      {
        "Name": "00:24:14.703"
      },
      {
        "Name": "00:25:54.511"
      },
      {
        "Name": "00:29:58.171"
      },
      {
        "Name": "00:33:03.356"
      },
      {
        "Name": "00:35:51.608"
      },
      {
        "Name": "00:37:07.475"
      },
      {
        "Name": "00:40:23.212"
      },
      {
        "Name": "00:43:20.515"
      },
      {
        "Name": "00:46:44.927"
      },
      {
        "Name": "00:49:30.217"
      },
      {
        "Name": "00:51:25.624"
      },
      {
        "Name": "00:53:13.148"
      },
      {
        "Name": "00:56:03.193"
      },
      {
        "Name": "00:58:49.693"
      },
      {
        "Name": "01:01:17.841"
      },
      {
        "Name": "01:03:08.326"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "C:\\test_output.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": "720",
          "width": "1280"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/900000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 24
    },
    "Title": 1,
    "Path": "C:\\test_input.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": 4096,
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "strong-intra-smoothing=0:rect=0",
    "Preset": "slow",
    "Profile": "main",
    "Quality": 20.0,
    "HWDecode": false,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[16:02:01] CPU: Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz
[16:02:01]  - logical processor count: 16
[16:02:01] Intel Quick Sync Video support: no
[16:02:01] hb_scan: path=C:\test_input.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image C:\test_input.mkv
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
[16:02:01] 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
[16:02:01] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'C:\test_input.mkv':
  Metadata:
    title           : TEST
  Duration: 01:09:02.14, start: 0.000000, bitrate: N/A
    Chapter #0:0: start 0.000000, end 193.985000
    Metadata:
      title           : 00:00:00.000
    Chapter #0:1: start 193.985000, end 375.125000
    Metadata:
      title           : 00:03:13.985
    Chapter #0:2: start 375.125000, end 559.058000
    Metadata:
      title           : 00:06:15.125
    Chapter #0:3: start 559.058000, end 692.191000
    Metadata:
      title           : 00:09:19.058
    Chapter #0:4: start 692.191000, end 839.797000
    Metadata:
      title           : 00:11:32.191
    Chapter #0:5: start 839.797000, end 979.187000
    Metadata:
      title           : 00:13:59.797
    Chapter #0:6: start 979.187000, end 1179.178000
    Metadata:
      title           : 00:16:19.187
    Chapter #0:7: start 1179.178000, end 1454.703000
    Metadata:
      title           : 00:19:39.178
    Chapter #0:8: start 1454.703000, end 1554.511000
    Metadata:
      title           : 00:24:14.703
    Chapter #0:9: start 1554.511000, end 1798.171000
    Metadata:
      title           : 00:25:54.511
    Chapter #0:10: start 1798.171000, end 1983.356000
    Metadata:
      title           : 00:29:58.171
    Chapter #0:11: start 1983.356000, end 2151.608000
    Metadata:
      title           : 00:33:03.356
    Chapter #0:12: start 2151.608000, end 2227.475000
    Metadata:
      title           : 00:35:51.608
    Chapter #0:13: start 2227.475000, end 2423.212000
    Metadata:
      title           : 00:37:07.475
    Chapter #0:14: start 2423.212000, end 2600.515000
    Metadata:
      title           : 00:40:23.212
    Chapter #0:15: start 2600.515000, end 2804.927000
    Metadata:
      title           : 00:43:20.515
    Chapter #0:16: start 2804.927000, end 2970.217000
    Metadata:
      title           : 00:46:44.927
    Chapter #0:17: start 2970.217000, end 3085.624000
    Metadata:
      title           : 00:49:30.217
    Chapter #0:18: start 3085.624000, end 3193.148000
    Metadata:
      title           : 00:51:25.624
    Chapter #0:19: start 3193.148000, end 3363.193000
    Metadata:
      title           : 00:53:13.148
    Chapter #0:20: start 3363.193000, end 3529.693000
    Metadata:
      title           : 00:56:03.193
    Chapter #0:21: start 3529.693000, end 3677.841000
    Metadata:
      title           : 00:58:49.693
    Chapter #0:22: start 3677.841000, end 3788.326000
    Metadata:
      title           : 01:01:17.841
    Chapter #0:23: start 3788.326000, end 4142.144000
    Metadata:
      title           : 01:03:08.326
    Stream #0:0: Video: h264 (High)
      yuv420p, 1280x720 [PAR 1:1 DAR 16:9], PAR 1:1 DAR 16:9
      23.98 fps, 1k tbn (default)
    Metadata:
      title           : TEST
    Stream #0:1(ger): Audio: dts (DTS)
      48000 Hz, 5.1, fltp, 1536 kb/s (default)
    Metadata:
      title           : DTS
[16:02:01] scan: decoding previews for title 1
[16:02:01] scan: audio 0x1: dca, rate=48000Hz, bitrate=1536000 Deutsch (DTS) (5.1 ch)
[16:02:02] scan: 10 previews, 1280x720, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[16:02:02] scan: supported video decoders: avcodec qsv
[16:02:02] libhb: scan thread found 1 valid title(s)
[16:02:02] starting job
[16:02:02] decomb filter thread started for segment 0
[16:02:02] decomb filter thread started for segment 1
[16:02:02] decomb filter thread started for segment 2
[16:02:02] decomb filter thread started for segment 3
[16:02:02] decomb filter thread started for segment 4
[16:02:02] decomb filter thread started for segment 5
[16:02:02] decomb filter thread started for segment 6
[16:02:02] decomb filter thread started for segment 7
[16:02:02] decomb filter thread started for segment 8
[16:02:02] decomb filter thread started for segment 9
[16:02:02] decomb filter thread started for segment 12
[16:02:02] decomb filter thread started for segment 11
[16:02:02] decomb filter thread started for segment 10
[16:02:02] decomb filter thread started for segment 13
[16:02:02] decomb filter thread started for segment 14
[16:02:02] decomb filter thread started for segment 15
[16:02:02] decomb check thread started for segment 0
[16:02:02] decomb check thread started for segment 1
[16:02:02] decomb check thread started for segment 2
[16:02:02] decomb check thread started for segment 3
[16:02:02] decomb check thread started for segment 4
[16:02:02] decomb check thread started for segment 5
[16:02:02] decomb check thread started for segment 6
[16:02:02] decomb check thread started for segment 7
[16:02:02] decomb check thread started for segment 8
[16:02:02] decomb check thread started for segment 10
[16:02:02] decomb check thread started for segment 9
[16:02:02] decomb check thread started for segment 11
[16:02:02] decomb check thread started for segment 12
[16:02:02] decomb check thread started for segment 13
[16:02:02] decomb check thread started for segment 14
[16:02:02] decomb check thread started for segment 15
[16:02:02] mask filter thread started for segment 0
[16:02:02] mask filter thread started for segment 1
[16:02:02] mask filter thread started for segment 2
[16:02:02] mask filter thread started for segment 3
[16:02:02] mask filter thread started for segment 4
[16:02:02] mask filter thread started for segment 5
[16:02:02] mask filter thread started for segment 6
[16:02:02] mask filter thread started for segment 7
[16:02:02] mask filter thread started for segment 8
[16:02:02] mask filter thread started for segment 9
[16:02:02] mask filter thread started for segment 10
[16:02:02] mask filter thread started for segment 11
[16:02:02] mask filter thread started for segment 12
[16:02:02] mask filter thread started for segment 13
[16:02:02] mask filter thread started for segment 14
[16:02:02] mask filter thread started for segment 15
[16:02:02] mask erode thread started for segment 0
[16:02:02] mask erode thread started for segment 1
[16:02:02] mask erode thread started for segment 2
[16:02:02] mask erode thread started for segment 3
[16:02:02] mask erode thread started for segment 4
[16:02:02] mask erode thread started for segment 5
[16:02:02] mask erode thread started for segment 6
[16:02:02] mask erode thread started for segment 7
[16:02:02] mask erode thread started for segment 8
[16:02:02] mask erode thread started for segment 9
[16:02:02] mask erode thread started for segment 10
[16:02:02] mask erode thread started for segment 11
[16:02:02] mask erode thread started for segment 12
[16:02:02] mask erode thread started for segment 13
[16:02:02] mask erode thread started for segment 14
[16:02:02] mask erode thread started for segment 15
[16:02:02] mask dilate thread started for segment 0
[16:02:02] mask dilate thread started for segment 1
[16:02:02] mask dilate thread started for segment 2
[16:02:02] mask dilate thread started for segment 3
[16:02:02] mask dilate thread started for segment 4
[16:02:02] mask dilate thread started for segment 5
[16:02:02] mask dilate thread started for segment 6
[16:02:02] mask dilate thread started for segment 8
[16:02:02] mask dilate thread started for segment 9
[16:02:02] mask dilate thread started for segment 7
[16:02:02] mask dilate thread started for segment 10
[16:02:02] mask dilate thread started for segment 11
[16:02:02] mask dilate thread started for segment 12
[16:02:02] mask dilate thread started for segment 13
[16:02:02] mask dilate thread started for segment 14
[16:02:02] mask dilate thread started for segment 15
[16:02:02] yadif thread started for segment 0
[16:02:02] yadif thread started for segment 1
[16:02:02] yadif thread started for segment 2
[16:02:02] yadif thread started for segment 3
[16:02:02] yadif thread started for segment 4
[16:02:02] yadif thread started for segment 5
[16:02:02] yadif thread started for segment 6
[16:02:02] yadif thread started for segment 7
[16:02:02] yadif thread started for segment 8
[16:02:02] yadif thread started for segment 9
[16:02:02] yadif thread started for segment 10
[16:02:02] yadif thread started for segment 11
[16:02:02] yadif thread started for segment 12
[16:02:02] yadif thread started for segment 13
[16:02:02] yadif thread started for segment 14
[16:02:02] yadif thread started for segment 15
[16:02:02] work: track 1, dithering not supported by codec
[16:02:02] job configuration:
[16:02:02]  * source
[16:02:02]    + C:\test_input.mkv
[16:02:02]    + title 1, chapter(s) 1 to 24
[16:02:02]    + container: matroska,webm
[16:02:02]  * destination
[16:02:02]    + C:\test_output.mkv
[16:02:02]    + container: Matroska (libavformat)
[16:02:02]      + chapter markers
[16:02:02]  * video track
[16:02:02]    + decoder: h264
[16:02:02]    + filters
[16:02:02]      + 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)
[16:02:02]      + Decomb (mode=39)
[16:02:02]      + Framerate Shaper (mode=2:rate=27000000/900000)
[16:02:02]        + frame rate: 23.976 fps -> peak rate limited to 30.000 fps
[16:02:02]      + Crop and Scale (width=1280:height=720:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[16:02:02]        + source: 1280 * 720, crop (0/0/0/0): 1280 * 720, scale: 1280 * 720
[16:02:02]    + Output geometry
[16:02:02]      + storage dimensions: 1280 x 720
[16:02:02]      + pixel aspect ratio: 1 : 1
[16:02:02]      + display dimensions: 1280 x 720
[16:02:02]    + encoder: H.265 (libx265)
[16:02:02]      + preset:  slow
[16:02:02]      + options: strong-intra-smoothing=0:rect=0
[16:02:02]      + profile: main
[16:02:02]      + quality: 20.00 (RF)
[16:02:02]  * audio track 1
[16:02:02]    + decoder: Deutsch (DTS) (5.1 ch) (track 1, id 0x1)
[16:02:02]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[16:02:02]    + mixdown: Stereo
[16:02:02]    + encoder: AAC (libavcodec)
[16:02:02]      + bitrate: 256 kbps, samplerate: 48000 Hz
[16:02:02] sync: expecting 99312 video frames
x265 [info]: HEVC encoder version 2.6
x265 [info]: build info [Windows][GCC 7.1.0][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
x265 [info]: Main profile, Level-3.1 (Main tier)
x265 [info]: Thread pool 0 using 8 threads on numa nodes 0
x265 [info]: Thread pool 1 using 8 threads on numa nodes 1
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 4 / wpp(12 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         : star / 57 / 3 / 3
x265 [info]: Keyframe min / max / scenecut / bias: 24 / 240 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt        : 25 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 4 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 1 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-20.0 / 0.60
x265 [info]: tools: limit-modes rd=4 psy-rd=2.00 rdoq=2 psy-rdoq=1.00 rskip
x265 [info]: tools: signhide tmvp lslices=4 deblock sao
[16:02:02] sync: first pts video is 0
[16:02:02] sync: "00:00:00.000" (1) at frame 1 time 0
[16:02:02] sync: first pts audio 0x1 is 0
[code][/i]
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: Handbrake using < 55% of my dual CPU System for h.254

Post by mduell »

What if you disable the unnecessary filtering?
AndreiP
Posts: 20
Joined: Thu Nov 02, 2017 4:54 pm

Re: Handbrake using < 55% of my dual CPU System for h.254

Post by AndreiP »

mduell wrote: Sat Jan 06, 2018 12:40 am What if you disable the unnecessary filtering?
Which filtering? Because most filters inside Handbrake are off (as seen in the log). The only filter I can disable are Deinterlace (currently set to Decomb) and Interlace Detection (currently set to Default). However the same filter options are used on my current and my very old notebook and caused there a 99% CPU usage. Or did you mean some other filter?
WhatZit
Experienced
Posts: 77
Joined: Sat Feb 13, 2016 2:45 am

Re: Handbrake using < 55% of my dual CPU System for h.254

Post by WhatZit »

AndreiP wrote: Sat Jan 06, 2018 12:03 am

Code: Select all

x265 [info]: Thread pool 0 using 8 threads on numa nodes 0
x265 [info]: Thread pool 1 using 8 threads on numa nodes 1
Did you miss that bit?

Bugger the CPU usage %, it's probably using 12 more threads than the laptop, so... how FAST does it finish a job compared to that same job on the laptop? What FPS does HB report for both machines, for instance?

Also, why don't you try running TWO instances of HandBrake at the same time (portable.ini is your friend)? Churn through queues twice as fast, something the laptop won't be able to do.

And TURN OFF THAT DECOMB/DEINT [Censored]!
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: Handbrake using < 55% of my dual CPU System for h.254

Post by BradleyS »

I’ll appreciate everyone laying off the decomb alarmism. Yes it has a small impact on performance but it’s the default for a reason. Feel free to disable if you’re certain your source is progressive.
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: Handbrake using < 55% of my dual CPU System for h.254

Post by rollin_eng »

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

Re: Handbrake using < 55% of my dual CPU System for h.254

Post by s55 »

@rollin_eng -> not appropriate.

@Andre -> Scaling to 16 cores with only 720p content is probably pushing it a little. Your T7600 is only 2 cores so scaling is a non-issue.
While turning decomb off will improve performance a little bit, it is a threaded filter and if it's not actually de-interlacing anything when it's not required, the overhead isn't a big issue. It probably can however be safely turned off for that content.
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: Handbrake using < 55% of my dual CPU System for h.254

Post by rollin_eng »

Sorry, meant to be a joke.

Next time I’ll include the smiley :)
AndreiP
Posts: 20
Joined: Thu Nov 02, 2017 4:54 pm

Re: Handbrake using < 55% of my dual CPU System for h.254

Post by AndreiP »

WhatZit wrote: Sat Jan 06, 2018 7:48 am
AndreiP wrote: Sat Jan 06, 2018 12:03 am

Code: Select all

x265 [info]: Thread pool 0 using 8 threads on numa nodes 0
x265 [info]: Thread pool 1 using 8 threads on numa nodes 1
Did you miss that bit?

Bugger the CPU usage %, it's probably using 12 more threads than the laptop, so... how FAST does it finish a job compared to that same job on the laptop? What FPS does HB report for both machines, for instance?

Also, why don't you try running TWO instances of HandBrake at the same time (portable.ini is your friend)? Churn through queues twice as fast, something the laptop won't be able to do.

And TURN OFF THAT DECOMB/DEINT [Censored]!
Threads:
The threads should be fine as far as I would say. The CPU has 4 cores, so 8 threads. So it is ussing all possible threads or did I miss something. And compared to my 2year old notebook the server is taking longer for the movie as the notebook (and its not that my notebook has a powerfull GPU).

Two instances:
And trying to run two instances wouldn´t be helpfull here, as I do not have always two movies at the same time :-)

Decomb:
Hm, why? As far as I understood that feature it should auto decide what to perform or not. But there is also no change in the usage if I totally disable that one.
BradleyS wrote: Sat Jan 06, 2018 10:23 am it has a small impact on performance but it’s the default for a reason.
So its safe to keep it on the default settings? I normally do not have any issue with that. I also do not see a difference in the output and if disabled the performance isn´t changing...
s55 wrote: Sat Jan 06, 2018 1:52 pm @Andre -> Scaling to 16 cores with only 720p content is probably pushing it a little. Your T7600 is only 2 cores so scaling is a non-issue.
Hm, you might be right here. Using the same movie and 1080p as output seamed to changing the CPU usage to 70-80%. Not the 99% but at least more then the 50%. By the way would disabling hyper threading help here? Not sure if hyper threading is really helpfull for handbrake.
Last edited by AndreiP on Sat Jan 06, 2018 2:53 pm, edited 2 times in total.
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: Handbrake using < 55% of my dual CPU System for h.254

Post by rollin_eng »

Can you post your complete logs from your laptop and server encode.
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: Handbrake using < 55% of my dual CPU System for h.254

Post by BradleyS »

It's safe to leave decomb and the combing detection enabled; otherwise, it wouldn't be the default. It should have no effect on progressive material.
WhatZit
Experienced
Posts: 77
Joined: Sat Feb 13, 2016 2:45 am

Re: Handbrake using < 55% of my dual CPU System for h.254

Post by WhatZit »

BradleyS wrote: Sat Jan 06, 2018 3:33 pmIt's safe to leave decomb and the combing detection enabled; otherwise, it wouldn't be the default.
So, one of my many test files is the IMAX Cliffhanger demo, which, at 140mb, is a 40 second, 1080p, 100% comb-free, high-motion, high-detail, progressive sample:

Code: Select all

Video
ID                             : 1
Format                         : AVC
Format/Info                    : Advanced Video Codec
Format profile                 : High@L4.1
Format settings, CABAC         : Yes
Format settings, RefFrames     : 4 frames
Codec ID                       : V_MPEG4/ISO/AVC
Duration                       : 40 s 375 ms
Width                          : 1 920 pixels
Height                         : 1 080 pixels
Display aspect ratio           : 16:9
Original display aspect ratio  : 1.85:1
Frame rate mode                : Constant
Frame rate                     : 24.000 FPS
Color space                    : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 8 bits
Scan type                      : Progressive
Writing library                : x264 core 142 r2431 ac76440
Language                       : English
Default                        : Yes
Forced                         : No
Color range                    : Limited
Color primaries                : BT.709
Transfer characteristics       : BT.709
Matrix coefficients            : BT.709
This is what happens when you leave the decomb defaults on:

Code: Select all

[10:43:58] job configuration:
[10:43:58]  * source
[10:43:58]    + E:\Special\x265\!SOURCE_1080p_Hi-Motion_1.mkv
[10:43:58]    + title 1, chapter(s) 1 to 1
[10:43:58]    + container: matroska,webm
[10:43:58]  * destination
[10:43:58]    + E:\Special\!SOURCE_1080p_Hi-Motion_1.mkv
[10:43:58]    + container: Matroska (libavformat)
[10:43:58]  * video track
[10:43:58]    + decoder: h264
[10:43:58]    + filters
[10:43:58]      + 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)
[10:43:58]      + Decomb (mode=39)
[10:43:58]      + Framerate Shaper (mode=1)
[10:43:58]        + frame rate: 24.000 fps -> constant 24.000 fps
[10:43:58]      + Crop and Scale (width=1024:height=576:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[10:43:58]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1024 * 576
[10:43:58]    + Output geometry
[10:43:58]      + storage dimensions: 1024 x 576
[10:43:58]      + pixel aspect ratio: 1 : 1
[10:43:58]      + display dimensions: 1024 x 576
[10:43:58]    + encoder: H.265 10-bit (libx265)
[10:43:58]      + preset:  faster
[10:43:58]      + tune:    grain
[10:43:58]      + options: deblock=-2,-3:strong-intra-smoothing=0
[10:43:58]      + profile: main10
[10:43:58]      + quality: 21.00 (RF)
[10:43:58]  * audio track 1
[10:43:58]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[10:43:58]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[10:43:58]    + mixdown: Dolby Pro Logic II
[10:43:58]    + gain: 1dB
[10:43:58]    + dither: none
[10:43:58]    + encoder: AAC (libfdk_aac)
[10:43:58]      + bitrate: 192 kbps, samplerate: 48000 Hz
[10:43:58] sync: expecting 968 video frames
x265 [info]: HEVC encoder version 2.6+24-69cfe46e8a3b
x265 [info]: build info [Windows][GCC 7.2.0][64 bit] 10bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x265 [warning]: Rc Grain removes qp fluctuations caused by aq/cutree, Disabling aq,cu-tree
x265 [info]: Main 10 profile, Level-3.1 (Main tier)
x265 [info]: Thread pool created using 8 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 3 / wpp(9 rows)
x265 [warning]: Source height < 720p; disabling lookahead-slices
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: 24 / 240 / 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  : 2 / on / on
x265 [info]: Rate Control / qCompress            : CRF-21.0 / 0.60
x265 [info]: tools: rd=2 psy-rd=4.00 early-skip signhide tmvp fast-intra
x265 [info]: tools: deblock(tC=-2:B=-3)
[10:43:58] sync: first pts video is 0
[10:43:58] sync: Chapter 1 at frame 1 time 0
[10:43:58] sync: first pts audio 0x1 is 0
[10:44:48] reader: done. 1 scr changes
[10:44:53] work: average encoding speed for job is 18.235388 fps
[10:44:53] comb detect: heavy 139 | light 133 | uncombed 696 | total 968
[10:44:53] decomb: deinterlaced 139 | blended 133 | unfiltered 696 | total 968
[10:44:53] vfr: 968 frames output, 0 dropped and 0 duped for CFR/PFR
[10:44:53] vfr: lost time: 0 (0 frames)
[10:44:53] vfr: gained time: 0 (0 frames) (0 not accounted for)
[10:44:53] dca-decoder done: 3785 frames, 0 decoder errors
[10:44:53] h264-decoder done: 968 frames, 0 decoder errors
[10:44:53] sync: got 968 frames, 968 expected
[10:44:53] sync: framerate min 24.000 fps, max 24.000 fps, avg 24.000 fps
x265 [info]: frame I:     17, Avg QP:20.82  kb/s: 7054.96
x265 [info]: frame P:    195, Avg QP:23.34  kb/s: 4463.44
x265 [info]: frame B:    756, Avg QP:23.44  kb/s: 2667.55
x265 [info]: Weighted P-Frames: Y:8.2% UV:7.2%
x265 [info]: consecutive B-frames: 8.5% 1.4% 1.9% 1.4% 86.8%
encoded 968 frames in 55.34s (17.49 fps), 3106.37 kb/s, Avg QP:23.37
[10:44:53] mux: track 0, 968 frames, 15665176 bytes, 3100.74 kbps, fifo 1024
[10:44:53] mux: track 1, 1894 frames, 969729 bytes, 191.95 kbps, fifo 2048
[10:44:53] libhb: work result = 0

# Encode Completed ...
I'll reprint the important bit in case you missed it:

[10:44:53] comb detect: heavy 139 | light 133 | uncombed 696 | total 968
[10:44:53] decomb: deinterlaced 139 | blended 133 | unfiltered 696 | total 968


Yep! Nearly 30% of the progressive content was vandalised by your so-called "safe" decomb setting!

So, I think I'll continue to leave it off, thanks.
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: Handbrake using < 55% of my dual CPU System for h.254

Post by BradleyS »

The problem here is less about the sensitivity of combing detection or false positives, which we can talk about. It’s your attitude on the forum. You can be right and you can be wrong, but you will not throw your weight around here.

You have a tendency to be matter-of-fact and antagonistic. I’m asking you to please keep the tone constructive, and if you have a genuine concern please voice it constructively and work with us to make HandBrake better. You certainly don’t come off like that’s your goal.
WhatZit
Experienced
Posts: 77
Joined: Sat Feb 13, 2016 2:45 am

Re: Handbrake using < 55% of my dual CPU System for h.254

Post by WhatZit »

BradleyS wrote: Sun Jan 07, 2018 2:06 amYou have a tendency to be matter-of-fact and antagonistic. I’m asking you to please keep the tone constructive, and if you have a genuine concern please voice it constructively and work with us to make HandBrake better. You certainly don’t come off like that’s your goal.
I'm actually quite the pussycat compared to most other Australians :)
Post Reply