CPU upgrade results fraction of performance

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
Amazonian_Hotdog
Posts: 2
Joined: Sat Mar 14, 2020 2:15 am

CPU upgrade results fraction of performance

Post by Amazonian_Hotdog »

Description of problem or question:

Had a Ryzen 1700 in my server and upgraded to Ryzen 2700 I had laying around. With Ryzen 1700, SD encodes would fly on "Very Fast 480p" preset at 800-1200fps (depending on source) and kill the CPU usage. Up(down?)grading to Ryzen 2700 results in about 80-180fps for the same exact media and about 15-18% CPU usage.


Steps to reproduce the problem (If Applicable):

Any file I try to use results in very poor performance. System and OS install untouched except for CPU swap. All-in-1 drives updated fully before and after. Uninstalled and wiped all settings of Handbrake and reinstalled. Would prefer not to reinstall the OS.


HandBrake version (e.g., 1.0.0):

1.3.1


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

Windows 10 Pro 1909


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

Code: Select all

HandBrake 1.3.1 (2020010400)
OS: Microsoft Windows NT 10.0.18363.0
CPU: AMD Ryzen 7 2700 Eight-Core Processor          
Ram: 49084 MB, 
GPU Information:
  Microsoft Remote Display Adapter - 10.0.18362.329
  Radeon (TM) RX 480 Graphics - 26.20.11016.1
Screen: 1440x900
Temp Dir: E:\Temp\2\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\peanut\AppData\Roaming\HandBrake

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


# Starting Encode ...

[09:33:39] base preset: Very Fast 480p30
[21:33:39] hb_init: starting libhb thread
[21:33:39] Starting work at: Fri Mar 13 21:33:39 2020
[21:33:39] 1 job(s) to process
[21:33:39] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": "av_aac",
        "Gain": 0.0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:eac3",
      "copy:flac",
      "copy:mp3",
      "copy:truehd"
    ],
    "FallbackEncoder": "ac3"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "H:\\encode\\Test-1.m4v",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 4,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "ID": 3,
        "Settings": {
          "block-height": "16",
          "block-thresh": "80",
          "block-width": "16",
          "filter-mode": "1",
          "mode": "0",
          "motion-thresh": "2",
          "spatial-metric": "2",
          "spatial-thresh": "3"
        }
      },
      {
        "ID": 12,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "480",
          "width": "640"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/900000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 4,
    "Den": 3
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "H:\\Test.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x264",
    "Level": "3.1",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "veryfast",
    "Profile": "main",
    "Quality": 22.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[21:33:39] CPU:
[21:33:39]  - logical processor count: 16
[21:33:39] Intel Quick Sync Video support: no
[21:33:39] hb_scan: path=H:\Test.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image H:\Test.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
src/libbluray/bluray.c:2585: nav_get_title_list(H:\Test.mkv\) failed
[21:33:39] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.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
[21:33:39] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'H:\Test.mkv':
  Metadata:
    ENCODER         : Lavf58.31.101
  Duration: 00:21:19.40, start: 0.000000, bitrate: 798 kb/s
    Stream #0:0: Video: h264 (High), yuv420p(progressive), 640x480 [SAR 4:3 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      BPS             : 2785276
      BPS-eng         : 2785276
      DURATION-eng    : 00:21:19.403000000
      NUMBER_OF_FRAMES: 30675
      NUMBER_OF_FRAMES-eng: 30675
      NUMBER_OF_BYTES : 445436357
      NUMBER_OF_BYTES-eng: 445436357
      _STATISTICS_WRITING_APP: mkvmerge v8.8.0 ('Wind at my back') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v8.8.0 ('Wind at my back') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2020-03-13 01:02:59
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-03-13 01:02:59
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      ENCODER         : Lavc58.55.100 libx264
      DURATION        : 00:21:19.403000000
    Stream #0:1: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
    Metadata:
      BPS             : 384000
      BPS-eng         : 384000
      DURATION-eng    : 00:21:19.392000000
      NUMBER_OF_FRAMES: 39981
      NUMBER_OF_FRAMES-eng: 39981
      NUMBER_OF_BYTES : 61410816
      NUMBER_OF_BYTES-eng: 61410816
      _STATISTICS_WRITING_APP: mkvmerge v8.8.0 ('Wind at my back') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v8.8.0 ('Wind at my back') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2020-03-13 01:02:59
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-03-13 01:02:59
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 00:21:19.392000000
[21:33:39] scan: decoding previews for title 1
[21:33:39] scan: audio 0x1: ac3, rate=48000Hz, bitrate=384000 Unknown (AC3) (5.1 ch) (384 kbps)
[21:33:40] scan: 10 previews, 640x480, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 4:3
[21:33:40] scan: supported video decoders: avcodec qsv
[21:33:40] libhb: scan thread found 1 valid title(s)
[21:33:40] Skipping subtitle scan.  No suitable subtitle tracks.
[21:33:40] Starting Task: Encoding Pass
[21:33:40] Skipping crop/scale filter
[21:33:40] work: only 1 chapter, disabling chapter markers
[21:33:40] job configuration:
[21:33:40]  * source
[21:33:40]    + H:\Test.mkv
[21:33:40]    + title 1, chapter(s) 1 to 1
[21:33:40]    + container: matroska,webm
[21:33:40]    + data rate: 798 kbps
[21:33:40]  * destination
[21:33:40]    + H:\encode\Test-1.m4v
[21:33:40]    + container: MPEG-4 (libavformat)
[21:33:40]      + align initial A/V stream timestamps
[21:33:40]  * video track
[21:33:40]    + decoder: h264
[21:33:40]    + filters
[21:33:40]      + 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)
[21:33:40]      + Decomb (mode=39)
[21:33:40]      + Framerate Shaper (mode=2:rate=27000000/900000)
[21:33:40]        + frame rate: 23.976 fps -> peak rate limited to 30.000 fps
[21:33:40]    + Output geometry
[21:33:40]      + storage dimensions: 640 x 480
[21:33:40]      + pixel aspect ratio: 4 : 3
[21:33:40]      + display dimensions: 853 x 480
[21:33:40]    + encoder: H.264 (libx264)
[21:33:40]      + preset:  veryfast
[21:33:40]      + profile: main
[21:33:40]      + level:   3.1
[21:33:40]      + quality: 22.00 (RF)
[21:33:40]      + color profile: 6-1-6
[21:33:40]  * audio track 1
[21:33:40]    + decoder: Unknown (AC3) (5.1 ch) (384 kbps) (track 1, id 0x1)
[21:33:40]      + bitrate: 384 kbps, samplerate: 48000 Hz
[21:33:40]    + mixdown: Stereo
[21:33:40]    + dither: none
[21:33:40]    + encoder: AAC (libavcodec)
[21:33:40]      + bitrate: 160 kbps, samplerate: 48000 Hz
[21:33:40] sync: expecting 30674 video frames
[21:33:40] encx264: min-keyint: 24, keyint: 240
[21:33:40] encx264: encoding at constant RF 22.000000
[21:33:40] encx264: unparsed options: level=3.1:ref=1:8x8dct=0:weightp=1:subme=2:mixed-refs=0:trellis=0:vbv-bufsize=14000:vbv-maxrate=14000:rc-lookahead=10
x264 [info]: using SAR=4/3
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
[21:33:40] sync: first pts video is 0
[21:33:40] sync: "Chapter 1" (1) at frame 1 time 0
[21:33:40] sync: first pts audio 0x1 is 0
[21:37:33] reader: done. 1 scr changes
[21:37:34] work: average encoding speed for job is 130.943100 fps
[21:37:34] comb detect: heavy 137 | light 1341 | uncombed 29197 | total 30675
[21:37:34] decomb: deinterlaced 137 | blended 1341 | unfiltered 29197 | total 30675
[21:37:34] vfr: 30675 frames output, 0 dropped and 0 duped for CFR/PFR
[21:37:34] vfr: lost time: 0 (0 frames)
[21:37:34] vfr: gained time: 0 (0 frames) (0 not accounted for)
[21:37:34] ac3-decoder done: 39981 frames, 0 decoder errors
[21:37:34] h264-decoder done: 30675 frames, 0 decoder errors
[21:37:34] sync: got 30675 frames, 30674 expected
[21:37:34] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
x264 [info]: frame I:540   Avg QP:18.03  size: 23066
x264 [info]: frame P:11255 Avg QP:21.36  size:  3990
x264 [info]: frame B:18880 Avg QP:24.06  size:   840
x264 [info]: consecutive B-frames:  3.1% 43.8%  2.3% 50.8%
x264 [info]: mb I  I16..4: 23.5%  0.0% 76.5%
x264 [info]: mb P  I16..4:  8.1%  0.0%  4.5%  P16..4: 29.3% 13.9%  7.3%  0.0%  0.0%    skip:37.0%
x264 [info]: mb B  I16..4:  0.8%  0.0%  0.3%  B16..8: 12.4%  4.0%  0.4%  direct: 2.5%  skip:79.5%  L0:37.2% L1:44.6% BI:18.2%
x264 [info]: coded y,uvDC,uvAC intra: 43.9% 57.5% 19.6% inter: 4.7% 5.8% 0.2%
x264 [info]: i16 v,h,dc,p: 55% 21% 15%  9%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 18% 14%  5%  6%  7%  4%  6%  4%
x264 [info]: i8c dc,h,v,p: 46% 16% 33%  5%
x264 [info]: Weighted P-Frames: Y:0.6% UV:0.4%
x264 [info]: kb/s:457.82
[21:37:34] mux: track 0, 30675 frames, 73197671 bytes, 457.70 kbps, fifo 4096
[21:37:34] mux: track 1, 59972 frames, 25680302 bytes, 160.58 kbps, fifo 8192
[21:37:35] Finished work at: Fri Mar 13 21:37:35 2020
[21:37:35] libhb: work result = 0

# Encode Completed ...

User avatar
Rodeo
HandBrake Team
Posts: 12569
Joined: Tue Mar 03, 2009 8:55 pm

Re: CPU upgrade results fraction of performance

Post by Rodeo »

Are you sure you were using the decomb filter on your old machine?
rollin_eng
Veteran User
Posts: 3515
Joined: Wed May 04, 2011 11:06 pm

Re: CPU upgrade results fraction of performance

Post by rollin_eng »

Can you post a log from an encode using the 1700?
Amazonian_Hotdog
Posts: 2
Joined: Sat Mar 14, 2020 2:15 am

Re: CPU upgrade results fraction of performance

Post by Amazonian_Hotdog »

I will have to check it when I head in to my office next week to physically swap it. If I swap it back in, I may just leave it since the 2700 takes 3-5x longer for the same jobs

This was literally just a drop in replacement. Same copy of Windows, same everything else. I use only presets, and usually the "Very Fast" 480p and 720p presets with nothing else. With the 1700 I would see the CPU pegged but the 2700 has it hitting about 18% of the CPU and barely any FPS by comparison.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5583
Joined: Sat Feb 09, 2008 7:21 pm

Re: CPU upgrade results fraction of performance

Post by JohnAStebbins »

The HandBrake GUI saves encode logs to disk. If you haven't deleted them, you won't have to swap the cpu back just to check older logs.

https://handbrake.fr/docs/en/latest/hel ... y-log.html search for "Where to find the logs"
User avatar
JohnAStebbins
HandBrake Team
Posts: 5583
Joined: Sat Feb 09, 2008 7:21 pm

Re: CPU upgrade results fraction of performance

Post by JohnAStebbins »

Oh, and double check your CPU temperature. It could be thermal throttling. Make sure there is a fine coat of thermal paste between the cpu and heat sink and that the heat sink is well seated.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5583
Joined: Sat Feb 09, 2008 7:21 pm

Re: CPU upgrade results fraction of performance

Post by JohnAStebbins »

... and that the fans are all functioning.
rollin_eng
Veteran User
Posts: 3515
Joined: Wed May 04, 2011 11:06 pm

Re: CPU upgrade results fraction of performance

Post by rollin_eng »

...and a partridge in a pear tree :)
Post Reply