Valyrian
V2EX  ›  macOS

mpv 在 mac 上可以硬解 hevc 了

  •  1
     
  •   Valyrian · Sep 29, 2017 · 12895 views
    This topic created in 3174 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
        1
    lotux  
       Sep 29, 2017 via iPhone
    必须得重装么? brew update 可以不
    Valyrian
        2
    Valyrian  
    OP
       Sep 29, 2017
    @lotux 现在不行,等 ffmpeg release 之后,再等 mpv release 之后才行。。
    f2f2f
        3
    f2f2f  
       Sep 29, 2017
    还是需要 16 款以上才行吧?
    Valyrian
        4
    Valyrian  
    OP
       Sep 29, 2017
    @f2f2f
    Hayek
        5
    Hayek  
       Sep 29, 2017
    @f2f2 这样说有歧义,包含 16 款吗?我记得只有 17 款支持。
    bookit
        6
    bookit  
       Sep 29, 2017
    第二行执行之后出错:
    ERROR: vda requested, but not all dependencies are satisfied: vda_framework pthreads

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

    https://github.com/Homebrew/homebrew-core/issues/18381
    QAPTEAWH
        8
    QAPTEAWH  
       Sep 29, 2017 via iPhone
    需要 High Sierra 么
    wc0517
        9
    wc0517  
       Sep 29, 2017
    @f2f2f
    @Valyrian
    2016 款支持吗?已经重装了
    Elemento
        10
    Elemento  
       Sep 29, 2017
    16 款 15 寸 MBP 顶配可以硬解么
    Hayek
        11
    Hayek  
       Sep 29, 2017   ❤️ 1
    @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
        12
    lhc70000  
       Sep 29, 2017   ❤️ 3
    好棒,这样估计 iina 很快就能用上了
    f2f2f
        13
    f2f2f  
       Sep 29, 2017
    @lhc70000 老大,12 版停留很长一段时间了,13 版什么时候打包来一发?
    Valyrian
        14
    Valyrian  
    OP
       Sep 29, 2017 via iPhone   ❤️ 1
    @QAPTEAWH
    @wc0517
    @Hayek
    @Elemento

    说明一下:需要 high sierra 和 16 或 17 款 mac。16 款 mac 可以硬解 8bit,17 款可以硬解 8bit 和 10bit (也就是 HDR )。16 款有独显的话,虽然独显能硬解 10bit,但苹果系统不行,装 windows 可破。
    ZRS
        15
    ZRS  
       Sep 29, 2017 via iPhone
    请问 15 年版有硬件加速效果嘛…看有人测试 quickplayer 软解 HEVC 的占用低很多呀
    Valyrian
        16
    Valyrian  
    OP
       Sep 29, 2017 via iPhone   ❤️ 1
    @ZRS 14 楼
    wc0517
        17
    wc0517  
       Sep 29, 2017
    @Valyrian
    @Hayek
    谢谢解答!
    FurN1
        18
    FurN1  
       Sep 29, 2017
    棒!
    lhc70000
        19
    lhc70000  
       Sep 29, 2017   ❤️ 1
    @f2f2f 很快了,一周内吧
    xuzhe
        20
    xuzhe  
       Sep 30, 2017
    我只想知道……哪儿有片源?
    xuexiaopengdear
        21
    xuexiaopengdear  
       Nov 16, 2017
    最新的 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
        22
    Valyrian  
    OP
       Nov 17, 2017 via iPad
    @xuexiaopengdear 乱码已经解决了,等下一个版本吧
    xuexiaopengdear
        23
    xuexiaopengdear  
       Jan 28, 2018
    @Valyrian 更新了最新的 iina,没有乱码了。但是仍然卡的不行,无法播放,切换到 win 就可以流畅播放
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6100 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 75ms · UTC 02:49 · PVG 10:49 · LAX 19:49 · JFK 22:49
    ♥ Do have faith in what you're doing.