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

Re: Using Video ToolBox on M1 Max Powerbook

Post by varase »

s55 wrote: Thu Nov 11, 2021 7:30 pm 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.
It never occurred to me, but do I need to file an issue somewhere (Github?) or is this already taken care of?

I was looking on Github for an open issue involving slow performance using the macOS VideoToolbox but didn't see anything - is that because it's being handled internally and doesn't require an issue?

Just want to do this the right way so it gets into the process queue.
Deleted User 11865

Re: Using Video ToolBox on M1 Max Powerbook

Post by Deleted User 11865 »

No pojnt filing an issue with us, we're already aware of the issue. Things is, we may need to try and ask Apple about it eventually, as it's not necessarily something that can be fixed on our end. So, unfortunately, don't expect a quick fix :-|
varase
Posts: 33
Joined: Sat May 14, 2016 9:29 am

Re: Using Video ToolBox on M1 Max Powerbook

Post by varase »

Rodeo wrote: Wed Nov 17, 2021 4:30 pm No pojnt filing an issue with us, we're already aware of the issue. Things is, we may need to try and ask Apple about it eventually, as it's not necessarily something that can be fixed on our end. So, unfortunately, don't expect a quick fix :-|
Have your reported the bug to Apple?

I think the Feedback Assistant app seems to get their attention fairly quickly.
varase
Posts: 33
Joined: Sat May 14, 2016 9:29 am

Re: Using Video ToolBox on M1 Max Powerbook

Post by varase »

varase wrote: Thu Nov 18, 2021 12:32 am
Rodeo wrote: Wed Nov 17, 2021 4:30 pm No pojnt filing an issue with us, we're already aware of the issue. Things is, we may need to try and ask Apple about it eventually, as it's not necessarily something that can be fixed on our end. So, unfortunately, don't expect a quick fix :-|
Have your reported the bug to Apple?

I think the Feedback Assistant app seems to get their attention fairly quickly.
Oh ... and make sure you use your handbrake.fr domain.
phoarrr
New User
Posts: 1
Joined: Thu Nov 25, 2021 12:42 am

Re: Using Video ToolBox on M1 Max Powerbook

Post by phoarrr »

Further, there was a discussion on Github- https://github.com/HandBrake/HandBrake/discussions/3932

I've found (through a random stroke of luck), that the performance does increase if you're able to run an ipad in sidecar whilst the encode is working.

I cannot explain it, but, i do not feel its using VTB, as you can see an increase in CPU wattage and workload when this happens, which shouldnt be the case if VTB is working
varase
Posts: 33
Joined: Sat May 14, 2016 9:29 am

Re: Using Video ToolBox on M1 Max Powerbook

Post by varase »

phoarrr wrote: Thu Nov 25, 2021 12:48 am Further, there was a discussion on Github- https://github.com/HandBrake/HandBrake/discussions/3932

I've found (through a random stroke of luck), that the performance does increase if you're able to run an ipad in sidecar whilst the encode is working.

I cannot explain it, but, i do not feel its using VTB, as you can see an increase in CPU wattage and workload when this happens, which shouldnt be the case if VTB is working
Yeah, same here.

When I run the transcode on my Intel iMac, the FPS is really high (presumably using the T2 chip) and the CPU cores run at a pretty low level - when on the MacBook, the high performance cores run pretty dang hot and the FPS drops to the mid double digits, which makes it look like the media engine isn't being used.
varase
Posts: 33
Joined: Sat May 14, 2016 9:29 am

Re: Using Video ToolBox on M1 Max Powerbook

Post by varase »

Rodeo wrote: Wed Nov 17, 2021 4:30 pm No pojnt filing an issue with us, we're already aware of the issue. Things is, we may need to try and ask Apple about it eventually, as it's not necessarily something that can be fixed on our end. So, unfortunately, don't expect a quick fix :-|
Have you guys discussed the issue with Apple yet (or definitively determined what the issue is)?
Deleted User 11865

Re: Using Video ToolBox on M1 Max Powerbook

Post by Deleted User 11865 »

I think an experimental fix/workaround may be available via a snapshot build soon.

Edit: or maybe not, the commit got reverted, so I guess it doesn't actually work.
varase
Posts: 33
Joined: Sat May 14, 2016 9:29 am

Re: Using Video ToolBox on M1 Max Powerbook

Post by varase »

Rodeo wrote: Thu Dec 02, 2021 4:52 pm I think an experimental fix/workaround may be available via a snapshot build soon.

Edit: or maybe not, the commit got reverted, so I guess it doesn't actually work.
Well, that's a shame.

Have you guys filed a bug report with Apple yet?
varase
Posts: 33
Joined: Sat May 14, 2016 9:29 am

Re: Using Video ToolBox on M1 Max Powerbook

Post by varase »

Here's the MacBook Pro from my last transcode from a Blu Ray MKV RIP to 1080p HEVC and SD HEVC.

Code: Select all

21.11.28 04:36:55 Host: Verne-MBP16, ID: varase, Num: 59, Hist: 525, 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"

[04:37:18] Compile-time hardening features are enabled
[04:37:18] hb_init: starting libhb thread
[04:37:18] thread 16fd5b000 started ("libhb")
HandBrake 20211125214942-8eb1ee36d-master (2021112601) - Darwin arm64 - https://handbrake.fr
10 CPUs detected
Opening The Marksman.mkv...
[04:37:18] CPU: 
[04:37:18]  - logical processor count: 10
[04:37:18] 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
[04:37:18] 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
[04:37:18] 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
[04:37:18] scan: decoding previews for title 1
[04:37:18] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[04:37:18] scan: audio 0x2: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)
[04:37:18] scan: audio 0x3: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
Scanning title 1 of 1, preview 9, 90.00 %[04:37:20] 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
[04:37:20] 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]
[04:37:20] Starting work at: Sun Nov 28 04:37:20 2021

[04:37:20] 1 job(s) to process
[04:37:20] 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
    }
}
[04:37:20] Starting Task: Encoding Pass
[04:37:20] Skipping vfr filter
[04:37:20] Skipping crop/scale filter
[04:37:20] work: bitrate not specified, track 1 setting bitrate 160 Kbps
[04:37:20] work: mixdown not specified, track 2 setting mixdown 5.1 Channels
[04:37:20] work: bitrate not specified, track 2 setting bitrate 640 Kbps
[04:37:20] job configuration:
[04:37:20]  * source
[04:37:20]    + The Marksman.mkv
[04:37:20]    + title 1, chapter(s) 1 to 20
[04:37:20]    + container: matroska,webm
[04:37:20]    + data rate: 39906 kbps
[04:37:20]  * destination
[04:37:20]    + /Users/varase/RIPs/Videos/The Marksman (1080p HEVC).m4v
[04:37:20]    + container: MPEG-4 (libavformat)
[04:37:20]      + chapter markers
[04:37:20]  * video track
[04:37:20]    + decoder: h264 8-bit (yuv420p)
[04:37:20]    + Output geometry
[04:37:20]      + storage dimensions: 1920 x 1080
[04:37:20]      + pixel aspect ratio: 1 : 1
[04:37:20]      + display dimensions: 1920 x 1080
[04:37:20]    + encoder: H.265 (VideoToolbox)
[04:37:20]      + bitrate: 6000 kbps, pass: 0
[04:37:20]      + color profile: 1-1-1
[04:37:20]      + chroma location: left
[04:37:20]  * audio track 1
[04:37:20]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[04:37:20]      + samplerate: 48000 Hz
[04:37:20]    + mixdown: Stereo
[04:37:20]    + encoder: AAC (Apple AudioToolbox)
[04:37:20]      + bitrate: 160 kbps, samplerate: 48000 Hz
[04:37:20]  * audio track 2
[04:37:20]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[04:37:20]      + samplerate: 48000 Hz
[04:37:20]    + mixdown: 5.1 Channels
[04:37:20]    + encoder: AC3 (libavcodec)
[04:37:20]      + bitrate: 640 kbps, samplerate: 48000 Hz
[04:37:20] sync: expecting 155578 video frames
[04:37:20] encvt_Init: encoding with output bitrate 6000 Kbps
[04:37:20] sync: first pts video is 0
[04:37:20] sync: "Chapter 1" (1) at frame 1 time 0
[04:37:20] sync: first pts audio 0x1 is 0
[04:37:20] 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.22 fps, avg 57.84 fps, ETA 00h43m06s)[04:39:04] sync: "Chapter 2" (2) at frame 6032 time 22638866
Encoding: task 1 of 1, 9.60 % (61.04 fps, avg 57.68 fps, ETA 00h40m38s)[04:41:39] sync: "Chapter 3" (3) at frame 14937 time 56066010
Encoding: task 1 of 1, 13.89 % (58.76 fps, avg 57.61 fps, ETA 00h38m46s)[04:43:35] sync: "Chapter 4" (4) at frame 21632 time 81197366
Encoding: task 1 of 1, 18.44 % (59.63 fps, avg 57.59 fps, ETA 00h36m44s)[04:45:38] sync: "Chapter 5" (5) at frame 28706 time 107751393
Encoding: task 1 of 1, 23.82 % (57.32 fps, avg 57.58 fps, ETA 00h34m18s)[04:48:04] sync: "Chapter 6" (6) at frame 37080 time 139185296
Encoding: task 1 of 1, 28.91 % (56.75 fps, avg 57.56 fps, ETA 00h32m02s)[04:50:21] sync: "Chapter 7" (7) at frame 45003 time 168926257
Encoding: task 1 of 1, 34.57 % (56.71 fps, avg 57.54 fps, ETA 00h29m29s)[04:52:55] sync: "Chapter 8" (8) at frame 53793 time 201921720
Encoding: task 1 of 1, 37.68 % (56.63 fps, avg 57.53 fps, ETA 00h28m05s)[04:54:19] sync: "Chapter 9" (9) at frame 58652 time 220161191
Encoding: task 1 of 1, 41.06 % (55.57 fps, avg 57.53 fps, ETA 00h26m34s)[04:55:50] sync: "Chapter 10" (10) at frame 63897 time 239849610
Encoding: task 1 of 1, 45.05 % (57.76 fps, avg 57.53 fps, ETA 00h24m46s)[04:57:38] sync: "Chapter 11" (11) at frame 70106 time 263156643
Encoding: task 1 of 1, 48.99 % (56.91 fps, avg 57.54 fps, ETA 00h22m59s)[04:59:24] sync: "Chapter 12" (12) at frame 76237 time 286170885
Encoding: task 1 of 1, 54.93 % (58.40 fps, avg 57.53 fps, ETA 00h20m18s)[05:02:05] sync: "Chapter 13" (13) at frame 85478 time 320859288
Encoding: task 1 of 1, 59.42 % (56.81 fps, avg 57.53 fps, ETA 00h18m17s)[05:04:06] sync: "Chapter 14" (14) at frame 92447 time 347019172
Encoding: task 1 of 1, 64.72 % (58.13 fps, avg 57.54 fps, ETA 00h15m54s)[05:06:30] sync: "Chapter 15" (15) at frame 100717 time 378062685
Encoding: task 1 of 1, 71.12 % (54.40 fps, avg 57.54 fps, ETA 00h13m00s)[05:09:23] sync: "Chapter 16" (16) at frame 110663 time 415397482
Encoding: task 1 of 1, 77.41 % (55.57 fps, avg 57.53 fps, ETA 00h10m11s)[05:12:13] sync: "Chapter 17" (17) at frame 120456 time 452157956
Encoding: task 1 of 1, 84.22 % (54.65 fps, avg 57.53 fps, ETA 00h07m07s)[05:15:18] sync: "Chapter 18" (18) at frame 131046 time 491910168
Encoding: task 1 of 1, 91.10 % (57.91 fps, avg 57.53 fps, ETA 00h04m01s)[05:18:24] sync: "Chapter 19" (19) at frame 141757 time 532116585
Encoding: task 1 of 1, 93.67 % (58.22 fps, avg 57.52 fps, ETA 00h02m52s)[05:19:33] sync: "Chapter 20" (20) at frame 145753 time 547116570
Encoding: task 1 of 1, 99.94 % (58.16 fps, avg 57.60 fps, ETA 00h00m02s)[05:22:20] reader: done. 1 scr changes
Encoding: task 1 of 1, 100.00 % (57.88 fps, avg 57.60 fps, ETA 00h00m01s)[05:22:21] work: average encoding speed for job is 57.599934 fps
Encoding: task 1 of 1, 100.00 % (57.88 fps, avg 57.60 fps, ETA 00h00m01s)[05:22:21] dca-decoder done: 608339 frames, 0 decoder errors
[05:22:21] dca-decoder done: 608339 frames, 0 decoder errors
[05:22:21] h264-decoder done: 155579 frames, 0 decoder errors
[05:22:21] sync: got 155579 frames, 155578 expected
[05:22:21] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
[05:22:21] mux: track 0, 155579 frames, 4857818108 bytes, 5989.00 kbps, fifo 4096
[05:22:21] mux: track 1, 304172 frames, 132518652 bytes, 163.38 kbps, fifo 4096
[05:22:21] mux: track 2, 202779 frames, 519114240 bytes, 639.99 kbps, fifo 4096
[05:22:21] Finished work at: Sun Nov 28 05:22:21 2021

[05:22:21] libhb: work result = 0

Encode done!
HandBrake has exited.

Completed: /Users/varase/RIPs/Videos/The Marksman (1080p HEVC).m4v
Elapsed time: 00:45:05



*** 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"

[05:22:22] Compile-time hardening features are enabled
[05:22:22] hb_init: starting libhb thread
[05:22:22] thread 16fa87000 started ("libhb")
HandBrake 20211125214942-8eb1ee36d-master (2021112601) - Darwin arm64 - https://handbrake.fr
10 CPUs detected
Opening The Marksman.mkv...
[05:22:22] CPU: 
[05:22:22]  - logical processor count: 10
[05:22:22] 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
[05:22:22] 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
[05:22:22] 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
[05:22:22] scan: decoding previews for title 1
[05:22:22] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[05:22:22] scan: audio 0x2: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)
[05:22:22] scan: audio 0x3: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
Scanning title 1 of 1, preview 9, 90.00 %[05:22:23] 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
[05:22:23] 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]
[05:22:24] Starting work at: Sun Nov 28 05:22:24 2021

[05:22:24] 1 job(s) to process
[05:22:24] 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
    }
}
[05:22:24] Starting Task: Encoding Pass
[05:22:24] job configuration:
[05:22:24]  * source
[05:22:24]    + The Marksman.mkv
[05:22:24]    + title 1, chapter(s) 1 to 20
[05:22:24]    + container: matroska,webm
[05:22:24]    + data rate: 39906 kbps
[05:22:24]  * destination
[05:22:24]    + /Users/varase/RIPs/Videos/The Marksman (HEVC).m4v
[05:22:24]    + container: MPEG-4 (libavformat)
[05:22:24]      + chapter markers
[05:22:24]  * video track
[05:22:24]    + decoder: h264 8-bit (yuv420p)
[05:22:24]    + filters
[05:22:24]      + Framerate Shaper (mode=2:rate=27000000/900000)
[05:22:24]        + frame rate: 23.976 fps -> peak rate limited to 30.000 fps
[05:22:24]      + Crop and Scale (width=960:height=402:crop-top=138:crop-bottom=138:crop-left=0:crop-right=0)
[05:22:24]        + source: 1920 * 1080, crop (138/138/0/0): 1920 * 804, scale: 960 * 402
[05:22:24]    + Output geometry
[05:22:24]      + storage dimensions: 960 x 402
[05:22:24]      + pixel aspect ratio: 1 : 1
[05:22:24]      + display dimensions: 960 x 402
[05:22:24]    + encoder: H.265 (VideoToolbox)
[05:22:24]      + preset:  medium
[05:22:24]      + profile: auto
[05:22:24]      + quality: 22.00 (CQ)
[05:22:24]      + color profile: 1-1-1
[05:22:24]      + chroma location: left
[05:22:24]  * audio track 1
[05:22:24]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[05:22:24]      + samplerate: 48000 Hz
[05:22:24]    + mixdown: Dolby Pro Logic II
[05:22:24]    + encoder: AAC (Apple AudioToolbox)
[05:22:24]      + bitrate: 160 kbps, samplerate: 48000 Hz
[05:22:24] sync: expecting 155578 video frames
[05:22:24] encvt_Init: encoding with constant quality 22.000000
[05:22:24] sync: first pts video is 0
[05:22:24] sync: "Chapter 1" (1) at frame 1 time 0
[05:22:24] sync: first pts audio 0x1 is 0
Encoding: task 1 of 1, 3.87 % (222.87 fps, avg 226.48 fps, ETA 00h11m01s)[05:22:50] sync: "Chapter 2" (2) at frame 6032 time 22638866
Encoding: task 1 of 1, 9.58 % (221.65 fps, avg 226.02 fps, ETA 00h10m22s)[05:23:30] sync: "Chapter 3" (3) at frame 14937 time 56066010
Encoding: task 1 of 1, 13.88 % (229.94 fps, avg 226.37 fps, ETA 00h09m52s)[05:23:59] sync: "Chapter 4" (4) at frame 21632 time 81197366
Encoding: task 1 of 1, 18.43 % (229.11 fps, avg 226.12 fps, ETA 00h09m22s)[05:24:31] sync: "Chapter 5" (5) at frame 28706 time 107751393
Encoding: task 1 of 1, 23.82 % (230.77 fps, avg 226.05 fps, ETA 00h08m44s)[05:25:08] sync: "Chapter 6" (6) at frame 37080 time 139185296
Encoding: task 1 of 1, 28.89 % (224.96 fps, avg 225.92 fps, ETA 00h08m10s)[05:25:43] sync: "Chapter 7" (7) at frame 45003 time 168926257
Encoding: task 1 of 1, 34.54 % (225.73 fps, avg 225.88 fps, ETA 00h07m31s)[05:26:22] sync: "Chapter 8" (8) at frame 53793 time 201921720
Encoding: task 1 of 1, 37.66 % (224.26 fps, avg 225.87 fps, ETA 00h07m09s)[05:26:43] sync: "Chapter 9" (9) at frame 58652 time 220161191
Encoding: task 1 of 1, 41.06 % (225.33 fps, avg 225.84 fps, ETA 00h06m46s)[05:27:07] sync: "Chapter 10" (10) at frame 63897 time 239849610
Encoding: task 1 of 1, 45.04 % (231.65 fps, avg 225.95 fps, ETA 00h06m18s)[05:27:34] sync: "Chapter 11" (11) at frame 70106 time 263156643
Encoding: task 1 of 1, 48.99 % (219.36 fps, avg 225.85 fps, ETA 00h05m52s)[05:28:01] sync: "Chapter 12" (12) at frame 76237 time 286170885
Encoding: task 1 of 1, 54.92 % (224.18 fps, avg 225.82 fps, ETA 00h05m10s)[05:28:42] sync: "Chapter 13" (13) at frame 85478 time 320859288
Encoding: task 1 of 1, 59.39 % (228.68 fps, avg 225.84 fps, ETA 00h04m40s)[05:29:13] sync: "Chapter 14" (14) at frame 92447 time 347019172
Encoding: task 1 of 1, 64.72 % (226.66 fps, avg 225.95 fps, ETA 00h04m03s)[05:29:49] sync: "Chapter 15" (15) at frame 100717 time 378062685
Encoding: task 1 of 1, 71.08 % (226.28 fps, avg 225.98 fps, ETA 00h03m19s)[05:30:33] sync: "Chapter 16" (16) at frame 110663 time 415397482
Encoding: task 1 of 1, 77.39 % (227.74 fps, avg 225.97 fps, ETA 00h02m35s)[05:31:17] sync: "Chapter 17" (17) at frame 120456 time 452157956
Encoding: task 1 of 1, 84.20 % (224.53 fps, avg 225.94 fps, ETA 00h01m49s)[05:32:04] sync: "Chapter 18" (18) at frame 131046 time 491910168
Encoding: task 1 of 1, 91.08 % (226.94 fps, avg 225.95 fps, ETA 00h01m02s)[05:32:51] sync: "Chapter 19" (19) at frame 141757 time 532116585
Encoding: task 1 of 1, 93.65 % (222.08 fps, avg 225.94 fps, ETA 00h00m43s)[05:33:09] sync: "Chapter 20" (20) at frame 145753 time 547116570
Encoding: task 1 of 1, 99.91 % (226.36 fps, avg 226.01 fps, ETA 00h00m01s)[05:33:52] reader: done. 1 scr changes
Encoding: task 1 of 1, 100.00 % (226.51 fps, avg 226.00 fps, ETA 00h00m00s)[05:33:52] work: average encoding speed for job is 225.997879 fps
[05:33:52] vfr: 155579 frames output, 0 dropped and 0 duped for CFR/PFR
[05:33:52] vfr: lost time: 0 (0 frames)
[05:33:52] vfr: gained time: 0 (0 frames) (0 not accounted for)
Encoding: task 1 of 1, 100.00 % (226.51 fps, avg 226.00 fps, ETA 00h00m00s)[05:33:52] dca-decoder done: 608339 frames, 0 decoder errors
[05:33:52] h264-decoder done: 155579 frames, 0 decoder errors
[05:33:52] sync: got 155579 frames, 155578 expected
[05:33:52] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
[05:33:52] mux: track 0, 155579 frames, 221671026 bytes, 273.29 kbps, fifo 8192
[05:33:52] mux: track 1, 304172 frames, 132762145 bytes, 163.68 kbps, fifo 16384
[05:33:53] Finished work at: Sun Nov 28 05:33:53 2021

[05:33:53] libhb: work result = 0

Encode done!

HandBrake has exited.

21.11.28 05:33:53 Host: Verne-MBP16, ID: varase, Num: 60, Hist: 526, RC: 0 [~] % cd /                                                      
Note that the FHD encode gets around 57 FPS whereas the SD encode gets around 225.

The FHD encode is done using Don Melton's transcode-video gem whereas the SD encode is done by invoking handbrakecli directly.

-- Thanks, Verne
AgentMax
Posts: 6
Joined: Sat Dec 04, 2021 8:18 pm

Re: Using Video ToolBox on M1 Max Powerbook

Post by AgentMax »

Today I got my MBP 16" with M1 Pro Chip.
I tried Handbrake and using video toolbox h265 10 bit is very slow compared to my M1 Mac mini.

The mini is encoding the same file with the same profile (custom) with around 200 fps. The MacBook Pro that should
be at least similar or even faster is only doing 60fps.

Is that the exact problem this thread is about?
rollin_eng
Veteran User
Posts: 4836
Joined: Wed May 04, 2011 11:06 pm

Re: Using Video ToolBox on M1 Max Powerbook

Post by rollin_eng »

AgentMax wrote: Sat Dec 04, 2021 8:22 pm Today I got my MBP 16" with M1 Pro Chip.
I tried Handbrake and using video toolbox h265 10 bit is very slow compared to my M1 Mac mini.

The mini is encoding the same file with the same profile (custom) with around 200 fps. The MacBook Pro that should
be at least similar or even faster is only doing 60fps.

Is that the exact problem this thread is about?
Could you please post your logs.
AgentMax
Posts: 6
Joined: Sat Dec 04, 2021 8:18 pm

Re: Using Video ToolBox on M1 Max Powerbook

Post by AgentMax »

Here is the log of the MBP (I only did 10% of the file):

Code: Select all

HandBrake Activity Log for Session: 2021-12-04T20:41:46Z
Handbrake Version: 20211202183600-432b76d2d-master (2021120301)
EncodeMBP.mkv
Preset: CQ40
[21:41:46] Compile-time hardening features are enabled
[21:41:46] hb_init: starting libhb thread
[21:41:46] macgui: fr.handbrake.HandBrakeXPCService scanning specifically for title: 1
[21:41:46] CPU: 
[21:41:46]  - logical processor count: 10
[21:41:46] hb_scan: path=/Users/michael/Downloads/EncodeMBP.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image /Users/michael/Downloads/EncodeMBP.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(/Users/michael/Downloads/EncodeMBP.mkv/) failed
[21:41:46] 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
[21:41:46] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/Users/michael/Downloads/EncodeMBP.mkv':
  Metadata:
    title           : THEORY
    encoder         : libebml v1.3.6 + libmatroska v1.4.9
    creation_time   : 2019-03-04T17:41:28.000000Z
  Duration: 00:25:17.54, start: 0.000000, bitrate: 9993 kb/s
  Stream #0:0: Video: h264 (High), yuv420p(progressive), 1440x1080 [SAR 179:180 DAR 179:135], SAR 180:181 DAR 240:181, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      BPS-eng         : 9604543
      DURATION-eng    : 00:25:15.556000000
      NUMBER_OF_FRAMES-eng: 36337
      NUMBER_OF_BYTES-eng: 1819527861
      _STATISTICS_WRITING_APP-eng: mkvmerge v28.2.0 ('The Awakening') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-03-04 17:41:28
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(ger): Audio: ac3, 48000 Hz, mono, fltp, 192 kb/s (default)
    Metadata:
      BPS-eng         : 192000
      DURATION-eng    : 00:25:16.544000000
      NUMBER_OF_FRAMES-eng: 47392
      NUMBER_OF_BYTES-eng: 36397056
      _STATISTICS_WRITING_APP-eng: mkvmerge v28.2.0 ('The Awakening') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-03-04 17:41:28
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(eng): Audio: ac3, 48000 Hz, mono, fltp, 192 kb/s
    Metadata:
      BPS-eng         : 192000
      DURATION-eng    : 00:25:17.536000000
      NUMBER_OF_FRAMES-eng: 47423
      NUMBER_OF_BYTES-eng: 36420864
      _STATISTICS_WRITING_APP-eng: mkvmerge v28.2.0 ('The Awakening') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-03-04 17:41:28
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:3(ger): Subtitle: subrip (default)
    Metadata:
      BPS-eng         : 0
      DURATION-eng    : 00:23:57.811000000
      NUMBER_OF_FRAMES-eng: 4
      NUMBER_OF_BYTES-eng: 73
      _STATISTICS_WRITING_APP-eng: mkvmerge v28.2.0 ('The Awakening') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-03-04 17:41:28
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:4(eng): Subtitle: dvd_subtitle, 1440x1080
    Metadata:
      BPS-eng         : 12874
      DURATION-eng    : 00:25:01.114000000
      NUMBER_OF_FRAMES-eng: 377
      NUMBER_OF_BYTES-eng: 2415682
      _STATISTICS_WRITING_APP-eng: mkvmerge v28.2.0 ('The Awakening') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-03-04 17:41:28
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:5(ger): Subtitle: dvd_subtitle, 1440x1080
    Metadata:
      BPS-eng         : 14040
      DURATION-eng    : 00:25:01.114000000
      NUMBER_OF_FRAMES-eng: 383
      NUMBER_OF_BYTES-eng: 2634535
      _STATISTICS_WRITING_APP-eng: mkvmerge v28.2.0 ('The Awakening') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-03-04 17:41:28
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[21:41:46] scan: decoding previews for title 1
[21:41:46] scan: audio 0x1: ac3, rate=48000Hz, bitrate=192000 Deutsch (AC3) (1.0 ch) (192 kbps)
[21:41:46] scan: audio 0x2: ac3, rate=48000Hz, bitrate=192000 English (AC3) (1.0 ch) (192 kbps)
[21:41:46] WARNING: Video PAR 179:180 != container PAR 180:181
[21:41:46] scan: 10 previews, 1440x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 1.33:1, PAR 179:180, color profile: 1-1-1, chroma location: left
[21:41:46] libhb: scan thread found 1 valid title(s)
[21:41:46] macgui: fr.handbrake.HandBrakeXPCService scan done
[21:41:46] macgui: fr.handbrake.HandBrakeXPCService started encoding EncodeMBP.mkv
[21:41:46] macgui: fr.handbrake.HandBrakeXPCService with preset CQ40
[21:41:46] Starting work at: Sat Dec  4 21:41:46 2021

[21:41:46] 1 job(s) to process
[21:41:46] Starting Task: Encoding Pass
[21:41:46] Skipping crop/scale filter
[21:41:46] work: only 1 chapter, disabling chapter markers
[21:41:46] job configuration:
[21:41:46]  * source
[21:41:46]    + /Users/michael/Downloads/EncodeMBP.mkv
[21:41:46]    + title 1, chapter(s) 1 to 1
[21:41:46]    + container: matroska,webm
[21:41:46]    + data rate: 9993 kbps
[21:41:46]  * destination
[21:41:46]    + /Users/michael/Library/Containers/fr.handbrake.HandBrake/Data/Movies/EncodeMBP.mkv
[21:41:46]    + container: Matroska (libavformat)
[21:41:46]  * video track
[21:41:46]    + decoder: h264 8-bit (yuv420p)
[21:41:46]    + filters
[21:41:46]      + Framerate Shaper (mode=1:rate=27000000/1126125)
[21:41:46]        + frame rate: 23.976 fps -> constant 23.976 fps
[21:41:46]      + Format (format=p010le)
[21:41:46]    + Output geometry
[21:41:46]      + storage dimensions: 1440 x 1080
[21:41:46]      + pixel aspect ratio: 179 : 180
[21:41:46]      + display dimensions: 1432 x 1080
[21:41:46]    + encoder: H.265 10-bit (VideoToolbox)
[21:41:46]      + preset:  default
[21:41:46]      + profile: auto
[21:41:46]      + quality: 40.00 (CQ)
[21:41:46]      + color profile: 1-1-1
[21:41:46]      + chroma location: left
[21:41:46]  * subtitle track 1, Deutsch [UTF-8] (track 0, id 0x3, Text) -> Passthrough
[21:41:46]  * subtitle track 2, English [VOBSUB] (track 1, id 0x4, Picture) -> Passthrough
[21:41:46]  * subtitle track 3, Deutsch [VOBSUB] (track 2, id 0x5, Picture) -> Passthrough
[21:41:46]  * audio track 1
[21:41:46]    + decoder: Deutsch (AC3) (1.0 ch) (192 kbps) (track 1, id 0x1)
[21:41:46]      + bitrate: 192 kbps, samplerate: 48000 Hz
[21:41:46]    + AC3 Passthru
[21:41:46]  * audio track 2
[21:41:46]    + decoder: English (AC3) (1.0 ch) (192 kbps) (track 2, id 0x2)
[21:41:46]      + bitrate: 192 kbps, samplerate: 48000 Hz
[21:41:46]    + AC3 Passthru
[21:41:46] sync: expecting 36384 video frames
[21:41:46] encvt_Init: encoding with constant quality 40.000000
[21:41:46] sync: first pts video is 0
[21:41:46] sync: "Kapitel 1" (1) at frame 1 time 0
[21:41:46] sync: first pts audio 0x1 is 0
[21:41:46] sync: first pts audio 0x2 is 0
[21:41:50] sync: first pts subtitle 0x4 is 1039770
[21:41:50] sync: first pts subtitle 0x5 is 1039770
[21:42:10] sync: first pts subtitle 0x3 is 6737940
[21:42:38] macgui: fr.handbrake.HandBrakeXPCService encode canceled
[21:42:38] work: average encoding speed for job is 75.326103 fps
[21:42:38] vfr: 3894 frames output, 0 dropped and 0 duped for CFR/PFR
[21:42:38] vfr: lost time: 0 (0 frames)
[21:42:38] vfr: gained time: 0 (0 frames) (0 not accounted for)
[21:42:38] ac3-decoder done: 5191 frames, 0 decoder errors
[21:42:38] ac3-decoder done: 5191 frames, 0 decoder errors
[21:42:38] h264-decoder done: 3963 frames, 0 decoder errors
[21:42:38] sync: got 3906 frames, 36384 expected
[21:42:38] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
[21:42:38] mux: track 0, 3873 frames, 106297088 bytes, 5218.49 kbps, fifo 512
[21:42:38] mux: track 1, 5091 frames, 3909888 bytes, 191.95 kbps, fifo 1024
[21:42:38] mux: track 2, 5090 frames, 3909120 bytes, 191.91 kbps, fifo 1024
[21:42:38] mux: track 3, 1 frames, 44 bytes, 0.00 kbps, fifo 8
[21:42:38] mux: track 4, 44 frames, 332980 bytes, 16.35 kbps, fifo 16
[21:42:38] mux: track 5, 46 frames, 372255 bytes, 18.28 kbps, fifo 16
[21:42:38] Finished work at: Sat Dec  4 21:42:38 2021

[21:42:38] libhb: work result = 1
And for the Mini

Code: Select all

HandBrake Activity Log for Session: 2021-12-04T20:52:42Z
Handbrake Version: 1.4.2 (2021100300)
EncodeMini.mkv
Preset: CQ40
[21:52:42] macgui: fr.handbrake.HandBrakeXPCService scanning specifically for title: 1
[21:52:42] CPU: 
[21:52:42]  - logical processor count: 8
[21:52:42] hb_scan: path=/Users/michael/Downloads/EncodeMini.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image /Users/michael/Downloads/EncodeMini.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(/Users/michael/Downloads/EncodeMini.mkv/) failed
[21:52:42] 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
[21:52:42] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/Users/michael/Downloads/EncodeMini.mkv':
  Metadata:
    title           : THEORY
    encoder         : libebml v1.3.6 + libmatroska v1.4.9
    creation_time   : 2019-03-04T17:41:28.000000Z
  Duration: 00:25:17.54, start: 0.000000, bitrate: 9993 kb/s
  Stream #0:0: Video: h264 (High), yuv420p(progressive), 1440x1080 [SAR 179:180 DAR 179:135], SAR 180:181 DAR 240:181, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      BPS-eng         : 9604543
      DURATION-eng    : 00:25:15.556000000
      NUMBER_OF_FRAMES-eng: 36337
      NUMBER_OF_BYTES-eng: 1819527861
      _STATISTICS_WRITING_APP-eng: mkvmerge v28.2.0 ('The Awakening') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-03-04 17:41:28
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(ger): Audio: ac3, 48000 Hz, mono, fltp, 192 kb/s (default)
    Metadata:
      BPS-eng         : 192000
      DURATION-eng    : 00:25:16.544000000
      NUMBER_OF_FRAMES-eng: 47392
      NUMBER_OF_BYTES-eng: 36397056
      _STATISTICS_WRITING_APP-eng: mkvmerge v28.2.0 ('The Awakening') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-03-04 17:41:28
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(eng): Audio: ac3, 48000 Hz, mono, fltp, 192 kb/s
    Metadata:
      BPS-eng         : 192000
      DURATION-eng    : 00:25:17.536000000
      NUMBER_OF_FRAMES-eng: 47423
      NUMBER_OF_BYTES-eng: 36420864
      _STATISTICS_WRITING_APP-eng: mkvmerge v28.2.0 ('The Awakening') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-03-04 17:41:28
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:3(ger): Subtitle: subrip (default)
    Metadata:
      BPS-eng         : 0
      DURATION-eng    : 00:23:57.811000000
      NUMBER_OF_FRAMES-eng: 4
      NUMBER_OF_BYTES-eng: 73
      _STATISTICS_WRITING_APP-eng: mkvmerge v28.2.0 ('The Awakening') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-03-04 17:41:28
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:4(eng): Subtitle: dvd_subtitle, 1440x1080
    Metadata:
      BPS-eng         : 12874
      DURATION-eng    : 00:25:01.114000000
      NUMBER_OF_FRAMES-eng: 377
      NUMBER_OF_BYTES-eng: 2415682
      _STATISTICS_WRITING_APP-eng: mkvmerge v28.2.0 ('The Awakening') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-03-04 17:41:28
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:5(ger): Subtitle: dvd_subtitle, 1440x1080
    Metadata:
      BPS-eng         : 14040
      DURATION-eng    : 00:25:01.114000000
      NUMBER_OF_FRAMES-eng: 383
      NUMBER_OF_BYTES-eng: 2634535
      _STATISTICS_WRITING_APP-eng: mkvmerge v28.2.0 ('The Awakening') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-03-04 17:41:28
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[21:52:42] scan: decoding previews for title 1
[21:52:42] scan: audio 0x1: ac3, rate=48000Hz, bitrate=192000 Deutsch (AC3) (1.0 ch) (192 kbps)
[21:52:42] scan: audio 0x2: ac3, rate=48000Hz, bitrate=192000 English (AC3) (1.0 ch) (192 kbps)
[21:52:42] WARNING: Video PAR 179:180 != container PAR 180:181
[21:52:42] scan: 10 previews, 1440x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 1.33:1, PAR 179:180, color profile: 1-1-1
[21:52:42] libhb: scan thread found 1 valid title(s)
[21:52:42] macgui: fr.handbrake.HandBrakeXPCService scan done
[21:52:42] macgui: fr.handbrake.HandBrakeXPCService started encoding EncodeMini.mkv
[21:52:42] macgui: fr.handbrake.HandBrakeXPCService with preset CQ40
[21:52:42] Starting work at: Sat Dec  4 21:52:42 2021

[21:52:42] 1 job(s) to process
[21:52:42] Starting Task: Encoding Pass
[21:52:42] Skipping crop/scale filter
[21:52:42] work: only 1 chapter, disabling chapter markers
[21:52:42] job configuration:
[21:52:42]  * source
[21:52:42]    + /Users/michael/Downloads/EncodeMini.mkv
[21:52:42]    + title 1, chapter(s) 1 to 1
[21:52:42]    + container: matroska,webm
[21:52:42]    + data rate: 9993 kbps
[21:52:42]  * destination
[21:52:42]    + /Users/michael/Library/Containers/fr.handbrake.HandBrake/Data/Movies/EncodeMini.mkv
[21:52:42]    + container: Matroska (libavformat)
[21:52:42]  * video track
[21:52:42]    + decoder: h264 8-bit (yuv420p)
[21:52:42]    + filters
[21:52:42]      + Framerate Shaper (mode=1:rate=27000000/1126125)
[21:52:42]        + frame rate: 23.976 fps -> constant 23.976 fps
[21:52:42]      + Format (format=p010le)
[21:52:42]    + Output geometry
[21:52:42]      + storage dimensions: 1440 x 1080
[21:52:42]      + pixel aspect ratio: 179 : 180
[21:52:42]      + display dimensions: 1432 x 1080
[21:52:42]    + encoder: H.265 (libavcodec)
[21:52:42]      + preset:  default
[21:52:42]      + profile: auto
[21:52:42]      + quality: 40.00 (CQ)
[21:52:42]      + color profile: 1-1-1
[21:52:42]  * subtitle track 1, Deutsch [UTF-8] (track 0, id 0x3, Text) -> Passthrough
[21:52:42]  * subtitle track 2, English [VOBSUB] (track 1, id 0x4, Picture) -> Passthrough
[21:52:42]  * subtitle track 3, Deutsch [VOBSUB] (track 2, id 0x5, Picture) -> Passthrough
[21:52:42]  * audio track 1
[21:52:42]    + decoder: Deutsch (AC3) (1.0 ch) (192 kbps) (track 1, id 0x1)
[21:52:42]      + bitrate: 192 kbps, samplerate: 48000 Hz
[21:52:42]    + AC3 Passthru
[21:52:42]  * audio track 2
[21:52:42]    + decoder: English (AC3) (1.0 ch) (192 kbps) (track 2, id 0x2)
[21:52:42]      + bitrate: 192 kbps, samplerate: 48000 Hz
[21:52:42]    + AC3 Passthru
[21:52:42] sync: expecting 36384 video frames
[21:52:42] encavcodecInit: H.265 10 bit (VideoToolbox)
[21:52:42] encavcodec: encoding at constant quality 40
[21:52:42] encavcodec: encoding with stored aspect 179/180
[21:52:42] sync: first pts video is 0
[21:52:42] sync: "Kapitel 1" (1) at frame 1 time 0
[21:52:42] sync: first pts audio 0x1 is 0
[21:52:42] sync: first pts audio 0x2 is 0
[21:52:44] sync: first pts subtitle 0x4 is 1039770
[21:52:44] sync: first pts subtitle 0x5 is 1039770
[21:52:50] sync: first pts subtitle 0x3 is 6737940
[21:53:25] macgui: fr.handbrake.HandBrakeXPCService encode canceled
[21:53:25] work: average encoding speed for job is 214.806290 fps
[21:53:25] vfr: 9116 frames output, 0 dropped and 0 duped for CFR/PFR
[21:53:25] vfr: lost time: 0 (0 frames)
[21:53:25] vfr: gained time: 0 (0 frames) (0 not accounted for)
[21:53:25] ac3-decoder done: 11992 frames, 0 decoder errors
[21:53:25] ac3-decoder done: 11992 frames, 0 decoder errors
[21:53:25] h264-decoder done: 9183 frames, 0 decoder errors
[21:53:25] sync: got 9136 frames, 36384 expected
[21:53:25] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
[21:53:25] mux: track 0, 9100 frames, 212440196 bytes, 4460.13 kbps, fifo 1024
[21:53:25] mux: track 1, 11907 frames, 9144576 bytes, 191.99 kbps, fifo 1024
[21:53:25] mux: track 2, 11906 frames, 9143808 bytes, 191.97 kbps, fifo 1024
[21:53:25] mux: track 3, 1 frames, 44 bytes, 0.00 kbps, fifo 8
[21:53:25] mux: track 4, 78 frames, 528778 bytes, 11.10 kbps, fifo 16
[21:53:25] mux: track 5, 80 frames, 579205 bytes, 12.16 kbps, fifo 16
[21:53:25] Finished work at: Sat Dec  4 21:53:25 2021

[21:53:25] libhb: work result = 1
mduell
Veteran User
Posts: 8182
Joined: Sat Apr 21, 2007 8:54 pm

Re: Using Video ToolBox on M1 Max Powerbook

Post by mduell »

Different encoders and bit depths.
AgentMax
Posts: 6
Joined: Sat Dec 04, 2021 8:18 pm

Re: Using Video ToolBox on M1 Max Powerbook

Post by AgentMax »

Both are using Handbrake, h.265 Videotoolbox and 10bit depth.
Deleted User 11865

Re: Using Video ToolBox on M1 Max Powerbook

Post by Deleted User 11865 »

Indeed, though you're using two different versions of HandBrake here.
AgentMax
Posts: 6
Joined: Sat Dec 04, 2021 8:18 pm

Re: Using Video ToolBox on M1 Max Powerbook

Post by AgentMax »

Rodeo wrote: Sun Dec 05, 2021 6:31 pm Indeed, though you're using two different versions of HandBrake here.
Yes you're right. I started the wrong app for the log. But its the same for the 1.4.2 that's running on the Mini when running on the MBP.
mduell
Veteran User
Posts: 8182
Joined: Sat Apr 21, 2007 8:54 pm

Re: Using Video ToolBox on M1 Max Powerbook

Post by mduell »

Code: Select all

[21:41:46]    + encoder: H.265 10-bit (VideoToolbox)
[21:41:46]      + preset:  default
[21:41:46]      + profile: auto
[21:41:46]      + quality: 40.00 (CQ)

[21:52:42]    + encoder: H.265 (libavcodec)
[21:52:42]      + preset:  default
[21:52:42]      + profile: auto
[21:52:42]      + quality: 40.00 (CQ)
Isn't the same thing.
Deleted User 11865

Re: Using Video ToolBox on M1 Max Powerbook

Post by Deleted User 11865 »

mduell wrote: Sun Dec 05, 2021 8:29 pm

Code: Select all

[21:41:46]    + encoder: H.265 10-bit (VideoToolbox)
[21:41:46]      + preset:  default
[21:41:46]      + profile: auto
[21:41:46]      + quality: 40.00 (CQ)

[21:52:42]    + encoder: H.265 (libavcodec)
[21:52:42]      + preset:  default
[21:52:42]      + profile: auto
[21:52:42]      + quality: 40.00 (CQ)
Isn't the same thing.
Yes it is. Same encoder, different wrapper (lavc in release versions, libhb native wrapper in git master branch).
User avatar
Ritsuka
HandBrake Team
Posts: 1643
Joined: Fri Jan 12, 2007 11:29 am

Re: Using Video ToolBox on M1 Max Powerbook

Post by Ritsuka »

Is the encoding speed the same when encoding a preview in the preview window?
majortom67
Posts: 18
Joined: Thu Nov 20, 2014 8:59 am

Re: Using Video ToolBox on M1 Max Powerbook

Post by majortom67 »

I had circa 300 fps encoding 2K movies on my M1 Mac Mini from BDRIPS either in h264 or h265 in Big Sur. Here in Monterey, either 12.0.1 or 12.1 beta 4 (which solved my problems) I can't go beyond 190fps.
rollin_eng
Veteran User
Posts: 4836
Joined: Wed May 04, 2011 11:06 pm

Re: Using Video ToolBox on M1 Max Powerbook

Post by rollin_eng »

majortom67 wrote: Mon Dec 06, 2021 4:35 pm I had circa 300 fps encoding 2K movies on my M1 Mac Mini from BDRIPS either in h264 or h265 in Big Sur. Here in Monterey, either 12.0.1 or 12.1 beta 4 (which solved my problems) I can't go beyond 190fps.
Could you please post your logs.
AgentMax
Posts: 6
Joined: Sat Dec 04, 2021 8:18 pm

Re: Using Video ToolBox on M1 Max Powerbook

Post by AgentMax »

Ritsuka wrote: Mon Dec 06, 2021 7:38 am Is the encoding speed the same when encoding a preview in the preview window?
MacMini M1: 190 fps
MacBook Pro 16" M1 Pro: 60 fps
varase
Posts: 33
Joined: Sat May 14, 2016 9:29 am

Re: Using Video ToolBox on M1 Max Powerbook

Post by varase »

majortom67 wrote: Mon Dec 06, 2021 4:35 pm I had circa 300 fps encoding 2K movies on my M1 Mac Mini from BDRIPS either in h264 or h265 in Big Sur. Here in Monterey, either 12.0.1 or 12.1 beta 4 (which solved my problems) I can't go beyond 190fps.
Which problems did 12.1b4 solve?
User avatar
Ritsuka
HandBrake Team
Posts: 1643
Joined: Fri Jan 12, 2007 11:29 am

Re: Using Video ToolBox on M1 Max Powerbook

Post by Ritsuka »

Commit ce52b4d755a2799a4801f256622b8e8191e71220 ( https://github.com/HandBrake/HandBrake/ ... 8191e71220 ) should fix the slow VideoToolbox speed on M1 Pro and Max.
HandBrake XPC service getting stuck on the efficiency cores after pausing an encode is still not fixed yet.
Post Reply