Widows 4K video will not complete encode to MKV

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
finch1000
Posts: 4
Joined: Tue Feb 05, 2019 6:47 pm

Widows 4K video will not complete encode to MKV

Post by finch1000 » Wed Feb 20, 2019 10:16 pm

Description of problem or question:
I have been trying to encode a rip from a 4K blu-ray for Widows (2018) to H.264 MKV 2160p60 for a couple of days. After an initial pass for foreign audio subtitles, a second pass to encode the video begins. Handbrake displays the following status:

Encoding: Pass 2 of 2, 00.00%, FPS: 000.0, Avg FPS: 000.0, Time Remaining: -01:01:01, Elapsed:...

The elapsed time continually counts up for hours and hours without end. Checking the new file, the size increases until it reaches 4.44 GB then stops growing. I have encoded many 4K videos before including a couple today and have not ran into this problem before.

Just for note, the video was ripped from the disc using MakeMKV.

HandBrake version (e.g., 1.0.0):
Nightly 20190219230735-a34220c-master (2019022001)

Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Windows 10 Pro Version 1809 (OS Build 17763.316)

HandBrake Activity Log ***required***

Code: Select all

HandBrake Nightly 20190219230735-a34220c-master (2019022001)
OS: Microsoft Windows NT 10.0.17763.0
CPU: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
Ram: 16243 MB, 
GPU Information:
  Intel(R) UHD Graphics 630 - 25.20.100.6373
Screen: 4096x2160
Temp Dir: C:\Users\Eric\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake Nightly
Data Dir: C:\Users\Eric\AppData\Roaming\HandBrake\Nightly

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


# Starting Encode ...

[16:25:28] hb_init: starting libhb thread
[16:25:28] 1 job(s) to process
[16:25:28] json job:
{
  "Audio": {
    "AudioList": [
      {
        "DRC": 0.0,
        "Encoder": "copy",
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      },
      {
        "DRC": 0.0,
        "Encoder": "copy",
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 1,
        "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"
      },
      {
        "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"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "N:\\Complete\\Widows (2018)\\Widows (2018).mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "mkv"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "278",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "278",
          "height": "1604",
          "width": "3840"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/450000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 24
    },
    "Title": 1,
    "Path": "N:\\Video\\Widows (2018)\\Widows (2018).mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x264",
    "Level": "5.2",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "medium",
    "Profile": "main",
    "Quality": 24.0,
    "Tune": "film",
    "QSV": {
      "Decode": true,
      "AsyncDepth": 0
    }
  }
}
[16:25:28] CPU: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
[16:25:28]  - Intel microarchitecture Kaby Lake
[16:25:28]  - logical processor count: 16
[16:25:28] Intel Quick Sync Video support: yes
[16:25:28]  - Intel Media SDK hardware: API 1.27 (minimum: 1.3)
[16:25:28]  - H.264 encoder: yes
[16:25:28]     - preferred implementation: hardware (any) via D3D11
[16:25:28]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[16:25:28]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[16:25:28]     - preferred implementation: hardware (any) via D3D11
[16:25:28]     - capabilities (hardware):  bpyramid icq vsinfo opt1
[16:25:28] hb_scan: path=N:\Video\Widows (2018)\Widows (2018).mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image N:\Video\Widows (2018)\Widows (2018).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:25:28] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
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:25:28] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'N:\Video\Widows (2018)\Widows (2018).mkv':
  Metadata:
    title           : Widows
    encoder         : libmakemkv v1.14.2 (1.3.5/1.4.7) win(x64-release)
    creation_time   : 2019-02-14T02:59:46.000000Z
  Duration: 02:09:34.06, start: 0.000000, bitrate: 52731 kb/s
    Chapter #0:0: start 0.000000, end 221.387833
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 221.387833, end 540.373167
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 540.373167, end 854.353500
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 854.353500, end 1302.676375
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 1302.676375, end 1694.150792
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 1694.150792, end 2167.081583
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 2167.081583, end 2461.750958
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 2461.750958, end 2758.672583
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 2758.672583, end 3198.069875
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 3198.069875, end 3491.070917
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 3491.070917, end 3831.327500
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 3831.327500, end 4196.775917
    Metadata:
      title           : Chapter 12
    Chapter #0:12: start 4196.775917, end 4373.786083
    Metadata:
      title           : Chapter 13
    Chapter #0:13: start 4373.786083, end 4641.762125
    Metadata:
      title           : Chapter 14
    Chapter #0:14: start 4641.762125, end 5179.549375
    Metadata:
      title           : Chapter 15
    Chapter #0:15: start 5179.549375, end 5609.312042
    Metadata:
      title           : Chapter 16
    Chapter #0:16: start 5609.312042, end 5753.164083
    Metadata:
      title           : Chapter 17
    Chapter #0:17: start 5753.164083, end 5950.486208
    Metadata:
      title           : Chapter 18
    Chapter #0:18: start 5950.486208, end 6139.758625
    Metadata:
      title           : Chapter 19
    Chapter #0:19: start 6139.758625, end 6372.407708
    Metadata:
      title           : Chapter 20
    Chapter #0:20: start 6372.407708, end 6794.078958
    Metadata:
      title           : Chapter 21
    Chapter #0:21: start 6794.078958, end 7098.674917
    Metadata:
      title           : Chapter 22
    Chapter #0:22: start 7098.674917, end 7428.504417
    Metadata:
      title           : Chapter 23
    Chapter #0:23: start 7428.504417, end 7774.057958
    Metadata:
      title           : Chapter 24
    Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc
    Metadata:
      BPS-eng         : 47816014
      DURATION-eng    : 02:09:34.057958333
      NUMBER_OF_FRAMES-eng: 186391
      NUMBER_OF_BYTES-eng: 46465552543
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-02-14 02:59:46
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: truehd, 48000 Hz, 7.1, s32 (24 bit) (default)
    Metadata:
      title           : Surround 7.1
      BPS-eng         : 4218234
      DURATION-eng    : 02:09:34.059166666
      NUMBER_OF_FRAMES-eng: 9328871
      NUMBER_OF_BYTES-eng: 4099100628
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-02-14 02:59:46
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 640000
      DURATION-eng    : 02:09:34.080000000
      NUMBER_OF_FRAMES-eng: 242940
      NUMBER_OF_BYTES-eng: 621926400
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-02-14 02:59:46
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 45640
      DURATION-eng    : 02:05:50.563854166
      NUMBER_OF_FRAMES-eng: 4212
      NUMBER_OF_BYTES-eng: 43076586
      SOURCE_ID-eng   : 0012A1
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-02-14 02:59:46
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 178
      DURATION-eng    : 00:47:22.777437500
      NUMBER_OF_FRAMES-eng: 20
      NUMBER_OF_BYTES-eng: 63383
      SOURCE_ID-eng   : 0012B2
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-02-14 02:59:46
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:5(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 178
      DURATION-eng    : 00:47:22.777437500
      NUMBER_OF_FRAMES-eng: 20
      NUMBER_OF_BYTES-eng: 63383
      SOURCE_ID-eng   : 0012B2
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-02-14 02:59:46
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[16:25:28] scan: decoding previews for title 1
[16:25:28] scan: audio 0x1: truehd, rate=48000Hz, bitrate=1 English (TrueHD) (7.1 ch) (0 kbps)
[16:25:28] scan: audio 0x2: ac3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch) (640 kbps)
[16:25:32] scan: 10 previews, 3840x2160, 23.976 fps, autocrop = 278/278/0/0, aspect 16:9, PAR 1:1
[16:25:32] scan: supported video decoders: avcodec qsv
[16:25:32] libhb: scan thread found 1 valid title(s)
[16:25:32] starting job
[16:25:32] job configuration:
[16:25:32]  * source
[16:25:32]    + N:\Video\Widows (2018)\Widows (2018).mkv
[16:25:32]    + title 1, chapter(s) 1 to 24
[16:25:32]    + container: matroska,webm
[16:25:32]    + data rate: 52731 kbps
[16:25:32]  * destination
[16:25:32]    + N:\Complete\Widows (2018)\Widows (2018).mkv
[16:25:32]    + container: Matroska (libavformat)
[16:25:32]      + chapter markers
[16:25:32]  * video track
[16:25:32]    + decoder: hevc_qsv
[16:25:32]    + filters
[16:25:32]      + Framerate Shaper (mode=2:rate=27000000/450000)
[16:25:32]        + frame rate: 23.976 fps -> peak rate limited to 60.000 fps
[16:25:32]      + Crop and Scale (width=3840:height=1604:crop-top=278:crop-bottom=278:crop-left=0:crop-right=0)
[16:25:32]        + source: 3840 * 2160, crop (278/278/0/0): 3840 * 1604, scale: 3840 * 1604
[16:25:32]    + Output geometry
[16:25:32]      + storage dimensions: 3840 x 1604
[16:25:32]      + pixel aspect ratio: 1 : 1
[16:25:32]      + display dimensions: 3840 x 1604
[16:25:32]  * Foreign Audio Search: Render/Burn-in, Forced Only
[16:25:32]    + subtitle, English [PGS] (track 0, id 0x3, Picture)
[16:25:32]    + subtitle, English [PGS] (track 1, id 0x4, Picture)
[16:25:32]    + subtitle, English [PGS] (track 2, id 0x5, Picture)
[16:25:32] sync: expecting 186390 video frames
[16:30:18] reader: done. 1 scr changes
[16:30:18] work: average encoding speed for job is 0.000000 fps
[16:30:18] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[16:30:18] vfr: lost time: 0 (0 frames)
[16:30:18] vfr: gained time: 0 (0 frames) (0 not accounted for)
[16:30:18] hevc_qsv-decoder done: 0 frames, 1 decoder errors
[16:30:18] sync: got 0 frames, 186390 expected
[16:30:18] Subtitle track 0 (id 0x3) 'English [PGS]': 2106 hits (0 forced)
[16:30:18] Subtitle track 1 (id 0x4) 'English [PGS]': 10 hits (10 forced)
[16:30:18] Subtitle track 2 (id 0x5) 'English [PGS]': 10 hits (10 forced)
[16:30:18] Found a subtitle candidate with id 0x4 (contains forced subs)
[16:30:18] starting job
[16:30:18] Auto Passthru: allowed codecs are AAC, AC3, E-AC3, TrueHD, DTS, DTS-HD, MP3, FLAC
[16:30:18] Auto Passthru: fallback is AC3
[16:30:18] Auto Passthru: using TrueHD Passthru for track 1
[16:30:18] Auto Passthru: using AC3 Passthru for track 2
[16:30:18] job configuration:
[16:30:18]  * source
[16:30:18]    + N:\Video\Widows (2018)\Widows (2018).mkv
[16:30:18]    + title 1, chapter(s) 1 to 24
[16:30:18]    + container: matroska,webm
[16:30:18]    + data rate: 52731 kbps
[16:30:18]  * destination
[16:30:18]    + N:\Complete\Widows (2018)\Widows (2018).mkv
[16:30:18]    + container: Matroska (libavformat)
[16:30:18]      + chapter markers
[16:30:18]  * video track
[16:30:18]    + decoder: hevc_qsv
[16:30:18]    + filters
[16:30:18]      + Framerate Shaper (mode=2:rate=27000000/450000)
[16:30:18]        + frame rate: 23.976 fps -> peak rate limited to 60.000 fps
[16:30:18]      + Subtitle renderer ()
[16:30:18]      + Crop and Scale (width=3840:height=1604:crop-top=278:crop-bottom=278:crop-left=0:crop-right=0)
[16:30:18]        + source: 3840 * 2160, crop (278/278/0/0): 3840 * 1604, scale: 3840 * 1604
[16:30:18]    + Output geometry
[16:30:18]      + storage dimensions: 3840 x 1604
[16:30:18]      + pixel aspect ratio: 1 : 1
[16:30:18]      + display dimensions: 3840 x 1604
[16:30:18]    + encoder: H.264 (libx264)
[16:30:18]      + preset:  medium
[16:30:18]      + tune:    film
[16:30:18]      + profile: main
[16:30:18]      + level:   5.2
[16:30:18]      + quality: 24.00 (RF)
[16:30:18]      + color profile: 9-16-9
[16:30:18]  * subtitle track 1, English [PGS] (track 1, id 0x4, Picture) -> Render/Burn-in, Forced Only
[16:30:18]  * audio track 1
[16:30:18]    + decoder: English (TrueHD) (7.1 ch) (0 kbps) (track 1, id 0x1)
[16:30:18]      + samplerate: 48000 Hz
[16:30:18]    + TrueHD Passthru
[16:30:18]  * audio track 2
[16:30:18]    + decoder: English (AC3) (5.1 ch) (640 kbps) (track 2, id 0x2)
[16:30:18]      + bitrate: 640 kbps, samplerate: 48000 Hz
[16:30:18]    + AC3 Passthru
[16:30:19] sync: expecting 186390 video frames
[16:30:19] encx264: min-keyint: 24, keyint: 240
[16:30:19] encx264: encoding at constant RF 24.000000
[16:30:19] encx264: unparsed options: level=5.2:deblock=-1,-1:8x8dct=0:psy-rd=1,0.15:vbv-bufsize=240000:vbv-maxrate=240000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 5.2, 4:2:0, 8-bit
[16:30:19] sync: first pts audio 0x1 is 0
[16:30:20] sync: first pts audio 0x2 is 0

[16:31:47] sync: first pts subtitle 0x4 is 62402310
[16:46:40] reader: done. 1 scr changes

User avatar
JohnAStebbins
HandBrake Team
Posts: 5442
Joined: Sat Feb 09, 2008 7:21 pm

Re: Widows 4K video will not complete encode to MKV

Post by JohnAStebbins » Wed Feb 20, 2019 11:00 pm

Try disabling the qsv decoder and use the software decoder instead. I believe the setting for this is in preferences.

finch1000
Posts: 4
Joined: Tue Feb 05, 2019 6:47 pm

Re: Widows 4K video will not complete encode to MKV

Post by finch1000 » Wed Feb 20, 2019 11:07 pm

JohnAStebbins wrote:
Wed Feb 20, 2019 11:00 pm
Try disabling the qsv decoder and use the software decoder instead. I believe the setting for this is in preferences.
Thank you, John. I will try that now. Update soon.

UPDATE: So far so good. The second pass started and at least the %, FPS and time remaining are populating with actual values. Will post a final update when/if the encode finishes.

UPPATE #2: Turning off hardware encode/decode worked. Thanks again!

Post Reply