V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
liuyanjun0826
V2EX  ›  macOS

GPU 加速播放视频在 OS X 下不可用吗?

  •  
  •   liuyanjun0826 · 2016-10-06 14:21:06 +08:00 · 3643 次点击
    这是一个创建于 2760 天前的主题,其中的信息可能已经有所发展或是发生改变。
    mpv qt 播放视频 cpu 占用都在 20 %左右,是 GPU 加速没有启用的原因吧?
    10 条回复    2016-10-26 12:47:11 +08:00
    ZRS
        1
    ZRS  
       2016-10-06 14:39:20 +08:00 via iPhone
    可能是 scale 算法或者是视频编码无法硬解的原因吧…?
    JackBlack2006
        2
    JackBlack2006  
       2016-10-06 15:45:59 +08:00
    mpv 的硬件加速命令是 hwdec=videotoolbox

    但是我打开就是

    GVA error: Not detecting IGPU in IORegistry!
    GVA error: Not detecting valid offline codec!
    GVA info: Successfully connected to the Intel plugin, offline Gen6
    failed to init videotoolbox decoder: Hardware doesn't support accelerated decoding for this stream or Videotoolbox decoder is not available at the moment (another application is using it). (-78)
    Using software decoding.

    这意思是莫非独显不行?非得英特尔集显?
    twy2004
        3
    twy2004  
       2016-10-06 20:31:34 +08:00
    1.git clone https://github.com/mpv-player/mpv-build.git
    2.cd mpv-build
    3.sh ./force-head
    4../update
    5.echo --enable-vda >> ffmpeg_options
    6.make
    7.sudo make install
    twy2004
        4
    twy2004  
       2016-10-06 20:33:20 +08:00
    [ Playing ]
    mpv --hwdec=vda --vo=opengl <filename>
    chyiz
        5
    chyiz  
       2016-10-07 10:06:31 +08:00
    @twy2004 你这是 Linux 下的吧
    chyiz
        6
    chyiz  
       2016-10-07 10:11:27 +08:00
    LZ 你 mpv 的版本会不会太老了?我记得 mpv 在 macOS 下编译已经不依赖 qt 了啊。
    还有 videotoolbox 好像也是 El Capitan 新加入的东西。不确定的话 hwdec=auto 就行了。
    twy2004
        7
    twy2004  
       2016-10-07 22:24:55 +08:00 via Android
    @chyiz 不是。
    atone
        8
    atone  
       2016-10-08 14:16:23 +08:00
    @JackBlack2006 我前几天也恰好遇到了相同的问题,不过我的是黑苹果,最终是通过更改 SMBIOS 信息解决的。
    JackBlack2006
        9
    JackBlack2006  
       2016-10-08 15:16:50 +08:00
    @atone 改机型?你原来和修改以后的都是什么机型?
    liuyanjun0826
        10
    liuyanjun0826  
    OP
       2016-10-26 12:47:11 +08:00
    好像 MPlayerX 播放视频时是启用显卡硬件加速的,是这样的吗?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   862 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 21:13 · PVG 05:13 · LAX 14:13 · JFK 17:13
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.