Encode size differs based on CPU used

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
whistlerz
Posts: 19
Joined: Sun Apr 17, 2016 10:15 pm

Encode size differs based on CPU used

Post by whistlerz »

Handbrake version: HandBrake Nightly 20170326111905-9fe38b5-master (2017032701) - 64bit
(I know this is a little out of date, but nightly downloads are currently down, and I need nightly builds for FDK on Windows, as well as 10-bit h265)

I normally encode on my desktop, currently running Windows 10 1703 on an Intel Core i7-6700K (4 cores, Skylake). I have a server sitting mostly idle running Windows Server 2016 on 2 x Intel Xeon E5-2620 (12 total cores, Broadwell). So I figured I'd see if the server actually got encodes done faster, since while the cores are potentially slower individually, there are more of them available. That definitely seemed to be the case, as the server encode completed in 54 minutes compared to 93 minutes on the desktop.

However, the surprising result was that the resulting files were not the same size, despite using the same presets (copied directly between machines), same settings, no QSV, and (according to the logs at least) the same CPU features available. Desktop size: 9.86 GB, server size: 9.72 GB. That size difference may just be a curiousity, and probably is not visible in the visual quality itself, but I was wondering if anyone coud explain why they differ at all?

Desktop encode log:

Code: Select all

HandBrake Nightly 20170326111905-9fe38b5-master (2017032701) - 64bit
OS: Microsoft Windows NT 10.0.15063.0 - 64bit
CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
Ram: 32711 MB, 
GPU Information:
  NVIDIA GeForce GTX 1070 - 22.21.13.8233
Screen: 1920x1200
Temp Dir: C:\Users\whistlerz\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake Nightly
Data Dir: C:\Users\whistlerz\AppData\Roaming\HandBrake Team\HandBrake\1.0.3.0

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


# Starting Encode ...

[11:03:28] hb_init: starting libhb thread
[11:03:28] 1 job(s) to process
[11:03:28] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": 4194304,
        "Gain": 0.0,
        "Mixdown": 6,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      1073807360,
      1073743872,
      1074003968,
      1073750016,
      1090519040,
      1074790400,
      1074266112,
      1107296256
    ],
    "FallbackEncoder": 2048
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      },
      {
        "Name": "Chapter 2"
      },
      {
        "Name": "Chapter 3"
      },
      {
        "Name": "Chapter 4"
      },
      {
        "Name": "Chapter 5"
      },
      {
        "Name": "Chapter 6"
      },
      {
        "Name": "Chapter 7"
      },
      {
        "Name": "Chapter 8"
      },
      {
        "Name": "Chapter 9"
      },
      {
        "Name": "Chapter 10"
      },
      {
        "Name": "Chapter 11"
      },
      {
        "Name": "Chapter 12"
      },
      {
        "Name": "Chapter 13"
      },
      {
        "Name": "Chapter 14"
      },
      {
        "Name": "Chapter 15"
      },
      {
        "Name": "Chapter 16"
      },
      {
        "Name": "Chapter 17"
      },
      {
        "Name": "Chapter 18"
      },
      {
        "Name": "Chapter 19"
      },
      {
        "Name": "Chapter 20"
      },
      {
        "Name": "Chapter 21"
      },
      {
        "Name": "Chapter 22"
      },
      {
        "Name": "Chapter 23"
      },
      {
        "Name": "Chapter 24"
      },
      {
        "Name": "Chapter 25"
      },
      {
        "Name": "Chapter 26"
      },
      {
        "Name": "Chapter 27"
      },
      {
        "Name": "Chapter 28"
      }
    ],
    "ChapterMarkers": true,
    "File": "D:\\RipTEMP\\--Encoded--\\MOVIE - 1080p.m4v",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": true
    },
    "Mux": 131072
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "24",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "16",
          "height": "1040",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "0"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 28
    },
    "Title": 1,
    "Path": "D:\\RipTEMP\\MOVIE.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": 65536,
    "Level": "4.0",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "medium",
    "Profile": "high",
    "Quality": 22.0,
    "Tune": "film",
    "OpenCL": false,
    "HWDecode": false,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[11:03:28] CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
[11:03:28]  - Intel microarchitecture Skylake
[11:03:28]  - logical processor count: 8
[11:03:28] Intel Quick Sync Video support: no
[11:03:28] hb_scan: path=D:\RipTEMP\MOVIE.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image D:\RipTEMP\MOVIE.mkv
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
[11:03:28] 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
[11:03:28] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'D:\RipTEMP\MOVIE.mkv':
  Metadata:
    title           : The Princess Bride
  Duration: 01:38:21.93, start: 0.000000, bitrate: N/A
    Chapter #0:0: start 0.000000, end 133.133000
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 133.133000, end 341.007333
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 341.007333, end 443.025917
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 443.025917, end 599.390458
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 599.390458, end 803.052250
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 803.052250, end 1146.186708
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 1146.186708, end 1503.710542
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 1503.710542, end 1767.599167
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 1767.599167, end 2094.759333
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 2094.759333, end 2430.302875
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 2430.302875, end 2729.268208
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 2729.268208, end 2887.843292
    Metadata:
      title           : Chapter 12
    Chapter #0:12: start 2887.843292, end 3026.148125
    Metadata:
      title           : Chapter 13
    Chapter #0:13: start 3026.148125, end 3127.791333
    Metadata:
      title           : Chapter 14
    Chapter #0:14: start 3127.791333, end 3284.364417
    Metadata:
      title           : Chapter 15
    Chapter #0:15: start 3284.364417, end 3443.815375
    Metadata:
      title           : Chapter 16
    Chapter #0:16: start 3443.815375, end 3630.627000
    Metadata:
      title           : Chapter 17
    Chapter #0:17: start 3630.627000, end 3823.194375
    Metadata:
      title           : Chapter 18
    Chapter #0:18: start 3823.194375, end 4018.764750
    Metadata:
      title           : Chapter 19
    Chapter #0:19: start 4018.764750, end 4205.534667
    Metadata:
      title           : Chapter 20
    Chapter #0:20: start 4205.534667, end 4471.049917
    Metadata:
      title           : Chapter 21
    Chapter #0:21: start 4471.049917, end 4669.539875
    Metadata:
      title           : Chapter 22
    Chapter #0:22: start 4669.539875, end 4860.605750
    Metadata:
      title           : Chapter 23
    Chapter #0:23: start 4860.605750, end 5074.027292
    Metadata:
      title           : Chapter 24
    Chapter #0:24: start 5074.027292, end 5129.332542
    Metadata:
      title           : Chapter 25
    Chapter #0:25: start 5129.332542, end 5243.696792
    Metadata:
      title           : Chapter 26
    Chapter #0:26: start 5243.696792, end 5618.112500
    Metadata:
      title           : Chapter 27
    Chapter #0:27: start 5618.112500, end 5901.937708
    Metadata:
      title           : Chapter 28
    Stream #0:0(eng): Video: h264 (High)
      yuv420p, tv, bt709/bt709/bt709
      1920x1080 [PAR 1:1 DAR 16:9], PAR 1:1 DAR 16:9
      23.98 fps, 1k tbn
    Metadata:
      BPS-eng         : 37615033
      DURATION-eng    : 01:38:21.937708333
      NUMBER_OF_FRAMES-eng: 141505
      NUMBER_OF_BYTES-eng: 27750194475
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.6 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-06-04 15:47:05
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: dts (DTS-HD MA)
      48000 Hz, 5.1, fltp, 1536 kb/s (default)
    Metadata:
      title           : DTS-HD MA 5.1
      BPS-eng         : 3856332
      DURATION-eng    : 01:38:21.941333333
      NUMBER_OF_FRAMES-eng: 553307
      NUMBER_OF_BYTES-eng: 2844980968
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.6 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-06-04 15:47:05
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Subtitles
      BPS-eng         : 45617
      DURATION-eng    : 01:37:21.147812500
      NUMBER_OF_FRAMES-eng: 2906
      NUMBER_OF_BYTES-eng: 33307331
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.6 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-06-04 15:47:05
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[11:03:28] scan: decoding previews for title 1
[11:03:28] scan: audio 0x1: dca, rate=48000Hz, bitrate=1536000 English (DTS-HD MA) (5.1 ch)
[11:03:29] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 16/24/0/2, aspect 16:9, PAR 1:1
[11:03:29] scan: supported video decoders: avcodec qsv
[11:03:29] libhb: scan thread found 1 valid title(s)
[11:03:29] starting job
[11:03:29] job configuration:
[11:03:29]  * source
[11:03:29]    + D:\RipTEMP\MOVIE.mkv
[11:03:29]    + title 1, chapter(s) 1 to 28
[11:03:29]    + container: matroska,webm
[11:03:29]  * destination
[11:03:29]    + D:\RipTEMP\--Encoded--\MOVIE - 1080p.m4v
[11:03:29]    + container: MPEG-4 (libavformat)
[11:03:29]      + optimized for HTTP streaming (fast start)
[11:03:29]      + chapter markers
[11:03:29]  * video track
[11:03:29]    + decoder: h264
[11:03:29]    + filters
[11:03:29]      + Framerate Shaper (mode=0)
[11:03:29]        + frame rate: same as source (around 23.976 fps)
[11:03:29]      + Crop and Scale (width=1920:height=1040:crop-top=16:crop-bottom=24:crop-left=0:crop-right=0)
[11:03:29]        + source: 1920 * 1080, crop (16/24/0/0): 1920 * 1040, scale: 1920 * 1040
[11:03:29]    + Output geometry
[11:03:29]      + storage dimensions: 1920 x 1040
[11:03:29]      + pixel aspect ratio: 1 : 1
[11:03:29]      + display dimensions: 1920 x 1040
[11:03:29]    + encoder: H.264 (libx264)
[11:03:29]      + preset:  medium
[11:03:29]      + tune:    film
[11:03:29]      + profile: high
[11:03:29]      + level:   4.0
[11:03:29]      + quality: 22.00 (RF)
[11:03:29]  * audio track 1
[11:03:29]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[11:03:29]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[11:03:29]    + mixdown: Dolby Pro Logic II
[11:03:29]    + dither: none
[11:03:29]    + encoder: AAC (libfdk_aac)
[11:03:29]      + bitrate: 160 kbps, samplerate: 48000 Hz
[11:03:29] sync: expecting 141504 video frames
[11:03:29] encx264: min-keyint: 24, keyint: 240
[11:03:29] encx264: encoding at constant RF 22.000000
[11:03:29] encx264: unparsed options: vbv-bufsize=31250:level=4.0:psy-rd=1,0.15:deblock=-1,-1:vbv-maxrate=25000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
x264 [info]: profile High, level 4.0
[11:03:29] sync: first pts video is 0
[11:03:29] sync: "Chapter 1" (1) at frame 1 time 0
[11:03:29] sync: first pts audio 0x1 is 0
[11:05:19] sync: "Chapter 2" (2) at frame 3193 time 11981970
[11:06:04] hb_init: starting libhb thread
[11:06:17] hb_init: starting libhb thread
[11:06:23] hb_init: starting libhb thread
[11:06:29] hb_init: starting libhb thread
[11:06:42] hb_init: starting libhb thread
[11:08:36] sync: "Chapter 3" (3) at frame 8178 time 30694413
[11:10:05] sync: "Chapter 4" (4) at frame 10623 time 39872332
[11:12:25] sync: "Chapter 5" (5) at frame 14373 time 53948895
[11:15:54] sync: "Chapter 6" (6) at frame 19256 time 72278456
[11:21:06] sync: "Chapter 7" (7) at frame 27482 time 103156803
[11:27:04] sync: "Chapter 8" (8) at frame 36054 time 135333948
[11:30:56] sync: "Chapter 9" (9) at frame 42383 time 159091432
[11:35:21] sync: "Chapter 10" (10) at frame 50226 time 188532093
[11:40:34] sync: "Chapter 11" (11) at frame 58270 time 218727258
[11:45:11] sync: "Chapter 12" (12) at frame 65439 time 245637892
[11:48:03] sync: "Chapter 13" (13) at frame 69242 time 259913403
[11:50:15] sync: "Chapter 14" (14) at frame 72558 time 272360838
[11:51:58] sync: "Chapter 15" (15) at frame 74994 time 281504973
[11:54:15] sync: "Chapter 16" (16) at frame 78748 time 295596551
[11:56:52] sync: "Chapter 17" (17) at frame 82572 time 309950891
[11:59:52] sync: "Chapter 18" (18) at frame 87049 time 326756430
[12:03:11] sync: "Chapter 19" (19) at frame 91667 time 344091247
[12:06:31] sync: "Chapter 20" (20) at frame 96355 time 361688827
[12:09:41] sync: "Chapter 21" (21) at frame 100833 time 378498120
[12:14:36] sync: "Chapter 22" (22) at frame 107199 time 402394492
[12:17:39] sync: "Chapter 23" (23) at frame 111958 time 420258588
[12:21:17] sync: "Chapter 24" (24) at frame 116539 time 437454517
[12:25:09] sync: "Chapter 25" (25) at frame 121658 time 456669963
[12:26:05] sync: "Chapter 26" (26) at frame 122982 time 461639928
[12:28:07] sync: "Chapter 27" (27) at frame 125724 time 471932711
[12:34:40] sync: "Chapter 28" (28) at frame 134701 time 505630125
[12:37:13] reader: done. 1 scr changes
[12:37:14] work: average encoding speed for job is 25.154917 fps
[12:37:14] vfr: lost time: 0 (0 frames)
[12:37:14] vfr: gained time: 0 (0 frames) (0 not accounted for)
[12:37:14] dca-decoder done: 553307 frames, 0 decoder errors
[12:37:14] h264-decoder done: 141505 frames, 0 decoder errors
[12:37:14] sync: got 141505 frames, 141504 expected
[12:37:14] sync: framerate min 23.981 fps, max 23.981 fps, avg 23.976 fps
x264 [info]: frame I:1705  Avg QP:20.79  size:194677
x264 [info]: frame P:51040 Avg QP:23.76  size:104491
x264 [info]: frame B:88760 Avg QP:25.14  size: 54123
x264 [info]: consecutive B-frames: 16.0%  0.7%  1.1% 82.2%
x264 [info]: mb I  I16..4:  2.3% 96.0%  1.7%
x264 [info]: mb P  I16..4:  0.8% 42.6%  0.5%  P16..4: 33.0% 13.0%  6.7%  0.0%  0.0%    skip: 3.5%
x264 [info]: mb B  I16..4:  0.3% 12.6%  0.1%  B16..8: 38.1%  8.9%  2.2%  direct: 9.0%  skip:28.8%  L0:44.5% L1:39.8% BI:15.7%
x264 [info]: 8x8 transform intra:97.1% inter:70.3%
x264 [info]: coded y,uvDC,uvAC intra: 96.5% 86.9% 48.5% inter: 44.7% 42.0% 0.8%
x264 [info]: i16 v,h,dc,p: 11%  4% 63% 22%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11%  8% 39%  6%  7%  7%  6%  8%  8%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 13% 20%  7% 11% 10%  8%  7%  5%
x264 [info]: i8c dc,h,v,p: 62% 16% 19%  2%
x264 [info]: Weighted P-Frames: Y:4.0% UV:1.3%
x264 [info]: ref P L0: 38.4% 13.3% 34.6% 13.2%  0.4%
x264 [info]: ref B L0: 75.1% 20.0%  4.9%
x264 [info]: ref B L1: 92.6%  7.4%
x264 [info]: kb/s:14190.71
[12:39:12] mux: track 0, 141505 frames, 10469017027 bytes, 14190.52 kbps, fifo 2048
[12:39:12] mux: track 1, 276655 frames, 118039467 bytes, 160.00 kbps, fifo 4096
[12:39:12] libhb: work result = 0

# Encode Completed ...

Server encode log:

Code: Select all

HandBrake Nightly 20170326111905-9fe38b5-master (2017032701) - 64bit
OS: Microsoft Windows NT 10.0.14393.0 - 64bit
CPU: Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
Ram: 16160 MB, 
GPU Information:
  Microsoft Basic Display Adapter - 10.0.14393.0
Screen: 1718x993
Temp Dir: D:\ETemp\HandBrake Nightly\tmp\
Install Dir: D:\ETemp\HandBrake Nightly
Data Dir: C:\Users\whistlerz\AppData\Roaming\HandBrake Team\HandBrake\1.0.3.0

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


# Starting Encode ...

[09:00:48] hb_init: starting libhb thread
[09:00:48] 1 job(s) to process
[09:00:48] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": 4194304,
        "Gain": 0.0,
        "Mixdown": 6,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      1073807360,
      1073743872,
      1074003968,
      1073750016,
      1090519040,
      1074790400,
      1074266112,
      1107296256
    ],
    "FallbackEncoder": 2048
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      },
      {
        "Name": "Chapter 2"
      },
      {
        "Name": "Chapter 3"
      },
      {
        "Name": "Chapter 4"
      },
      {
        "Name": "Chapter 5"
      },
      {
        "Name": "Chapter 6"
      },
      {
        "Name": "Chapter 7"
      },
      {
        "Name": "Chapter 8"
      },
      {
        "Name": "Chapter 9"
      },
      {
        "Name": "Chapter 10"
      },
      {
        "Name": "Chapter 11"
      },
      {
        "Name": "Chapter 12"
      },
      {
        "Name": "Chapter 13"
      },
      {
        "Name": "Chapter 14"
      },
      {
        "Name": "Chapter 15"
      },
      {
        "Name": "Chapter 16"
      },
      {
        "Name": "Chapter 17"
      },
      {
        "Name": "Chapter 18"
      },
      {
        "Name": "Chapter 19"
      },
      {
        "Name": "Chapter 20"
      },
      {
        "Name": "Chapter 21"
      },
      {
        "Name": "Chapter 22"
      },
      {
        "Name": "Chapter 23"
      },
      {
        "Name": "Chapter 24"
      },
      {
        "Name": "Chapter 25"
      },
      {
        "Name": "Chapter 26"
      },
      {
        "Name": "Chapter 27"
      },
      {
        "Name": "Chapter 28"
      }
    ],
    "ChapterMarkers": true,
    "File": "D:\\ETemp\\--Encoded--\\MOVIE - 1080p.m4v",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": true
    },
    "Mux": 131072
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "24",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "16",
          "height": "1040",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "0"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 28
    },
    "Title": 1,
    "Path": "D:\\ETemp\\MOVIE.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": 65536,
    "Level": "4.0",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "medium",
    "Profile": "high",
    "Quality": 22.0,
    "Tune": "film",
    "OpenCL": false,
    "HWDecode": false,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[09:00:48] CPU: Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
[09:00:48]  - Intel microarchitecture Broadwell
[09:00:48]  - logical processor count: 32
[09:00:48] Intel Quick Sync Video support: no
[09:00:48] hb_scan: path=D:\ETemp\MOVIE.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image D:\ETemp\MOVIE.mkv
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
[09:00:48] 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
[09:00:48] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'D:\ETemp\MOVIE.mkv':
  Metadata:
    title           : The Princess Bride
  Duration: 01:38:21.93, start: 0.000000, bitrate: N/A
    Chapter #0:0: start 0.000000, end 133.133000
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 133.133000, end 341.007333
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 341.007333, end 443.025917
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 443.025917, end 599.390458
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 599.390458, end 803.052250
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 803.052250, end 1146.186708
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 1146.186708, end 1503.710542
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 1503.710542, end 1767.599167
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 1767.599167, end 2094.759333
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 2094.759333, end 2430.302875
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 2430.302875, end 2729.268208
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 2729.268208, end 2887.843292
    Metadata:
      title           : Chapter 12
    Chapter #0:12: start 2887.843292, end 3026.148125
    Metadata:
      title           : Chapter 13
    Chapter #0:13: start 3026.148125, end 3127.791333
    Metadata:
      title           : Chapter 14
    Chapter #0:14: start 3127.791333, end 3284.364417
    Metadata:
      title           : Chapter 15
    Chapter #0:15: start 3284.364417, end 3443.815375
    Metadata:
      title           : Chapter 16
    Chapter #0:16: start 3443.815375, end 3630.627000
    Metadata:
      title           : Chapter 17
    Chapter #0:17: start 3630.627000, end 3823.194375
    Metadata:
      title           : Chapter 18
    Chapter #0:18: start 3823.194375, end 4018.764750
    Metadata:
      title           : Chapter 19
    Chapter #0:19: start 4018.764750, end 4205.534667
    Metadata:
      title           : Chapter 20
    Chapter #0:20: start 4205.534667, end 4471.049917
    Metadata:
      title           : Chapter 21
    Chapter #0:21: start 4471.049917, end 4669.539875
    Metadata:
      title           : Chapter 22
    Chapter #0:22: start 4669.539875, end 4860.605750
    Metadata:
      title           : Chapter 23
    Chapter #0:23: start 4860.605750, end 5074.027292
    Metadata:
      title           : Chapter 24
    Chapter #0:24: start 5074.027292, end 5129.332542
    Metadata:
      title           : Chapter 25
    Chapter #0:25: start 5129.332542, end 5243.696792
    Metadata:
      title           : Chapter 26
    Chapter #0:26: start 5243.696792, end 5618.112500
    Metadata:
      title           : Chapter 27
    Chapter #0:27: start 5618.112500, end 5901.937708
    Metadata:
      title           : Chapter 28
    Stream #0:0(eng): Video: h264 (High)
      yuv420p, tv, bt709/bt709/bt709
      1920x1080 [PAR 1:1 DAR 16:9], PAR 1:1 DAR 16:9
      23.98 fps, 1k tbn
    Metadata:
      BPS-eng         : 37615033
      DURATION-eng    : 01:38:21.937708333
      NUMBER_OF_FRAMES-eng: 141505
      NUMBER_OF_BYTES-eng: 27750194475
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.6 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-06-04 15:47:05
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: dts (DTS-HD MA)
      48000 Hz, 5.1, fltp, 1536 kb/s (default)
    Metadata:
      title           : DTS-HD MA 5.1
      BPS-eng         : 3856332
      DURATION-eng    : 01:38:21.941333333
      NUMBER_OF_FRAMES-eng: 553307
      NUMBER_OF_BYTES-eng: 2844980968
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.6 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-06-04 15:47:05
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Subtitles
      BPS-eng         : 45617
      DURATION-eng    : 01:37:21.147812500
      NUMBER_OF_FRAMES-eng: 2906
      NUMBER_OF_BYTES-eng: 33307331
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.6 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-06-04 15:47:05
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[09:00:48] scan: decoding previews for title 1
[09:00:48] scan: audio 0x1: dca, rate=48000Hz, bitrate=1536000 English (DTS-HD MA) (5.1 ch)
[09:00:50] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 16/24/0/2, aspect 16:9, PAR 1:1
[09:00:50] scan: supported video decoders: avcodec qsv
[09:00:50] libhb: scan thread found 1 valid title(s)
[09:00:50] starting job
[09:00:50] job configuration:
[09:00:50]  * source
[09:00:50]    + D:\ETemp\MOVIE.mkv
[09:00:50]    + title 1, chapter(s) 1 to 28
[09:00:50]    + container: matroska,webm
[09:00:50]  * destination
[09:00:50]    + D:\ETemp\--Encoded--\MOVIE - 1080p.m4v
[09:00:50]    + container: MPEG-4 (libavformat)
[09:00:50]      + optimized for HTTP streaming (fast start)
[09:00:50]      + chapter markers
[09:00:50]  * video track
[09:00:50]    + decoder: h264
[09:00:50]    + filters
[09:00:50]      + Framerate Shaper (mode=0)
[09:00:50]        + frame rate: same as source (around 23.976 fps)
[09:00:50]      + Crop and Scale (width=1920:height=1040:crop-top=16:crop-bottom=24:crop-left=0:crop-right=0)
[09:00:50]        + source: 1920 * 1080, crop (16/24/0/0): 1920 * 1040, scale: 1920 * 1040
[09:00:50]    + Output geometry
[09:00:50]      + storage dimensions: 1920 x 1040
[09:00:50]      + pixel aspect ratio: 1 : 1
[09:00:50]      + display dimensions: 1920 x 1040
[09:00:50]    + encoder: H.264 (libx264)
[09:00:50]      + preset:  medium
[09:00:50]      + tune:    film
[09:00:50]      + profile: high
[09:00:50]      + level:   4.0
[09:00:50]      + quality: 22.00 (RF)
[09:00:50]  * audio track 1
[09:00:50]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[09:00:50]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[09:00:50]    + mixdown: Dolby Pro Logic II
[09:00:50]    + dither: none
[09:00:50]    + encoder: AAC (libfdk_aac)
[09:00:50]      + bitrate: 160 kbps, samplerate: 48000 Hz
[09:00:50] sync: expecting 141504 video frames
[09:00:50] encx264: min-keyint: 24, keyint: 240
[09:00:50] encx264: encoding at constant RF 22.000000
[09:00:50] encx264: unparsed options: vbv-maxrate=25000:psy-rd=1,0.15:level=4.0:deblock=-1,-1:vbv-bufsize=31250
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
x264 [info]: profile High, level 4.0
[09:00:50] sync: first pts video is 0
[09:00:50] sync: "Chapter 1" (1) at frame 1 time 0
[09:00:50] sync: first pts audio 0x1 is 0
[09:01:48] sync: "Chapter 2" (2) at frame 3193 time 11981970
[09:03:38] sync: "Chapter 3" (3) at frame 8178 time 30694413
										 
										 
[09:03:52] hb_init: starting libhb thread
										 
															
[09:04:26] sync: "Chapter 4" (4) at frame 10623 time 39872332
[09:05:46] sync: "Chapter 5" (5) at frame 14373 time 53948895
[09:07:52] sync: "Chapter 6" (6) at frame 19256 time 72278456
[09:10:56] sync: "Chapter 7" (7) at frame 27482 time 103156803
[09:14:15] sync: "Chapter 8" (8) at frame 36054 time 135333948
[09:16:28] sync: "Chapter 9" (9) at frame 42383 time 159091432
[09:18:59] sync: "Chapter 10" (10) at frame 50226 time 188532093
[09:21:56] sync: "Chapter 11" (11) at frame 58270 time 218727258
[09:24:37] sync: "Chapter 12" (12) at frame 65439 time 245637892
[09:26:17] sync: "Chapter 13" (13) at frame 69242 time 259913403
[09:27:35] sync: "Chapter 14" (14) at frame 72558 time 272360838
[09:28:36] sync: "Chapter 15" (15) at frame 74994 time 281504973
[09:29:55] sync: "Chapter 16" (16) at frame 78748 time 295596551
[09:31:22] sync: "Chapter 17" (17) at frame 82572 time 309950891
[09:33:01] sync: "Chapter 18" (18) at frame 87049 time 326756430
[09:34:54] sync: "Chapter 19" (19) at frame 91667 time 344091247
[09:36:46] sync: "Chapter 20" (20) at frame 96355 time 361688827
[09:38:21] sync: "Chapter 21" (21) at frame 100833 time 378498120
[09:41:06] sync: "Chapter 22" (22) at frame 107199 time 402394492
[09:42:45] sync: "Chapter 23" (23) at frame 111958 time 420258588
[09:44:39] sync: "Chapter 24" (24) at frame 116539 time 437454517
[09:46:41] sync: "Chapter 25" (25) at frame 121658 time 456669963
[09:47:11] sync: "Chapter 26" (26) at frame 122982 time 461639928
[09:48:17] sync: "Chapter 27" (27) at frame 125724 time 471932711
[09:51:45] sync: "Chapter 28" (28) at frame 134701 time 505630125
[09:53:27] reader: done. 1 scr changes
[09:53:28] work: average encoding speed for job is 44.798218 fps
[09:53:29] vfr: lost time: 0 (0 frames)
[09:53:29] vfr: gained time: 0 (0 frames) (0 not accounted for)
[09:53:29] dca-decoder done: 553307 frames, 0 decoder errors
[09:53:29] h264-decoder done: 141505 frames, 0 decoder errors
[09:53:29] sync: got 141505 frames, 141504 expected
[09:53:29] sync: framerate min 23.981 fps, max 23.981 fps, avg 23.976 fps
x264 [info]: frame I:1708  Avg QP:20.81  size:194458
x264 [info]: frame P:51206 Avg QP:23.80  size:103729
x264 [info]: frame B:88591 Avg QP:25.22  size: 52712
x264 [info]: consecutive B-frames: 16.1%  0.8%  1.2% 81.9%
x264 [info]: mb I  I16..4:  2.2% 96.1%  1.7%
x264 [info]: mb P  I16..4:  0.8% 42.4%  0.5%  P16..4: 33.2% 12.9%  6.7%  0.0%  0.0%    skip: 3.5%
x264 [info]: mb B  I16..4:  0.3% 12.0%  0.1%  B16..8: 38.5%  8.9%  2.2%  direct: 8.9%  skip:29.2%  L0:44.7% L1:40.0% BI:15.3%
x264 [info]: 8x8 transform intra:97.1% inter:70.4%
x264 [info]: coded y,uvDC,uvAC intra: 96.3% 86.6% 47.7% inter: 44.3% 41.7% 0.8%
x264 [info]: i16 v,h,dc,p: 11%  4% 63% 22%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11%  8% 39%  6%  7%  8%  6%  8%  8%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 13% 19%  7% 11% 10%  8%  7%  5%
x264 [info]: i8c dc,h,v,p: 62% 16% 19%  2%
x264 [info]: Weighted P-Frames: Y:3.9% UV:1.3%
x264 [info]: ref P L0: 38.6% 13.5% 34.4% 13.0%  0.4%
x264 [info]: ref B L0: 75.0% 20.1%  4.9%
x264 [info]: ref B L1: 92.6%  7.4%
x264 [info]: kb/s:13979.82
[09:54:36] mux: track 0, 141505 frames, 10313438435 bytes, 13979.63 kbps, fifo 2048
[09:54:36] mux: track 1, 276655 frames, 118039467 bytes, 160.00 kbps, fifo 4096
[09:54:36] libhb: work result = 0

# Encode Completed ...

Last edited by whistlerz on Mon Jun 05, 2017 6:22 pm, edited 1 time in total.
User avatar
s55
HandBrake Team
Posts: 9971
Joined: Sun Dec 24, 2006 1:05 pm

Re: Encode size differs based on CPU used

Post by s55 »

It's not unexpected, When you further split up a video into additional segments, it does have an affect on the compression algorithms as they are working on smaller or larger segments.

You could try setting threads=8 on both and the number in theory, will converge.
whistlerz
Posts: 19
Joined: Sun Apr 17, 2016 10:15 pm

Re: Encode size differs based on CPU used

Post by whistlerz »

So, theoretically speaking, what would result in better quality? I'm assuming more segments, as decisions are made per segment/thread? And would there be any adverse effect to increasing threads greater than the number of hyperthreads available on the CPU? I'm assuming there's some point where more segments would result in more inefficient encodes.
User avatar
s55
HandBrake Team
Posts: 9971
Joined: Sun Dec 24, 2006 1:05 pm

Re: Encode size differs based on CPU used

Post by s55 »

You probably have slightly worse quality using more threads but it's probably not going to be perceivable.

scalability depends on a lot of factors, including source codec, resolution, settings / filters used for encoding etc. For most, you get diminishing returns after 8 cores, Sometimes less, sometimes more.
whistlerz
Posts: 19
Joined: Sun Apr 17, 2016 10:15 pm

Re: Encode size differs based on CPU used

Post by whistlerz »

Just out of curiosity, what would you do given high core counts? Set threads=8 and run multiple instances of Handbrake if needed (I'm actually not familiar with any drawbacks that may have)? Or don't sweat it and just let it use all the cores? Also, while horribly inefficient and probably not recommended, would threads=1 theoretically result in the best quality?

Thanks for the info, BTW. Much appreciated.
mduell
Veteran User
Posts: 7438
Joined: Sat Apr 21, 2007 8:54 pm

Re: Encode size differs based on CPU used

Post by mduell »

The difference is so small I'd run it across all the cores it can effectively use.
nhyone
Bright Spark User
Posts: 252
Joined: Fri Jul 24, 2015 4:13 am

Re: Encode size differs based on CPU used

Post by nhyone »

The issue is not really of quality -- there should be little to no difference -- but of size.

You can read this post of mine: viewtopic.php?f=9&t=36048#p169842

The more cores you use, the bigger the file. It is curious that it is the opposite in whistlerz's case.

IMO, the "optimal" for x264, in terms of file size and encoding time, is one lookahead thread and six encoding threads. But this just happens to fit my use-case, so I'm biased. :D
Ayoross
Posts: 48
Joined: Mon Jun 11, 2012 9:07 pm

Re: Encode size differs based on CPU used

Post by Ayoross »

Is it related to the way x264 uses parallelism ?

Is it the same with x265 codec ?
Post Reply