M2TS to MKV conversion time?

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
mhconley
Posts: 3
Joined: Sun Feb 03, 2019 9:18 pm

M2TS to MKV conversion time?

Post by mhconley » Sun Feb 03, 2019 9:46 pm

Description of problem or question:
How long should it take to convert an m2ts file to an mkv file?

Steps to reproduce the problem (If Applicable):
Handbrake is reporting an average framerate of 1.9 fps and an estimated completion time of approximately 36 hours. This is on a Kaby lake Intel i7-8650U with 16GB of memory. The m2ts file is stored on a Samsung M.2 960 PRO SSD and the mkv is being written to the same SSD. I am using H.265 and keeping the original 23.976 frame rate, audio is DTS-HD passthrough and not saving any subtitles. Is this normal?

HandBrake version:
1.2.0

Operating system and version:
Windows 10 Pro version 1809

HandBrake Activity Log

Code: Select all

HandBrake 1.2.0 (2018121700)
OS: Microsoft Windows NT 10.0.17763.0
Ram: 16225 MB, 
GPU Information:
  Intel(R) UHD Graphics 620 - 25.20.100.6323
Screen: 2560x1440
Temp Dir: C:\Users\mkvan\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\mkvan\AppData\Roaming\HandBrake

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


# Starting Encode ...

[16:32:12] hb_init: starting libhb thread
[16:32:13] 1 job(s) to process
[16:32:13] json job:
{
  "Audio": {
    "AudioList": [
      {
        "DRC": 0.0,
        "Encoder": "copy:dtshd",
        "Gain": 0.0,
        "Mixdown": -1,
        "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": false,
    "File": "C:\\Video\\Interstellar\\Interstellar Handbrake.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "mkv"
  },
  "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": "280",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "280",
          "height": "1600",
          "width": "3840"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1",
          "rate": "27000000/1126125"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "C:\\Video\\Interstellar\\Interstellar.m2ts"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x265",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "strong-intra-smoothing=0:rect=0",
    "Preset": "slow",
    "Profile": "main",
    "Quality": 20.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[16:32:13] CPU: Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
[16:32:13]  - Intel microarchitecture Kaby Lake
[16:32:13]  - logical processor count: 8
[16:32:13] Intel Quick Sync Video support: yes
[16:32:13]  - Intel Media SDK hardware: API 1.27 (minimum: 1.3)
[16:32:13]  - H.264 encoder: yes
[16:32:13]     - preferred implementation: hardware (any) via D3D11
[16:32:13]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[16:32:13]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[16:32:13]     - preferred implementation: hardware (any) via D3D11
[16:32:13]     - capabilities (hardware):  bpyramid icq vsinfo opt1
[16:32:13] hb_scan: path=C:\Video\Interstellar\Interstellar.m2ts, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image C:\Video\Interstellar\Interstellar.m2ts
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:32:13] 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:32:13] dvd: not a dvd - trying as a stream/file instead
[16:32:13] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[16:32:57] hb_ts_stream_find_pids - end of file
Input #0, mpegts, from 'C:\Video\Interstellar\Interstellar.m2ts':
  Duration: 02:49:04.22, start: 4198.000000, bitrate: 60565 kb/s
  Program 1
    Stream #0:0[0x1011]: Video: hevc (Main 10) (HDMV / 0x564D4448), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc
    Stream #0:1[0x1100]: Audio: dts (DTS-HD MA) ([134][0][0][0] / 0x0086), 48000 Hz, 5.1(side), s32p (24 bit)
    Stream #0:2[0x1101]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 640 kb/s
    Stream #0:3[0x1102]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 640 kb/s
    Stream #0:4[0x1103]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 640 kb/s
    Stream #0:5[0x12a0]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
    Stream #0:6[0x12a1]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
    Stream #0:7[0x12a2]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
    Stream #0:8[0x12a3]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
[16:32:57] scan: decoding previews for title 1
[16:32:57] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[16:33:41] hb_ts_stream_find_pids - end of file
[16:33:41] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 Unknown (DTS-HD MA) (5.1 ch)
[16:33:41] scan: audio 0x2: ac3, rate=48000Hz, bitrate=640000 Unknown (AC3) (5.1 ch)
[16:33:41] scan: audio 0x3: ac3, rate=48000Hz, bitrate=640000 Unknown (AC3) (5.1 ch)
[16:33:41] scan: audio 0x4: ac3, rate=48000Hz, bitrate=640000 Unknown (AC3) (5.1 ch)
[16:33:45] scan: 10 previews, 3840x2160, 23.976 fps, autocrop = 280/280/0/0, aspect 16:9, PAR 1:1
[16:33:45] scan: supported video decoders: avcodec qsv
[16:33:45] libhb: scan thread found 1 valid title(s)
[16:33:45] starting job
[16:33:45] decomb filter thread started for segment 0
[16:33:45] decomb filter thread started for segment 3
[16:33:45] decomb filter thread started for segment 1
[16:33:45] decomb filter thread started for segment 2
[16:33:45] decomb check thread started for segment 5
[16:33:45] decomb filter thread started for segment 6
[16:33:45] decomb filter thread started for segment 5
[16:33:45] decomb filter thread started for segment 7
[16:33:45] mask filter thread started for segment 6
[16:33:45] decomb check thread started for segment 2
[16:33:45] decomb check thread started for segment 1
[16:33:45] mask erode thread started for segment 4
[16:33:45] decomb check thread started for segment 4
[16:33:45] mask dilate thread started for segment 1
[16:33:45] decomb check thread started for segment 7
[16:33:45] decomb filter thread started for segment 4
[16:33:45] mask dilate thread started for segment 7
[16:33:45] mask filter thread started for segment 1
[16:33:45] mask filter thread started for segment 2
[16:33:45] mask filter thread started for segment 3
[16:33:45] mask filter thread started for segment 4
[16:33:45] mask filter thread started for segment 5
[16:33:45] decomb check thread started for segment 0
[16:33:45] mask filter thread started for segment 7
[16:33:45] mask erode thread started for segment 0
[16:33:45] mask erode thread started for segment 1
[16:33:45] mask erode thread started for segment 2
[16:33:45] mask erode thread started for segment 3
[16:33:45] mask erode thread started for segment 5
[16:33:45] decomb check thread started for segment 3
[16:33:45] mask erode thread started for segment 7
[16:33:45] work: only 1 chapter, disabling chapter markers
[16:33:45] job configuration:
[16:33:45]  * source
[16:33:45]    + C:\Video\Interstellar\Interstellar.m2ts
[16:33:45]    + title 1, chapter(s) 1 to 1
[16:33:45]    + container: mpegts
[16:33:45]    + data rate: 60565 kbps
[16:33:45]  * destination
[16:33:45] mask erode thread started for segment 6
[16:33:45]    + C:\Video\Interstellar\Interstellar Handbrake.mkv
[16:33:45]    + container: Matroska (libavformat)
[16:33:45]  * video track
[16:33:45]    + decoder: hevc
[16:33:45]    + filters
[16:33:45]      + 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)
[16:33:45]      + Decomb (mode=39)
[16:33:45]      + Framerate Shaper (mode=1:rate=27000000/1126125)
[16:33:45]        + frame rate: 23.976 fps -> constant 23.976 fps
[16:33:45] mask dilate thread started for segment 0
[16:33:45]      + Crop and Scale (width=3840:height=1600:crop-top=280:crop-bottom=280:crop-left=0:crop-right=0)
[16:33:45]        + source: 3840 * 2160, crop (280/280/0/0): 3840 * 1600, scale: 3840 * 1600
[16:33:45]    + Output geometry
[16:33:45]      + storage dimensions: 3840 x 1600
[16:33:45]      + pixel aspect ratio: 1 : 1
[16:33:45]      + display dimensions: 3840 x 1600
[16:33:45]    + encoder: H.265 (libx265)
[16:33:45]      + preset:  slow
[16:33:45]      + options: strong-intra-smoothing=0:rect=0
[16:33:45] decomb check thread started for segment 6
[16:33:45]      + profile: main
[16:33:45]      + quality: 20.00 (RF)
[16:33:45]      + color profile: 9-16-9
[16:33:45]  * audio track 1
[16:33:45]    + decoder: Unknown (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[16:33:45]      + samplerate: 48000 Hz
[16:33:45]    + DTS-HD Passthru
[16:33:45] mask dilate thread started for segment 2
[16:33:45] mask dilate thread started for segment 3
[16:33:45] mask dilate thread started for segment 4
[16:33:45] mask dilate thread started for segment 5
[16:33:45] mask dilate thread started for segment 6
[16:33:45] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[16:33:45] mask filter thread started for segment 0
[16:33:45] yadif thread started for segment 1
[16:33:45] yadif thread started for segment 0
[16:33:45] yadif thread started for segment 3
[16:33:45] yadif thread started for segment 4
[16:33:45] yadif thread started for segment 2
[16:33:45] yadif thread started for segment 5
[16:33:45] yadif thread started for segment 6
[16:33:45] yadif thread started for segment 7
[16:34:29] hb_ts_stream_find_pids - end of file
[16:34:29] sync: expecting 243218 video frames
x265 [info]: HEVC encoder version 2.9
x265 [info]: build info [Windows][GCC 7.1.0][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [info]: Main profile, Level-5 (Main tier)
x265 [info]: Thread pool created using 8 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 3 / wpp(25 rows)
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : star / 57 / 3 / 3
x265 [info]: Keyframe min / max / scenecut / bias: 24 / 240 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt        : 25 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 4 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 1 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-20.0 / 0.60
x265 [info]: tools: limit-modes rd=4 psy-rd=2.00 rdoq=2 psy-rdoq=1.00 rskip
x265 [info]: tools: signhide tmvp lslices=4 deblock sao
[16:34:30] sync: first pts video is 0
[16:34:30] sync: "Chapter 1" (1) at frame 1 time 0
[16:34:30] sync: first pts audio 0x1 is 0
Thanks,
Martin

User avatar
s55
HandBrake Team
Posts: 9416
Joined: Sun Dec 24, 2006 1:05 pm

Re: M2TS to MKV conversion time?

Post by s55 » Sun Feb 03, 2019 9:51 pm

For the settings your using, Yes.
[16:33:45] + 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)
[16:33:45] + Decomb (mode=39)
Probably want to turn off Interlace Detection and Deinterlace on the filters tab. Probably not needed for this source and may give a small boost in performance.

Ultimately, your using x265 with the slow preset. It's kinda in the name. (Might want to consider Medium or Fast) Might cut down the encode time without too much loss in efficiency.

Might also want to consider Quicksync H265 encoder. It's maybe not quite as good as x265, but it should be a fair amount faster. (Note, you'll need to use a nightly build from the download page to use this if your running recent Intel UHD graphics drivers)

The i7-8650U is a low power CPU and unless your lucky enough to have one of the few laptops that run it at the 25W TDP (such as the Dell XPS), it's probably not going to clock much, if at all, above 1.9Ghz.

mduell
Veteran User
Posts: 6480
Joined: Sat Apr 21, 2007 8:54 pm

Re: M2TS to MKV conversion time?

Post by mduell » Sun Feb 03, 2019 10:03 pm

How long is a piece of string?

With a high resolution source, filtering, a slow encoder, and a low power CPU, encoding is going to be quite slow.

mhconley
Posts: 3
Joined: Sun Feb 03, 2019 9:18 pm

Re: M2TS to MKV conversion time?

Post by mhconley » Mon Feb 04, 2019 12:18 am

OK... I made a couple of changes. I set all filters to Off and bumped the encoder preset to Fast. I also changed Constant quality back to 24 from 20. Now ripping at 7.1 fps with an estimated completion time of around 10 hours. That's livable. I'll be interested to see how the resultant file compares to that created with MakeMKV. It ripped the almost 3 hour movie in about 3 hours. Unfortunately the mkv was 67GB compared to 75GB for the m2ts.

Thanks,
Martin

User avatar
s55
HandBrake Team
Posts: 9416
Joined: Sun Dec 24, 2006 1:05 pm

Re: M2TS to MKV conversion time?

Post by s55 » Mon Feb 04, 2019 9:20 am

24 was probably better for 4k. With 20 files will probably be larger than they need to be

mhconley
Posts: 3
Joined: Sun Feb 03, 2019 9:18 pm

Re: M2TS to MKV conversion time?

Post by mhconley » Mon Feb 04, 2019 2:20 pm

The resultant mkv file is 8.5GB for an 88% reduction in file size vs. the original m2ts. Picture quality looks pretty darned good to me. Sure will help me fit a LOT more movies on my 8TB NAS. Now to see what Handbrake does with a regular HD Blu-ray.

Thanks,
Martin

Post Reply