mac上的HEVC转码的ffmpeg和硬件加速


2

我有一个macbook pro,一个kaby湖处理器运行高山脉。有可能以某种方式设置ffmpeg以利用hevc的硬件编码与工具箱,而不是libx265?

Answers:


1

在MacOSX上,

有录像带盒。

检查编码器选项:

ffmpeg -hide_banner -h encoder=hevc_videotoolbox

输出:

Supported pixel formats: videotoolbox_vld nv12 yuv420p
hevc_videotoolbox AVOptions:
  -profile           <int>        E..V.... Profile (from 0 to 3) (default 0)
     main                         E..V.... Main Profile
     main10                       E..V.... Main10 Profile
  -allow_sw          <boolean>    E..V.... Allow software encoding (default false)
  -realtime          <boolean>    E..V.... Hint that encoding should happen in real-time if not faster (e.g. capturing from camera). (default false)
  -frames_before     <boolean>    E..V.... Other frames will come before the frames in this session. This helps smooth concatenation issues. (default false)
  -frames_after      <boolean>    E..V.... Other frames will come after the frames in this session. This helps smooth concatenation issues. (default false)

如果你有最近的Mac,也许你可以测试一下。

有关videotoolbox的更多信息: https://developer.apple.com/documentation/videotoolbox

正如您所看到的,它采用了Mac OSX上可用的基于硬件的编码器,为多个抽象(英特尔支持的英特尔IGP上的QuickSync等)提供了统一的视频编码API。

在这里抓住一个构建: https://evermeet.cx/ffmpeg/


1

自OP的评论以来,不确定这是否已经改变,但在ffmpeg 4.x中命令是:

ffmpeg -hide_banner -h encoder=hevc_videotoolbox
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.