本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →
Mac 硬件加速教程
本教程将指导您在 Apple Mac 上通过 VideoToolbox 实 现完整的视频硬件加速。
加速方法
VideoToolbox 是 macOS 上唯一的可用方案。如果您在 Intel Mac 上安装了 Windows 或 Linux,请查阅我们的 Intel 或 AMD 指南。
要实现完整加速,必须启用 Metal。
色调映射方法
硬件加速的 HDR 转 SDR 色调映射支持所有 2017 年及之后的 Mac 机型(MacBook Air 13英寸 2017 款除外)。
有两种不同方法可用,各自的优缺点如下:
-
Metal
-
优点:支持 Dolby Vision P5,提供精细的调校选项
-
缺点:在低端 GPU(尤其是 Intel 核显)上速度较慢
-
-
VideoToolbox 原生
-
优点:功耗更低,对 GPU 性能依赖小,无需手动调校即有良好画质
-
缺点:缺乏调校选项,不支持 Dolby Vision P5
-
当两种方法同时启用时,VideoToolbox 原生将处理大多数视频,Metal 仅作为 Dolby Vision Profile 5 视频的回退方案。
硬件选择指南
Hardware accelerated transcoding is supported on all Macs that support VideoToolbox. This includes most 2011 and later Macs.*
完整硬件加速支持大多数 2017 年及之后的 Mac 机型(MacBook Air 13英寸 2017 款除外)。
如需原生 Apple Silicon 支持,需使用 Jellyfin server 10.9.0+ 和 jellyfin-ffmpeg6 6.0.1-5 或更高版本。
VideoToolbox 硬件加速可能在旧款 Mac 上可用,但非官方支持。
如果您的 Mac 没有内置显示器,可能需要外接显示器或使用虚拟插头防止 GPU 降频。
* VideoToolbox may fallback to software decoding/encoding or stop working when the task exceeds its hardware capability. The older your Mac, the more this will occur. Macs from 2017 and later, especially Apple Silicon Macs are strongly recommended.
转码H.264
AVC/H.264 8-bit 凭借出色兼容性仍被广泛使用,2011年后多数 GPU 均可编解码。
所有支持 VideoToolbox 的 Mac 均支持 H.264 8-bit 编解码。
转码HEVC
HEVC/H.265 仍然是存储4K 10-bit、HDR和杜比视界视频的首选格式。得益于x265成熟的软件编码支持,以及2016年后发布的大多数GPU广泛实现的硬件编码支持。
2017年及之后的 Mac(MacBook Air 13英寸 2017 款除外)均支持 HEVC 编解码。
AV1转码支持
自 M3 系列起,采用 Apple Silicon 的 Mac 支持 AV1 视频的硬件加速解码。
性能注意事项
An Apple Silicon-based Mac is preferred in most cases. Even an entry-level M1 can handle three 4K 24fps Dolby Vision HEVC 10-bit transcoding tasks simultaneously while performing tone-mapping to SDR.1 2
The "Max" variant chips come with an additional video encoding engine. VideoToolbox can utilize this extra engine even when there is only a single transcoding session, enabling support for 4K 120fps transcoding and tone-mapping.1
"Ultra" 系列芯片配备 2 个视频解码引擎和 4 个编码引擎,性能较 "Max" 系列翻倍。
在旧款 Intel Mac 上,若无 AMD 独立显卡,使用 Metal 进行 4K 视频色调映射可能遇到性能问题,但 SDR 视频转码仍可胜任。
1 Using prefer speed encoder preset.
2 The simultaneous session count is a soft limit. You can run more sessions if you want, but the transcoding performance of each session may be reduced to a point where video playback starts to stutter.