Handbrake < 30% on i7 5960X OC-ed to 4.6

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
Coede
Posts: 4
Joined: Sat Jun 01, 2013 4:49 am

Handbrake < 30% on i7 5960X OC-ed to 4.6

Post by Coede »

Hello gentlefolk, I'm new here, but I've been a big fan and using Handbrake for more than 10 years.

Here's my problem.
I take MKV softsubbed files convert to MP4 and hardsub usually downscaling from 1080p or 720p to a smaller 720p and 360p, while minimizing the file size. In simpler terms, I make files more network stream friendly. I've been doing this for years, and the CPU would always redline close to or at 100%. Now though, no matter what I do, it doesn't even get close. It just bounces between the teens and 20s, with just barely, for mere fractions of a second spiking to 40's and 50's. The only way I can get the CPU to 100% is if I use denoise filters, set to strong, but that's completely unnecessary for my needs and it doubles or triples the time it takes to complete. According to all the bench tests, this beast should eccode practically twice as fast as my AMD FX9590, but it doesn't. It literally takes the same amount of time, while as I said, same setup on all my previous builds would rock at or around 100%, while this thing, barely just goes at a slow & leisurely pace in the range of 20-30%.

I'm using Handbrake 1.0.7 64bit on Win7 Professional, using an i7 5960X @4.6GHz, with 32GB Corsair Platinum RAM @2750 MHz, on either the 2x1TB Samsung SSD drives in Raid 0 or on the 500GB PCI-E SSD. (An Aventium III Professional Build PC)


This is what it looks like while encoding:
Image
Image

Here's a log from the last file I did:

Code: Select all

HandBrake 1.0.7 (2017040900) - 64bit
OS: Microsoft Windows NT 6.1.7601 Service Pack 1 - 64bit
CPU: Intel(R) Core(TM) i7-5960X CPU @ 3.00GHz
Ram: 32677 MB, 
GPU Information:
  NVIDIA GeForce GTX 980 Ti - 23.21.13.9065
Screen: 1920x1080
Temp Dir: C:\Users\God Tier\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\God Tier\AppData\Roaming\HandBrake Team\HandBrake\1.0.7.0

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


# Starting Encode ...

[08:39:45] hb_init: starting libhb thread
[08:39:45] 1 job(s) to process
[08:39:45] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 112,
        "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": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "File": "E:\\Video\\Zprin\\RamenEp2.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": true
    },
    "Mux": 131072
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 2,
        "Settings": {}
      },
      {
        "ID": 7,
        "Settings": {
          "qp": "5"
        }
      },
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "720",
          "width": "1280"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "E:\\Video\\Zprin\\RamenEp2HD.MP4"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": 65536,
    "Level": "4.1",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "veryslow",
    "Profile": "main",
    "Quality": 20.0,
    "Tune": "animation,fastdecode",
    "OpenCL": false,
    "HWDecode": false,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[08:39:45] CPU: Intel(R) Core(TM) i7-5960X CPU @ 3.00GHz
[08:39:45]  - Intel microarchitecture Haswell
[08:39:45]  - logical processor count: 16
[08:39:45] Intel Quick Sync Video support: no
[08:39:45] hb_scan: path=E:\Video\Zprin\RamenEp2HD.MP4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image E:\Video\Zprin\RamenEp2HD.MP4
src/libbluray/disc/disc.c:352: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:352: error opening file BDMV\BACKUP\index.bdmv
[08:39:45] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
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
[08:39:45] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\Video\Zprin\RamenEp2HD.MP4':
  Metadata:
    major_brand     : mp42
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2036-02-06 06:28:16
    encoder         : HandBrake 0.10.2 2015060900
  Duration: 00:22:36.13, start: 0.000000, bitrate: 1746 kb/s
    Stream #0:0(und): Video: h264 (High) [avc1 / 0x31637661]
      yuv420p, tv, bt709/bt709/bt709
      1920x1080 [PAR 1:1 DAR 16:9], 1613 kb/s
      23.98 fps, 90k tbn (default)
    Metadata:
      creation_time   : 2036-02-06 06:28:16
      handler_name    : VideoHandler
    Stream #0:1(jpn): Audio: aac (HE-AAC) [mp4a / 0x6134706D]
      44100 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      creation_time   : 2036-02-06 06:28:16
      handler_name    : Stereo
[08:39:45] scan: decoding previews for title 1
[08:39:45] scan: audio 0x1: aac, rate=44100Hz, bitrate=128000 ??? (AAC) (2.0 ch)
[08:39:45] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[08:39:45] scan: supported video decoders: avcodec qsv
[08:39:45] libhb: scan thread found 1 valid title(s)
[08:39:45] starting job
[08:39:45] work: track 1, dithering not supported by codec
[08:39:45] work: only 1 chapter, disabling chapter markers
[08:39:45] job configuration:
[08:39:45]  * source
[08:39:45]    + E:\Video\Zprin\RamenEp2HD.MP4
[08:39:45]    + title 1, chapter(s) 1 to 1
[08:39:45]    + container: mov,mp4,m4a,3gp,3g2,mj2
[08:39:45]    + data rate: 1746 kbps
[08:39:45]  * destination
[08:39:45]    + E:\Video\Zprin\RamenEp2.mp4
[08:39:45]    + container: MPEG-4 (libavformat)
[08:39:45]      + optimized for HTTP streaming (fast start)
[08:39:45]  * video track
[08:39:45]    + decoder: h264
[08:39:45]      + bitrate 1613 kbps
[08:39:45]    + filters
[08:39:45]      + Detelecine (pullup) ()
[08:39:45]      + Framerate Shaper (mode=1)
[08:39:45]        + frame rate: 23.976 fps -> constant 23.976 fps
[08:39:45]      + Deblock (pp7) (qp=5)
[08:39:45]      + Crop and Scale (width=1280:height=720:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[08:39:45]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1280 * 720
[08:39:45]    + Output geometry
[08:39:45]      + storage dimensions: 1280 x 720
[08:39:45]      + pixel aspect ratio: 1 : 1
[08:39:45]      + display dimensions: 1280 x 720
[08:39:45]    + encoder: H.264 (libx264)
[08:39:45]      + preset:  veryslow
[08:39:45]      + tune:    animation,fastdecode
[08:39:45]      + profile: main
[08:39:45]      + level:   4.1
[08:39:45]      + quality: 20.00 (RF)
[08:39:45]  * audio track 1
[08:39:45]    + decoder: ??? (AAC) (2.0 ch) (track 1, id 0x1)
[08:39:45]      + bitrate: 128 kbps, samplerate: 44100 Hz
[08:39:45]    + mixdown: Stereo
[08:39:45]    + encoder: AAC (libavcodec)
[08:39:45]      + bitrate: 112 kbps, samplerate: 44100 Hz
[08:39:45] sync: expecting 32514 video frames
[08:39:45] encx264: min-keyint: 24, keyint: 240
[08:39:45] encx264: encoding at constant RF 20.000000
[08:39:45] encx264: unparsed options: rc-lookahead=60:weightb=0:level=4.1:vbv-bufsize=62500:direct=auto:weightp=0:ref=9:cabac=0:bframes=10:b-adapt=2:me=umh:analyse=all:no-deblock=1:8x8dct=0:merange=24:subme=10:psy-rd=0.4,0:trellis=2:vbv-maxrate=50000:aq-strength=0.6
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
x264 [info]: profile Main, level 4.1
[08:39:45] sync: first pts video is 0
[08:39:45] sync: "Chapter 1" (1) at frame 1 time 0
[08:39:45] sync: first pts audio 0x1 is 0
[09:19:12] reader: done. 1 scr changes
[09:19:19] work: average encoding speed for job is 13.709867 fps
[09:19:19] vfr: 32512 frames output, 2 dropped and 12 duped for CFR/PFR
[09:19:19] vfr: lost time: 45045 (0 frames)
[09:19:19] vfr: gained time: 45045 (40 frames) (0 not accounted for)
[09:19:19] aac-decoder done: 29202 frames, 0 decoder errors
[09:19:19] h264-decoder done: 32512 frames, 0 decoder errors
[09:19:19] sync: got 32512 frames, 32514 expected
[09:19:19] sync: framerate min 23.981 fps, max 23.981 fps, avg 23.976 fps
x264 [info]: frame I:257   Avg QP:15.25  size: 93183
x264 [info]: frame P:7882  Avg QP:19.17  size: 12690
x264 [info]: frame B:24373 Avg QP:24.52  size:  1561
x264 [info]: consecutive B-frames:  4.4%  4.8%  6.2% 25.7% 11.3% 37.6%  3.5%  3.1%  1.2%  0.6%  1.6%
x264 [info]: mb I  I16..4: 38.0%  0.0% 62.0%
x264 [info]: mb P  I16..4:  9.6%  0.0%  4.3%  P16..4: 23.0%  6.8%  2.6%  0.5%  0.1%    skip:53.2%
x264 [info]: mb B  I16..4:  0.5%  0.0%  0.2%  B16..8:  9.5%  1.4%  0.2%  direct: 0.4%  skip:87.9%  L0:44.5% L1:49.4% BI: 6.1%
x264 [info]: direct mvs  spatial:99.7% temporal:0.3%
x264 [info]: coded y,uvDC,uvAC intra: 28.3% 46.5% 21.4% inter: 2.1% 2.9% 0.7%
x264 [info]: i16 v,h,dc,p: 46% 29%  7% 19%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 20% 16%  7%  8%  9%  7%  6%  5%
x264 [info]: i8c dc,h,v,p: 52% 20% 19%  8%
x264 [info]: ref P L0: 62.3% 12.8%  9.2%  3.9%  3.9%  2.8%  3.0%  1.8%  0.1%
x264 [info]: ref B L0: 74.9% 10.2%  5.9%  2.7%  2.3%  1.9%  1.4%  0.6%
x264 [info]: ref B L1: 95.0%  5.0%
x264 [info]: kb/s:955.88
[09:19:20] mux: track 0, 32512 frames, 162013685 bytes, 955.73 kbps, fifo 4096
[09:19:20] mux: track 1, 58404 frames, 19047146 bytes, 112.36 kbps, fifo 8192
[09:19:20] libhb: work result = 0

# Encode Completed ...

Deleted User 11865

Re: Handbrake < 30% on i7 5960X OC-ed to 4.6

Post by Deleted User 11865 »

Detelecine and Deblock are both mostly not threaded and could be bottlenecks here.
Coede
Posts: 4
Joined: Sat Jun 01, 2013 4:49 am

Re: Handbrake < 30% on i7 5960X OC-ed to 4.6

Post by Coede »

Rodeo wrote: Fri Jan 12, 2018 2:58 am Detelecine and Deblock are both mostly not threaded and could be bottlenecks here.
OMG, Thank YOUUUU! This has been bothering me for almost a year, and I couldn't figure out what it was.
Also, it's not the deblocking for me, it's the Detelecine set to default. The moment I shut that off, bam lit up like a Christmas tree at 100%.
I can't believe it was just that. My FPS just went from like 14 to 70. LMAO

If I may ask a follow-up question, I know that Detelecine makes the vid FPS like "TV friendly," but if I'm maintaining constant and the same FPS as the source, would Detelecine do anything or benefit me in anyway?

Edit: Actually I got that backwards, it's not the Detelecine, it's the Deblocking that was killing it, I hadn't noticed all this time, because it was set to 5 and I thought it was set to 0.
Post Reply