liuyanjun0826
V2EX  ›  macOS

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

  •  
  •   liuyanjun0826 · Oct 6, 2016 · 4552 views
    This topic created in 3702 days ago, the information mentioned may be changed or developed.
    mpv qt 播放视频 cpu 占用都在 20 %左右,是 GPU 加速没有启用的原因吧?
    10 replies  •  2016-10-26 12:47:11 +08:00
    ZRS
    ZRS
    Oct 6, 2016 via iPhone
    1
    可能是 scale 算法或者是视频编码无法硬解的原因吧…?
    JackBlack2006
    JackBlack2006
    Oct 6, 2016
    2
    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
    twy2004
    Oct 6, 2016
    3
    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
    twy2004
    Oct 6, 2016
    4
    [ Playing ]
    mpv --hwdec=vda --vo=opengl <filename>
    chyiz
    chyiz
    Oct 7, 2016
    5
    @twy2004 你这是 Linux 下的吧
    chyiz
    chyiz
    Oct 7, 2016
    6
    LZ 你 mpv 的版本会不会太老了?我记得 mpv 在 macOS 下编译已经不依赖 qt 了啊。
    还有 videotoolbox 好像也是 El Capitan 新加入的东西。不确定的话 hwdec=auto 就行了。
    twy2004
    twy2004
    Oct 7, 2016 via Android
    7
    @chyiz 不是。
    atone
    atone
    Oct 8, 2016
    8
    @JackBlack2006 我前几天也恰好遇到了相同的问题,不过我的是黑苹果,最终是通过更改 SMBIOS 信息解决的。
    JackBlack2006
    JackBlack2006
    Oct 8, 2016
    9
    @atone 改机型?你原来和修改以后的都是什么机型?
    liuyanjun0826
    liuyanjun0826
    OP
    Oct 26, 2016
    10
    好像 MPlayerX 播放视频时是启用显卡硬件加速的,是这样的吗?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4050 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 1085ms · UTC 03:53 · PVG 11:53 · LAX 19:53 · JFK 22:53
    ♥ Do have faith in what you're doing.