Valyrian
V2EX  ›  macOS

mpv 在 mac 上可以硬解 hevc 了

  •  1
     
  •   Valyrian · Sep 29, 2017 · 13353 views
    This topic created in 3321 days ago, the information mentioned may be changed or developed.

    虽然代码不是我写的,但全程参与其中,帮忙测试,以一次有种对开源界做一点小贡献的感觉。。

    解码是 ffmpeg 完成的,ffmpeg 在 mac 上硬解 hevc 的代码一个小时前才刚刚 commit,所以需要安装 HEAD 的 ffmpeg。重装 mpv 的方法:

    brew uninstall ffmpeg mpv  # or brew cask uninstall mpv
    brew install ffmpeg --HEAD
    brew install --build-from-source mpv --with-bundle
    brew linkapps mpv
    
    Supplement 1  ·  Jan 23, 2018

    新版出了(有一段时间了),现在直接 brew cask install mpv就可以了

    23 replies  •  2018-01-28 22:40:33 +08:00
    lotux
    lotux
    Sep 29, 2017 via iPhone
    1
    必须得重装么? brew update 可以不
    Valyrian
    Valyrian
    OP
    Sep 29, 2017
    2
    @lotux 现在不行,等 ffmpeg release 之后,再等 mpv release 之后才行。。
    f2f2f
    f2f2f
    Sep 29, 2017
    3
    还是需要 16 款以上才行吧?
    Valyrian
    Valyrian
    OP
    Sep 29, 2017
    4
    @f2f2f 对
    Hayek
    Hayek
    Sep 29, 2017
    5
    @f2f2 这样说有歧义,包含 16 款吗?我记得只有 17 款支持。
    bookit
    bookit
    Sep 29, 2017
    6
    第二行执行之后出错:
    ERROR: vda requested, but not all dependencies are satisfied: vda_framework pthreads

    是缺什么库嘛,第一次编译 ffmpeg,本地 xcode 等都是最新版
    bookit
    bookit
    Sep 29, 2017
    7
    @bookit 第二次好了,vda 选项已经被废止,不过 configure 没删除

    https://github.com/Homebrew/homebrew-core/issues/18381
    QAPTEAWH
    QAPTEAWH
    Sep 29, 2017 via iPhone
    8
    需要 High Sierra 么
    wc0517
    wc0517
    Sep 29, 2017
    9
    @f2f2f
    @Valyrian
    2016 款支持吗?已经重装了
    Elemento
    Elemento
    Sep 29, 2017
    10
    16 款 15 寸 MBP 顶配可以硬解么
    Hayek
    Hayek
    Sep 29, 2017❤️1
    11
    @Elemento
    @wc0517
    我觉得 skylake 可能是支持的,16 款带 amd 显卡的应该支持的更好。

    It gets very confusing, but, long story short: Skylake (6th gen, what's in the 2016 MBP's) supports HEVC, but Kaby Lake supports it better
    Kaby Lake adds better 10-bit HEVC support. However, if you have a 2016 MBP with a discrete AMD GPU, the AMD GPU has the same level of support as Kaby Lake.

    来源:
    https://www.reddit.com/r/mac/comments/6fmarj/how_will_h265_hevc_work_on_the_2016_macbook_pro/

    @QAPTEAWH

    1. "We're building in software encoder support into High Sierra for all Macs"
    2. "Hardware acceleration of HEVC in the newest Macs"...

    来源:
    https://forums.macrumors.com/threads/h265-hevc-on-macbook-pro-2016.2048579/
    lhc70000
    lhc70000
    Sep 29, 2017❤️3
    12
    好棒,这样估计 iina 很快就能用上了
    f2f2f
    f2f2f
    Sep 29, 2017
    13
    @lhc70000 老大,12 版停留很长一段时间了,13 版什么时候打包来一发?
    Valyrian
    Valyrian
    OP
    Sep 29, 2017 via iPhone❤️1
    14
    @QAPTEAWH
    @wc0517
    @Hayek
    @Elemento

    说明一下:需要 high sierra 和 16 或 17 款 mac。16 款 mac 可以硬解 8bit,17 款可以硬解 8bit 和 10bit (也就是 HDR )。16 款有独显的话,虽然独显能硬解 10bit,但苹果系统不行,装 windows 可破。
    ZRS
    ZRS
    Sep 29, 2017 via iPhone
    15
    请问 15 年版有硬件加速效果嘛…看有人测试 quickplayer 软解 HEVC 的占用低很多呀
    Valyrian
    Valyrian
    OP
    Sep 29, 2017 via iPhone❤️1
    16
    @ZRS 14 楼
    wc0517
    wc0517
    Sep 29, 2017
    17
    @Valyrian
    @Hayek
    谢谢解答!
    FurN1
    FurN1
    Sep 29, 2017
    18
    棒!
    lhc70000
    lhc70000
    Sep 29, 2017❤️1
    19
    @f2f2f 很快了,一周内吧
    xuzhe
    xuzhe
    Sep 30, 2017
    20
    我只想知道……哪儿有片源?
    xuexiaopengdear
    xuexiaopengdear
    Nov 16, 2017
    21
    最新的 iina 增加了 ffmpeg 解码,版本 v0.0.14.1 日期 Oct. 25, 2017,我这边系统更新到 High Sierra ( 17 版 macbookpro13 ),播放 4k 视频 planet earth 2 出现视频乱码,关掉硬解后就正常,但是异常卡,问题和这个一模一样
    https://github.com/lhc70000/iina/issues/1123,而且此帖已经有人解决了这个问题,但我是彻底不懂编程,完全看不懂解决方案,哪位可以一步一步教如何修正呀
    Valyrian
    Valyrian
    OP
    Nov 17, 2017 via iPad
    22
    @xuexiaopengdear 乱码已经解决了,等下一个版本吧
    xuexiaopengdear
    xuexiaopengdear
    Jan 28, 2018
    23
    @Valyrian 更新了最新的 iina,没有乱码了。但是仍然卡的不行,无法播放,切换到 win 就可以流畅播放
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1427 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 22:30 · PVG 06:30 · LAX 14:30 · JFK 17:30
    ♥ Do have faith in what you're doing.