Using Video ToolBox on M1 Max Powerbook

HandBrake for Mac 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.
varase
Posts: 33
Joined: Sat May 14, 2016 9:29 am

Using Video ToolBox on M1 Max Powerbook

Post by varase »

Using vt_h265 (media engine) encoding on M1 Max MacBook Pro:

I've been using vt_h265 on a 2020 iMac 5K with great success - transcoding from an MKV blu ray RIP is down to a little over 15 minutes for a movie using the iMac's T2 chip.

I recently bought a M1 Max MacBook Pro and expected to find even faster H.265 encode due to the media engine's two H.265 encoders, but find it takes more than twice as long as vt_h265 on the iMac.

Does Handbrake support hardware encoding on the M1 Pro/M1 Max SoCs yet?

HandBrake version (e.g., 1.0.0): 1.4.2

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

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

Code: Select all

[06:34:23] Compile-time hardening features are enabled
[06:34:23] hb_init: starting libhb thread
[06:34:23] thread 16f75b000 started ("libhb")
HandBrake 1.4.2 (2021100300) - Darwin arm64 - https://handbrake.fr
10 CPUs detected
Opening The Marksman.mkv...
[06:34:23] CPU: 
[06:34:23]  - logical processor count: 10
[06:34:23] hb_scan: path=The Marksman.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image The Marksman.mkv
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2646: nav_get_title_list(The Marksman.mkv/) failed
[06:34:23] bd: not a bd - trying as a stream/file instead
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[06:34:23] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'The Marksman.mkv':
  Metadata:
    title           : The Marksman
    encoder         : libmakemkv v1.16.5 (1.3.10/1.5.2) darwin(arm64-release)
    creation_time   : 2021-11-08T19:52:37.000000Z
  Duration: 01:48:08.94, start: 0.000000, bitrate: 39906 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 251.542958
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 251.542958, end 622.955667
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 622.955667, end 902.192958
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 902.192958, end 1197.154292
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 1197.154292, end 1546.378167
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 1546.378167, end 1876.833292
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 1876.833292, end 2243.491250
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 2243.491250, end 2446.110333
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 2446.110333, end 2664.995667
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 2664.995667, end 2923.962708
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 2923.962708, end 3179.551375
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 3179.551375, end 3564.978083
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 3564.978083, end 3855.685167
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 3855.685167, end 4200.696500
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 4200.696500, end 4615.444167
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 4615.444167, end 5023.852167
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 5023.852167, end 5465.585125
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 5465.585125, end 5912.406500
      Metadata:
        title           : Chapter 18
    Chapter #0:18: start 5912.406500, end 6079.073000
      Metadata:
        title           : Chapter 19
    Chapter #0:19: start 6079.073000, end 6488.940792
      Metadata:
        title           : Chapter 20
  Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Metadata:
      BPS-eng         : 34899677
      DURATION-eng    : 01:48:08.940791666
      NUMBER_OF_FRAMES-eng: 155579
      NUMBER_OF_BYTES-eng: 28307738797
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _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(side), s32p (24 bit) (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 3261596
      DURATION-eng    : 01:48:08.949333333
      NUMBER_OF_FRAMES-eng: 608339
      NUMBER_OF_BYTES-eng: 2645541364
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 1509000
      DURATION-eng    : 01:48:08.949333333
      NUMBER_OF_FRAMES-eng: 608339
      NUMBER_OF_BYTES-eng: 1223978068
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:3(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 01:48:08.960000000
      NUMBER_OF_FRAMES-eng: 202780
      NUMBER_OF_BYTES-eng: 155735040
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 23907
      DURATION-eng    : 01:38:53.823729166
      NUMBER_OF_FRAMES-eng: 1951
      NUMBER_OF_BYTES-eng: 17733151
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:5(spa): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 17933
      DURATION-eng    : 01:42:58.693354166
      NUMBER_OF_FRAMES-eng: 1598
      NUMBER_OF_BYTES-eng: 13850877
      SOURCE_ID-eng   : 001201
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[06:34:23] scan: decoding previews for title 1
[06:34:23] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[06:34:23] scan: audio 0x2: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)
[06:34:23] scan: audio 0x3: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
Scanning title 1 of 1, preview 9, 90.00 %[06:34:24] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 138/138/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1
[06:34:24] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
  + stream: The Marksman.mkv
  + duration: 01:48:08
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 138/138/0/0
  + chapters:
    + 1: duration 00:04:12
    + 2: duration 00:06:11
    + 3: duration 00:04:39
    + 4: duration 00:04:55
    + 5: duration 00:05:49
    + 6: duration 00:05:30
    + 7: duration 00:06:07
    + 8: duration 00:03:23
    + 9: duration 00:03:39
    + 10: duration 00:04:19
    + 11: duration 00:04:16
    + 12: duration 00:06:25
    + 13: duration 00:04:51
    + 14: duration 00:05:45
    + 15: duration 00:06:55
    + 16: duration 00:06:48
    + 17: duration 00:07:22
    + 18: duration 00:07:27
    + 19: duration 00:02:47
    + 20: duration 00:06:50
  + audio tracks:
    + 1, English (DTS-HD MA) (5.1 ch) (iso639-2: eng)
    + 2, English (DTS) (5.1 ch) (1536 kbps) (iso639-2: eng), 48000Hz, 1536000bps
    + 3, English (AC3) (2.0 ch) (192 kbps) (iso639-2: eng), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English [PGS]
    + 2, español [PGS]
[06:34:25] Starting work at: Tue Nov  9 06:34:25 2021

[06:34:25] 1 job(s) to process
[06:34:25] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Encoder": 16384,
                "Mixdown": 4,
                "Track": 0
            },
            {
                "Encoder": 2048,
                "Mixdown": -1,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:eac3",
            "copy:dtshd",
            "copy:dts",
            "copy:mp3",
            "copy:truehd",
            "copy:flac"
        ],
        "FallbackEncoder": "ca_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 12,
                    "Ticks": 22638866
                },
                "Name": "Chapter 1"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 11,
                    "Ticks": 33427143
                },
                "Name": "Chapter 2"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 39,
                    "Ticks": 25131357
                },
                "Name": "Chapter 3"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 55,
                    "Ticks": 26546520
                },
                "Name": "Chapter 4"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 49,
                    "Ticks": 31430148
                },
                "Name": "Chapter 5"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 30,
                    "Ticks": 29740962
                },
                "Name": "Chapter 6"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 7,
                    "Ticks": 32999216
                },
                "Name": "Chapter 7"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 23,
                    "Ticks": 18235717
                },
                "Name": "Chapter 8"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 39,
                    "Ticks": 19699680
                },
                "Name": "Chapter 9"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 19,
                    "Ticks": 23307034
                },
                "Name": "Chapter 10"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 16,
                    "Ticks": 23002980
                },
                "Name": "Chapter 11"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 25,
                    "Ticks": 34688404
                },
                "Name": "Chapter 12"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 51,
                    "Ticks": 26163637
                },
                "Name": "Chapter 13"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 45,
                    "Ticks": 31051021
                },
                "Name": "Chapter 14"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 55,
                    "Ticks": 37327289
                },
                "Name": "Chapter 15"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 48,
                    "Ticks": 36756720
                },
                "Name": "Chapter 16"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 22,
                    "Ticks": 39755967
                },
                "Name": "Chapter 17"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 27,
                    "Ticks": 40213924
                },
                "Name": "Chapter 18"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 47,
                    "Ticks": 14999985
                },
                "Name": "Chapter 19"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 50,
                    "Ticks": 36888030
                },
                "Name": "Chapter 20"
            }
        ],
        "ChapterMarkers": true,
        "File": "/Users/varase/RIPs/Videos/The Marksman (1080p HEVC).m4v",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 13,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 1080,
                    "width": 1920
                }
            }
        ]
    },
    "Metadata": {
        "Name": "The Marksman"
    },
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "The Marksman.mkv",
        "Range": {
            "End": 20,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "Bitrate": 6000,
        "ColorInputFormat": 0,
        "ColorMatrix": 1,
        "ColorOutputFormat": 0,
        "ColorPrimaries": 1,
        "ColorRange": 0,
        "ColorTransfer": 1,
        "Encoder": "vt_h265",
        "QSV": {
            "AdapterIndex": 0,
            "AsyncDepth": 0,
            "Decode": false
        },
        "Turbo": false,
        "TwoPass": false
    }
}
[06:34:25] Starting Task: Encoding Pass
[06:34:25] Skipping vfr filter
[06:34:25] Skipping crop/scale filter
[06:34:25] work: bitrate not specified, track 1 setting bitrate 160 Kbps
[06:34:25] work: mixdown not specified, track 2 setting mixdown 5.1 Channels
[06:34:25] work: bitrate not specified, track 2 setting bitrate 640 Kbps
[06:34:25] job configuration:
[06:34:25]  * source
[06:34:25]    + The Marksman.mkv
[06:34:25]    + title 1, chapter(s) 1 to 20
[06:34:25]    + container: matroska,webm
[06:34:25]    + data rate: 39906 kbps
[06:34:25]  * destination
[06:34:25]    + /Users/varase/RIPs/Videos/The Marksman (1080p HEVC).m4v
[06:34:25]    + container: MPEG-4 (libavformat)
[06:34:25]      + chapter markers
[06:34:25]  * video track
[06:34:25]    + decoder: h264 8-bit (yuv420p)
[06:34:25]    + Output geometry
[06:34:25]      + storage dimensions: 1920 x 1080
[06:34:25]      + pixel aspect ratio: 1 : 1
[06:34:25]      + display dimensions: 1920 x 1080
[06:34:25]    + encoder: H.265 (libavcodec)
[06:34:25]      + bitrate: 6000 kbps, pass: 0
[06:34:25]      + color profile: 1-1-1
[06:34:25]  * audio track 1
[06:34:25]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[06:34:25]      + samplerate: 48000 Hz
[06:34:25]    + mixdown: Stereo
[06:34:25]    + encoder: AAC (Apple AudioToolbox)
[06:34:25]      + bitrate: 160 kbps, samplerate: 48000 Hz
[06:34:25]  * audio track 2
[06:34:25]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[06:34:25]      + samplerate: 48000 Hz
[06:34:25]    + mixdown: 5.1 Channels
[06:34:25]    + encoder: AC3 (libavcodec)
[06:34:25]      + bitrate: 640 kbps, samplerate: 48000 Hz
[06:34:25] sync: expecting 155578 video frames
[06:34:25] encavcodecInit: H.265 (VideoToolbox)
[06:34:25] encavcodec: encoding with stored aspect 1/1
[06:34:25] sync: first pts video is 0
[06:34:25] sync: "Chapter 1" (1) at frame 1 time 0
[06:34:25] sync: first pts audio 0x1 is 0
[06:34:25] sync: first pts audio 0x1 is 0
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't open file VIDEO_TS.IFO.
Encoding: task 1 of 1, 3.86 % (58.08 fps, avg 57.97 fps, ETA 00h43m00s)[06:36:08] sync: "Chapter 2" (2) at frame 6032 time 22638866
Encoding: task 1 of 1, 9.59 % (56.99 fps, avg 57.72 fps, ETA 00h40m37s)[06:38:43] sync: "Chapter 3" (3) at frame 14937 time 56066010
Encoding: task 1 of 1, 13.90 % (57.73 fps, avg 57.68 fps, ETA 00h38m43s)[06:40:40] sync: "Chapter 4" (4) at frame 21632 time 81197366
Encoding: task 1 of 1, 18.43 % (58.52 fps, avg 57.67 fps, ETA 00h36m41s)[06:42:42] sync: "Chapter 5" (5) at frame 28706 time 107751393
Encoding: task 1 of 1, 23.82 % (57.44 fps, avg 57.67 fps, ETA 00h34m15s)[06:45:08] sync: "Chapter 6" (6) at frame 37080 time 139185296
Encoding: task 1 of 1, 28.92 % (54.16 fps, avg 57.65 fps, ETA 00h31m58s)[06:47:25] sync: "Chapter 7" (7) at frame 45003 time 168926257
Encoding: task 1 of 1, 34.57 % (59.68 fps, avg 57.64 fps, ETA 00h29m26s)[06:49:58] sync: "Chapter 8" (8) at frame 53793 time 201921720
Encoding: task 1 of 1, 37.70 % (57.75 fps, avg 57.64 fps, ETA 00h28m01s)[06:51:22] sync: "Chapter 9" (9) at frame 58652 time 220161191
Encoding: task 1 of 1, 41.06 % (54.32 fps, avg 57.62 fps, ETA 00h26m32s)[06:52:53] sync: "Chapter 10" (10) at frame 63897 time 239849610
Encoding: task 1 of 1, 45.05 % (60.41 fps, avg 57.62 fps, ETA 00h24m44s)[06:54:41] sync: "Chapter 11" (11) at frame 70106 time 263156643
Encoding: task 1 of 1, 48.99 % (57.00 fps, avg 57.61 fps, ETA 00h22m57s)[06:56:28] sync: "Chapter 12" (12) at frame 76237 time 286170885
Encoding: task 1 of 1, 54.92 % (59.90 fps, avg 57.61 fps, ETA 00h20m18s)[06:59:08] sync: "Chapter 13" (13) at frame 85478 time 320859288
Encoding: task 1 of 1, 59.41 % (55.98 fps, avg 57.61 fps, ETA 00h18m16s)[07:01:09] sync: "Chapter 14" (14) at frame 92447 time 347019172
Encoding: task 1 of 1, 64.73 % (57.81 fps, avg 57.61 fps, ETA 00h15m52s)[07:03:33] sync: "Chapter 15" (15) at frame 100717 time 378062685
Encoding: task 1 of 1, 71.11 % (58.94 fps, avg 57.62 fps, ETA 00h13m00s)[07:06:25] sync: "Chapter 16" (16) at frame 110663 time 415397482
Encoding: task 1 of 1, 77.42 % (55.59 fps, avg 57.61 fps, ETA 00h10m10s)[07:09:15] sync: "Chapter 17" (17) at frame 120456 time 452157956
Encoding: task 1 of 1, 84.23 % (55.39 fps, avg 57.60 fps, ETA 00h07m07s)[07:12:20] sync: "Chapter 18" (18) at frame 131046 time 491910168
Encoding: task 1 of 1, 91.11 % (57.48 fps, avg 57.60 fps, ETA 00h04m01s)[07:15:26] sync: "Chapter 19" (19) at frame 141757 time 532116585
Encoding: task 1 of 1, 93.68 % (57.51 fps, avg 57.59 fps, ETA 00h02m51s)[07:16:35] sync: "Chapter 20" (20) at frame 145753 time 547116570
Encoding: task 1 of 1, 99.94 % (57.02 fps, avg 57.68 fps, ETA 00h00m02s)[07:19:21] reader: done. 1 scr changes
Encoding: task 1 of 1, 100.00 % (59.20 fps, avg 57.68 fps, ETA 00h00m01s)[07:19:22] work: average encoding speed for job is 57.676125 fps
[07:19:23] dca-decoder done: 608339 frames, 0 decoder errors
[07:19:23] dca-decoder done: 608339 frames, 0 decoder errors
[07:19:23] h264-decoder done: 155579 frames, 0 decoder errors
[07:19:23] sync: got 155579 frames, 155578 expected
[07:19:23] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
[07:19:23] mux: track 0, 155579 frames, 4855312226 bytes, 5985.92 kbps, fifo 4096
[07:19:23] mux: track 1, 304172 frames, 132518652 bytes, 163.38 kbps, fifo 4096
[07:19:23] mux: track 2, 202779 frames, 519114240 bytes, 639.99 kbps, fifo 4096
[07:19:23] Finished work at: Tue Nov  9 07:19:23 2021

Muxing: this may take awhile...[07:19:23] libhb: work result = 0

Encode done!
HandBrake has exited.

Terminal Log
21.11.09 06:33:44 Host: Verne-MBP16, ID: varase, Num: 121, Hist: 324, RC: 0 [~] % mkv2m4v ~/RIPs/MakeMKV/Movies ~/RIPs/Videos


*** Command to be executed is ***

transcode-video --quick --encoder vt_h265 --m4v --output "/Users/varase/RIPs/Videos/The Marksman (1080p HEVC).m4v" "/Users/varase/RIPs/MakeMKV/Movies/The Marksman.mkv"

Code: Select all

[06:34:23] Compile-time hardening features are enabled
[06:34:23] hb_init: starting libhb thread
[06:34:23] thread 16f75b000 started ("libhb")
HandBrake 1.4.2 (2021100300) - Darwin arm64 - https://handbrake.fr
10 CPUs detected
Opening The Marksman.mkv...
[06:34:23] CPU: 
[06:34:23]  - logical processor count: 10
[06:34:23] hb_scan: path=The Marksman.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image The Marksman.mkv
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2646: nav_get_title_list(The Marksman.mkv/) failed
[06:34:23] bd: not a bd - trying as a stream/file instead
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[06:34:23] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'The Marksman.mkv':
  Metadata:
    title           : The Marksman
    encoder         : libmakemkv v1.16.5 (1.3.10/1.5.2) darwin(arm64-release)
    creation_time   : 2021-11-08T19:52:37.000000Z
  Duration: 01:48:08.94, start: 0.000000, bitrate: 39906 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 251.542958
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 251.542958, end 622.955667
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 622.955667, end 902.192958
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 902.192958, end 1197.154292
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 1197.154292, end 1546.378167
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 1546.378167, end 1876.833292
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 1876.833292, end 2243.491250
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 2243.491250, end 2446.110333
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 2446.110333, end 2664.995667
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 2664.995667, end 2923.962708
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 2923.962708, end 3179.551375
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 3179.551375, end 3564.978083
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 3564.978083, end 3855.685167
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 3855.685167, end 4200.696500
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 4200.696500, end 4615.444167
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 4615.444167, end 5023.852167
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 5023.852167, end 5465.585125
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 5465.585125, end 5912.406500
      Metadata:
        title           : Chapter 18
    Chapter #0:18: start 5912.406500, end 6079.073000
      Metadata:
        title           : Chapter 19
    Chapter #0:19: start 6079.073000, end 6488.940792
      Metadata:
        title           : Chapter 20
  Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Metadata:
      BPS-eng         : 34899677
      DURATION-eng    : 01:48:08.940791666
      NUMBER_OF_FRAMES-eng: 155579
      NUMBER_OF_BYTES-eng: 28307738797
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _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(side), s32p (24 bit) (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 3261596
      DURATION-eng    : 01:48:08.949333333
      NUMBER_OF_FRAMES-eng: 608339
      NUMBER_OF_BYTES-eng: 2645541364
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 1509000
      DURATION-eng    : 01:48:08.949333333
      NUMBER_OF_FRAMES-eng: 608339
      NUMBER_OF_BYTES-eng: 1223978068
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:3(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 01:48:08.960000000
      NUMBER_OF_FRAMES-eng: 202780
      NUMBER_OF_BYTES-eng: 155735040
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 23907
      DURATION-eng    : 01:38:53.823729166
      NUMBER_OF_FRAMES-eng: 1951
      NUMBER_OF_BYTES-eng: 17733151
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:5(spa): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 17933
      DURATION-eng    : 01:42:58.693354166
      NUMBER_OF_FRAMES-eng: 1598
      NUMBER_OF_BYTES-eng: 13850877
      SOURCE_ID-eng   : 001201
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[06:34:23] scan: decoding previews for title 1
[06:34:23] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[06:34:23] scan: audio 0x2: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)
[06:34:23] scan: audio 0x3: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
Scanning title 1 of 1, preview 9, 90.00 %[06:34:24] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 138/138/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1
[06:34:24] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
  + stream: The Marksman.mkv
  + duration: 01:48:08
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 138/138/0/0
  + chapters:
    + 1: duration 00:04:12
    + 2: duration 00:06:11
    + 3: duration 00:04:39
    + 4: duration 00:04:55
    + 5: duration 00:05:49
    + 6: duration 00:05:30
    + 7: duration 00:06:07
    + 8: duration 00:03:23
    + 9: duration 00:03:39
    + 10: duration 00:04:19
    + 11: duration 00:04:16
    + 12: duration 00:06:25
    + 13: duration 00:04:51
    + 14: duration 00:05:45
    + 15: duration 00:06:55
    + 16: duration 00:06:48
    + 17: duration 00:07:22
    + 18: duration 00:07:27
    + 19: duration 00:02:47
    + 20: duration 00:06:50
  + audio tracks:
    + 1, English (DTS-HD MA) (5.1 ch) (iso639-2: eng)
    + 2, English (DTS) (5.1 ch) (1536 kbps) (iso639-2: eng), 48000Hz, 1536000bps
    + 3, English (AC3) (2.0 ch) (192 kbps) (iso639-2: eng), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English [PGS]
    + 2, español [PGS]
[06:34:25] Starting work at: Tue Nov  9 06:34:25 2021

[06:34:25] 1 job(s) to process
[06:34:25] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Encoder": 16384,
                "Mixdown": 4,
                "Track": 0
            },
            {
                "Encoder": 2048,
                "Mixdown": -1,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:eac3",
            "copy:dtshd",
            "copy:dts",
            "copy:mp3",
            "copy:truehd",
            "copy:flac"
        ],
        "FallbackEncoder": "ca_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 12,
                    "Ticks": 22638866
                },
                "Name": "Chapter 1"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 11,
                    "Ticks": 33427143
                },
                "Name": "Chapter 2"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 39,
                    "Ticks": 25131357
                },
                "Name": "Chapter 3"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 55,
                    "Ticks": 26546520
                },
                "Name": "Chapter 4"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 49,
                    "Ticks": 31430148
                },
                "Name": "Chapter 5"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 30,
                    "Ticks": 29740962
                },
                "Name": "Chapter 6"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 7,
                    "Ticks": 32999216
                },
                "Name": "Chapter 7"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 23,
                    "Ticks": 18235717
                },
                "Name": "Chapter 8"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 39,
                    "Ticks": 19699680
                },
                "Name": "Chapter 9"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 19,
                    "Ticks": 23307034
                },
                "Name": "Chapter 10"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 16,
                    "Ticks": 23002980
                },
                "Name": "Chapter 11"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 25,
                    "Ticks": 34688404
                },
                "Name": "Chapter 12"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 51,
                    "Ticks": 26163637
                },
                "Name": "Chapter 13"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 45,
                    "Ticks": 31051021
                },
                "Name": "Chapter 14"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 55,
                    "Ticks": 37327289
                },
                "Name": "Chapter 15"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 48,
                    "Ticks": 36756720
                },
                "Name": "Chapter 16"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 22,
                    "Ticks": 39755967
                },
                "Name": "Chapter 17"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 27,
                    "Ticks": 40213924
                },
                "Name": "Chapter 18"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 47,
                    "Ticks": 14999985
                },
                "Name": "Chapter 19"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 50,
                    "Ticks": 36888030
                },
                "Name": "Chapter 20"
            }
        ],
        "ChapterMarkers": true,
        "File": "/Users/varase/RIPs/Videos/The Marksman (1080p HEVC).m4v",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 13,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 1080,
                    "width": 1920
                }
            }
        ]
    },
    "Metadata": {
        "Name": "The Marksman"
    },
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "The Marksman.mkv",
        "Range": {
            "End": 20,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "Bitrate": 6000,
        "ColorInputFormat": 0,
        "ColorMatrix": 1,
        "ColorOutputFormat": 0,
        "ColorPrimaries": 1,
        "ColorRange": 0,
        "ColorTransfer": 1,
        "Encoder": "vt_h265",
        "QSV": {
            "AdapterIndex": 0,
            "AsyncDepth": 0,
            "Decode": false
        },
        "Turbo": false,
        "TwoPass": false
    }
}
[06:34:25] Starting Task: Encoding Pass
[06:34:25] Skipping vfr filter
[06:34:25] Skipping crop/scale filter
[06:34:25] work: bitrate not specified, track 1 setting bitrate 160 Kbps
[06:34:25] work: mixdown not specified, track 2 setting mixdown 5.1 Channels
[06:34:25] work: bitrate not specified, track 2 setting bitrate 640 Kbps
[06:34:25] job configuration:
[06:34:25]  * source
[06:34:25]    + The Marksman.mkv
[06:34:25]    + title 1, chapter(s) 1 to 20
[06:34:25]    + container: matroska,webm
[06:34:25]    + data rate: 39906 kbps
[06:34:25]  * destination
[06:34:25]    + /Users/varase/RIPs/Videos/The Marksman (1080p HEVC).m4v
[06:34:25]    + container: MPEG-4 (libavformat)
[06:34:25]      + chapter markers
[06:34:25]  * video track
[06:34:25]    + decoder: h264 8-bit (yuv420p)
[06:34:25]    + Output geometry
[06:34:25]      + storage dimensions: 1920 x 1080
[06:34:25]      + pixel aspect ratio: 1 : 1
[06:34:25]      + display dimensions: 1920 x 1080
[06:34:25]    + encoder: H.265 (libavcodec)
[06:34:25]      + bitrate: 6000 kbps, pass: 0
[06:34:25]      + color profile: 1-1-1
[06:34:25]  * audio track 1
[06:34:25]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[06:34:25]      + samplerate: 48000 Hz
[06:34:25]    + mixdown: Stereo
[06:34:25]    + encoder: AAC (Apple AudioToolbox)
[06:34:25]      + bitrate: 160 kbps, samplerate: 48000 Hz
[06:34:25]  * audio track 2
[06:34:25]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[06:34:25]      + samplerate: 48000 Hz
[06:34:25]    + mixdown: 5.1 Channels
[06:34:25]    + encoder: AC3 (libavcodec)
[06:34:25]      + bitrate: 640 kbps, samplerate: 48000 Hz
[06:34:25] sync: expecting 155578 video frames
[06:34:25] encavcodecInit: H.265 (VideoToolbox)
[06:34:25] encavcodec: encoding with stored aspect 1/1
[06:34:25] sync: first pts video is 0
[06:34:25] sync: "Chapter 1" (1) at frame 1 time 0
[06:34:25] sync: first pts audio 0x1 is 0
[06:34:25] sync: first pts audio 0x1 is 0
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't open file VIDEO_TS.IFO.
Encoding: task 1 of 1, 3.86 % (58.08 fps, avg 57.97 fps, ETA 00h43m00s)[06:36:08] sync: "Chapter 2" (2) at frame 6032 time 22638866
Encoding: task 1 of 1, 9.59 % (56.99 fps, avg 57.72 fps, ETA 00h40m37s)[06:38:43] sync: "Chapter 3" (3) at frame 14937 time 56066010
Encoding: task 1 of 1, 13.90 % (57.73 fps, avg 57.68 fps, ETA 00h38m43s)[06:40:40] sync: "Chapter 4" (4) at frame 21632 time 81197366
Encoding: task 1 of 1, 18.43 % (58.52 fps, avg 57.67 fps, ETA 00h36m41s)[06:42:42] sync: "Chapter 5" (5) at frame 28706 time 107751393
Encoding: task 1 of 1, 23.82 % (57.44 fps, avg 57.67 fps, ETA 00h34m15s)[06:45:08] sync: "Chapter 6" (6) at frame 37080 time 139185296
Encoding: task 1 of 1, 28.92 % (54.16 fps, avg 57.65 fps, ETA 00h31m58s)[06:47:25] sync: "Chapter 7" (7) at frame 45003 time 168926257
Encoding: task 1 of 1, 34.57 % (59.68 fps, avg 57.64 fps, ETA 00h29m26s)[06:49:58] sync: "Chapter 8" (8) at frame 53793 time 201921720
Encoding: task 1 of 1, 37.70 % (57.75 fps, avg 57.64 fps, ETA 00h28m01s)[06:51:22] sync: "Chapter 9" (9) at frame 58652 time 220161191
Encoding: task 1 of 1, 41.06 % (54.32 fps, avg 57.62 fps, ETA 00h26m32s)[06:52:53] sync: "Chapter 10" (10) at frame 63897 time 239849610
Encoding: task 1 of 1, 45.05 % (60.41 fps, avg 57.62 fps, ETA 00h24m44s)[06:54:41] sync: "Chapter 11" (11) at frame 70106 time 263156643
Encoding: task 1 of 1, 48.99 % (57.00 fps, avg 57.61 fps, ETA 00h22m57s)[06:56:28] sync: "Chapter 12" (12) at frame 76237 time 286170885
Encoding: task 1 of 1, 54.92 % (59.90 fps, avg 57.61 fps, ETA 00h20m18s)[06:59:08] sync: "Chapter 13" (13) at frame 85478 time 320859288
Encoding: task 1 of 1, 59.41 % (55.98 fps, avg 57.61 fps, ETA 00h18m16s)[07:01:09] sync: "Chapter 14" (14) at frame 92447 time 347019172
Encoding: task 1 of 1, 64.73 % (57.81 fps, avg 57.61 fps, ETA 00h15m52s)[07:03:33] sync: "Chapter 15" (15) at frame 100717 time 378062685
Encoding: task 1 of 1, 71.11 % (58.94 fps, avg 57.62 fps, ETA 00h13m00s)[07:06:25] sync: "Chapter 16" (16) at frame 110663 time 415397482
Encoding: task 1 of 1, 77.42 % (55.59 fps, avg 57.61 fps, ETA 00h10m10s)[07:09:15] sync: "Chapter 17" (17) at frame 120456 time 452157956
Encoding: task 1 of 1, 84.23 % (55.39 fps, avg 57.60 fps, ETA 00h07m07s)[07:12:20] sync: "Chapter 18" (18) at frame 131046 time 491910168
Encoding: task 1 of 1, 91.11 % (57.48 fps, avg 57.60 fps, ETA 00h04m01s)[07:15:26] sync: "Chapter 19" (19) at frame 141757 time 532116585
Encoding: task 1 of 1, 93.68 % (57.51 fps, avg 57.59 fps, ETA 00h02m51s)[07:16:35] sync: "Chapter 20" (20) at frame 145753 time 547116570
Encoding: task 1 of 1, 99.94 % (57.02 fps, avg 57.68 fps, ETA 00h00m02s)[07:19:21] reader: done. 1 scr changes
Encoding: task 1 of 1, 100.00 % (59.20 fps, avg 57.68 fps, ETA 00h00m01s)[07:19:22] work: average encoding speed for job is 57.676125 fps
[07:19:23] dca-decoder done: 608339 frames, 0 decoder errors
[07:19:23] dca-decoder done: 608339 frames, 0 decoder errors
[07:19:23] h264-decoder done: 155579 frames, 0 decoder errors
[07:19:23] sync: got 155579 frames, 155578 expected
[07:19:23] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
[07:19:23] mux: track 0, 155579 frames, 4855312226 bytes, 5985.92 kbps, fifo 4096
[07:19:23] mux: track 1, 304172 frames, 132518652 bytes, 163.38 kbps, fifo 4096
[07:19:23] mux: track 2, 202779 frames, 519114240 bytes, 639.99 kbps, fifo 4096
[07:19:23] Finished work at: Tue Nov  9 07:19:23 2021

Muxing: this may take awhile...[07:19:23] libhb: work result = 0

Encode done!
HandBrake has exited.

/Users/varase/.asdf/installs/ruby/3.0.2/bin/transcode-video: mp4track not available


*** Command to be executed is ***

handbrakecli --input "The Marksman.mkv" -e vt_h265 -q 22.0 -r 30 --pfr -a 1 -E ffaac -B 160 -6 dpl2 -R Auto -D 0.0 --audio-copy-mask aac,ac3,dtshd,dts,mp3 --audio-fallback ffac3 -f mp4 -X 960 -Y 640 --loose-anamorphic --modulus 2 -m --x264-preset medium --h264-profile high --h264-level 3.1 --output "/Users/varase/RIPs/Videos/The Marksman (HEVC).m4v"

[07:19:24] Compile-time hardening features are enabled
[07:19:24] hb_init: starting libhb thread
[07:19:24] thread 16d763000 started ("libhb")
HandBrake 1.4.2 (2021100300) - Darwin arm64 - https://handbrake.fr
10 CPUs detected
Opening The Marksman.mkv...
[07:19:24] CPU: 
[07:19:24]  - logical processor count: 10
[07:19:24] hb_scan: path=The Marksman.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image The Marksman.mkv
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2646: nav_get_title_list(The Marksman.mkv/) failed
[07:19:24] bd: not a bd - trying as a stream/file instead
libdvdread: Encrypted DVD support unavailable.
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[07:19:24] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'The Marksman.mkv':
  Metadata:
    title           : The Marksman
    encoder         : libmakemkv v1.16.5 (1.3.10/1.5.2) darwin(arm64-release)
    creation_time   : 2021-11-08T19:52:37.000000Z
  Duration: 01:48:08.94, start: 0.000000, bitrate: 39906 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 251.542958
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 251.542958, end 622.955667
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 622.955667, end 902.192958
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 902.192958, end 1197.154292
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 1197.154292, end 1546.378167
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 1546.378167, end 1876.833292
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 1876.833292, end 2243.491250
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 2243.491250, end 2446.110333
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 2446.110333, end 2664.995667
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 2664.995667, end 2923.962708
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 2923.962708, end 3179.551375
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 3179.551375, end 3564.978083
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 3564.978083, end 3855.685167
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 3855.685167, end 4200.696500
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 4200.696500, end 4615.444167
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 4615.444167, end 5023.852167
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 5023.852167, end 5465.585125
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 5465.585125, end 5912.406500
      Metadata:
        title           : Chapter 18
    Chapter #0:18: start 5912.406500, end 6079.073000
      Metadata:
        title           : Chapter 19
    Chapter #0:19: start 6079.073000, end 6488.940792
      Metadata:
        title           : Chapter 20
  Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Metadata:
      BPS-eng         : 34899677
      DURATION-eng    : 01:48:08.940791666
      NUMBER_OF_FRAMES-eng: 155579
      NUMBER_OF_BYTES-eng: 28307738797
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _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(side), s32p (24 bit) (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 3261596
      DURATION-eng    : 01:48:08.949333333
      NUMBER_OF_FRAMES-eng: 608339
      NUMBER_OF_BYTES-eng: 2645541364
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 1509000
      DURATION-eng    : 01:48:08.949333333
      NUMBER_OF_FRAMES-eng: 608339
      NUMBER_OF_BYTES-eng: 1223978068
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:3(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 01:48:08.960000000
      NUMBER_OF_FRAMES-eng: 202780
      NUMBER_OF_BYTES-eng: 155735040
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 23907
      DURATION-eng    : 01:38:53.823729166
      NUMBER_OF_FRAMES-eng: 1951
      NUMBER_OF_BYTES-eng: 17733151
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:5(spa): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 17933
      DURATION-eng    : 01:42:58.693354166
      NUMBER_OF_FRAMES-eng: 1598
      NUMBER_OF_BYTES-eng: 13850877
      SOURCE_ID-eng   : 001201
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[07:19:24] scan: decoding previews for title 1
[07:19:24] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[07:19:24] scan: audio 0x2: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)
[07:19:24] scan: audio 0x3: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
Scanning title 1 of 1, preview 9, 90.00 %[07:19:25] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 138/138/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1
[07:19:25] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
  + stream: The Marksman.mkv
  + duration: 01:48:08
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 138/138/0/0
  + chapters:
    + 1: duration 00:04:12
    + 2: duration 00:06:11
    + 3: duration 00:04:39
    + 4: duration 00:04:55
    + 5: duration 00:05:49
    + 6: duration 00:05:30
    + 7: duration 00:06:07
    + 8: duration 00:03:23
    + 9: duration 00:03:39
    + 10: duration 00:04:19
    + 11: duration 00:04:16
    + 12: duration 00:06:25
    + 13: duration 00:04:51
    + 14: duration 00:05:45
    + 15: duration 00:06:55
    + 16: duration 00:06:48
    + 17: duration 00:07:22
    + 18: duration 00:07:27
    + 19: duration 00:02:47
    + 20: duration 00:06:50
  + audio tracks:
    + 1, English (DTS-HD MA) (5.1 ch) (iso639-2: eng)
    + 2, English (DTS) (5.1 ch) (1536 kbps) (iso639-2: eng), 48000Hz, 1536000bps
    + 3, English (AC3) (2.0 ch) (192 kbps) (iso639-2: eng), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English [PGS]
    + 2, español [PGS]
[07:19:25] Starting work at: Tue Nov  9 07:19:25 2021

[07:19:25] 1 job(s) to process
[07:19:25] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "DRC": 0.0,
                "Encoder": 16384,
                "Mixdown": 6,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:dtshd",
            "copy:dts",
            "copy:mp3"
        ],
        "FallbackEncoder": "ffac3"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 12,
                    "Ticks": 22638866
                },
                "Name": "Chapter 1"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 11,
                    "Ticks": 33427143
                },
                "Name": "Chapter 2"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 39,
                    "Ticks": 25131357
                },
                "Name": "Chapter 3"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 55,
                    "Ticks": 26546520
                },
                "Name": "Chapter 4"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 49,
                    "Ticks": 31430148
                },
                "Name": "Chapter 5"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 30,
                    "Ticks": 29740962
                },
                "Name": "Chapter 6"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 7,
                    "Ticks": 32999216
                },
                "Name": "Chapter 7"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 23,
                    "Ticks": 18235717
                },
                "Name": "Chapter 8"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 39,
                    "Ticks": 19699680
                },
                "Name": "Chapter 9"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 19,
                    "Ticks": 23307034
                },
                "Name": "Chapter 10"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 16,
                    "Ticks": 23002980
                },
                "Name": "Chapter 11"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 25,
                    "Ticks": 34688404
                },
                "Name": "Chapter 12"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 51,
                    "Ticks": 26163637
                },
                "Name": "Chapter 13"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 45,
                    "Ticks": 31051021
                },
                "Name": "Chapter 14"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 55,
                    "Ticks": 37327289
                },
                "Name": "Chapter 15"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 48,
                    "Ticks": 36756720
                },
                "Name": "Chapter 16"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 22,
                    "Ticks": 39755967
                },
                "Name": "Chapter 17"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 27,
                    "Ticks": 40213924
                },
                "Name": "Chapter 18"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 47,
                    "Ticks": 14999985
                },
                "Name": "Chapter 19"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 50,
                    "Ticks": 36888030
                },
                "Name": "Chapter 20"
            }
        ],
        "ChapterMarkers": true,
        "File": "/Users/varase/RIPs/Videos/The Marksman (HEVC).m4v",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 2,
                    "rate": "27000000/900000"
                }
            },
            {
                "ID": 13,
                "Settings": {
                    "crop-bottom": 138,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 138,
                    "height": 402,
                    "width": 960
                }
            }
        ]
    },
    "Metadata": {
        "Name": "The Marksman"
    },
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "The Marksman.mkv",
        "Range": {
            "End": 20,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorInputFormat": 0,
        "ColorMatrix": 1,
        "ColorOutputFormat": 0,
        "ColorPrimaries": 1,
        "ColorRange": 0,
        "ColorTransfer": 1,
        "Encoder": "vt_h265",
        "Level": "3.1",
        "Preset": "medium",
        "Profile": "high",
        "QSV": {
            "AdapterIndex": 0,
            "AsyncDepth": 0,
            "Decode": false
        },
        "Quality": 22.0,
        "Turbo": false,
        "TwoPass": false
    }
}
[07:19:25] Starting Task: Encoding Pass
[07:19:25] job configuration:
[07:19:25]  * source
[07:19:25]    + The Marksman.mkv
[07:19:25]    + title 1, chapter(s) 1 to 20
[07:19:25]    + container: matroska,webm
[07:19:25]    + data rate: 39906 kbps
[07:19:25]  * destination
[07:19:25]    + /Users/varase/RIPs/Videos/The Marksman (HEVC).m4v
[07:19:25]    + container: MPEG-4 (libavformat)
[07:19:25]      + chapter markers
[07:19:25]  * video track
[07:19:25]    + decoder: h264 8-bit (yuv420p)
[07:19:25]    + filters
[07:19:25]      + Framerate Shaper (mode=2:rate=27000000/900000)
[07:19:25]        + frame rate: 23.976 fps -> peak rate limited to 30.000 fps
[07:19:25]      + Crop and Scale (width=960:height=402:crop-top=138:crop-bottom=138:crop-left=0:crop-right=0)
[07:19:25]        + source: 1920 * 1080, crop (138/138/0/0): 1920 * 804, scale: 960 * 402
[07:19:25]    + Output geometry
[07:19:25]      + storage dimensions: 960 x 402
[07:19:25]      + pixel aspect ratio: 1 : 1
[07:19:25]      + display dimensions: 960 x 402
[07:19:25]    + encoder: H.265 (libavcodec)
[07:19:25]      + preset:  medium
[07:19:25]      + profile: high
[07:19:25]      + quality: 22.00 (CQ)
[07:19:25]      + color profile: 1-1-1
[07:19:25]  * audio track 1
[07:19:25]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[07:19:25]      + samplerate: 48000 Hz
[07:19:25]    + mixdown: Dolby Pro Logic II
[07:19:25]    + encoder: AAC (Apple AudioToolbox)
[07:19:25]      + bitrate: 160 kbps, samplerate: 48000 Hz
[07:19:25] sync: expecting 155578 video frames
[07:19:25] encavcodecInit: H.265 (VideoToolbox)
[07:19:25] encavcodec: encoding at constant quality 22
[07:19:25] encavcodec: encoding with stored aspect 1/1
[07:19:25] sync: first pts video is 0
[07:19:25] sync: "Chapter 1" (1) at frame 1 time 0
[07:19:25] sync: first pts audio 0x1 is 0
Encoding: task 1 of 1, 3.88 % (170.70 fps, avg 174.15 fps, ETA 00h14m19s)[07:20:00] sync: "Chapter 2" (2) at frame 6032 time 22638866
Encoding: task 1 of 1, 9.59 % (169.97 fps, avg 173.74 fps, ETA 00h13m29s)[07:20:51] sync: "Chapter 3" (3) at frame 14937 time 56066010
Encoding: task 1 of 1, 13.90 % (169.70 fps, avg 173.83 fps, ETA 00h12m51s)[07:21:29] sync: "Chapter 4" (4) at frame 21632 time 81197366
Encoding: task 1 of 1, 18.44 % (173.44 fps, avg 173.69 fps, ETA 00h12m10s)[07:22:10] sync: "Chapter 5" (5) at frame 28706 time 107751393
Encoding: task 1 of 1, 23.83 % (170.17 fps, avg 173.60 fps, ETA 00h11m23s)[07:22:59] sync: "Chapter 6" (6) at frame 37080 time 139185296
Encoding: task 1 of 1, 28.90 % (172.64 fps, avg 173.60 fps, ETA 00h10m38s)[07:23:44] sync: "Chapter 7" (7) at frame 45003 time 168926257
Encoding: task 1 of 1, 34.54 % (170.60 fps, avg 173.52 fps, ETA 00h09m47s)[07:24:35] sync: "Chapter 8" (8) at frame 53793 time 201921720
Encoding: task 1 of 1, 37.68 % (175.84 fps, avg 173.56 fps, ETA 00h09m19s)[07:25:03] sync: "Chapter 9" (9) at frame 58652 time 220161191
Encoding: task 1 of 1, 41.06 % (174.80 fps, avg 173.51 fps, ETA 00h08m48s)[07:25:33] sync: "Chapter 10" (10) at frame 63897 time 239849610
Encoding: task 1 of 1, 45.04 % (170.46 fps, avg 173.52 fps, ETA 00h08m13s)[07:26:09] sync: "Chapter 11" (11) at frame 70106 time 263156643
Encoding: task 1 of 1, 49.00 % (172.80 fps, avg 173.49 fps, ETA 00h07m37s)[07:26:44] sync: "Chapter 12" (12) at frame 76237 time 286170885
Encoding: task 1 of 1, 54.92 % (169.57 fps, avg 173.46 fps, ETA 00h06m44s)[07:27:38] sync: "Chapter 13" (13) at frame 85478 time 320859288
Encoding: task 1 of 1, 59.39 % (169.63 fps, avg 173.49 fps, ETA 00h06m05s)[07:28:18] sync: "Chapter 14" (14) at frame 92447 time 347019172
Encoding: task 1 of 1, 64.73 % (174.45 fps, avg 173.55 fps, ETA 00h05m17s)[07:29:05] sync: "Chapter 15" (15) at frame 100717 time 378062685
Encoding: task 1 of 1, 71.11 % (178.68 fps, avg 173.58 fps, ETA 00h04m18s)[07:30:03] sync: "Chapter 16" (16) at frame 110663 time 415397482
Encoding: task 1 of 1, 77.40 % (172.30 fps, avg 173.57 fps, ETA 00h03m22s)[07:30:59] sync: "Chapter 17" (17) at frame 120456 time 452157956
Encoding: task 1 of 1, 84.20 % (176.16 fps, avg 173.54 fps, ETA 00h02m21s)[07:32:00] sync: "Chapter 18" (18) at frame 131046 time 491910168
Encoding: task 1 of 1, 91.11 % (173.91 fps, avg 173.54 fps, ETA 00h01m19s)[07:33:02] sync: "Chapter 19" (19) at frame 141757 time 532116585
Encoding: task 1 of 1, 93.66 % (175.60 fps, avg 173.53 fps, ETA 00h00m57s)[07:33:25] sync: "Chapter 20" (20) at frame 145753 time 547116570
Encoding: task 1 of 1, 99.94 % (169.07 fps, avg 173.56 fps, ETA 00h00m01s)[07:34:21] reader: done. 1 scr changes
Encoding: task 1 of 1, 100.00 % (174.12 fps, avg 173.56 fps, ETA 00h00m00s)[07:34:22] work: average encoding speed for job is 173.564270 fps
[07:34:22] vfr: 155579 frames output, 0 dropped and 0 duped for CFR/PFR
[07:34:22] vfr: lost time: 0 (0 frames)
[07:34:22] vfr: gained time: 0 (0 frames) (0 not accounted for)
[07:34:22] dca-decoder done: 608339 frames, 0 decoder errors
[07:34:22] h264-decoder done: 155579 frames, 0 decoder errors
[07:34:22] sync: got 155579 frames, 155578 expected
[07:34:22] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
Muxing: this may take awhile...[07:34:22] mux: track 0, 155579 frames, 203209590 bytes, 250.53 kbps, fifo 8192
[07:34:22] mux: track 1, 304172 frames, 132762145 bytes, 163.68 kbps, fifo 16384
[07:34:22] Finished work at: Tue Nov  9 07:34:22 2021

[07:34:22] libhb: work result = 0

Encode done!

HandBrake has exited.
21.11.09 07:34:22 Host: Verne-MBP16, ID: varase, Num: 122, Hist: 325, RC: 0 [~] %
End Terminal Log
Last edited by Rodeo on Wed Nov 10, 2021 1:12 pm, edited 1 time in total.
Reason: More code blocks
User avatar
Rodeo
HandBrake Team
Posts: 12942
Joined: Tue Mar 03, 2009 8:55 pm

Re: Using Video ToolBox on M1 Max Powerbook

Post by Rodeo »

I see you're downscaling (which happens on the CPU); it's possible the scale filter is not as optimized for ARM as it is for x86. In any case, it would be useful to see an encode log of the same source done on the iMac for comparison.
varase
Posts: 33
Joined: Sat May 14, 2016 9:29 am

Re: Using Video ToolBox on M1 Max Powerbook

Post by varase »

2020 iMac 5K, core-i9 10910 10 core 20 thread, AMD Radeon 5700 XT with 16 GB, 128 GB RAM, 10 gb ethernet.

Code: Select all

[18:00:01] Compile-time hardening features are enabled
[18:00:01] hb_init: starting libhb thread
[18:00:01] thread 700009ccf000 started ("libhb")
HandBrake 1.4.2 (2021100300) - Darwin x86_64 - https://handbrake.fr
20 CPUs detected
Opening The Marksman.mkv...
[18:00:01] CPU: Intel(R) Core(TM) i9-10910 CPU @ 3.60GHz
[18:00:01]  - Intel microarchitecture Comet Lake
[18:00:01]  - logical processor count: 20
[18:00:01] hb_scan: path=The Marksman.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image The Marksman.mkv
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2646: nav_get_title_list(The Marksman.mkv/) failed
[18:00:01] bd: not a bd - trying as a stream/file instead
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[18:00:01] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'The Marksman.mkv':
  Metadata:
    title           : The Marksman
    encoder         : libmakemkv v1.16.5 (1.3.10/1.5.2) darwin(arm64-release)
    creation_time   : 2021-11-08T19:52:37.000000Z
  Duration: 01:48:08.94, start: 0.000000, bitrate: 39906 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 251.542958
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 251.542958, end 622.955667
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 622.955667, end 902.192958
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 902.192958, end 1197.154292
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 1197.154292, end 1546.378167
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 1546.378167, end 1876.833292
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 1876.833292, end 2243.491250
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 2243.491250, end 2446.110333
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 2446.110333, end 2664.995667
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 2664.995667, end 2923.962708
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 2923.962708, end 3179.551375
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 3179.551375, end 3564.978083
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 3564.978083, end 3855.685167
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 3855.685167, end 4200.696500
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 4200.696500, end 4615.444167
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 4615.444167, end 5023.852167
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 5023.852167, end 5465.585125
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 5465.585125, end 5912.406500
      Metadata:
        title           : Chapter 18
    Chapter #0:18: start 5912.406500, end 6079.073000
      Metadata:
        title           : Chapter 19
    Chapter #0:19: start 6079.073000, end 6488.940792
      Metadata:
        title           : Chapter 20
  Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Metadata:
      BPS-eng         : 34899677
      DURATION-eng    : 01:48:08.940791666
      NUMBER_OF_FRAMES-eng: 155579
      NUMBER_OF_BYTES-eng: 28307738797
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _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(side), s32p (24 bit) (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 3261596
      DURATION-eng    : 01:48:08.949333333
      NUMBER_OF_FRAMES-eng: 608339
      NUMBER_OF_BYTES-eng: 2645541364
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 1509000
      DURATION-eng    : 01:48:08.949333333
      NUMBER_OF_FRAMES-eng: 608339
      NUMBER_OF_BYTES-eng: 1223978068
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:3(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 01:48:08.960000000
      NUMBER_OF_FRAMES-eng: 202780
      NUMBER_OF_BYTES-eng: 155735040
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 23907
      DURATION-eng    : 01:38:53.823729166
      NUMBER_OF_FRAMES-eng: 1951
      NUMBER_OF_BYTES-eng: 17733151
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:5(spa): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 17933
      DURATION-eng    : 01:42:58.693354166
      NUMBER_OF_FRAMES-eng: 1598
      NUMBER_OF_BYTES-eng: 13850877
      SOURCE_ID-eng   : 001201
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[18:00:01] scan: decoding previews for title 1
[18:00:01] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[18:00:01] scan: audio 0x2: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)
[18:00:01] scan: audio 0x3: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
Scanning title 1 of 1, preview 9, 90.00 %[18:00:03] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 138/138/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1
[18:00:03] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
  + stream: The Marksman.mkv
  + duration: 01:48:08
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 138/138/0/0
  + chapters:
    + 1: duration 00:04:12
    + 2: duration 00:06:11
    + 3: duration 00:04:39
    + 4: duration 00:04:55
    + 5: duration 00:05:49
    + 6: duration 00:05:30
    + 7: duration 00:06:07
    + 8: duration 00:03:23
    + 9: duration 00:03:39
    + 10: duration 00:04:19
    + 11: duration 00:04:16
    + 12: duration 00:06:25
    + 13: duration 00:04:51
    + 14: duration 00:05:45
    + 15: duration 00:06:55
    + 16: duration 00:06:48
    + 17: duration 00:07:22
    + 18: duration 00:07:27
    + 19: duration 00:02:47
    + 20: duration 00:06:50
  + audio tracks:
    + 1, English (DTS-HD MA) (5.1 ch) (iso639-2: eng)
    + 2, English (DTS) (5.1 ch) (1536 kbps) (iso639-2: eng), 48000Hz, 1536000bps
    + 3, English (AC3) (2.0 ch) (192 kbps) (iso639-2: eng), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English [PGS]
    + 2, español [PGS]
[18:00:03] Starting work at: Mon Nov  8 18:00:03 2021

[18:00:03] 1 job(s) to process
[18:00:03] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Encoder": 16384,
                "Mixdown": 4,
                "Track": 0
            },
            {
                "Encoder": 2048,
                "Mixdown": -1,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:eac3",
            "copy:dtshd",
            "copy:dts",
            "copy:mp3",
            "copy:truehd",
            "copy:flac"
        ],
        "FallbackEncoder": "ca_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 12,
                    "Ticks": 22638866
                },
                "Name": "Chapter 1"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 11,
                    "Ticks": 33427143
                },
                "Name": "Chapter 2"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 39,
                    "Ticks": 25131357
                },
                "Name": "Chapter 3"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 55,
                    "Ticks": 26546520
                },
                "Name": "Chapter 4"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 49,
                    "Ticks": 31430148
                },
                "Name": "Chapter 5"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 30,
                    "Ticks": 29740962
                },
                "Name": "Chapter 6"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 7,
                    "Ticks": 32999216
                },
                "Name": "Chapter 7"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 23,
                    "Ticks": 18235717
                },
                "Name": "Chapter 8"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 39,
                    "Ticks": 19699680
                },
                "Name": "Chapter 9"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 19,
                    "Ticks": 23307034
                },
                "Name": "Chapter 10"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 16,
                    "Ticks": 23002980
                },
                "Name": "Chapter 11"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 25,
                    "Ticks": 34688404
                },
                "Name": "Chapter 12"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 51,
                    "Ticks": 26163637
                },
                "Name": "Chapter 13"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 45,
                    "Ticks": 31051021
                },
                "Name": "Chapter 14"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 55,
                    "Ticks": 37327289
                },
                "Name": "Chapter 15"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 48,
                    "Ticks": 36756720
                },
                "Name": "Chapter 16"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 22,
                    "Ticks": 39755967
                },
                "Name": "Chapter 17"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 27,
                    "Ticks": 40213924
                },
                "Name": "Chapter 18"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 47,
                    "Ticks": 14999985
                },
                "Name": "Chapter 19"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 50,
                    "Ticks": 36888030
                },
                "Name": "Chapter 20"
            }
        ],
        "ChapterMarkers": true,
        "File": "/Volumes/Videos/Videos/The Marksman (1080p HEVC).m4v",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 13,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 1080,
                    "width": 1920
                }
            }
        ]
    },
    "Metadata": {
        "Name": "The Marksman"
    },
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "The Marksman.mkv",
        "Range": {
            "End": 20,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "Bitrate": 6000,
        "ColorInputFormat": 0,
        "ColorMatrix": 1,
        "ColorOutputFormat": 0,
        "ColorPrimaries": 1,
        "ColorRange": 0,
        "ColorTransfer": 1,
        "Encoder": "vt_h265",
        "QSV": {
            "AdapterIndex": 0,
            "AsyncDepth": 0,
            "Decode": false
        },
        "Turbo": false,
        "TwoPass": false
    }
}
[18:00:03] Starting Task: Encoding Pass
[18:00:03] Skipping vfr filter
[18:00:03] Skipping crop/scale filter
[18:00:03] work: bitrate not specified, track 1 setting bitrate 160 Kbps
[18:00:03] work: mixdown not specified, track 2 setting mixdown 5.1 Channels
[18:00:03] work: bitrate not specified, track 2 setting bitrate 640 Kbps
[18:00:03] job configuration:
[18:00:03]  * source
[18:00:03]    + The Marksman.mkv
[18:00:03]    + title 1, chapter(s) 1 to 20
[18:00:03]    + container: matroska,webm
[18:00:03]    + data rate: 39906 kbps
[18:00:03]  * destination
[18:00:03]    + /Volumes/Videos/Videos/The Marksman (1080p HEVC).m4v
[18:00:03]    + container: MPEG-4 (libavformat)
[18:00:03]      + chapter markers
[18:00:03]  * video track
[18:00:03]    + decoder: h264 8-bit (yuv420p)
[18:00:03]    + Output geometry
[18:00:03]      + storage dimensions: 1920 x 1080
[18:00:03]      + pixel aspect ratio: 1 : 1
[18:00:03]      + display dimensions: 1920 x 1080
[18:00:03]    + encoder: H.265 (libavcodec)
[18:00:03]      + bitrate: 6000 kbps, pass: 0
[18:00:03]      + color profile: 1-1-1
[18:00:03]  * audio track 1
[18:00:03]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[18:00:03]      + samplerate: 48000 Hz
[18:00:03]    + mixdown: Stereo
[18:00:03]    + encoder: AAC (Apple AudioToolbox)
[18:00:03]      + bitrate: 160 kbps, samplerate: 48000 Hz
[18:00:03]  * audio track 2
[18:00:03]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[18:00:03]      + samplerate: 48000 Hz
[18:00:03]    + mixdown: 5.1 Channels
[18:00:03]    + encoder: AC3 (libavcodec)
[18:00:03]      + bitrate: 640 kbps, samplerate: 48000 Hz
[18:00:03] sync: expecting 155578 video frames
[18:00:03] encavcodecInit: H.265 (VideoToolbox)
[18:00:03] encavcodec: encoding with stored aspect 1/1
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't open file VIDEO_TS.IFO.
Encoding: task 1 of 1, 0.00 %[18:00:04] sync: first pts video is 0
[18:00:04] sync: "Chapter 1" (1) at frame 1 time 0
[18:00:04] sync: first pts audio 0x1 is 0
[18:00:04] sync: first pts audio 0x1 is 0
Encoding: task 1 of 1, 3.86 % (154.47 fps, avg 154.74 fps, ETA 00h16m07s)[18:00:42] sync: "Chapter 2" (2) at frame 6032 time 22638866
Encoding: task 1 of 1, 9.60 % (154.14 fps, avg 154.33 fps, ETA 00h15m11s)[18:01:40] sync: "Chapter 3" (3) at frame 14937 time 56066010
Encoding: task 1 of 1, 13.89 % (154.57 fps, avg 154.29 fps, ETA 00h14m29s)[18:02:24] sync: "Chapter 4" (4) at frame 21632 time 81197366
Encoding: task 1 of 1, 18.43 % (155.06 fps, avg 154.30 fps, ETA 00h13m43s)[18:03:09] sync: "Chapter 5" (5) at frame 28706 time 107751393
Encoding: task 1 of 1, 23.82 % (154.29 fps, avg 154.28 fps, ETA 00h12m48s)[18:04:04] sync: "Chapter 6" (6) at frame 37080 time 139185296
Encoding: task 1 of 1, 28.91 % (154.52 fps, avg 154.29 fps, ETA 00h11m57s)[18:04:55] sync: "Chapter 7" (7) at frame 45003 time 168926257
Encoding: task 1 of 1, 34.55 % (152.17 fps, avg 154.31 fps, ETA 00h11m00s)[18:05:52] sync: "Chapter 8" (8) at frame 53793 time 201921720
Encoding: task 1 of 1, 37.69 % (154.19 fps, avg 154.28 fps, ETA 00h10m28s)[18:06:24] sync: "Chapter 9" (9) at frame 58652 time 220161191
Encoding: task 1 of 1, 41.07 % (154.40 fps, avg 154.29 fps, ETA 00h09m54s)[18:06:58] sync: "Chapter 10" (10) at frame 63897 time 239849610
Encoding: task 1 of 1, 45.04 % (154.59 fps, avg 154.33 fps, ETA 00h09m14s)[18:07:38] sync: "Chapter 11" (11) at frame 70106 time 263156643
Encoding: task 1 of 1, 48.99 % (154.61 fps, avg 154.34 fps, ETA 00h08m34s)[18:08:17] sync: "Chapter 12" (12) at frame 76237 time 286170885
Encoding: task 1 of 1, 54.91 % (154.32 fps, avg 154.33 fps, ETA 00h07m35s)[18:09:17] sync: "Chapter 13" (13) at frame 85478 time 320859288
Encoding: task 1 of 1, 59.41 % (154.46 fps, avg 154.33 fps, ETA 00h06m49s)[18:10:02] sync: "Chapter 14" (14) at frame 92447 time 347019172
Encoding: task 1 of 1, 64.71 % (155.19 fps, avg 154.36 fps, ETA 00h05m56s)[18:10:56] sync: "Chapter 15" (15) at frame 100717 time 378062685
Encoding: task 1 of 1, 71.13 % (154.58 fps, avg 154.35 fps, ETA 00h04m51s)[18:12:00] sync: "Chapter 16" (16) at frame 110663 time 415397482
Encoding: task 1 of 1, 77.42 % (155.24 fps, avg 154.35 fps, ETA 00h03m48s)[18:13:04] sync: "Chapter 17" (17) at frame 120456 time 452157956
Encoding: task 1 of 1, 84.20 % (154.80 fps, avg 154.35 fps, ETA 00h02m39s)[18:14:12] sync: "Chapter 18" (18) at frame 131046 time 491910168
Encoding: task 1 of 1, 91.10 % (154.29 fps, avg 154.37 fps, ETA 00h01m29s)[18:15:22] sync: "Chapter 19" (19) at frame 141757 time 532116585
Encoding: task 1 of 1, 93.66 % (124.43 fps, avg 154.16 fps, ETA 00h01m04s)[18:15:49] sync: "Chapter 20" (20) at frame 145753 time 547116570
Encoding: task 1 of 1, 99.94 % (150.20 fps, avg 153.97 fps, ETA 00h00m01s)[18:16:54] reader: done. 1 scr changes
Encoding: task 1 of 1, 100.00 % (155.55 fps, avg 153.97 fps, ETA 00h00m00s)[18:16:54] work: average encoding speed for job is 153.967346 fps
[18:16:54] dca-decoder done: 608339 frames, 0 decoder errors
[18:16:54] dca-decoder done: 608339 frames, 0 decoder errors
[18:16:54] h264-decoder done: 155579 frames, 0 decoder errors
[18:16:54] sync: got 155579 frames, 155578 expected
[18:16:54] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
Muxing: this may take awhile...[18:16:54] mux: track 0, 155579 frames, 4857275784 bytes, 5988.34 kbps, fifo 2048
[18:16:54] mux: track 1, 304172 frames, 132509185 bytes, 163.37 kbps, fifo 4096
[18:16:54] mux: track 2, 202779 frames, 519114240 bytes, 639.99 kbps, fifo 4096
[18:16:54] Finished work at: Mon Nov  8 18:16:54 2021

[18:16:54] libhb: work result = 0

Encode done!
HandBrake has exited.

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

Re: Using Video ToolBox on M1 Max Powerbook

Post by Rodeo »

Hmm, I didn't realize there were two encodes in your first post, the encode that's slower also doesn't use software crop/scale, so that can't be it.

I think the first thing to try might be a snapshot build: https://github.com/HandBrake/handbrake- ... es/tag/mac

It may not make any difference, but we recently switched to using the VideoToolBox API directly rather than going through libavcodec's wrapper, so unexpected improvements (or not) could happen.

Please try the snapshot on both the M1 and the iMac and post one log for each. No need to encode the while movie, the five first chapters should provide an idea of the encoding performance.
varase
Posts: 33
Joined: Sat May 14, 2016 9:29 am

Re: Using Video ToolBox on M1 Max Powerbook

Post by varase »

Yeah, the mkv2m4v script attempts to create a HD 1080p and a SD version for each mkv file in the source directory.

The HD 1080p version seems to be using hardware acceleration on the Intel, but I suspect it isn't using the media engine on the M1 Max PowerBook Pro 16 SoC. I believe the M1 Max media engine has a pair of H.265 encode engines so it should be much faster than the Intel iMac's T2 chip.

The SD transcode isn't working ever since switching to Monterey.

Intel 2020 iMac 5K Terminal Log:

Code: Select all

21.11.10 13:16:34 Host: Verne-iMac5K, ID: varase, Num: 6, Hist: 1006, RC: 0 [~] % mkv2m4v /Volumes/Aux/MakeMKV/Movies /Volumes/Videos/Videos


*** Command to be executed is ***

transcode-video --quick --encoder vt_h265 --m4v --output "/Volumes/Videos/Videos/The Marksman (1080p HEVC).m4v" "/Volumes/Aux/MakeMKV/Movies/The Marksman.mkv"

[13:17:00] Compile-time hardening features are enabled
[13:17:00] hb_init: starting libhb thread
[13:17:00] thread 700002077000 started ("libhb")
HandBrake 20211103192947-860ab0cf6-master (2021110801) - Darwin x86_64 - https://handbrake.fr
20 CPUs detected
Opening The Marksman.mkv...
[13:17:00] CPU: Intel(R) Core(TM) i9-10910 CPU @ 3.60GHz
[13:17:00]  - Intel microarchitecture Comet Lake
[13:17:00]  - logical processor count: 20
[13:17:00] hb_scan: path=The Marksman.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image The Marksman.mkv
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2646: nav_get_title_list(The Marksman.mkv/) failed
[13:17:00] bd: not a bd - trying as a stream/file instead
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[13:17:00] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'The Marksman.mkv':
  Metadata:
    title           : The Marksman
    encoder         : libmakemkv v1.16.5 (1.3.10/1.5.2) darwin(arm64-release)
    creation_time   : 2021-11-08T19:52:37.000000Z
  Duration: 01:48:08.94, start: 0.000000, bitrate: 39906 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 251.542958
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 251.542958, end 622.955667
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 622.955667, end 902.192958
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 902.192958, end 1197.154292
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 1197.154292, end 1546.378167
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 1546.378167, end 1876.833292
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 1876.833292, end 2243.491250
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 2243.491250, end 2446.110333
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 2446.110333, end 2664.995667
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 2664.995667, end 2923.962708
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 2923.962708, end 3179.551375
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 3179.551375, end 3564.978083
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 3564.978083, end 3855.685167
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 3855.685167, end 4200.696500
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 4200.696500, end 4615.444167
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 4615.444167, end 5023.852167
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 5023.852167, end 5465.585125
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 5465.585125, end 5912.406500
      Metadata:
        title           : Chapter 18
    Chapter #0:18: start 5912.406500, end 6079.073000
      Metadata:
        title           : Chapter 19
    Chapter #0:19: start 6079.073000, end 6488.940792
      Metadata:
        title           : Chapter 20
  Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Metadata:
      BPS-eng         : 34899677
      DURATION-eng    : 01:48:08.940791666
      NUMBER_OF_FRAMES-eng: 155579
      NUMBER_OF_BYTES-eng: 28307738797
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _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(side), s32p (24 bit) (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 3261596
      DURATION-eng    : 01:48:08.949333333
      NUMBER_OF_FRAMES-eng: 608339
      NUMBER_OF_BYTES-eng: 2645541364
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 1509000
      DURATION-eng    : 01:48:08.949333333
      NUMBER_OF_FRAMES-eng: 608339
      NUMBER_OF_BYTES-eng: 1223978068
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:3(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 01:48:08.960000000
      NUMBER_OF_FRAMES-eng: 202780
      NUMBER_OF_BYTES-eng: 155735040
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 23907
      DURATION-eng    : 01:38:53.823729166
      NUMBER_OF_FRAMES-eng: 1951
      NUMBER_OF_BYTES-eng: 17733151
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:5(spa): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 17933
      DURATION-eng    : 01:42:58.693354166
      NUMBER_OF_FRAMES-eng: 1598
      NUMBER_OF_BYTES-eng: 13850877
      SOURCE_ID-eng   : 001201
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[13:17:00] scan: decoding previews for title 1
[13:17:00] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[13:17:00] scan: audio 0x2: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)
[13:17:00] scan: audio 0x3: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
Scanning title 1 of 1, preview 10, 100.00 %[13:17:02] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 138/138/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[13:17:02] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
  + stream: The Marksman.mkv
  + duration: 01:48:08
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 138/138/0/0
  + chapters:
    + 1: duration 00:04:12
    + 2: duration 00:06:11
    + 3: duration 00:04:39
    + 4: duration 00:04:55
    + 5: duration 00:05:49
    + 6: duration 00:05:30
    + 7: duration 00:06:07
    + 8: duration 00:03:23
    + 9: duration 00:03:39
    + 10: duration 00:04:19
    + 11: duration 00:04:16
    + 12: duration 00:06:25
    + 13: duration 00:04:51
    + 14: duration 00:05:45
    + 15: duration 00:06:55
    + 16: duration 00:06:48
    + 17: duration 00:07:22
    + 18: duration 00:07:27
    + 19: duration 00:02:47
    + 20: duration 00:06:50
  + audio tracks:
    + 1, English (DTS-HD MA) (5.1 ch) (iso639-2: eng)
    + 2, English (DTS) (5.1 ch) (1536 kbps) (iso639-2: eng), 48000Hz, 1536000bps
    + 3, English (AC3) (2.0 ch) (192 kbps) (iso639-2: eng), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English [PGS]
    + 2, español [PGS]
[13:17:02] Starting work at: Wed Nov 10 13:17:02 2021

[13:17:02] 1 job(s) to process
[13:17:02] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Encoder": 16384,
                "Mixdown": 4,
                "Track": 0
            },
            {
                "Encoder": 2048,
                "Mixdown": -1,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:eac3",
            "copy:dtshd",
            "copy:dts",
            "copy:mp3",
            "copy:truehd",
            "copy:flac"
        ],
        "FallbackEncoder": "ca_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 12,
                    "Ticks": 22638866
                },
                "Name": "Chapter 1"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 11,
                    "Ticks": 33427143
                },
                "Name": "Chapter 2"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 39,
                    "Ticks": 25131357
                },
                "Name": "Chapter 3"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 55,
                    "Ticks": 26546520
                },
                "Name": "Chapter 4"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 49,
                    "Ticks": 31430148
                },
                "Name": "Chapter 5"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 30,
                    "Ticks": 29740962
                },
                "Name": "Chapter 6"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 7,
                    "Ticks": 32999216
                },
                "Name": "Chapter 7"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 23,
                    "Ticks": 18235717
                },
                "Name": "Chapter 8"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 39,
                    "Ticks": 19699680
                },
                "Name": "Chapter 9"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 19,
                    "Ticks": 23307034
                },
                "Name": "Chapter 10"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 16,
                    "Ticks": 23002980
                },
                "Name": "Chapter 11"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 25,
                    "Ticks": 34688404
                },
                "Name": "Chapter 12"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 51,
                    "Ticks": 26163637
                },
                "Name": "Chapter 13"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 45,
                    "Ticks": 31051021
                },
                "Name": "Chapter 14"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 55,
                    "Ticks": 37327289
                },
                "Name": "Chapter 15"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 48,
                    "Ticks": 36756720
                },
                "Name": "Chapter 16"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 22,
                    "Ticks": 39755967
                },
                "Name": "Chapter 17"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 27,
                    "Ticks": 40213924
                },
                "Name": "Chapter 18"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 47,
                    "Ticks": 14999985
                },
                "Name": "Chapter 19"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 50,
                    "Ticks": 36888030
                },
                "Name": "Chapter 20"
            }
        ],
        "ChapterMarkers": true,
        "File": "/Volumes/Videos/Videos/The Marksman (1080p HEVC).m4v",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 13,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 1080,
                    "width": 1920
                }
            }
        ]
    },
    "Metadata": {
        "Name": "The Marksman"
    },
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "The Marksman.mkv",
        "Range": {
            "End": 20,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "Bitrate": 6000,
        "ChromaLocation": 1,
        "ColorInputFormat": 0,
        "ColorMatrix": 1,
        "ColorOutputFormat": 0,
        "ColorPrimaries": 1,
        "ColorRange": 0,
        "ColorTransfer": 1,
        "Encoder": "vt_h265",
        "QSV": {
            "AdapterIndex": 0,
            "AsyncDepth": 0,
            "Decode": false
        },
        "Turbo": false,
        "TwoPass": false
    }
}
[13:17:02] Starting Task: Encoding Pass
[13:17:02] Skipping vfr filter
[13:17:02] Skipping crop/scale filter
[13:17:02] work: bitrate not specified, track 1 setting bitrate 160 Kbps
[13:17:02] work: mixdown not specified, track 2 setting mixdown 5.1 Channels
[13:17:02] work: bitrate not specified, track 2 setting bitrate 640 Kbps
[13:17:02] job configuration:
[13:17:02]  * source
[13:17:02]    + The Marksman.mkv
[13:17:02]    + title 1, chapter(s) 1 to 20
[13:17:02]    + container: matroska,webm
[13:17:02]    + data rate: 39906 kbps
[13:17:02]  * destination
[13:17:02]    + /Volumes/Videos/Videos/The Marksman (1080p HEVC).m4v
[13:17:02]    + container: MPEG-4 (libavformat)
[13:17:02]      + chapter markers
[13:17:02]  * video track
[13:17:02]    + decoder: h264 8-bit (yuv420p)
[13:17:02]    + Output geometry
[13:17:02]      + storage dimensions: 1920 x 1080
[13:17:02]      + pixel aspect ratio: 1 : 1
[13:17:02]      + display dimensions: 1920 x 1080
[13:17:02]    + encoder: H.265 (VideoToolbox)
[13:17:02]      + bitrate: 6000 kbps, pass: 0
[13:17:02]      + color profile: 1-1-1
[13:17:02]      + chroma location: left
[13:17:02]  * audio track 1
[13:17:02]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[13:17:02]      + samplerate: 48000 Hz
[13:17:02]    + mixdown: Stereo
[13:17:02]    + encoder: AAC (Apple AudioToolbox)
[13:17:02]      + bitrate: 160 kbps, samplerate: 48000 Hz
[13:17:02]  * audio track 2
[13:17:02]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[13:17:02]      + samplerate: 48000 Hz
[13:17:02]    + mixdown: 5.1 Channels
[13:17:02]    + encoder: AC3 (libavcodec)
[13:17:02]      + bitrate: 640 kbps, samplerate: 48000 Hz
[13:17:02] sync: expecting 155578 video frames
[13:17:02] encvt_Init: encoding with output bitrate 6000 Kbps
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't open file VIDEO_TS.IFO.
Encoding: task 1 of 1, 0.00 %[13:17:02] sync: first pts video is 0
[13:17:02] sync: "Chapter 1" (1) at frame 1 time 0
[13:17:02] sync: first pts audio 0x1 is 0
[13:17:02] sync: first pts audio 0x1 is 0
Encoding: task 1 of 1, 3.88 % (154.07 fps, avg 154.50 fps, ETA 00h16m08s)[13:17:41] sync: "Chapter 2" (2) at frame 6032 time 22638866
Encoding: task 1 of 1, 9.57 % (153.72 fps, avg 154.02 fps, ETA 00h15m13s)[13:18:39] sync: "Chapter 3" (3) at frame 14937 time 56066010
Encoding: task 1 of 1, 13.90 % (154.29 fps, avg 154.10 fps, ETA 00h14m29s)[13:19:23] sync: "Chapter 4" (4) at frame 21632 time 81197366
Encoding: task 1 of 1, 18.42 % (154.79 fps, avg 154.10 fps, ETA 00h13m43s)[13:20:08] sync: "Chapter 5" (5) at frame 28706 time 107751393
Encoding: task 1 of 1, 23.80 % (153.94 fps, avg 154.14 fps, ETA 00h12m49s)[13:21:03] sync: "Chapter 6" (6) at frame 37080 time 139185296
Encoding: task 1 of 1, 28.92 % (154.12 fps, avg 154.16 fps, ETA 00h11m57s)[13:21:54] sync: "Chapter 7" (7) at frame 45003 time 168926257
Encoding: task 1 of 1, 34.55 % (157.93 fps, avg 154.16 fps, ETA 00h11m01s)[13:22:51] sync: "Chapter 8" (8) at frame 53793 time 201921720
Encoding: task 1 of 1, 37.69 % (153.92 fps, avg 154.12 fps, ETA 00h10m29s)[13:23:23] sync: "Chapter 9" (9) at frame 58652 time 220161191
Encoding: task 1 of 1, 41.04 % (154.09 fps, avg 154.11 fps, ETA 00h09m55s)[13:23:57] sync: "Chapter 10" (10) at frame 63897 time 239849610
Encoding: task 1 of 1, 45.05 % (154.05 fps, avg 154.12 fps, ETA 00h09m15s)[13:24:37] sync: "Chapter 11" (11) at frame 70106 time 263156643
Encoding: task 1 of 1, 48.98 % (154.12 fps, avg 154.10 fps, ETA 00h08m35s)[13:25:17] sync: "Chapter 12" (12) at frame 76237 time 286170885
Encoding: task 1 of 1, 54.92 % (153.95 fps, avg 154.09 fps, ETA 00h07m35s)[13:26:17] sync: "Chapter 13" (13) at frame 85478 time 320859288
Encoding: task 1 of 1, 59.41 % (154.17 fps, avg 154.09 fps, ETA 00h06m50s)[13:27:02] sync: "Chapter 14" (14) at frame 92447 time 347019172
Encoding: task 1 of 1, 64.73 % (154.66 fps, avg 154.09 fps, ETA 00h05m56s)[13:27:56] sync: "Chapter 15" (15) at frame 100717 time 378062685
Encoding: task 1 of 1, 71.12 % (154.19 fps, avg 154.06 fps, ETA 00h04m51s)[13:29:00] sync: "Chapter 16" (16) at frame 110663 time 415397482
Encoding: task 1 of 1, 77.42 % (154.72 fps, avg 154.06 fps, ETA 00h03m48s)[13:30:04] sync: "Chapter 17" (17) at frame 120456 time 452157956
Encoding: task 1 of 1, 84.21 % (154.04 fps, avg 154.05 fps, ETA 00h02m40s)[13:31:13] sync: "Chapter 18" (18) at frame 131046 time 491910168
Encoding: task 1 of 1, 91.10 % (153.92 fps, avg 154.05 fps, ETA 00h01m30s)[13:32:22] sync: "Chapter 19" (19) at frame 141757 time 532116585
Encoding: task 1 of 1, 93.67 % (154.30 fps, avg 154.05 fps, ETA 00h01m04s)[13:32:48] sync: "Chapter 20" (20) at frame 145753 time 547116570
Encoding: task 1 of 1, 99.94 % (148.00 fps, avg 154.13 fps, ETA 00h00m01s)[13:33:51] reader: done. 1 scr changes
Encoding: task 1 of 1, 100.00 % (151.27 fps, avg 154.13 fps, ETA 00h00m00s)[13:33:52] work: average encoding speed for job is 154.127869 fps
[13:33:52] dca-decoder done: 608339 frames, 0 decoder errors
[13:33:52] dca-decoder done: 608339 frames, 0 decoder errors
[13:33:52] h264-decoder done: 155579 frames, 0 decoder errors
[13:33:52] sync: got 155579 frames, 155578 expected
[13:33:52] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
Encoding: task 1 of 1, 100.00 % (151.27 fps, avg 154.13 fps, ETA 00h00m00s)[13:33:52] mux: track 0, 155579 frames, 4858813645 bytes, 5990.23 kbps, fifo 2048
[13:33:52] mux: track 1, 304172 frames, 132509185 bytes, 163.37 kbps, fifo 4096
[13:33:52] mux: track 2, 202779 frames, 519114240 bytes, 639.99 kbps, fifo 4096
[13:33:52] Finished work at: Wed Nov 10 13:33:52 2021

[13:33:52] libhb: work result = 0

Encode done!
HandBrake has exited.

Completed: /Volumes/Videos/Videos/The Marksman (1080p HEVC).m4v
Elapsed time: 00:16:55



*** Command to be executed is ***

handbrakecli --input "The Marksman.mkv" -e vt_h265 -q 22.0 -r 30 --pfr -a 1 -E ffaac -B 160 -6 dpl2 -R Auto -D 0.0 --audio-copy-mask aac,ac3,dtshd,dts,mp3 --audio-fallback ffac3 -f mp4 -X 960 -Y 640 --loose-anamorphic --modulus 2 -m --x264-preset medium --h264-profile high --h264-level 3.1 --output "/Volumes/Videos/Videos/The Marksman (HEVC).m4v"

[13:33:53] Compile-time hardening features are enabled
[13:33:53] hb_init: starting libhb thread
[13:33:53] thread 7000041bd000 started ("libhb")
HandBrake 20211103192947-860ab0cf6-master (2021110801) - Darwin x86_64 - https://handbrake.fr
20 CPUs detected
Opening The Marksman.mkv...
[13:33:53] CPU: Intel(R) Core(TM) i9-10910 CPU @ 3.60GHz
[13:33:53]  - Intel microarchitecture Comet Lake
[13:33:53]  - logical processor count: 20
[13:33:53] hb_scan: path=The Marksman.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image The Marksman.mkv
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2646: nav_get_title_list(The Marksman.mkv/) failed
[13:33:53] bd: not a bd - trying as a stream/file instead
libdvdread: Encrypted DVD support unavailable.
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[13:33:53] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'The Marksman.mkv':
  Metadata:
    title           : The Marksman
    encoder         : libmakemkv v1.16.5 (1.3.10/1.5.2) darwin(arm64-release)
    creation_time   : 2021-11-08T19:52:37.000000Z
  Duration: 01:48:08.94, start: 0.000000, bitrate: 39906 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 251.542958
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 251.542958, end 622.955667
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 622.955667, end 902.192958
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 902.192958, end 1197.154292
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 1197.154292, end 1546.378167
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 1546.378167, end 1876.833292
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 1876.833292, end 2243.491250
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 2243.491250, end 2446.110333
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 2446.110333, end 2664.995667
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 2664.995667, end 2923.962708
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 2923.962708, end 3179.551375
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 3179.551375, end 3564.978083
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 3564.978083, end 3855.685167
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 3855.685167, end 4200.696500
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 4200.696500, end 4615.444167
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 4615.444167, end 5023.852167
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 5023.852167, end 5465.585125
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 5465.585125, end 5912.406500
      Metadata:
        title           : Chapter 18
    Chapter #0:18: start 5912.406500, end 6079.073000
      Metadata:
        title           : Chapter 19
    Chapter #0:19: start 6079.073000, end 6488.940792
      Metadata:
        title           : Chapter 20
  Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Metadata:
      BPS-eng         : 34899677
      DURATION-eng    : 01:48:08.940791666
      NUMBER_OF_FRAMES-eng: 155579
      NUMBER_OF_BYTES-eng: 28307738797
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _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(side), s32p (24 bit) (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 3261596
      DURATION-eng    : 01:48:08.949333333
      NUMBER_OF_FRAMES-eng: 608339
      NUMBER_OF_BYTES-eng: 2645541364
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 1509000
      DURATION-eng    : 01:48:08.949333333
      NUMBER_OF_FRAMES-eng: 608339
      NUMBER_OF_BYTES-eng: 1223978068
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:3(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 01:48:08.960000000
      NUMBER_OF_FRAMES-eng: 202780
      NUMBER_OF_BYTES-eng: 155735040
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 23907
      DURATION-eng    : 01:38:53.823729166
      NUMBER_OF_FRAMES-eng: 1951
      NUMBER_OF_BYTES-eng: 17733151
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:5(spa): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 17933
      DURATION-eng    : 01:42:58.693354166
      NUMBER_OF_FRAMES-eng: 1598
      NUMBER_OF_BYTES-eng: 13850877
      SOURCE_ID-eng   : 001201
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[13:33:53] scan: decoding previews for title 1
[13:33:54] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[13:33:54] scan: audio 0x2: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)
[13:33:54] scan: audio 0x3: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
Scanning title 1 of 1, preview 9, 90.00 %[13:33:55] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 138/138/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[13:33:55] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
  + stream: The Marksman.mkv
  + duration: 01:48:08
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 138/138/0/0
  + chapters:
    + 1: duration 00:04:12
    + 2: duration 00:06:11
    + 3: duration 00:04:39
    + 4: duration 00:04:55
    + 5: duration 00:05:49
    + 6: duration 00:05:30
    + 7: duration 00:06:07
    + 8: duration 00:03:23
    + 9: duration 00:03:39
    + 10: duration 00:04:19
    + 11: duration 00:04:16
    + 12: duration 00:06:25
    + 13: duration 00:04:51
    + 14: duration 00:05:45
    + 15: duration 00:06:55
    + 16: duration 00:06:48
    + 17: duration 00:07:22
    + 18: duration 00:07:27
    + 19: duration 00:02:47
    + 20: duration 00:06:50
  + audio tracks:
    + 1, English (DTS-HD MA) (5.1 ch) (iso639-2: eng)
    + 2, English (DTS) (5.1 ch) (1536 kbps) (iso639-2: eng), 48000Hz, 1536000bps
    + 3, English (AC3) (2.0 ch) (192 kbps) (iso639-2: eng), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English [PGS]
    + 2, español [PGS]
[13:33:55] Starting work at: Wed Nov 10 13:33:55 2021

[13:33:55] 1 job(s) to process
[13:33:55] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "DRC": 0.0,
                "Encoder": 16384,
                "Mixdown": 6,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:dtshd",
            "copy:dts",
            "copy:mp3"
        ],
        "FallbackEncoder": "ffac3"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 12,
                    "Ticks": 22638866
                },
                "Name": "Chapter 1"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 11,
                    "Ticks": 33427143
                },
                "Name": "Chapter 2"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 39,
                    "Ticks": 25131357
                },
                "Name": "Chapter 3"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 55,
                    "Ticks": 26546520
                },
                "Name": "Chapter 4"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 49,
                    "Ticks": 31430148
                },
                "Name": "Chapter 5"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 30,
                    "Ticks": 29740962
                },
                "Name": "Chapter 6"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 7,
                    "Ticks": 32999216
                },
                "Name": "Chapter 7"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 23,
                    "Ticks": 18235717
                },
                "Name": "Chapter 8"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 39,
                    "Ticks": 19699680
                },
                "Name": "Chapter 9"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 19,
                    "Ticks": 23307034
                },
                "Name": "Chapter 10"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 16,
                    "Ticks": 23002980
                },
                "Name": "Chapter 11"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 25,
                    "Ticks": 34688404
                },
                "Name": "Chapter 12"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 51,
                    "Ticks": 26163637
                },
                "Name": "Chapter 13"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 45,
                    "Ticks": 31051021
                },
                "Name": "Chapter 14"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 55,
                    "Ticks": 37327289
                },
                "Name": "Chapter 15"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 48,
                    "Ticks": 36756720
                },
                "Name": "Chapter 16"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 22,
                    "Ticks": 39755967
                },
                "Name": "Chapter 17"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 27,
                    "Ticks": 40213924
                },
                "Name": "Chapter 18"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 47,
                    "Ticks": 14999985
                },
                "Name": "Chapter 19"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 50,
                    "Ticks": 36888030
                },
                "Name": "Chapter 20"
            }
        ],
        "ChapterMarkers": true,
        "File": "/Volumes/Videos/Videos/The Marksman (HEVC).m4v",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 2,
                    "rate": "27000000/900000"
                }
            },
            {
                "ID": 13,
                "Settings": {
                    "crop-bottom": 138,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 138,
                    "height": 402,
                    "width": 960
                }
            }
        ]
    },
    "Metadata": {
        "Name": "The Marksman"
    },
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "The Marksman.mkv",
        "Range": {
            "End": 20,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ChromaLocation": 1,
        "ColorInputFormat": 0,
        "ColorMatrix": 1,
        "ColorOutputFormat": 0,
        "ColorPrimaries": 1,
        "ColorRange": 0,
        "ColorTransfer": 1,
        "Encoder": "vt_h265",
        "Level": "3.1",
        "Preset": "medium",
        "Profile": "high",
        "QSV": {
            "AdapterIndex": 0,
            "AsyncDepth": 0,
            "Decode": false
        },
        "Quality": 22.0,
        "Turbo": false,
        "TwoPass": false
    }
}
[13:33:55] Starting Task: Encoding Pass
[13:33:55] job configuration:
[13:33:55]  * source
[13:33:55]    + The Marksman.mkv
[13:33:55]    + title 1, chapter(s) 1 to 20
[13:33:55]    + container: matroska,webm
[13:33:55]    + data rate: 39906 kbps
[13:33:55]  * destination
[13:33:55]    + /Volumes/Videos/Videos/The Marksman (HEVC).m4v
[13:33:55]    + container: MPEG-4 (libavformat)
[13:33:55]      + chapter markers
[13:33:55]  * video track
[13:33:55]    + decoder: h264 8-bit (yuv420p)
[13:33:55]    + filters
[13:33:55]      + Framerate Shaper (mode=2:rate=27000000/900000)
[13:33:55]        + frame rate: 23.976 fps -> peak rate limited to 30.000 fps
[13:33:55]      + Crop and Scale (width=960:height=402:crop-top=138:crop-bottom=138:crop-left=0:crop-right=0)
[13:33:55]        + source: 1920 * 1080, crop (138/138/0/0): 1920 * 804, scale: 960 * 402
[13:33:55]    + Output geometry
[13:33:55]      + storage dimensions: 960 x 402
[13:33:55]      + pixel aspect ratio: 1 : 1
[13:33:55]      + display dimensions: 960 x 402
[13:33:55]    + encoder: H.265 (VideoToolbox)
[13:33:55]      + preset:  medium
[13:33:55]      + profile: high
[13:33:55]      + quality: 22.00 (CQ)
[13:33:55]      + color profile: 1-1-1
[13:33:55]      + chroma location: left
[13:33:55]  * audio track 1
[13:33:55]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[13:33:55]      + samplerate: 48000 Hz
[13:33:55]    + mixdown: Dolby Pro Logic II
[13:33:55]    + encoder: AAC (Apple AudioToolbox)
[13:33:55]      + bitrate: 160 kbps, samplerate: 48000 Hz
[13:33:55] sync: expecting 155578 video frames
ERROR: encvt_Init: invalid profile 'high'
ERROR: Failure to initialise thread 'VideoToolbox encoder (Apple)'
[13:33:55] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[13:33:55] vfr: lost time: 0 (0 frames)
[13:33:55] vfr: gained time: 0 (0 frames) (0 not accounted for)
[13:33:55] dca-decoder done: 0 frames, 0 decoder errors
[13:33:55] h264-decoder done: 0 frames, 0 decoder errors
[13:33:55] sync: got 0 frames, 155578 expected
[13:33:55] Finished work at: Wed Nov 10 13:33:55 2021

[13:33:55] libhb: work result = 3

Encode failed (error 3).

HandBrake has exited.

21.11.10 13:33:55 Host: Verne-iMac5K, ID: varase, Num: 7, Hist: 1007, RC: 3 [~] % 

Intel iMac 5K HandBrakeCLI Log:

Code: Select all

[13:17:00] Compile-time hardening features are enabled
[13:17:00] hb_init: starting libhb thread
[13:17:00] thread 700002077000 started ("libhb")
HandBrake 20211103192947-860ab0cf6-master (2021110801) - Darwin x86_64 - https://handbrake.fr
20 CPUs detected
Opening The Marksman.mkv...
[13:17:00] CPU: Intel(R) Core(TM) i9-10910 CPU @ 3.60GHz
[13:17:00]  - Intel microarchitecture Comet Lake
[13:17:00]  - logical processor count: 20
[13:17:00] hb_scan: path=The Marksman.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image The Marksman.mkv
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2646: nav_get_title_list(The Marksman.mkv/) failed
[13:17:00] bd: not a bd - trying as a stream/file instead
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[13:17:00] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'The Marksman.mkv':
  Metadata:
    title           : The Marksman
    encoder         : libmakemkv v1.16.5 (1.3.10/1.5.2) darwin(arm64-release)
    creation_time   : 2021-11-08T19:52:37.000000Z
  Duration: 01:48:08.94, start: 0.000000, bitrate: 39906 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 251.542958
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 251.542958, end 622.955667
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 622.955667, end 902.192958
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 902.192958, end 1197.154292
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 1197.154292, end 1546.378167
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 1546.378167, end 1876.833292
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 1876.833292, end 2243.491250
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 2243.491250, end 2446.110333
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 2446.110333, end 2664.995667
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 2664.995667, end 2923.962708
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 2923.962708, end 3179.551375
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 3179.551375, end 3564.978083
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 3564.978083, end 3855.685167
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 3855.685167, end 4200.696500
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 4200.696500, end 4615.444167
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 4615.444167, end 5023.852167
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 5023.852167, end 5465.585125
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 5465.585125, end 5912.406500
      Metadata:
        title           : Chapter 18
    Chapter #0:18: start 5912.406500, end 6079.073000
      Metadata:
        title           : Chapter 19
    Chapter #0:19: start 6079.073000, end 6488.940792
      Metadata:
        title           : Chapter 20
  Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Metadata:
      BPS-eng         : 34899677
      DURATION-eng    : 01:48:08.940791666
      NUMBER_OF_FRAMES-eng: 155579
      NUMBER_OF_BYTES-eng: 28307738797
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _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(side), s32p (24 bit) (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 3261596
      DURATION-eng    : 01:48:08.949333333
      NUMBER_OF_FRAMES-eng: 608339
      NUMBER_OF_BYTES-eng: 2645541364
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 1509000
      DURATION-eng    : 01:48:08.949333333
      NUMBER_OF_FRAMES-eng: 608339
      NUMBER_OF_BYTES-eng: 1223978068
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:3(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 01:48:08.960000000
      NUMBER_OF_FRAMES-eng: 202780
      NUMBER_OF_BYTES-eng: 155735040
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 23907
      DURATION-eng    : 01:38:53.823729166
      NUMBER_OF_FRAMES-eng: 1951
      NUMBER_OF_BYTES-eng: 17733151
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:5(spa): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 17933
      DURATION-eng    : 01:42:58.693354166
      NUMBER_OF_FRAMES-eng: 1598
      NUMBER_OF_BYTES-eng: 13850877
      SOURCE_ID-eng   : 001201
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[13:17:00] scan: decoding previews for title 1
[13:17:00] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[13:17:00] scan: audio 0x2: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)
[13:17:00] scan: audio 0x3: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
Scanning title 1 of 1, preview 10, 100.00 %[13:17:02] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 138/138/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[13:17:02] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
  + stream: The Marksman.mkv
  + duration: 01:48:08
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 138/138/0/0
  + chapters:
    + 1: duration 00:04:12
    + 2: duration 00:06:11
    + 3: duration 00:04:39
    + 4: duration 00:04:55
    + 5: duration 00:05:49
    + 6: duration 00:05:30
    + 7: duration 00:06:07
    + 8: duration 00:03:23
    + 9: duration 00:03:39
    + 10: duration 00:04:19
    + 11: duration 00:04:16
    + 12: duration 00:06:25
    + 13: duration 00:04:51
    + 14: duration 00:05:45
    + 15: duration 00:06:55
    + 16: duration 00:06:48
    + 17: duration 00:07:22
    + 18: duration 00:07:27
    + 19: duration 00:02:47
    + 20: duration 00:06:50
  + audio tracks:
    + 1, English (DTS-HD MA) (5.1 ch) (iso639-2: eng)
    + 2, English (DTS) (5.1 ch) (1536 kbps) (iso639-2: eng), 48000Hz, 1536000bps
    + 3, English (AC3) (2.0 ch) (192 kbps) (iso639-2: eng), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English [PGS]
    + 2, español [PGS]
[13:17:02] Starting work at: Wed Nov 10 13:17:02 2021

[13:17:02] 1 job(s) to process
[13:17:02] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Encoder": 16384,
                "Mixdown": 4,
                "Track": 0
            },
            {
                "Encoder": 2048,
                "Mixdown": -1,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:eac3",
            "copy:dtshd",
            "copy:dts",
            "copy:mp3",
            "copy:truehd",
            "copy:flac"
        ],
        "FallbackEncoder": "ca_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 12,
                    "Ticks": 22638866
                },
                "Name": "Chapter 1"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 11,
                    "Ticks": 33427143
                },
                "Name": "Chapter 2"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 39,
                    "Ticks": 25131357
                },
                "Name": "Chapter 3"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 55,
                    "Ticks": 26546520
                },
                "Name": "Chapter 4"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 49,
                    "Ticks": 31430148
                },
                "Name": "Chapter 5"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 30,
                    "Ticks": 29740962
                },
                "Name": "Chapter 6"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 7,
                    "Ticks": 32999216
                },
                "Name": "Chapter 7"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 23,
                    "Ticks": 18235717
                },
                "Name": "Chapter 8"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 39,
                    "Ticks": 19699680
                },
                "Name": "Chapter 9"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 19,
                    "Ticks": 23307034
                },
                "Name": "Chapter 10"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 16,
                    "Ticks": 23002980
                },
                "Name": "Chapter 11"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 25,
                    "Ticks": 34688404
                },
                "Name": "Chapter 12"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 51,
                    "Ticks": 26163637
                },
                "Name": "Chapter 13"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 45,
                    "Ticks": 31051021
                },
                "Name": "Chapter 14"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 55,
                    "Ticks": 37327289
                },
                "Name": "Chapter 15"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 48,
                    "Ticks": 36756720
                },
                "Name": "Chapter 16"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 22,
                    "Ticks": 39755967
                },
                "Name": "Chapter 17"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 27,
                    "Ticks": 40213924
                },
                "Name": "Chapter 18"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 47,
                    "Ticks": 14999985
                },
                "Name": "Chapter 19"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 50,
                    "Ticks": 36888030
                },
                "Name": "Chapter 20"
            }
        ],
        "ChapterMarkers": true,
        "File": "/Volumes/Videos/Videos/The Marksman (1080p HEVC).m4v",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 13,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 1080,
                    "width": 1920
                }
            }
        ]
    },
    "Metadata": {
        "Name": "The Marksman"
    },
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "The Marksman.mkv",
        "Range": {
            "End": 20,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "Bitrate": 6000,
        "ChromaLocation": 1,
        "ColorInputFormat": 0,
        "ColorMatrix": 1,
        "ColorOutputFormat": 0,
        "ColorPrimaries": 1,
        "ColorRange": 0,
        "ColorTransfer": 1,
        "Encoder": "vt_h265",
        "QSV": {
            "AdapterIndex": 0,
            "AsyncDepth": 0,
            "Decode": false
        },
        "Turbo": false,
        "TwoPass": false
    }
}
[13:17:02] Starting Task: Encoding Pass
[13:17:02] Skipping vfr filter
[13:17:02] Skipping crop/scale filter
[13:17:02] work: bitrate not specified, track 1 setting bitrate 160 Kbps
[13:17:02] work: mixdown not specified, track 2 setting mixdown 5.1 Channels
[13:17:02] work: bitrate not specified, track 2 setting bitrate 640 Kbps
[13:17:02] job configuration:
[13:17:02]  * source
[13:17:02]    + The Marksman.mkv
[13:17:02]    + title 1, chapter(s) 1 to 20
[13:17:02]    + container: matroska,webm
[13:17:02]    + data rate: 39906 kbps
[13:17:02]  * destination
[13:17:02]    + /Volumes/Videos/Videos/The Marksman (1080p HEVC).m4v
[13:17:02]    + container: MPEG-4 (libavformat)
[13:17:02]      + chapter markers
[13:17:02]  * video track
[13:17:02]    + decoder: h264 8-bit (yuv420p)
[13:17:02]    + Output geometry
[13:17:02]      + storage dimensions: 1920 x 1080
[13:17:02]      + pixel aspect ratio: 1 : 1
[13:17:02]      + display dimensions: 1920 x 1080
[13:17:02]    + encoder: H.265 (VideoToolbox)
[13:17:02]      + bitrate: 6000 kbps, pass: 0
[13:17:02]      + color profile: 1-1-1
[13:17:02]      + chroma location: left
[13:17:02]  * audio track 1
[13:17:02]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[13:17:02]      + samplerate: 48000 Hz
[13:17:02]    + mixdown: Stereo
[13:17:02]    + encoder: AAC (Apple AudioToolbox)
[13:17:02]      + bitrate: 160 kbps, samplerate: 48000 Hz
[13:17:02]  * audio track 2
[13:17:02]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[13:17:02]      + samplerate: 48000 Hz
[13:17:02]    + mixdown: 5.1 Channels
[13:17:02]    + encoder: AC3 (libavcodec)
[13:17:02]      + bitrate: 640 kbps, samplerate: 48000 Hz
[13:17:02] sync: expecting 155578 video frames
[13:17:02] encvt_Init: encoding with output bitrate 6000 Kbps
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't open file VIDEO_TS.IFO.
Encoding: task 1 of 1, 0.00 %[13:17:02] sync: first pts video is 0
[13:17:02] sync: "Chapter 1" (1) at frame 1 time 0
[13:17:02] sync: first pts audio 0x1 is 0
[13:17:02] sync: first pts audio 0x1 is 0
Encoding: task 1 of 1, 3.88 % (154.07 fps, avg 154.50 fps, ETA 00h16m08s)[13:17:41] sync: "Chapter 2" (2) at frame 6032 time 22638866
Encoding: task 1 of 1, 9.57 % (153.72 fps, avg 154.02 fps, ETA 00h15m13s)[13:18:39] sync: "Chapter 3" (3) at frame 14937 time 56066010
Encoding: task 1 of 1, 13.90 % (154.29 fps, avg 154.10 fps, ETA 00h14m29s)[13:19:23] sync: "Chapter 4" (4) at frame 21632 time 81197366
Encoding: task 1 of 1, 18.42 % (154.79 fps, avg 154.10 fps, ETA 00h13m43s)[13:20:08] sync: "Chapter 5" (5) at frame 28706 time 107751393
Encoding: task 1 of 1, 23.80 % (153.94 fps, avg 154.14 fps, ETA 00h12m49s)[13:21:03] sync: "Chapter 6" (6) at frame 37080 time 139185296
Encoding: task 1 of 1, 28.92 % (154.12 fps, avg 154.16 fps, ETA 00h11m57s)[13:21:54] sync: "Chapter 7" (7) at frame 45003 time 168926257
Encoding: task 1 of 1, 34.55 % (157.93 fps, avg 154.16 fps, ETA 00h11m01s)[13:22:51] sync: "Chapter 8" (8) at frame 53793 time 201921720
Encoding: task 1 of 1, 37.69 % (153.92 fps, avg 154.12 fps, ETA 00h10m29s)[13:23:23] sync: "Chapter 9" (9) at frame 58652 time 220161191
Encoding: task 1 of 1, 41.04 % (154.09 fps, avg 154.11 fps, ETA 00h09m55s)[13:23:57] sync: "Chapter 10" (10) at frame 63897 time 239849610
Encoding: task 1 of 1, 45.05 % (154.05 fps, avg 154.12 fps, ETA 00h09m15s)[13:24:37] sync: "Chapter 11" (11) at frame 70106 time 263156643
Encoding: task 1 of 1, 48.98 % (154.12 fps, avg 154.10 fps, ETA 00h08m35s)[13:25:17] sync: "Chapter 12" (12) at frame 76237 time 286170885
Encoding: task 1 of 1, 54.92 % (153.95 fps, avg 154.09 fps, ETA 00h07m35s)[13:26:17] sync: "Chapter 13" (13) at frame 85478 time 320859288
Encoding: task 1 of 1, 59.41 % (154.17 fps, avg 154.09 fps, ETA 00h06m50s)[13:27:02] sync: "Chapter 14" (14) at frame 92447 time 347019172
Encoding: task 1 of 1, 64.73 % (154.66 fps, avg 154.09 fps, ETA 00h05m56s)[13:27:56] sync: "Chapter 15" (15) at frame 100717 time 378062685
Encoding: task 1 of 1, 71.12 % (154.19 fps, avg 154.06 fps, ETA 00h04m51s)[13:29:00] sync: "Chapter 16" (16) at frame 110663 time 415397482
Encoding: task 1 of 1, 77.42 % (154.72 fps, avg 154.06 fps, ETA 00h03m48s)[13:30:04] sync: "Chapter 17" (17) at frame 120456 time 452157956
Encoding: task 1 of 1, 84.21 % (154.04 fps, avg 154.05 fps, ETA 00h02m40s)[13:31:13] sync: "Chapter 18" (18) at frame 131046 time 491910168
Encoding: task 1 of 1, 91.10 % (153.92 fps, avg 154.05 fps, ETA 00h01m30s)[13:32:22] sync: "Chapter 19" (19) at frame 141757 time 532116585
Encoding: task 1 of 1, 93.67 % (154.30 fps, avg 154.05 fps, ETA 00h01m04s)[13:32:48] sync: "Chapter 20" (20) at frame 145753 time 547116570
Encoding: task 1 of 1, 99.94 % (148.00 fps, avg 154.13 fps, ETA 00h00m01s)[13:33:51] reader: done. 1 scr changes
Encoding: task 1 of 1, 100.00 % (151.27 fps, avg 154.13 fps, ETA 00h00m00s)[13:33:52] work: average encoding speed for job is 154.127869 fps
[13:33:52] dca-decoder done: 608339 frames, 0 decoder errors
[13:33:52] dca-decoder done: 608339 frames, 0 decoder errors
[13:33:52] h264-decoder done: 155579 frames, 0 decoder errors
[13:33:52] sync: got 155579 frames, 155578 expected
[13:33:52] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
Encoding: task 1 of 1, 100.00 % (151.27 fps, avg 154.13 fps, ETA 00h00m00s)[13:33:52] mux: track 0, 155579 frames, 4858813645 bytes, 5990.23 kbps, fifo 2048
[13:33:52] mux: track 1, 304172 frames, 132509185 bytes, 163.37 kbps, fifo 4096
[13:33:52] mux: track 2, 202779 frames, 519114240 bytes, 639.99 kbps, fifo 4096
[13:33:52] Finished work at: Wed Nov 10 13:33:52 2021

[13:33:52] libhb: work result = 0

Encode done!
HandBrake has exited.

PowerBook Pro M1 Max Terminal Log:

Code: Select all

21.11.10 13:19:54 Host: Verne-MBP16, ID: varase, Num: 24, Hist: 384, RC: 0 [~] % mkv2m4v ~/RIPs/MakeMKV/Movies ~/RIPs/Videos 


*** Command to be executed is ***

transcode-video --quick --encoder vt_h265 --m4v --output "/Users/varase/RIPs/Videos/The Marksman (1080p HEVC).m4v" "/Users/varase/RIPs/MakeMKV/Movies/The Marksman.mkv"

[13:20:38] Compile-time hardening features are enabled
[13:20:38] hb_init: starting libhb thread
[13:20:38] thread 16dc0f000 started ("libhb")
HandBrake 20211103192947-860ab0cf6-master (2021110801) - Darwin arm64 - https://handbrake.fr
10 CPUs detected
Opening The Marksman.mkv...
[13:20:38] CPU: 
[13:20:38]  - logical processor count: 10
[13:20:38] hb_scan: path=The Marksman.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image The Marksman.mkv
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2646: nav_get_title_list(The Marksman.mkv/) failed
[13:20:38] bd: not a bd - trying as a stream/file instead
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[13:20:38] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'The Marksman.mkv':
  Metadata:
    title           : The Marksman
    encoder         : libmakemkv v1.16.5 (1.3.10/1.5.2) darwin(arm64-release)
    creation_time   : 2021-11-08T19:52:37.000000Z
  Duration: 01:48:08.94, start: 0.000000, bitrate: 39906 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 251.542958
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 251.542958, end 622.955667
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 622.955667, end 902.192958
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 902.192958, end 1197.154292
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 1197.154292, end 1546.378167
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 1546.378167, end 1876.833292
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 1876.833292, end 2243.491250
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 2243.491250, end 2446.110333
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 2446.110333, end 2664.995667
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 2664.995667, end 2923.962708
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 2923.962708, end 3179.551375
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 3179.551375, end 3564.978083
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 3564.978083, end 3855.685167
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 3855.685167, end 4200.696500
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 4200.696500, end 4615.444167
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 4615.444167, end 5023.852167
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 5023.852167, end 5465.585125
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 5465.585125, end 5912.406500
      Metadata:
        title           : Chapter 18
    Chapter #0:18: start 5912.406500, end 6079.073000
      Metadata:
        title           : Chapter 19
    Chapter #0:19: start 6079.073000, end 6488.940792
      Metadata:
        title           : Chapter 20
  Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Metadata:
      BPS-eng         : 34899677
      DURATION-eng    : 01:48:08.940791666
      NUMBER_OF_FRAMES-eng: 155579
      NUMBER_OF_BYTES-eng: 28307738797
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _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(side), s32p (24 bit) (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 3261596
      DURATION-eng    : 01:48:08.949333333
      NUMBER_OF_FRAMES-eng: 608339
      NUMBER_OF_BYTES-eng: 2645541364
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 1509000
      DURATION-eng    : 01:48:08.949333333
      NUMBER_OF_FRAMES-eng: 608339
      NUMBER_OF_BYTES-eng: 1223978068
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:3(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 01:48:08.960000000
      NUMBER_OF_FRAMES-eng: 202780
      NUMBER_OF_BYTES-eng: 155735040
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 23907
      DURATION-eng    : 01:38:53.823729166
      NUMBER_OF_FRAMES-eng: 1951
      NUMBER_OF_BYTES-eng: 17733151
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:5(spa): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 17933
      DURATION-eng    : 01:42:58.693354166
      NUMBER_OF_FRAMES-eng: 1598
      NUMBER_OF_BYTES-eng: 13850877
      SOURCE_ID-eng   : 001201
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[13:20:38] scan: decoding previews for title 1
[13:20:38] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[13:20:38] scan: audio 0x2: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)
[13:20:38] scan: audio 0x3: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
Scanning title 1 of 1, preview 9, 90.00 %[13:20:39] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 138/138/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[13:20:39] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
  + stream: The Marksman.mkv
  + duration: 01:48:08
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 138/138/0/0
  + chapters:
    + 1: duration 00:04:12
    + 2: duration 00:06:11
    + 3: duration 00:04:39
    + 4: duration 00:04:55
    + 5: duration 00:05:49
    + 6: duration 00:05:30
    + 7: duration 00:06:07
    + 8: duration 00:03:23
    + 9: duration 00:03:39
    + 10: duration 00:04:19
    + 11: duration 00:04:16
    + 12: duration 00:06:25
    + 13: duration 00:04:51
    + 14: duration 00:05:45
    + 15: duration 00:06:55
    + 16: duration 00:06:48
    + 17: duration 00:07:22
    + 18: duration 00:07:27
    + 19: duration 00:02:47
    + 20: duration 00:06:50
  + audio tracks:
    + 1, English (DTS-HD MA) (5.1 ch) (iso639-2: eng)
    + 2, English (DTS) (5.1 ch) (1536 kbps) (iso639-2: eng), 48000Hz, 1536000bps
    + 3, English (AC3) (2.0 ch) (192 kbps) (iso639-2: eng), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English [PGS]
    + 2, español [PGS]
[13:20:39] Starting work at: Wed Nov 10 13:20:39 2021

[13:20:39] 1 job(s) to process
[13:20:39] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Encoder": 16384,
                "Mixdown": 4,
                "Track": 0
            },
            {
                "Encoder": 2048,
                "Mixdown": -1,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:eac3",
            "copy:dtshd",
            "copy:dts",
            "copy:mp3",
            "copy:truehd",
            "copy:flac"
        ],
        "FallbackEncoder": "ca_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 12,
                    "Ticks": 22638866
                },
                "Name": "Chapter 1"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 11,
                    "Ticks": 33427143
                },
                "Name": "Chapter 2"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 39,
                    "Ticks": 25131357
                },
                "Name": "Chapter 3"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 55,
                    "Ticks": 26546520
                },
                "Name": "Chapter 4"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 49,
                    "Ticks": 31430148
                },
                "Name": "Chapter 5"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 30,
                    "Ticks": 29740962
                },
                "Name": "Chapter 6"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 7,
                    "Ticks": 32999216
                },
                "Name": "Chapter 7"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 23,
                    "Ticks": 18235717
                },
                "Name": "Chapter 8"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 39,
                    "Ticks": 19699680
                },
                "Name": "Chapter 9"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 19,
                    "Ticks": 23307034
                },
                "Name": "Chapter 10"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 16,
                    "Ticks": 23002980
                },
                "Name": "Chapter 11"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 25,
                    "Ticks": 34688404
                },
                "Name": "Chapter 12"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 51,
                    "Ticks": 26163637
                },
                "Name": "Chapter 13"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 45,
                    "Ticks": 31051021
                },
                "Name": "Chapter 14"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 55,
                    "Ticks": 37327289
                },
                "Name": "Chapter 15"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 48,
                    "Ticks": 36756720
                },
                "Name": "Chapter 16"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 22,
                    "Ticks": 39755967
                },
                "Name": "Chapter 17"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 27,
                    "Ticks": 40213924
                },
                "Name": "Chapter 18"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 47,
                    "Ticks": 14999985
                },
                "Name": "Chapter 19"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 50,
                    "Ticks": 36888030
                },
                "Name": "Chapter 20"
            }
        ],
        "ChapterMarkers": true,
        "File": "/Users/varase/RIPs/Videos/The Marksman (1080p HEVC).m4v",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 13,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 1080,
                    "width": 1920
                }
            }
        ]
    },
    "Metadata": {
        "Name": "The Marksman"
    },
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "The Marksman.mkv",
        "Range": {
            "End": 20,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "Bitrate": 6000,
        "ChromaLocation": 1,
        "ColorInputFormat": 0,
        "ColorMatrix": 1,
        "ColorOutputFormat": 0,
        "ColorPrimaries": 1,
        "ColorRange": 0,
        "ColorTransfer": 1,
        "Encoder": "vt_h265",
        "QSV": {
            "AdapterIndex": 0,
            "AsyncDepth": 0,
            "Decode": false
        },
        "Turbo": false,
        "TwoPass": false
    }
}
[13:20:39] Starting Task: Encoding Pass
[13:20:39] Skipping vfr filter
[13:20:39] Skipping crop/scale filter
[13:20:39] work: bitrate not specified, track 1 setting bitrate 160 Kbps
[13:20:39] work: mixdown not specified, track 2 setting mixdown 5.1 Channels
[13:20:39] work: bitrate not specified, track 2 setting bitrate 640 Kbps
[13:20:39] job configuration:
[13:20:39]  * source
[13:20:39]    + The Marksman.mkv
[13:20:39]    + title 1, chapter(s) 1 to 20
[13:20:39]    + container: matroska,webm
[13:20:39]    + data rate: 39906 kbps
[13:20:39]  * destination
[13:20:39]    + /Users/varase/RIPs/Videos/The Marksman (1080p HEVC).m4v
[13:20:39]    + container: MPEG-4 (libavformat)
[13:20:39]      + chapter markers
[13:20:39]  * video track
[13:20:39]    + decoder: h264 8-bit (yuv420p)
[13:20:39]    + Output geometry
[13:20:39]      + storage dimensions: 1920 x 1080
[13:20:39]      + pixel aspect ratio: 1 : 1
[13:20:39]      + display dimensions: 1920 x 1080
[13:20:39]    + encoder: H.265 (VideoToolbox)
[13:20:39]      + bitrate: 6000 kbps, pass: 0
[13:20:39]      + color profile: 1-1-1
[13:20:39]      + chroma location: left
[13:20:39]  * audio track 1
[13:20:39]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[13:20:39]      + samplerate: 48000 Hz
[13:20:39]    + mixdown: Stereo
[13:20:39]    + encoder: AAC (Apple AudioToolbox)
[13:20:39]      + bitrate: 160 kbps, samplerate: 48000 Hz
[13:20:39]  * audio track 2
[13:20:39]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[13:20:39]      + samplerate: 48000 Hz
[13:20:39]    + mixdown: 5.1 Channels
[13:20:39]    + encoder: AC3 (libavcodec)
[13:20:39]      + bitrate: 640 kbps, samplerate: 48000 Hz
[13:20:39] sync: expecting 155578 video frames
[13:20:39] encvt_Init: encoding with output bitrate 6000 Kbps
[13:20:39] sync: first pts video is 0
[13:20:39] sync: "Chapter 1" (1) at frame 1 time 0
[13:20:39] sync: first pts audio 0x1 is 0
[13:20:39] sync: first pts audio 0x1 is 0
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't open file VIDEO_TS.IFO.
Encoding: task 1 of 1, 3.87 % (57.62 fps, avg 57.89 fps, ETA 00h43m03s)[13:22:23] sync: "Chapter 2" (2) at frame 6032 time 22638866
Encoding: task 1 of 1, 9.59 % (58.54 fps, avg 57.72 fps, ETA 00h40m36s)[13:24:58] sync: "Chapter 3" (3) at frame 14937 time 56066010
Encoding: task 1 of 1, 13.90 % (54.42 fps, avg 57.65 fps, ETA 00h38m44s)[13:26:54] sync: "Chapter 4" (4) at frame 21632 time 81197366
Encoding: task 1 of 1, 18.45 % (58.60 fps, avg 57.63 fps, ETA 00h36m41s)[13:28:57] sync: "Chapter 5" (5) at frame 28706 time 107751393
Encoding: task 1 of 1, 23.82 % (56.36 fps, avg 57.64 fps, ETA 00h34m16s)[13:31:22] sync: "Chapter 6" (6) at frame 37080 time 139185296
Encoding: task 1 of 1, 28.92 % (57.66 fps, avg 57.62 fps, ETA 00h32m00s)[13:33:40] sync: "Chapter 7" (7) at frame 45003 time 168926257
Encoding: task 1 of 1, 34.57 % (56.61 fps, avg 57.61 fps, ETA 00h29m28s)[13:36:13] sync: "Chapter 8" (8) at frame 53793 time 201921720
Encoding: task 1 of 1, 37.70 % (57.29 fps, avg 57.60 fps, ETA 00h28m03s)[13:37:37] sync: "Chapter 9" (9) at frame 58652 time 220161191
Encoding: task 1 of 1, 41.06 % (57.54 fps, avg 57.60 fps, ETA 00h26m32s)[13:39:08] sync: "Chapter 10" (10) at frame 63897 time 239849610
Encoding: task 1 of 1, 45.06 % (56.39 fps, avg 57.60 fps, ETA 00h24m44s)[13:40:56] sync: "Chapter 11" (11) at frame 70106 time 263156643
Encoding: task 1 of 1, 48.99 % (55.44 fps, avg 57.59 fps, ETA 00h22m58s)[13:42:43] sync: "Chapter 12" (12) at frame 76237 time 286170885
Encoding: task 1 of 1, 54.93 % (56.17 fps, avg 57.57 fps, ETA 00h20m18s)[13:45:24] sync: "Chapter 13" (13) at frame 85478 time 320859288
Encoding: task 1 of 1, 59.42 % (58.12 fps, avg 57.58 fps, ETA 00h18m17s)[13:47:25] sync: "Chapter 14" (14) at frame 92447 time 347019172
Encoding: task 1 of 1, 64.73 % (55.85 fps, avg 57.58 fps, ETA 00h15m53s)[13:49:48] sync: "Chapter 15" (15) at frame 100717 time 378062685
Encoding: task 1 of 1, 71.12 % (57.56 fps, avg 57.57 fps, ETA 00h13m01s)[13:52:41] sync: "Chapter 16" (16) at frame 110663 time 415397482
Encoding: task 1 of 1, 77.42 % (57.18 fps, avg 57.56 fps, ETA 00h10m11s)[13:55:32] sync: "Chapter 17" (17) at frame 120456 time 452157956
Encoding: task 1 of 1, 84.22 % (58.48 fps, avg 57.56 fps, ETA 00h07m07s)[13:58:36] sync: "Chapter 18" (18) at frame 131046 time 491910168
Encoding: task 1 of 1, 91.11 % (57.00 fps, avg 57.55 fps, ETA 00h04m00s)[14:01:42] sync: "Chapter 19" (19) at frame 141757 time 532116585
Encoding: task 1 of 1, 93.68 % (55.44 fps, avg 57.55 fps, ETA 00h02m52s)[14:02:52] sync: "Chapter 20" (20) at frame 145753 time 547116570
Encoding: task 1 of 1, 99.96 % (59.70 fps, avg 57.63 fps, ETA 00h00m01s)[14:05:38] reader: done. 1 scr changes
Encoding: task 1 of 1, 100.00 % (59.70 fps, avg 57.63 fps, ETA 00h00m01s)[14:05:39] work: average encoding speed for job is 57.633858 fps
Encoding: task 1 of 1, 100.00 % (59.70 fps, avg 57.63 fps, ETA 00h00m01s)[14:05:39] dca-decoder done: 608339 frames, 0 decoder errors
[14:05:39] dca-decoder done: 608339 frames, 0 decoder errors
[14:05:39] h264-decoder done: 155579 frames, 0 decoder errors
[14:05:39] sync: got 155579 frames, 155578 expected
[14:05:39] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
[14:05:39] mux: track 0, 155579 frames, 4857818108 bytes, 5989.00 kbps, fifo 4096
[14:05:39] mux: track 1, 304172 frames, 132518652 bytes, 163.38 kbps, fifo 4096
[14:05:39] mux: track 2, 202779 frames, 519114240 bytes, 639.99 kbps, fifo 4096
[14:05:39] Finished work at: Wed Nov 10 14:05:39 2021

[14:05:39] libhb: work result = 0

Encode done!
HandBrake has exited.

/Users/varase/.asdf/installs/ruby/3.0.2/bin/transcode-video: mp4track not available


*** Command to be executed is ***

handbrakecli --input "The Marksman.mkv" -e vt_h265 -q 22.0 -r 30 --pfr -a 1 -E ffaac -B 160 -6 dpl2 -R Auto -D 0.0 --audio-copy-mask aac,ac3,dtshd,dts,mp3 --audio-fallback ffac3 -f mp4 -X 960 -Y 640 --loose-anamorphic --modulus 2 -m --x264-preset medium --h264-profile high --h264-level 3.1 --output "/Users/varase/RIPs/Videos/The Marksman (HEVC).m4v"

[14:05:40] Compile-time hardening features are enabled
[14:05:40] hb_init: starting libhb thread
[14:05:40] thread 16d58f000 started ("libhb")
HandBrake 20211103192947-860ab0cf6-master (2021110801) - Darwin arm64 - https://handbrake.fr
10 CPUs detected
Opening The Marksman.mkv...
[14:05:40] CPU: 
[14:05:40]  - logical processor count: 10
[14:05:40] hb_scan: path=The Marksman.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image The Marksman.mkv
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2646: nav_get_title_list(The Marksman.mkv/) failed
[14:05:40] bd: not a bd - trying as a stream/file instead
libdvdread: Encrypted DVD support unavailable.
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[14:05:40] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'The Marksman.mkv':
  Metadata:
    title           : The Marksman
    encoder         : libmakemkv v1.16.5 (1.3.10/1.5.2) darwin(arm64-release)
    creation_time   : 2021-11-08T19:52:37.000000Z
  Duration: 01:48:08.94, start: 0.000000, bitrate: 39906 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 251.542958
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 251.542958, end 622.955667
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 622.955667, end 902.192958
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 902.192958, end 1197.154292
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 1197.154292, end 1546.378167
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 1546.378167, end 1876.833292
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 1876.833292, end 2243.491250
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 2243.491250, end 2446.110333
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 2446.110333, end 2664.995667
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 2664.995667, end 2923.962708
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 2923.962708, end 3179.551375
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 3179.551375, end 3564.978083
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 3564.978083, end 3855.685167
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 3855.685167, end 4200.696500
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 4200.696500, end 4615.444167
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 4615.444167, end 5023.852167
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 5023.852167, end 5465.585125
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 5465.585125, end 5912.406500
      Metadata:
        title           : Chapter 18
    Chapter #0:18: start 5912.406500, end 6079.073000
      Metadata:
        title           : Chapter 19
    Chapter #0:19: start 6079.073000, end 6488.940792
      Metadata:
        title           : Chapter 20
  Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Metadata:
      BPS-eng         : 34899677
      DURATION-eng    : 01:48:08.940791666
      NUMBER_OF_FRAMES-eng: 155579
      NUMBER_OF_BYTES-eng: 28307738797
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _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(side), s32p (24 bit) (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 3261596
      DURATION-eng    : 01:48:08.949333333
      NUMBER_OF_FRAMES-eng: 608339
      NUMBER_OF_BYTES-eng: 2645541364
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 1509000
      DURATION-eng    : 01:48:08.949333333
      NUMBER_OF_FRAMES-eng: 608339
      NUMBER_OF_BYTES-eng: 1223978068
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:3(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 01:48:08.960000000
      NUMBER_OF_FRAMES-eng: 202780
      NUMBER_OF_BYTES-eng: 155735040
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 23907
      DURATION-eng    : 01:38:53.823729166
      NUMBER_OF_FRAMES-eng: 1951
      NUMBER_OF_BYTES-eng: 17733151
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:5(spa): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 17933
      DURATION-eng    : 01:42:58.693354166
      NUMBER_OF_FRAMES-eng: 1598
      NUMBER_OF_BYTES-eng: 13850877
      SOURCE_ID-eng   : 001201
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[14:05:40] scan: decoding previews for title 1
[14:05:40] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[14:05:40] scan: audio 0x2: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)
[14:05:40] scan: audio 0x3: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
Scanning title 1 of 1, preview 9, 90.00 %[14:05:41] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 138/138/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[14:05:41] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
  + stream: The Marksman.mkv
  + duration: 01:48:08
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 138/138/0/0
  + chapters:
    + 1: duration 00:04:12
    + 2: duration 00:06:11
    + 3: duration 00:04:39
    + 4: duration 00:04:55
    + 5: duration 00:05:49
    + 6: duration 00:05:30
    + 7: duration 00:06:07
    + 8: duration 00:03:23
    + 9: duration 00:03:39
    + 10: duration 00:04:19
    + 11: duration 00:04:16
    + 12: duration 00:06:25
    + 13: duration 00:04:51
    + 14: duration 00:05:45
    + 15: duration 00:06:55
    + 16: duration 00:06:48
    + 17: duration 00:07:22
    + 18: duration 00:07:27
    + 19: duration 00:02:47
    + 20: duration 00:06:50
  + audio tracks:
    + 1, English (DTS-HD MA) (5.1 ch) (iso639-2: eng)
    + 2, English (DTS) (5.1 ch) (1536 kbps) (iso639-2: eng), 48000Hz, 1536000bps
    + 3, English (AC3) (2.0 ch) (192 kbps) (iso639-2: eng), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English [PGS]
    + 2, español [PGS]
[14:05:41] Starting work at: Wed Nov 10 14:05:41 2021

[14:05:41] 1 job(s) to process
[14:05:41] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "DRC": 0.0,
                "Encoder": 16384,
                "Mixdown": 6,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:dtshd",
            "copy:dts",
            "copy:mp3"
        ],
        "FallbackEncoder": "ffac3"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 12,
                    "Ticks": 22638866
                },
                "Name": "Chapter 1"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 11,
                    "Ticks": 33427143
                },
                "Name": "Chapter 2"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 39,
                    "Ticks": 25131357
                },
                "Name": "Chapter 3"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 55,
                    "Ticks": 26546520
                },
                "Name": "Chapter 4"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 49,
                    "Ticks": 31430148
                },
                "Name": "Chapter 5"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 30,
                    "Ticks": 29740962
                },
                "Name": "Chapter 6"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 7,
                    "Ticks": 32999216
                },
                "Name": "Chapter 7"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 23,
                    "Ticks": 18235717
                },
                "Name": "Chapter 8"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 39,
                    "Ticks": 19699680
                },
                "Name": "Chapter 9"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 19,
                    "Ticks": 23307034
                },
                "Name": "Chapter 10"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 16,
                    "Ticks": 23002980
                },
                "Name": "Chapter 11"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 25,
                    "Ticks": 34688404
                },
                "Name": "Chapter 12"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 51,
                    "Ticks": 26163637
                },
                "Name": "Chapter 13"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 45,
                    "Ticks": 31051021
                },
                "Name": "Chapter 14"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 55,
                    "Ticks": 37327289
                },
                "Name": "Chapter 15"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 48,
                    "Ticks": 36756720
                },
                "Name": "Chapter 16"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 22,
                    "Ticks": 39755967
                },
                "Name": "Chapter 17"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 27,
                    "Ticks": 40213924
                },
                "Name": "Chapter 18"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 47,
                    "Ticks": 14999985
                },
                "Name": "Chapter 19"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 50,
                    "Ticks": 36888030
                },
                "Name": "Chapter 20"
            }
        ],
        "ChapterMarkers": true,
        "File": "/Users/varase/RIPs/Videos/The Marksman (HEVC).m4v",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 2,
                    "rate": "27000000/900000"
                }
            },
            {
                "ID": 13,
                "Settings": {
                    "crop-bottom": 138,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 138,
                    "height": 402,
                    "width": 960
                }
            }
        ]
    },
    "Metadata": {
        "Name": "The Marksman"
    },
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "The Marksman.mkv",
        "Range": {
            "End": 20,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ChromaLocation": 1,
        "ColorInputFormat": 0,
        "ColorMatrix": 1,
        "ColorOutputFormat": 0,
        "ColorPrimaries": 1,
        "ColorRange": 0,
        "ColorTransfer": 1,
        "Encoder": "vt_h265",
        "Level": "3.1",
        "Preset": "medium",
        "Profile": "high",
        "QSV": {
            "AdapterIndex": 0,
            "AsyncDepth": 0,
            "Decode": false
        },
        "Quality": 22.0,
        "Turbo": false,
        "TwoPass": false
    }
}
[14:05:41] Starting Task: Encoding Pass
[14:05:41] job configuration:
[14:05:41]  * source
[14:05:41]    + The Marksman.mkv
[14:05:41]    + title 1, chapter(s) 1 to 20
[14:05:41]    + container: matroska,webm
[14:05:41]    + data rate: 39906 kbps
[14:05:41]  * destination
[14:05:41]    + /Users/varase/RIPs/Videos/The Marksman (HEVC).m4v
[14:05:41]    + container: MPEG-4 (libavformat)
[14:05:41]      + chapter markers
[14:05:41]  * video track
[14:05:41]    + decoder: h264 8-bit (yuv420p)
[14:05:41]    + filters
[14:05:41]      + Framerate Shaper (mode=2:rate=27000000/900000)
[14:05:41]        + frame rate: 23.976 fps -> peak rate limited to 30.000 fps
[14:05:41]      + Crop and Scale (width=960:height=402:crop-top=138:crop-bottom=138:crop-left=0:crop-right=0)
[14:05:41]        + source: 1920 * 1080, crop (138/138/0/0): 1920 * 804, scale: 960 * 402
[14:05:41]    + Output geometry
[14:05:41]      + storage dimensions: 960 x 402
[14:05:41]      + pixel aspect ratio: 1 : 1
[14:05:41]      + display dimensions: 960 x 402
[14:05:41]    + encoder: H.265 (VideoToolbox)
[14:05:41]      + preset:  medium
[14:05:41]      + profile: high
[14:05:41]      + quality: 22.00 (CQ)
[14:05:41]      + color profile: 1-1-1
[14:05:41]      + chroma location: left
[14:05:41]  * audio track 1
[14:05:41]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[14:05:41]      + samplerate: 48000 Hz
[14:05:41]    + mixdown: Dolby Pro Logic II
[14:05:41]    + encoder: AAC (Apple AudioToolbox)
[14:05:41]      + bitrate: 160 kbps, samplerate: 48000 Hz
[14:05:41] sync: expecting 155578 video frames
ERROR: encvt_Init: invalid profile 'high'
ERROR: Failure to initialise thread 'VideoToolbox encoder (Apple)'
[14:05:41] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[14:05:41] vfr: lost time: 0 (0 frames)
[14:05:41] vfr: gained time: 0 (0 frames) (0 not accounted for)
[14:05:41] dca-decoder done: 0 frames, 0 decoder errors
[14:05:41] h264-decoder done: 0 frames, 0 decoder errors
[14:05:41] sync: got 0 frames, 155578 expected
[14:05:42] Finished work at: Wed Nov 10 14:05:42 2021

[14:05:42] libhb: work result = 3

Encode failed (error 3).

HandBrake has exited.

21.11.10 14:05:42 Host: Verne-MBP16, ID: varase, Num: 25, Hist: 385, RC: 3 [~] % 
M1 Max PowerBook Pro 16 HandBrackCLI Log:

Code: Select all

[13:20:38] Compile-time hardening features are enabled
[13:20:38] hb_init: starting libhb thread
[13:20:38] thread 16dc0f000 started ("libhb")
HandBrake 20211103192947-860ab0cf6-master (2021110801) - Darwin arm64 - https://handbrake.fr
10 CPUs detected
Opening The Marksman.mkv...
[13:20:38] CPU: 
[13:20:38]  - logical processor count: 10
[13:20:38] hb_scan: path=The Marksman.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image The Marksman.mkv
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2646: nav_get_title_list(The Marksman.mkv/) failed
[13:20:38] bd: not a bd - trying as a stream/file instead
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[13:20:38] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'The Marksman.mkv':
  Metadata:
    title           : The Marksman
    encoder         : libmakemkv v1.16.5 (1.3.10/1.5.2) darwin(arm64-release)
    creation_time   : 2021-11-08T19:52:37.000000Z
  Duration: 01:48:08.94, start: 0.000000, bitrate: 39906 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 251.542958
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 251.542958, end 622.955667
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 622.955667, end 902.192958
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 902.192958, end 1197.154292
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 1197.154292, end 1546.378167
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 1546.378167, end 1876.833292
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 1876.833292, end 2243.491250
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 2243.491250, end 2446.110333
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 2446.110333, end 2664.995667
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 2664.995667, end 2923.962708
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 2923.962708, end 3179.551375
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 3179.551375, end 3564.978083
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 3564.978083, end 3855.685167
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 3855.685167, end 4200.696500
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 4200.696500, end 4615.444167
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 4615.444167, end 5023.852167
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 5023.852167, end 5465.585125
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 5465.585125, end 5912.406500
      Metadata:
        title           : Chapter 18
    Chapter #0:18: start 5912.406500, end 6079.073000
      Metadata:
        title           : Chapter 19
    Chapter #0:19: start 6079.073000, end 6488.940792
      Metadata:
        title           : Chapter 20
  Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Metadata:
      BPS-eng         : 34899677
      DURATION-eng    : 01:48:08.940791666
      NUMBER_OF_FRAMES-eng: 155579
      NUMBER_OF_BYTES-eng: 28307738797
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _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(side), s32p (24 bit) (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 3261596
      DURATION-eng    : 01:48:08.949333333
      NUMBER_OF_FRAMES-eng: 608339
      NUMBER_OF_BYTES-eng: 2645541364
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 1509000
      DURATION-eng    : 01:48:08.949333333
      NUMBER_OF_FRAMES-eng: 608339
      NUMBER_OF_BYTES-eng: 1223978068
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:3(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 01:48:08.960000000
      NUMBER_OF_FRAMES-eng: 202780
      NUMBER_OF_BYTES-eng: 155735040
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 23907
      DURATION-eng    : 01:38:53.823729166
      NUMBER_OF_FRAMES-eng: 1951
      NUMBER_OF_BYTES-eng: 17733151
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:5(spa): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 17933
      DURATION-eng    : 01:42:58.693354166
      NUMBER_OF_FRAMES-eng: 1598
      NUMBER_OF_BYTES-eng: 13850877
      SOURCE_ID-eng   : 001201
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[13:20:38] scan: decoding previews for title 1
[13:20:38] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[13:20:38] scan: audio 0x2: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)
[13:20:38] scan: audio 0x3: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
Scanning title 1 of 1, preview 9, 90.00 %[13:20:39] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 138/138/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[13:20:39] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
  + stream: The Marksman.mkv
  + duration: 01:48:08
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 138/138/0/0
  + chapters:
    + 1: duration 00:04:12
    + 2: duration 00:06:11
    + 3: duration 00:04:39
    + 4: duration 00:04:55
    + 5: duration 00:05:49
    + 6: duration 00:05:30
    + 7: duration 00:06:07
    + 8: duration 00:03:23
    + 9: duration 00:03:39
    + 10: duration 00:04:19
    + 11: duration 00:04:16
    + 12: duration 00:06:25
    + 13: duration 00:04:51
    + 14: duration 00:05:45
    + 15: duration 00:06:55
    + 16: duration 00:06:48
    + 17: duration 00:07:22
    + 18: duration 00:07:27
    + 19: duration 00:02:47
    + 20: duration 00:06:50
  + audio tracks:
    + 1, English (DTS-HD MA) (5.1 ch) (iso639-2: eng)
    + 2, English (DTS) (5.1 ch) (1536 kbps) (iso639-2: eng), 48000Hz, 1536000bps
    + 3, English (AC3) (2.0 ch) (192 kbps) (iso639-2: eng), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English [PGS]
    + 2, español [PGS]
[13:20:39] Starting work at: Wed Nov 10 13:20:39 2021

[13:20:39] 1 job(s) to process
[13:20:39] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Encoder": 16384,
                "Mixdown": 4,
                "Track": 0
            },
            {
                "Encoder": 2048,
                "Mixdown": -1,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:eac3",
            "copy:dtshd",
            "copy:dts",
            "copy:mp3",
            "copy:truehd",
            "copy:flac"
        ],
        "FallbackEncoder": "ca_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 12,
                    "Ticks": 22638866
                },
                "Name": "Chapter 1"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 11,
                    "Ticks": 33427143
                },
                "Name": "Chapter 2"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 39,
                    "Ticks": 25131357
                },
                "Name": "Chapter 3"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 55,
                    "Ticks": 26546520
                },
                "Name": "Chapter 4"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 49,
                    "Ticks": 31430148
                },
                "Name": "Chapter 5"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 30,
                    "Ticks": 29740962
                },
                "Name": "Chapter 6"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 7,
                    "Ticks": 32999216
                },
                "Name": "Chapter 7"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 23,
                    "Ticks": 18235717
                },
                "Name": "Chapter 8"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 39,
                    "Ticks": 19699680
                },
                "Name": "Chapter 9"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 19,
                    "Ticks": 23307034
                },
                "Name": "Chapter 10"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 16,
                    "Ticks": 23002980
                },
                "Name": "Chapter 11"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 25,
                    "Ticks": 34688404
                },
                "Name": "Chapter 12"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 51,
                    "Ticks": 26163637
                },
                "Name": "Chapter 13"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 45,
                    "Ticks": 31051021
                },
                "Name": "Chapter 14"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 55,
                    "Ticks": 37327289
                },
                "Name": "Chapter 15"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 48,
                    "Ticks": 36756720
                },
                "Name": "Chapter 16"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 22,
                    "Ticks": 39755967
                },
                "Name": "Chapter 17"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 27,
                    "Ticks": 40213924
                },
                "Name": "Chapter 18"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 47,
                    "Ticks": 14999985
                },
                "Name": "Chapter 19"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 50,
                    "Ticks": 36888030
                },
                "Name": "Chapter 20"
            }
        ],
        "ChapterMarkers": true,
        "File": "/Users/varase/RIPs/Videos/The Marksman (1080p HEVC).m4v",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 13,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 1080,
                    "width": 1920
                }
            }
        ]
    },
    "Metadata": {
        "Name": "The Marksman"
    },
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "The Marksman.mkv",
        "Range": {
            "End": 20,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "Bitrate": 6000,
        "ChromaLocation": 1,
        "ColorInputFormat": 0,
        "ColorMatrix": 1,
        "ColorOutputFormat": 0,
        "ColorPrimaries": 1,
        "ColorRange": 0,
        "ColorTransfer": 1,
        "Encoder": "vt_h265",
        "QSV": {
            "AdapterIndex": 0,
            "AsyncDepth": 0,
            "Decode": false
        },
        "Turbo": false,
        "TwoPass": false
    }
}
[13:20:39] Starting Task: Encoding Pass
[13:20:39] Skipping vfr filter
[13:20:39] Skipping crop/scale filter
[13:20:39] work: bitrate not specified, track 1 setting bitrate 160 Kbps
[13:20:39] work: mixdown not specified, track 2 setting mixdown 5.1 Channels
[13:20:39] work: bitrate not specified, track 2 setting bitrate 640 Kbps
[13:20:39] job configuration:
[13:20:39]  * source
[13:20:39]    + The Marksman.mkv
[13:20:39]    + title 1, chapter(s) 1 to 20
[13:20:39]    + container: matroska,webm
[13:20:39]    + data rate: 39906 kbps
[13:20:39]  * destination
[13:20:39]    + /Users/varase/RIPs/Videos/The Marksman (1080p HEVC).m4v
[13:20:39]    + container: MPEG-4 (libavformat)
[13:20:39]      + chapter markers
[13:20:39]  * video track
[13:20:39]    + decoder: h264 8-bit (yuv420p)
[13:20:39]    + Output geometry
[13:20:39]      + storage dimensions: 1920 x 1080
[13:20:39]      + pixel aspect ratio: 1 : 1
[13:20:39]      + display dimensions: 1920 x 1080
[13:20:39]    + encoder: H.265 (VideoToolbox)
[13:20:39]      + bitrate: 6000 kbps, pass: 0
[13:20:39]      + color profile: 1-1-1
[13:20:39]      + chroma location: left
[13:20:39]  * audio track 1
[13:20:39]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[13:20:39]      + samplerate: 48000 Hz
[13:20:39]    + mixdown: Stereo
[13:20:39]    + encoder: AAC (Apple AudioToolbox)
[13:20:39]      + bitrate: 160 kbps, samplerate: 48000 Hz
[13:20:39]  * audio track 2
[13:20:39]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[13:20:39]      + samplerate: 48000 Hz
[13:20:39]    + mixdown: 5.1 Channels
[13:20:39]    + encoder: AC3 (libavcodec)
[13:20:39]      + bitrate: 640 kbps, samplerate: 48000 Hz
[13:20:39] sync: expecting 155578 video frames
[13:20:39] encvt_Init: encoding with output bitrate 6000 Kbps
[13:20:39] sync: first pts video is 0
[13:20:39] sync: "Chapter 1" (1) at frame 1 time 0
[13:20:39] sync: first pts audio 0x1 is 0
[13:20:39] sync: first pts audio 0x1 is 0
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't open file VIDEO_TS.IFO.
Encoding: task 1 of 1, 3.87 % (57.62 fps, avg 57.89 fps, ETA 00h43m03s)[13:22:23] sync: "Chapter 2" (2) at frame 6032 time 22638866
Encoding: task 1 of 1, 9.59 % (58.54 fps, avg 57.72 fps, ETA 00h40m36s)[13:24:58] sync: "Chapter 3" (3) at frame 14937 time 56066010
Encoding: task 1 of 1, 13.90 % (54.42 fps, avg 57.65 fps, ETA 00h38m44s)[13:26:54] sync: "Chapter 4" (4) at frame 21632 time 81197366
Encoding: task 1 of 1, 18.45 % (58.60 fps, avg 57.63 fps, ETA 00h36m41s)[13:28:57] sync: "Chapter 5" (5) at frame 28706 time 107751393
Encoding: task 1 of 1, 23.82 % (56.36 fps, avg 57.64 fps, ETA 00h34m16s)[13:31:22] sync: "Chapter 6" (6) at frame 37080 time 139185296
Encoding: task 1 of 1, 28.92 % (57.66 fps, avg 57.62 fps, ETA 00h32m00s)[13:33:40] sync: "Chapter 7" (7) at frame 45003 time 168926257
Encoding: task 1 of 1, 34.57 % (56.61 fps, avg 57.61 fps, ETA 00h29m28s)[13:36:13] sync: "Chapter 8" (8) at frame 53793 time 201921720
Encoding: task 1 of 1, 37.70 % (57.29 fps, avg 57.60 fps, ETA 00h28m03s)[13:37:37] sync: "Chapter 9" (9) at frame 58652 time 220161191
Encoding: task 1 of 1, 41.06 % (57.54 fps, avg 57.60 fps, ETA 00h26m32s)[13:39:08] sync: "Chapter 10" (10) at frame 63897 time 239849610
Encoding: task 1 of 1, 45.06 % (56.39 fps, avg 57.60 fps, ETA 00h24m44s)[13:40:56] sync: "Chapter 11" (11) at frame 70106 time 263156643
Encoding: task 1 of 1, 48.99 % (55.44 fps, avg 57.59 fps, ETA 00h22m58s)[13:42:43] sync: "Chapter 12" (12) at frame 76237 time 286170885
Encoding: task 1 of 1, 54.93 % (56.17 fps, avg 57.57 fps, ETA 00h20m18s)[13:45:24] sync: "Chapter 13" (13) at frame 85478 time 320859288
Encoding: task 1 of 1, 59.42 % (58.12 fps, avg 57.58 fps, ETA 00h18m17s)[13:47:25] sync: "Chapter 14" (14) at frame 92447 time 347019172
Encoding: task 1 of 1, 64.73 % (55.85 fps, avg 57.58 fps, ETA 00h15m53s)[13:49:48] sync: "Chapter 15" (15) at frame 100717 time 378062685
Encoding: task 1 of 1, 71.12 % (57.56 fps, avg 57.57 fps, ETA 00h13m01s)[13:52:41] sync: "Chapter 16" (16) at frame 110663 time 415397482
Encoding: task 1 of 1, 77.42 % (57.18 fps, avg 57.56 fps, ETA 00h10m11s)[13:55:32] sync: "Chapter 17" (17) at frame 120456 time 452157956
Encoding: task 1 of 1, 84.22 % (58.48 fps, avg 57.56 fps, ETA 00h07m07s)[13:58:36] sync: "Chapter 18" (18) at frame 131046 time 491910168
Encoding: task 1 of 1, 91.11 % (57.00 fps, avg 57.55 fps, ETA 00h04m00s)[14:01:42] sync: "Chapter 19" (19) at frame 141757 time 532116585
Encoding: task 1 of 1, 93.68 % (55.44 fps, avg 57.55 fps, ETA 00h02m52s)[14:02:52] sync: "Chapter 20" (20) at frame 145753 time 547116570
Encoding: task 1 of 1, 99.96 % (59.70 fps, avg 57.63 fps, ETA 00h00m01s)[14:05:38] reader: done. 1 scr changes
Encoding: task 1 of 1, 100.00 % (59.70 fps, avg 57.63 fps, ETA 00h00m01s)[14:05:39] work: average encoding speed for job is 57.633858 fps
Encoding: task 1 of 1, 100.00 % (59.70 fps, avg 57.63 fps, ETA 00h00m01s)[14:05:39] dca-decoder done: 608339 frames, 0 decoder errors
[14:05:39] dca-decoder done: 608339 frames, 0 decoder errors
[14:05:39] h264-decoder done: 155579 frames, 0 decoder errors
[14:05:39] sync: got 155579 frames, 155578 expected
[14:05:39] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
[14:05:39] mux: track 0, 155579 frames, 4857818108 bytes, 5989.00 kbps, fifo 4096
[14:05:39] mux: track 1, 304172 frames, 132518652 bytes, 163.38 kbps, fifo 4096
[14:05:39] mux: track 2, 202779 frames, 519114240 bytes, 639.99 kbps, fifo 4096
[14:05:39] Finished work at: Wed Nov 10 14:05:39 2021

[14:05:39] libhb: work result = 0

Encode done!
HandBrake has exited.

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

Re: Using Video ToolBox on M1 Max Powerbook

Post by s55 »

ERROR: encvt_Init: invalid profile 'high'
The failing encodes are due to an invalid profile being set. Leave it on Auto.

Can you open up a CPU monitor. It would be interesting to know if the app is using the Performance cores, or the efficiency cores or both.
Does having the window active and up-front make any difference vs minimised?
rollin_eng
Veteran User
Posts: 4346
Joined: Wed May 04, 2011 11:06 pm

Re: Using Video ToolBox on M1 Max Powerbook

Post by rollin_eng »

Would also be interesting to know if the GUI version performs any different?
varase
Posts: 33
Joined: Sat May 14, 2016 9:29 am

Re: Using Video ToolBox on M1 Max Powerbook

Post by varase »

s55 wrote: Wed Nov 10, 2021 8:54 pm
ERROR: encvt_Init: invalid profile 'high'
The failing encodes are due to an invalid profile being set. Leave it on Auto.

Can you open up a CPU monitor. It would be interesting to know if the app is using the Performance cores, or the efficiency cores or both.
Does having the window active and up-front make any difference vs minimised?
Thanks! Changed from high to auto and it worked.

On the iMac it appears that the primary cores are mildly lit up - on the PowerBook Pro it appear that there's a much heavier load on the performance cores. The efficiency cores have small loads on them, but I'd assume they're being used to dispatch normal activity on the system and are not being used for transcode/rescaling.

Interestingly, even for the SD transcode the Intel was faster than the PowerBook, and the PowerBook's cores were being driven higher. Betcha it's doing everything on the CPU rather than in the hardware transcode engine.

Intel terminal log:

Code: Select all

21.11.10 17:52:26 Host: Verne-iMac5K, ID: varase, Num: 32, Hist: 1032, RC: 0 [~/bin] % mkv2sd /Volumes/Aux/MakeMKV/Movies /Volumes/Videos/Videos


*** Command to be executed is ***

handbrakecli --input "The Marksman.mkv" -e vt_h265 -q 22.0 -r 30 --pfr -a 1 -E ffaac -B 160 -6 dpl2 -R Auto -D 0.0 --audio-copy-mask aac,ac3,dtshd,dts,mp3 --audio-fallback ffac3 -f mp4 -X 960 -Y 640 --loose-anamorphic --modulus 2 -m --x264-preset medium --h264-profile auto --h264-level 3.1 --output "/Volumes/Videos/Videos/The Marksman (HEVC).m4v"

[17:54:51] Compile-time hardening features are enabled
[17:54:51] hb_init: starting libhb thread
[17:54:51] thread 70000b028000 started ("libhb")
HandBrake 20211103192947-860ab0cf6-master (2021110801) - Darwin x86_64 - https://handbrake.fr
20 CPUs detected
Opening The Marksman.mkv...
[17:54:51] CPU: Intel(R) Core(TM) i9-10910 CPU @ 3.60GHz
[17:54:51]  - Intel microarchitecture Comet Lake
[17:54:51]  - logical processor count: 20
[17:54:51] hb_scan: path=The Marksman.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image The Marksman.mkv
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2646: nav_get_title_list(The Marksman.mkv/) failed
[17:54:51] bd: not a bd - trying as a stream/file instead
libdvdread: Encrypted DVD support unavailable.
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[17:54:51] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'The Marksman.mkv':
  Metadata:
    title           : The Marksman
    encoder         : libmakemkv v1.16.5 (1.3.10/1.5.2) darwin(arm64-release)
    creation_time   : 2021-11-08T19:52:37.000000Z
  Duration: 01:48:08.94, start: 0.000000, bitrate: 39906 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 251.542958
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 251.542958, end 622.955667
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 622.955667, end 902.192958
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 902.192958, end 1197.154292
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 1197.154292, end 1546.378167
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 1546.378167, end 1876.833292
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 1876.833292, end 2243.491250
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 2243.491250, end 2446.110333
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 2446.110333, end 2664.995667
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 2664.995667, end 2923.962708
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 2923.962708, end 3179.551375
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 3179.551375, end 3564.978083
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 3564.978083, end 3855.685167
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 3855.685167, end 4200.696500
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 4200.696500, end 4615.444167
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 4615.444167, end 5023.852167
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 5023.852167, end 5465.585125
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 5465.585125, end 5912.406500
      Metadata:
        title           : Chapter 18
    Chapter #0:18: start 5912.406500, end 6079.073000
      Metadata:
        title           : Chapter 19
    Chapter #0:19: start 6079.073000, end 6488.940792
      Metadata:
        title           : Chapter 20
  Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Metadata:
      BPS-eng         : 34899677
      DURATION-eng    : 01:48:08.940791666
      NUMBER_OF_FRAMES-eng: 155579
      NUMBER_OF_BYTES-eng: 28307738797
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _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(side), s32p (24 bit) (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 3261596
      DURATION-eng    : 01:48:08.949333333
      NUMBER_OF_FRAMES-eng: 608339
      NUMBER_OF_BYTES-eng: 2645541364
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 1509000
      DURATION-eng    : 01:48:08.949333333
      NUMBER_OF_FRAMES-eng: 608339
      NUMBER_OF_BYTES-eng: 1223978068
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:3(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 01:48:08.960000000
      NUMBER_OF_FRAMES-eng: 202780
      NUMBER_OF_BYTES-eng: 155735040
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 23907
      DURATION-eng    : 01:38:53.823729166
      NUMBER_OF_FRAMES-eng: 1951
      NUMBER_OF_BYTES-eng: 17733151
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:5(spa): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 17933
      DURATION-eng    : 01:42:58.693354166
      NUMBER_OF_FRAMES-eng: 1598
      NUMBER_OF_BYTES-eng: 13850877
      SOURCE_ID-eng   : 001201
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[17:54:51] scan: decoding previews for title 1
[17:54:51] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[17:54:51] scan: audio 0x2: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)
[17:54:51] scan: audio 0x3: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
Scanning title 1 of 1, preview 9, 90.00 %[17:54:53] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 138/138/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[17:54:53] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
  + stream: The Marksman.mkv
  + duration: 01:48:08
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 138/138/0/0
  + chapters:
    + 1: duration 00:04:12
    + 2: duration 00:06:11
    + 3: duration 00:04:39
    + 4: duration 00:04:55
    + 5: duration 00:05:49
    + 6: duration 00:05:30
    + 7: duration 00:06:07
    + 8: duration 00:03:23
    + 9: duration 00:03:39
    + 10: duration 00:04:19
    + 11: duration 00:04:16
    + 12: duration 00:06:25
    + 13: duration 00:04:51
    + 14: duration 00:05:45
    + 15: duration 00:06:55
    + 16: duration 00:06:48
    + 17: duration 00:07:22
    + 18: duration 00:07:27
    + 19: duration 00:02:47
    + 20: duration 00:06:50
  + audio tracks:
    + 1, English (DTS-HD MA) (5.1 ch) (iso639-2: eng)
    + 2, English (DTS) (5.1 ch) (1536 kbps) (iso639-2: eng), 48000Hz, 1536000bps
    + 3, English (AC3) (2.0 ch) (192 kbps) (iso639-2: eng), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English [PGS]
    + 2, español [PGS]
[17:54:53] Starting work at: Wed Nov 10 17:54:53 2021

[17:54:53] 1 job(s) to process
[17:54:53] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "DRC": 0.0,
                "Encoder": 16384,
                "Mixdown": 6,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:dtshd",
            "copy:dts",
            "copy:mp3"
        ],
        "FallbackEncoder": "ffac3"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 12,
                    "Ticks": 22638866
                },
                "Name": "Chapter 1"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 11,
                    "Ticks": 33427143
                },
                "Name": "Chapter 2"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 39,
                    "Ticks": 25131357
                },
                "Name": "Chapter 3"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 55,
                    "Ticks": 26546520
                },
                "Name": "Chapter 4"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 49,
                    "Ticks": 31430148
                },
                "Name": "Chapter 5"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 30,
                    "Ticks": 29740962
                },
                "Name": "Chapter 6"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 7,
                    "Ticks": 32999216
                },
                "Name": "Chapter 7"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 23,
                    "Ticks": 18235717
                },
                "Name": "Chapter 8"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 39,
                    "Ticks": 19699680
                },
                "Name": "Chapter 9"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 19,
                    "Ticks": 23307034
                },
                "Name": "Chapter 10"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 16,
                    "Ticks": 23002980
                },
                "Name": "Chapter 11"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 25,
                    "Ticks": 34688404
                },
                "Name": "Chapter 12"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 51,
                    "Ticks": 26163637
                },
                "Name": "Chapter 13"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 45,
                    "Ticks": 31051021
                },
                "Name": "Chapter 14"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 55,
                    "Ticks": 37327289
                },
                "Name": "Chapter 15"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 48,
                    "Ticks": 36756720
                },
                "Name": "Chapter 16"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 22,
                    "Ticks": 39755967
                },
                "Name": "Chapter 17"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 27,
                    "Ticks": 40213924
                },
                "Name": "Chapter 18"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 47,
                    "Ticks": 14999985
                },
                "Name": "Chapter 19"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 50,
                    "Ticks": 36888030
                },
                "Name": "Chapter 20"
            }
        ],
        "ChapterMarkers": true,
        "File": "/Volumes/Videos/Videos/The Marksman (HEVC).m4v",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 2,
                    "rate": "27000000/900000"
                }
            },
            {
                "ID": 13,
                "Settings": {
                    "crop-bottom": 138,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 138,
                    "height": 402,
                    "width": 960
                }
            }
        ]
    },
    "Metadata": {
        "Name": "The Marksman"
    },
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "The Marksman.mkv",
        "Range": {
            "End": 20,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ChromaLocation": 1,
        "ColorInputFormat": 0,
        "ColorMatrix": 1,
        "ColorOutputFormat": 0,
        "ColorPrimaries": 1,
        "ColorRange": 0,
        "ColorTransfer": 1,
        "Encoder": "vt_h265",
        "Level": "3.1",
        "Preset": "medium",
        "Profile": "auto",
        "QSV": {
            "AdapterIndex": 0,
            "AsyncDepth": 0,
            "Decode": false
        },
        "Quality": 22.0,
        "Turbo": false,
        "TwoPass": false
    }
}
[17:54:53] Starting Task: Encoding Pass
[17:54:53] job configuration:
[17:54:53]  * source
[17:54:53]    + The Marksman.mkv
[17:54:53]    + title 1, chapter(s) 1 to 20
[17:54:53]    + container: matroska,webm
[17:54:53]    + data rate: 39906 kbps
[17:54:53]  * destination
[17:54:53]    + /Volumes/Videos/Videos/The Marksman (HEVC).m4v
[17:54:53]    + container: MPEG-4 (libavformat)
[17:54:53]      + chapter markers
[17:54:53]  * video track
[17:54:53]    + decoder: h264 8-bit (yuv420p)
[17:54:53]    + filters
[17:54:53]      + Framerate Shaper (mode=2:rate=27000000/900000)
[17:54:53]        + frame rate: 23.976 fps -> peak rate limited to 30.000 fps
[17:54:53]      + Crop and Scale (width=960:height=402:crop-top=138:crop-bottom=138:crop-left=0:crop-right=0)
[17:54:53]        + source: 1920 * 1080, crop (138/138/0/0): 1920 * 804, scale: 960 * 402
[17:54:53]    + Output geometry
[17:54:53]      + storage dimensions: 960 x 402
[17:54:53]      + pixel aspect ratio: 1 : 1
[17:54:53]      + display dimensions: 960 x 402
[17:54:53]    + encoder: H.265 (VideoToolbox)
[17:54:53]      + preset:  medium
[17:54:53]      + profile: auto
[17:54:53]      + quality: 22.00 (CQ)
[17:54:53]      + color profile: 1-1-1
[17:54:53]      + chroma location: left
[17:54:53]  * audio track 1
[17:54:53]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[17:54:53]      + samplerate: 48000 Hz
[17:54:53]    + mixdown: Dolby Pro Logic II
[17:54:53]    + encoder: AAC (Apple AudioToolbox)
[17:54:53]      + bitrate: 160 kbps, samplerate: 48000 Hz
[17:54:53] sync: expecting 155578 video frames
[17:54:53] encvt_Init: encoding with constant quality 22.000000
[17:54:53] VTSessionSetProperty: kVTCompressionPropertyKey_Quality failed
[17:54:53] VTSessionSetProperty: kVTCompressionPropertyKey_Quality failed
[17:54:53] sync: first pts video is 0
[17:54:53] sync: "Chapter 1" (1) at frame 1 time 0
[17:54:53] sync: first pts audio 0x1 is 0
Encoding: task 1 of 1, 3.87 % (336.61 fps, avg 339.63 fps, ETA 00h07m20s)[17:55:11] sync: "Chapter 2" (2) at frame 6032 time 22638866
Encoding: task 1 of 1, 9.59 % (323.87 fps, avg 331.10 fps, ETA 00h07m05s)[17:55:38] sync: "Chapter 3" (3) at frame 14937 time 56066010
Encoding: task 1 of 1, 13.89 % (332.01 fps, avg 331.72 fps, ETA 00h06m44s)[17:55:58] sync: "Chapter 4" (4) at frame 21632 time 81197366
Encoding: task 1 of 1, 18.44 % (311.98 fps, avg 327.34 fps, ETA 00h06m28s)[17:56:21] sync: "Chapter 5" (5) at frame 28706 time 107751393
Encoding: task 1 of 1, 23.81 % (331.14 fps, avg 327.80 fps, ETA 00h06m02s)[17:56:46] sync: "Chapter 6" (6) at frame 37080 time 139185296
Encoding: task 1 of 1, 28.88 % (327.97 fps, avg 327.25 fps, ETA 00h05m38s)[17:57:10] sync: "Chapter 7" (7) at frame 45003 time 168926257
Encoding: task 1 of 1, 34.53 % (311.78 fps, avg 326.63 fps, ETA 00h05m12s)[17:57:38] sync: "Chapter 8" (8) at frame 53793 time 201921720
Encoding: task 1 of 1, 37.65 % (245.10 fps, avg 324.39 fps, ETA 00h04m59s)[17:57:54] sync: "Chapter 9" (9) at frame 58652 time 220161191
Encoding: task 1 of 1, 41.03 % (321.17 fps, avg 323.84 fps, ETA 00h04m43s)[17:58:10] sync: "Chapter 10" (10) at frame 63897 time 239849610
Encoding: task 1 of 1, 45.04 % (310.86 fps, avg 322.06 fps, ETA 00h04m26s)[17:58:31] sync: "Chapter 11" (11) at frame 70106 time 263156643
Encoding: task 1 of 1, 48.95 % (306.47 fps, avg 320.89 fps, ETA 00h04m07s)[17:58:51] sync: "Chapter 12" (12) at frame 76237 time 286170885
Encoding: task 1 of 1, 54.90 % (300.89 fps, avg 319.04 fps, ETA 00h03m40s)[17:59:21] sync: "Chapter 13" (13) at frame 85478 time 320859288
Encoding: task 1 of 1, 59.41 % (309.13 fps, avg 318.01 fps, ETA 00h03m19s)[17:59:44] sync: "Chapter 14" (14) at frame 92447 time 347019172
Encoding: task 1 of 1, 64.69 % (318.42 fps, avg 316.95 fps, ETA 00h02m53s)[18:00:11] sync: "Chapter 15" (15) at frame 100717 time 378062685
Encoding: task 1 of 1, 71.09 % (309.61 fps, avg 315.60 fps, ETA 00h02m23s)[18:00:44] sync: "Chapter 16" (16) at frame 110663 time 415397482
Encoding: task 1 of 1, 77.41 % (310.45 fps, avg 314.61 fps, ETA 00h01m52s)[18:01:16] sync: "Chapter 17" (17) at frame 120456 time 452157956
Encoding: task 1 of 1, 84.18 % (320.38 fps, avg 314.54 fps, ETA 00h01m19s)[18:01:50] sync: "Chapter 18" (18) at frame 131046 time 491910168
Encoding: task 1 of 1, 91.09 % (326.45 fps, avg 315.19 fps, ETA 00h00m44s)[18:02:23] sync: "Chapter 19" (19) at frame 141757 time 532116585
Encoding: task 1 of 1, 93.68 % (326.26 fps, avg 315.59 fps, ETA 00h00m32s)[18:02:35] sync: "Chapter 20" (20) at frame 145753 time 547116570
Encoding: task 1 of 1, 99.89 % (332.89 fps, avg 316.99 fps, ETA 00h00m01s)[18:03:03] reader: done. 1 scr changes
Encoding: task 1 of 1, 99.96 % (343.23 fps, avg 317.09 fps, ETA 00h00m00s)[18:03:04] work: average encoding speed for job is 317.085114 fps
Encoding: task 1 of 1, 100.00 % (343.23 fps, avg 317.09 fps, ETA 00h00m00s)[18:03:04] vfr: 155579 frames output, 0 dropped and 0 duped for CFR/PFR
[18:03:04] vfr: lost time: 0 (0 frames)
[18:03:04] vfr: gained time: 0 (0 frames) (0 not accounted for)
[18:03:04] dca-decoder done: 608339 frames, 0 decoder errors
[18:03:04] h264-decoder done: 155579 frames, 0 decoder errors
[18:03:04] sync: got 155579 frames, 155578 expected
[18:03:04] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
[18:03:04] mux: track 0, 155579 frames, 877815732 bytes, 1082.22 kbps, fifo 4096
[18:03:04] mux: track 1, 304172 frames, 132760627 bytes, 163.68 kbps, fifo 8192
[18:03:04] Finished work at: Wed Nov 10 18:03:04 2021

[18:03:04] libhb: work result = 0

Encode done!

HandBrake has exited.

21.11.10 18:03:04 Host: Verne-iMac5K, ID: varase, Num: 33, Hist: 1033, RC: 0 [~/bin] % 
MacBook Pro terminal log:

Code: Select all

21.11.10 17:49:28 Host: Verne-MBP16, ID: varase, Num: 29, Hist: 389, RC: 0 [~/bin] % mkv2sd ~/RIPs/MakeMKV/Movies ~/RIPs/Videos 


*** Command to be executed is ***

handbrakecli --input "The Marksman.mkv" -e vt_h265 -q 22.0 -r 30 --pfr -a 1 -E ffaac -B 160 -6 dpl2 -R Auto -D 0.0 --audio-copy-mask aac,ac3,dtshd,dts,mp3 --audio-fallback ffac3 -f mp4 -X 960 -Y 640 --loose-anamorphic --modulus 2 -m --x264-preset medium --h264-profile auto --h264-level 3.1 --output "/Users/varase/RIPs/Videos/The Marksman (HEVC).m4v"

[17:50:15] Compile-time hardening features are enabled
[17:50:15] hb_init: starting libhb thread
[17:50:15] thread 16f9cf000 started ("libhb")
HandBrake 20211103192947-860ab0cf6-master (2021110801) - Darwin arm64 - https://handbrake.fr
10 CPUs detected
Opening The Marksman.mkv...
[17:50:15] CPU: 
[17:50:15]  - logical processor count: 10
[17:50:15] hb_scan: path=The Marksman.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image The Marksman.mkv
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2646: nav_get_title_list(The Marksman.mkv/) failed
[17:50:15] bd: not a bd - trying as a stream/file instead
libdvdread: Encrypted DVD support unavailable.
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[17:50:15] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'The Marksman.mkv':
  Metadata:
    title           : The Marksman
    encoder         : libmakemkv v1.16.5 (1.3.10/1.5.2) darwin(arm64-release)
    creation_time   : 2021-11-08T19:52:37.000000Z
  Duration: 01:48:08.94, start: 0.000000, bitrate: 39906 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 251.542958
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 251.542958, end 622.955667
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 622.955667, end 902.192958
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 902.192958, end 1197.154292
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 1197.154292, end 1546.378167
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 1546.378167, end 1876.833292
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 1876.833292, end 2243.491250
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 2243.491250, end 2446.110333
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 2446.110333, end 2664.995667
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 2664.995667, end 2923.962708
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 2923.962708, end 3179.551375
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 3179.551375, end 3564.978083
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 3564.978083, end 3855.685167
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 3855.685167, end 4200.696500
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 4200.696500, end 4615.444167
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 4615.444167, end 5023.852167
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 5023.852167, end 5465.585125
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 5465.585125, end 5912.406500
      Metadata:
        title           : Chapter 18
    Chapter #0:18: start 5912.406500, end 6079.073000
      Metadata:
        title           : Chapter 19
    Chapter #0:19: start 6079.073000, end 6488.940792
      Metadata:
        title           : Chapter 20
  Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Metadata:
      BPS-eng         : 34899677
      DURATION-eng    : 01:48:08.940791666
      NUMBER_OF_FRAMES-eng: 155579
      NUMBER_OF_BYTES-eng: 28307738797
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _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(side), s32p (24 bit) (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 3261596
      DURATION-eng    : 01:48:08.949333333
      NUMBER_OF_FRAMES-eng: 608339
      NUMBER_OF_BYTES-eng: 2645541364
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 1509000
      DURATION-eng    : 01:48:08.949333333
      NUMBER_OF_FRAMES-eng: 608339
      NUMBER_OF_BYTES-eng: 1223978068
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:3(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 01:48:08.960000000
      NUMBER_OF_FRAMES-eng: 202780
      NUMBER_OF_BYTES-eng: 155735040
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 23907
      DURATION-eng    : 01:38:53.823729166
      NUMBER_OF_FRAMES-eng: 1951
      NUMBER_OF_BYTES-eng: 17733151
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:5(spa): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 17933
      DURATION-eng    : 01:42:58.693354166
      NUMBER_OF_FRAMES-eng: 1598
      NUMBER_OF_BYTES-eng: 13850877
      SOURCE_ID-eng   : 001201
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.5 darwin(arm64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-11-08 19:52:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[17:50:15] scan: decoding previews for title 1
[17:50:15] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[17:50:15] scan: audio 0x2: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)
[17:50:15] scan: audio 0x3: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
Scanning title 1 of 1, preview 9, 90.00 %[17:50:16] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 138/138/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[17:50:16] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
  + stream: The Marksman.mkv
  + duration: 01:48:08
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 138/138/0/0
  + chapters:
    + 1: duration 00:04:12
    + 2: duration 00:06:11
    + 3: duration 00:04:39
    + 4: duration 00:04:55
    + 5: duration 00:05:49
    + 6: duration 00:05:30
    + 7: duration 00:06:07
    + 8: duration 00:03:23
    + 9: duration 00:03:39
    + 10: duration 00:04:19
    + 11: duration 00:04:16
    + 12: duration 00:06:25
    + 13: duration 00:04:51
    + 14: duration 00:05:45
    + 15: duration 00:06:55
    + 16: duration 00:06:48
    + 17: duration 00:07:22
    + 18: duration 00:07:27
    + 19: duration 00:02:47
    + 20: duration 00:06:50
  + audio tracks:
    + 1, English (DTS-HD MA) (5.1 ch) (iso639-2: eng)
    + 2, English (DTS) (5.1 ch) (1536 kbps) (iso639-2: eng), 48000Hz, 1536000bps
    + 3, English (AC3) (2.0 ch) (192 kbps) (iso639-2: eng), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English [PGS]
    + 2, español [PGS]
[17:50:16] Starting work at: Wed Nov 10 17:50:16 2021

[17:50:16] 1 job(s) to process
[17:50:16] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "DRC": 0.0,
                "Encoder": 16384,
                "Mixdown": 6,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:dtshd",
            "copy:dts",
            "copy:mp3"
        ],
        "FallbackEncoder": "ffac3"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 12,
                    "Ticks": 22638866
                },
                "Name": "Chapter 1"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 11,
                    "Ticks": 33427143
                },
                "Name": "Chapter 2"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 39,
                    "Ticks": 25131357
                },
                "Name": "Chapter 3"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 55,
                    "Ticks": 26546520
                },
                "Name": "Chapter 4"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 49,
                    "Ticks": 31430148
                },
                "Name": "Chapter 5"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 30,
                    "Ticks": 29740962
                },
                "Name": "Chapter 6"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 7,
                    "Ticks": 32999216
                },
                "Name": "Chapter 7"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 23,
                    "Ticks": 18235717
                },
                "Name": "Chapter 8"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 39,
                    "Ticks": 19699680
                },
                "Name": "Chapter 9"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 19,
                    "Ticks": 23307034
                },
                "Name": "Chapter 10"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 16,
                    "Ticks": 23002980
                },
                "Name": "Chapter 11"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 25,
                    "Ticks": 34688404
                },
                "Name": "Chapter 12"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 51,
                    "Ticks": 26163637
                },
                "Name": "Chapter 13"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 45,
                    "Ticks": 31051021
                },
                "Name": "Chapter 14"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 55,
                    "Ticks": 37327289
                },
                "Name": "Chapter 15"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 48,
                    "Ticks": 36756720
                },
                "Name": "Chapter 16"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 22,
                    "Ticks": 39755967
                },
                "Name": "Chapter 17"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 27,
                    "Ticks": 40213924
                },
                "Name": "Chapter 18"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 47,
                    "Ticks": 14999985
                },
                "Name": "Chapter 19"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 50,
                    "Ticks": 36888030
                },
                "Name": "Chapter 20"
            }
        ],
        "ChapterMarkers": true,
        "File": "/Users/varase/RIPs/Videos/The Marksman (HEVC).m4v",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 2,
                    "rate": "27000000/900000"
                }
            },
            {
                "ID": 13,
                "Settings": {
                    "crop-bottom": 138,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 138,
                    "height": 402,
                    "width": 960
                }
            }
        ]
    },
    "Metadata": {
        "Name": "The Marksman"
    },
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "The Marksman.mkv",
        "Range": {
            "End": 20,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ChromaLocation": 1,
        "ColorInputFormat": 0,
        "ColorMatrix": 1,
        "ColorOutputFormat": 0,
        "ColorPrimaries": 1,
        "ColorRange": 0,
        "ColorTransfer": 1,
        "Encoder": "vt_h265",
        "Level": "3.1",
        "Preset": "medium",
        "Profile": "auto",
        "QSV": {
            "AdapterIndex": 0,
            "AsyncDepth": 0,
            "Decode": false
        },
        "Quality": 22.0,
        "Turbo": false,
        "TwoPass": false
    }
}
[17:50:16] Starting Task: Encoding Pass
[17:50:16] job configuration:
[17:50:16]  * source
[17:50:16]    + The Marksman.mkv
[17:50:16]    + title 1, chapter(s) 1 to 20
[17:50:16]    + container: matroska,webm
[17:50:16]    + data rate: 39906 kbps
[17:50:16]  * destination
[17:50:16]    + /Users/varase/RIPs/Videos/The Marksman (HEVC).m4v
[17:50:16]    + container: MPEG-4 (libavformat)
[17:50:16]      + chapter markers
[17:50:16]  * video track
[17:50:16]    + decoder: h264 8-bit (yuv420p)
[17:50:16]    + filters
[17:50:16]      + Framerate Shaper (mode=2:rate=27000000/900000)
[17:50:16]        + frame rate: 23.976 fps -> peak rate limited to 30.000 fps
[17:50:16]      + Crop and Scale (width=960:height=402:crop-top=138:crop-bottom=138:crop-left=0:crop-right=0)
[17:50:16]        + source: 1920 * 1080, crop (138/138/0/0): 1920 * 804, scale: 960 * 402
[17:50:16]    + Output geometry
[17:50:16]      + storage dimensions: 960 x 402
[17:50:16]      + pixel aspect ratio: 1 : 1
[17:50:16]      + display dimensions: 960 x 402
[17:50:16]    + encoder: H.265 (VideoToolbox)
[17:50:16]      + preset:  medium
[17:50:16]      + profile: auto
[17:50:16]      + quality: 22.00 (CQ)
[17:50:16]      + color profile: 1-1-1
[17:50:16]      + chroma location: left
[17:50:16]  * audio track 1
[17:50:16]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[17:50:16]      + samplerate: 48000 Hz
[17:50:16]    + mixdown: Dolby Pro Logic II
[17:50:16]    + encoder: AAC (Apple AudioToolbox)
[17:50:16]      + bitrate: 160 kbps, samplerate: 48000 Hz
[17:50:16] sync: expecting 155578 video frames
[17:50:16] encvt_Init: encoding with constant quality 22.000000
[17:50:16] sync: first pts video is 0
[17:50:16] sync: "Chapter 1" (1) at frame 1 time 0
[17:50:16] sync: first pts audio 0x1 is 0
Encoding: task 1 of 1, 3.85 % (226.19 fps, avg 227.01 fps, ETA 00h10m59s)[17:50:43] sync: "Chapter 2" (2) at frame 6032 time 22638866
Encoding: task 1 of 1, 9.59 % (225.21 fps, avg 226.06 fps, ETA 00h10m22s)[17:51:22] sync: "Chapter 3" (3) at frame 14937 time 56066010
Encoding: task 1 of 1, 13.87 % (226.47 fps, avg 226.38 fps, ETA 00h09m52s)[17:51:52] sync: "Chapter 4" (4) at frame 21632 time 81197366
Encoding: task 1 of 1, 18.45 % (224.19 fps, avg 226.10 fps, ETA 00h09m22s)[17:52:23] sync: "Chapter 5" (5) at frame 28706 time 107751393
Encoding: task 1 of 1, 23.83 % (227.98 fps, avg 226.05 fps, ETA 00h08m44s)[17:53:00] sync: "Chapter 6" (6) at frame 37080 time 139185296
Encoding: task 1 of 1, 28.92 % (224.87 fps, avg 225.82 fps, ETA 00h08m10s)[17:53:35] sync: "Chapter 7" (7) at frame 45003 time 168926257
Encoding: task 1 of 1, 34.57 % (229.96 fps, avg 225.81 fps, ETA 00h07m31s)[17:54:14] sync: "Chapter 8" (8) at frame 53793 time 201921720
Encoding: task 1 of 1, 37.67 % (227.11 fps, avg 225.77 fps, ETA 00h07m10s)[17:54:36] sync: "Chapter 9" (9) at frame 58652 time 220161191
Encoding: task 1 of 1, 41.03 % (222.87 fps, avg 225.72 fps, ETA 00h06m46s)[17:54:59] sync: "Chapter 10" (10) at frame 63897 time 239849610
Encoding: task 1 of 1, 45.05 % (222.87 fps, avg 225.81 fps, ETA 00h06m19s)[17:55:27] sync: "Chapter 11" (11) at frame 70106 time 263156643
Encoding: task 1 of 1, 48.98 % (227.55 fps, avg 225.80 fps, ETA 00h05m52s)[17:55:54] sync: "Chapter 12" (12) at frame 76237 time 286170885
Encoding: task 1 of 1, 54.94 % (227.99 fps, avg 225.76 fps, ETA 00h05m11s)[17:56:35] sync: "Chapter 13" (13) at frame 85478 time 320859288
Encoding: task 1 of 1, 59.40 % (230.87 fps, avg 225.81 fps, ETA 00h04m40s)[17:57:06] sync: "Chapter 14" (14) at frame 92447 time 347019172
Encoding: task 1 of 1, 64.72 % (226.84 fps, avg 225.90 fps, ETA 00h04m03s)[17:57:42] sync: "Chapter 15" (15) at frame 100717 time 378062685
Encoding: task 1 of 1, 71.10 % (227.00 fps, avg 225.93 fps, ETA 00h03m19s)[17:58:26] sync: "Chapter 16" (16) at frame 110663 time 415397482
Encoding: task 1 of 1, 77.40 % (227.63 fps, avg 225.96 fps, ETA 00h02m35s)[17:59:09] sync: "Chapter 17" (17) at frame 120456 time 452157956
Encoding: task 1 of 1, 84.20 % (225.72 fps, avg 225.89 fps, ETA 00h01m49s)[17:59:56] sync: "Chapter 18" (18) at frame 131046 time 491910168
Encoding: task 1 of 1, 91.08 % (226.28 fps, avg 225.93 fps, ETA 00h01m02s)[18:00:44] sync: "Chapter 19" (19) at frame 141757 time 532116585
Encoding: task 1 of 1, 93.64 % (225.02 fps, avg 225.91 fps, ETA 00h00m44s)[18:01:01] sync: "Chapter 20" (20) at frame 145753 time 547116570
Encoding: task 1 of 1, 99.95 % (225.71 fps, avg 225.95 fps, ETA 00h00m01s)[18:01:44] reader: done. 1 scr changes
Encoding: task 1 of 1, 100.00 % (221.89 fps, avg 225.95 fps, ETA 00h00m00s)[18:01:45] work: average encoding speed for job is 225.950302 fps
[18:01:45] vfr: 155579 frames output, 0 dropped and 0 duped for CFR/PFR
[18:01:45] vfr: lost time: 0 (0 frames)
[18:01:45] vfr: gained time: 0 (0 frames) (0 not accounted for)
Encoding: task 1 of 1, 100.00 % (221.89 fps, avg 225.95 fps, ETA 00h00m00s)[18:01:45] dca-decoder done: 608339 frames, 0 decoder errors
[18:01:45] h264-decoder done: 155579 frames, 0 decoder errors
[18:01:45] sync: got 155579 frames, 155578 expected
[18:01:45] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
[18:01:45] mux: track 0, 155579 frames, 221671026 bytes, 273.29 kbps, fifo 8192
[18:01:45] mux: track 1, 304172 frames, 132762145 bytes, 163.68 kbps, fifo 16384
[18:01:45] Finished work at: Wed Nov 10 18:01:45 2021

[18:01:45] libhb: work result = 0

Encode done!

HandBrake has exited.

21.11.10 18:01:45 Host: Verne-MBP16, ID: varase, Num: 30, Hist: 390, RC: 0 [~/bin] % 
varase
Posts: 33
Joined: Sat May 14, 2016 9:29 am

Re: Using Video ToolBox on M1 Max Powerbook

Post by varase »

rollin_eng wrote: Wed Nov 10, 2021 9:02 pm Would also be interesting to know if the GUI version performs any different?
Set up the GUI version, and it's initial estimate was around 33+ minutes - the CLI took around 45 minutes.

This could be due to differing parameters - I set up the script so long ago I don't remember exactly what was in it.

The fact is that the Intel script took 17 minutes, the CLI on the Powerbook took 45, and the GUI on the PowerBook was telling me 33+ minutes. The transcode started at 6:16 PM and it's now 6:26 PM and it says it's got 24 minutes left. I assume that the CLI and GUI are roughly congruent on the PowerBook - predicting ETA on a video transcode is not terribly deterministic.

So ... I still think that H.265 hardware encoding isn't being used on the M1 Max which is a shame because that was one reason I bought it: fast media engine with dual encode engines for H.264, H.265, and ProRes. Actually, ProRes has dual encode and dual decode.

I have not doubts this will eventually be ironed out - just wanted to let you know so someone somewhere sometime can begin ironing :D .
xeo
New User
Posts: 1
Joined: Thu Nov 11, 2021 1:20 am

Re: Using Video ToolBox on M1 Max Powerbook

Post by xeo »

I've noticed that since upgrading to 1.4.2 and Monterey, videotoolbox is indeed incredibly Slow.

For the past year I was using the 1.4.0 beta (universal binary) and encoding with the M1 macbook air in Videotoolbox was incredibly quick (300-500 fps).
Using the same profile, now it's less than 80 fps.

I've also upgraded to a M1 Pro Macbook Pro, definitely faster than the air (150-170fps) but still much slower than what I was used to.

Sadly I don't have an old activity log.
varase
Posts: 33
Joined: Sat May 14, 2016 9:29 am

Re: Using Video ToolBox on M1 Max Powerbook

Post by varase »

xeo wrote: Thu Nov 11, 2021 1:24 am I've noticed that since upgrading to 1.4.2 and Monterey, videotoolbox is indeed incredibly Slow.

For the past year I was using the 1.4.0 beta (universal binary) and encoding with the M1 macbook air in Videotoolbox was incredibly quick (300-500 fps).
Using the same profile, now it's less than 80 fps.

I've also upgraded to a M1 Pro Macbook Pro, definitely faster than the air (150-170fps) but still much slower than what I was used to.

Sadly I don't have an old activity log.
FYI (to the HandBrake folks) - The M1 Pro and M1 have single H.264/H.265 encode/decode blocks - the M1 Pro adds a ProRes encode/decode block.

So ... it looks like hardware encode is not being used on Apple Silicon Macs now, though it is being used on Intel based models (at least if you're using vt_h264/vt_h265 in HandBrakeCLI - or VideoToolbox in the GUI).

What I don't know is if M1 Pro/Max improves on the speed of the encode/decode blocks from that on the M1 - though the M1 Max should offer greater performance since it features two encode blocks.

I'm also getting 154 fps, though that's probably due to the CPU strength of the 8 performance 2 efficiency core CPU in both the M1 Pro/M1 Max.
majortom67
Posts: 16
Joined: Thu Nov 20, 2014 8:59 am

Re: Using Video ToolBox on M1 Max Powerbook

Post by majortom67 »

FYI: on MacMini M1 I'm encoding full HD movies at 230/240 fps with VT (if no scalings or other filters applied) regardless it's and h264 or h265.
majortom67
Posts: 16
Joined: Thu Nov 20, 2014 8:59 am

Re: Using Video ToolBox on M1 Max Powerbook

Post by majortom67 »

BTW... I'm now re-encoding an h264 animation movie (Pixar's Brave) with horizontal cropping in order to get a 2:1 aspect ratio and I'm around 300 fps.
majortom67
Posts: 16
Joined: Thu Nov 20, 2014 8:59 am

Re: Using Video ToolBox on M1 Max Powerbook

Post by majortom67 »

-> Monterey.
varase
Posts: 33
Joined: Sat May 14, 2016 9:29 am

Re: Using Video ToolBox on M1 Max Powerbook

Post by varase »

majortom67 wrote: Thu Nov 11, 2021 9:26 am -> Monterey.
I take it that means you're running Monterey (12.0.1?).

What version of HandBrake?
User avatar
Ritsuka
HandBrake Team
Posts: 1386
Joined: Fri Jan 12, 2007 11:29 am

Re: Using Video ToolBox on M1 Max Powerbook

Post by Ritsuka »

There are some issues on Monterey that causes the encoding process to be put on a background priority queue. We are investigating it.
majortom67
Posts: 16
Joined: Thu Nov 20, 2014 8:59 am

Re: Using Video ToolBox on M1 Max Powerbook

Post by majortom67 »

HB 1.4.2 and Mac OS 12.0.1 - 21A559. Here, I'm just cropping 156 px left and 156 px right but if i reduce image size the fps gets slower (150/200).
rollin_eng
Veteran User
Posts: 4346
Joined: Wed May 04, 2011 11:06 pm

Re: Using Video ToolBox on M1 Max Powerbook

Post by rollin_eng »

varase wrote: Thu Nov 11, 2021 12:37 am So ... I still think that H.265 hardware encoding isn't being used on the M1 Max which is a shame because that was one reason I bought it: fast media engine with dual encode engines for H.264, H.265, and ProRes. Actually, ProRes has dual encode and dual decode.
You could test this by trying x265 as encoder and see what speeds you get.
varase
Posts: 33
Joined: Sat May 14, 2016 9:29 am

Re: Using Video ToolBox on M1 Max Powerbook

Post by varase »

rollin_eng wrote: Thu Nov 11, 2021 4:31 pm You could test this by trying x265 as encoder and see what speeds you get.
Ouch ... started out at a little over an hour and it's getting 46 fps with an ETA of 55 minutes in the daily build GUI version.
rollin_eng
Veteran User
Posts: 4346
Joined: Wed May 04, 2011 11:06 pm

Re: Using Video ToolBox on M1 Max Powerbook

Post by rollin_eng »

What does the CPU monitor report when you use x265?
User avatar
s55
HandBrake Team
Posts: 10168
Joined: Sun Dec 24, 2006 1:05 pm

Re: Using Video ToolBox on M1 Max Powerbook

Post by s55 »

x265 is pretty slow on M1 anyway.

AS Ritsuka said, there is a known issue regarding scheduling on macOS. It's being looked into as a probable cause.
rollin_eng
Veteran User
Posts: 4346
Joined: Wed May 04, 2011 11:06 pm

Re: Using Video ToolBox on M1 Max Powerbook

Post by rollin_eng »

Sure, I’m just curious.
varase
Posts: 33
Joined: Sat May 14, 2016 9:29 am

Re: Using Video ToolBox on M1 Max Powerbook

Post by varase »

Heh ... just noticed that the straight over transcode of 1080p mkv to H.265 was getting about 57 fps, but the SD transcode including scaling was getting 225 fps on the MacBook Pro M1 Max.

The intel iMac 5K did even better at 154 fps for 1080p and 320 fps for the SD transcode.

When they work those encode blocks sure do speed things up!
varase
Posts: 33
Joined: Sat May 14, 2016 9:29 am

Re: Using Video ToolBox on M1 Max Powerbook

Post by varase »

Ritsuka wrote: Thu Nov 11, 2021 9:51 am There are some issues on Monterey that causes the encoding process to be put on a background priority queue. We are investigating it.
Any word on this? Have you been able to duplicate the problem?

Any determination of root cause?
varase
Posts: 33
Joined: Sat May 14, 2016 9:29 am

Re: Using Video ToolBox on M1 Max Powerbook

Post by varase »

varase wrote: Mon Nov 15, 2021 8:48 am
Ritsuka wrote: Thu Nov 11, 2021 9:51 am There are some issues on Monterey that causes the encoding process to be put on a background priority queue. We are investigating it.
Any word on this? Have you been able to duplicate the problem?

Any determination of root cause?
Just a heads up - Linux Tech Tips noticed this behavior when they were doing their review of a MacBook Pro 14" M1 Pro:

https://youtu.be/SUyD2QXfGUg?t=423
Post Reply