Particularly slow enode

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
ckronengold
Posts: 47
Joined: Tue Jan 08, 2013 8:31 am

Particularly slow enode

Post by ckronengold » Mon Apr 30, 2018 12:53 pm

Description of problem or question:
I recently switched to encoding with a "slow" setting that has been taking about 5 hours for a movie. I'm not in a particular rush, and any benefit in quality is worth the compromise. But I'm currently running an encode that is set to take 10 hours and I can't figure out why. Its not an action movie and its not film-based, so grain shouldn't be an issue.

Curious if its just this particular title or if there's something that I may have missed or accidentally changed that would cause a 10 hour encode.

HandBrake version 1.0.7 (2017040900) 64 bit:

Windows 10 Creators Update 10.0.16299:

Queue is showing Pass 2 of 2. 57%. FPS 005.5, Avg FPS 005.5, Time Remaining 05:05:35, Elapsed 0:05:38:10

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

Code: Select all

HandBrake 1.0.7 (2017040900) - 64bit
OS: Microsoft Windows NT 10.0.16299.0 - 64bit
CPU: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
Ram: 16214 MB, 
GPU Information:
  Intel(R) HD Graphics 4000 - 10.18.10.4252
Screen: 1360x768
Temp Dir: C:\Users\ckron\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\ckron\AppData\Roaming\HandBrake Team\HandBrake\1.0.7.0

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


# Starting Encode ...

[03:15:31] hb_init: starting libhb thread
[03:15:31] 1 job(s) to process
[03:15:31] json job:
{
  "Audio": {
    "AudioList": [
      {
        "DRC": 0.0,
        "Encoder": 1074003968,
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      },
      {
        "Bitrate": 320,
        "DRC": 0.0,
        "Encoder": 65536,
        "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"
      }
    ],
    "ChapterMarkers": true,
    "File": "H:\\Phantom Thread (2017 - (RF20dtsma).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": "22",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "22",
          "height": "1036",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 20
    },
    "Title": 1,
    "Path": "E:\\Phantom_Thread_t02.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": 65536,
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "slow",
    "Profile": "auto",
    "Quality": 20.0,
    "OpenCL": false,
    "HWDecode": false,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[03:15:31] CPU: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
[03:15:31]  - Intel microarchitecture Ivy Bridge
[03:15:31]  - logical processor count: 4
[03:15:31] Intel Quick Sync Video support: yes
[03:15:31]  - Intel Media SDK hardware: API 1.11 (minimum: 1.3)
[03:15:31]  - H.264 encoder: yes
[03:15:31]     - preferred implementation: hardware (any)
[03:15:31]     - capabilities (hardware):  vsinfo opt1 opt2+extbrc+ib_adapt+nmpslice
[03:15:31]  - H.265 encoder: no
[03:15:31] hb_scan: path=E:\Phantom_Thread_t02.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image E:\Phantom_Thread_t02.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
[03:15:31] 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
[03:15:31] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'E:\Phantom_Thread_t02.mkv':
  Metadata:
    title           : Phantom Thread
  Duration: 02:10:07.29, start: 0.000000, bitrate: N/A
    Chapter #0:0: start 0.000000, end 345.636958
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 345.636958, end 665.665000
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 665.665000, end 952.159542
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 952.159542, end 1440.355583
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 1440.355583, end 1862.443917
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 1862.443917, end 2157.613792
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 2157.613792, end 2389.804083
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 2389.804083, end 2664.328333
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 2664.328333, end 2865.654458
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 2865.654458, end 3390.678958
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 3390.678958, end 3734.647583
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 3734.647583, end 4249.954042
    Metadata:
      title           : Chapter 12
    Chapter #0:12: start 4249.954042, end 4855.392208
    Metadata:
      title           : Chapter 13
    Chapter #0:13: start 4855.392208, end 5132.669208
    Metadata:
      title           : Chapter 14
    Chapter #0:14: start 5132.669208, end 5683.803125
    Metadata:
      title           : Chapter 15
    Chapter #0:15: start 5683.803125, end 5840.876708
    Metadata:
      title           : Chapter 16
    Chapter #0:16: start 5840.876708, end 6124.034583
    Metadata:
      title           : Chapter 17
    Chapter #0:17: start 6124.034583, end 6496.031208
    Metadata:
      title           : Chapter 18
    Chapter #0:18: start 6496.031208, end 7174.750917
    Metadata:
      title           : Chapter 19
    Chapter #0:19: start 7174.750917, end 7807.299500
    Metadata:
      title           : Chapter 20
    Stream #0:0(eng): Video: h264 (High)
      yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], PAR 1:1 DAR 16:9
      23.98 fps, 1k tbn
    Metadata:
      BPS-eng         : 33050860
      DURATION-eng    : 02:10:07.299500000
      NUMBER_OF_FRAMES-eng: 187188
      NUMBER_OF_BYTES-eng: 32254743538
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.12.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-04-29 17:50:34
      _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           : Surround 7.1
      BPS-eng         : 6228479
      DURATION-eng    : 02:10:07.306666666
      NUMBER_OF_FRAMES-eng: 731935
      NUMBER_OF_BYTES-eng: 6078455768
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.12.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-04-29 17:50:34
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 28767
      DURATION-eng    : 02:02:48.798937500
      NUMBER_OF_FRAMES-eng: 2553
      NUMBER_OF_BYTES-eng: 26497669
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.12.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-04-29 17:50:34
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[03:15:31] scan: decoding previews for title 1
[03:15:31] scan: audio 0x1: dca, rate=48000Hz, bitrate=1536000 English (DTS-HD MA) (5.1 ch)
[03:15:33] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 22/22/0/0, aspect 16:9, PAR 1:1
[03:15:33] scan: supported video decoders: avcodec qsv
[03:15:33] libhb: scan thread found 1 valid title(s)
[03:15:33] starting job
[03:15:33] decomb filter thread started for segment 0
[03:15:33] decomb filter thread started for segment 1
[03:15:33] decomb filter thread started for segment 2
[03:15:33] decomb filter thread started for segment 3
[03:15:33] decomb check thread started for segment 0
[03:15:33] decomb check thread started for segment 1
[03:15:33] decomb check thread started for segment 2
[03:15:33] decomb check thread started for segment 3
[03:15:33] mask filter thread started for segment 0
[03:15:33] mask filter thread started for segment 1
[03:15:33] mask filter thread started for segment 2
[03:15:33] mask filter thread started for segment 3
[03:15:33] mask erode thread started for segment 0
[03:15:33] mask erode thread started for segment 1
[03:15:33] mask erode thread started for segment 2
[03:15:33] mask erode thread started for segment 3
[03:15:33] mask dilate thread started for segment 0
[03:15:33] mask dilate thread started for segment 1
[03:15:33] mask dilate thread started for segment 2
[03:15:33] mask dilate thread started for segment 3
[03:15:33] yadif thread started for segment 0
[03:15:33] yadif thread started for segment 1
[03:15:33] yadif thread started for segment 2
[03:15:33] yadif thread started for segment 3
[03:15:33] job configuration:
[03:15:33]  * source
[03:15:33]    + E:\Phantom_Thread_t02.mkv
[03:15:33]    + title 1, chapter(s) 1 to 20
[03:15:33]    + container: matroska,webm
[03:15:33]  * destination
[03:15:33]    + H:\Phantom Thread (2017 - (RF20dtsma).mkv
[03:15:33]    + container: Matroska (libavformat)
[03:15:33]      + chapter markers
[03:15:33]  * video track
[03:15:33]    + decoder: h264
[03:15:33]    + filters
[03:15:33]      + 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)
[03:15:33]      + Decomb (mode=39)
[03:15:33]      + Framerate Shaper (mode=1)
[03:15:33]        + frame rate: 23.976 fps -> constant 23.976 fps
[03:15:33]      + Crop and Scale (width=1920:height=1036:crop-top=22:crop-bottom=22:crop-left=0:crop-right=0)
[03:15:33]        + source: 1920 * 1080, crop (22/22/0/0): 1920 * 1036, scale: 1920 * 1036
[03:15:33]    + Output geometry
[03:15:33]      + storage dimensions: 1920 x 1036
[03:15:33]      + pixel aspect ratio: 1 : 1
[03:15:33]      + display dimensions: 1920 x 1036
[03:15:33]  * Foreign Audio Search: Render/Burn-in, Forced Only
[03:15:33]    + subtitle, English (track 2, id 0x2) Picture [PGS]
[03:15:33] sync: expecting 187188 video frames
[03:17:01] reader: done. 1 scr changes
[03:17:01] work: average encoding speed for job is 0.000000 fps
[03:17:01] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[03:17:01] decomb: deinterlaced 0 | blended 0 | unfiltered 0 | total 0
[03:17:01] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[03:17:01] vfr: lost time: 0 (0 frames)
[03:17:01] vfr: gained time: 0 (0 frames) (0 not accounted for)
[03:17:01] h264-decoder done: 0 frames, 0 decoder errors
[03:17:01] sync: got 0 frames, 187188 expected
[03:17:01] Subtitle track 2 (id 0x2) 'English': 1277 hits (0 forced)
[03:17:01] No candidate detected during subtitle scan
[03:17:01] starting job
[03:17:01] decomb filter thread started for segment 0
[03:17:01] decomb filter thread started for segment 1
[03:17:01] decomb filter thread started for segment 2
[03:17:01] decomb filter thread started for segment 3
[03:17:01] decomb check thread started for segment 0
[03:17:01] decomb check thread started for segment 1
[03:17:01] decomb check thread started for segment 2
[03:17:01] decomb check thread started for segment 3
[03:17:01] mask filter thread started for segment 0
[03:17:01] mask filter thread started for segment 1
[03:17:01] mask filter thread started for segment 2
[03:17:01] mask filter thread started for segment 3
[03:17:01] mask erode thread started for segment 0
[03:17:01] mask erode thread started for segment 1
[03:17:01] mask erode thread started for segment 2
[03:17:01] mask erode thread started for segment 3
[03:17:01] mask dilate thread started for segment 0
[03:17:01] mask dilate thread started for segment 1
[03:17:01] mask dilate thread started for segment 2
[03:17:01] mask dilate thread started for segment 3
[03:17:01] yadif thread started for segment 0
[03:17:01] yadif thread started for segment 1
[03:17:01] yadif thread started for segment 2
[03:17:01] yadif thread started for segment 3
[03:17:01] work: track 2, dithering not supported by codec
[03:17:01] job configuration:
[03:17:01]  * source
[03:17:01]    + E:\Phantom_Thread_t02.mkv
[03:17:01]    + title 1, chapter(s) 1 to 20
[03:17:01]    + container: matroska,webm
[03:17:01]  * destination
[03:17:01]    + H:\Phantom Thread (2017 - (RF20dtsma).mkv
[03:17:01]    + container: Matroska (libavformat)
[03:17:01]      + chapter markers
[03:17:01]  * video track
[03:17:01]    + decoder: h264
[03:17:01]    + filters
[03:17:01]      + 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)
[03:17:01]      + Decomb (mode=39)
[03:17:01]      + Framerate Shaper (mode=1)
[03:17:01]        + frame rate: 23.976 fps -> constant 23.976 fps
[03:17:01]      + Crop and Scale (width=1920:height=1036:crop-top=22:crop-bottom=22:crop-left=0:crop-right=0)
[03:17:01]        + source: 1920 * 1080, crop (22/22/0/0): 1920 * 1036, scale: 1920 * 1036
[03:17:01]    + Output geometry
[03:17:01]      + storage dimensions: 1920 x 1036
[03:17:01]      + pixel aspect ratio: 1 : 1
[03:17:01]      + display dimensions: 1920 x 1036
[03:17:01]    + encoder: H.264 (libx264)
[03:17:01]      + preset:  slow
[03:17:01]      + profile: auto
[03:17:01]      + level:   auto
[03:17:01]      + quality: 20.00 (RF)
[03:17:01]  * audio track 1
[03:17:01]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[03:17:01]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[03:17:01]    + DTS-HD Passthru
[03:17:01]  * audio track 2
[03:17:01]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[03:17:01]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[03:17:01]    + mixdown: Dolby Pro Logic II
[03:17:01]    + encoder: AAC (libavcodec)
[03:17:01]      + bitrate: 320 kbps, samplerate: 48000 Hz
[03:17:01] sync: expecting 187188 video frames
[03:17:01] encx264: min-keyint: 24, keyint: 240
[03:17:01] encx264: encoding at constant RF 20.000000
[03:17:01] encx264: unparsed options: direct=auto:ref=5:subme=8:b-adapt=2:me=umh:rc-lookahead=50
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile High, level 5.0
[03:17:01] sync: first pts video is 0
[03:17:01] sync: "Chapter 1" (1) at frame 1 time 0
[03:17:01] sync: first pts audio 0x1 is 0
[03:17:01] sync: first pts audio 0x1 is 0
[03:39:57] sync: "Chapter 2" (2) at frame 8288 time 31107326
[04:03:13] sync: "Chapter 3" (3) at frame 15961 time 59909850
[04:25:34] sync: "Chapter 4" (4) at frame 22830 time 85694358
[04:56:44] sync: "Chapter 5" (5) at frame 34535 time 129632002
[05:30:48] sync: "Chapter 6" (6) at frame 44655 time 167619952
[05:52:50] sync: "Chapter 7" (7) at frame 51732 time 194185241
[06:09:57] sync: "Chapter 8" (8) at frame 57302 time 215093628
[06:32:08] sync: "Chapter 9" (9) at frame 63884 time 239800811
[06:44:17] sync: "Chapter 10" (10) at frame 68711 time 257920162
[07:24:15] sync: "Chapter 11" (11) at frame 81296 time 305161106
[07:47:23] sync: "Chapter 12" (12) at frame 89543 time 336118282
[08:28:30] sync: "Chapter 13" (13) at frame 101901 time 382507125

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

Re: Particularly slow enode

Post by Rodeo » Mon Apr 30, 2018 1:32 pm

A 2:1 encode speed ratio using the same settings isn't that unexpected, my guess is the source file is particularly grainy (and widescreen instead of the typical "ultra-wide" cinema format, so there's about 30% more pixels to encode than for most movies).

ckronengold
Posts: 47
Joined: Tue Jan 08, 2013 8:31 am

Re: Particularly slow enode

Post by ckronengold » Mon Apr 30, 2018 1:46 pm

The 5 hours wasn't surprising. But out of nowhere, this particular title jumped to 10.
I didn't think the film looked particularly grainy when I first looked at it, but I guess I was wrong.

http://www.indiewire.com/2017/12/phanto ... 201910595/
"How will the film's grainy 35mm images look blown up to a much larger format? Paul Thomas Anderson's experiment with film projection continues apace."

Post Reply