firefox中的vlc插件无法解码硬件加速

vlc plugin in firefox fail to decode hardware acceleration

本文关键字:解码 硬件加速 插件 中的 vlc firefox      更新时间:2023-09-26

我在ubuntu MATE v15.04 VIVID(ARMHF平台)中安装了带有firefox v44.0(浏览器插件vlc 2.2.4.2)的vlc媒体播放器v2.2.0。

Firefox加载html文件,其内容如下:

  <embed autostart="true" type="application/x-vlc-plugin"  pluginspage="http://www.videolan.org" width="100%" height="100%" id="vlc" target="/home/fa/Downloads/media.mpg">

当firefox使用vlc插件运行时,视频播放非常慢,CPU负载约为100%。

在日志中,似乎没有匹配的hw解码器模块,而sw解码器正在工作,这导致了太多的CPU负载。

Firefox_VLC_plugin_log如下:

[b01b5c70] avcodec decoder debug: available hardware decoder output format 53 (vaapi_vld)
[b07b9ba0] core input debug: Buffering 14%
[b01b5c70] avcodec decoder debug: available hardware decoder output format 109 (vdpau)
[b01b5c70] avcodec decoder debug: available software decoder output format 0 (yuv420p)
[b07b9ba0] core input debug: Buffering 15%
[b016e650] core generic debug: looking for hw decoder module matching "any": 4 candidates
[b016e650] vdpau_avcodec generic error: Xlib is required for VDPAU
[b016e650] core generic debug: no hw decoder modules matched

我试着设置vlc偏好,其中"输入和编解码器"设置,勾选使用GPU加速,但仍然不起作用。

然而,我在同一系统的命令行中进行了尝试。代码是vlc media.mpg,运行良好。日志如下:

[VDPAU SUNXI] VE version 0x1680 opened
[VDPAU SUNXI] OSD disabled!
[a5c42c18] avcodec decoder: Using sunxi VDPAU Driver for hardware decoding.

有人能帮我如何在armhf平台ubutun的vlc插件firefox中强制打开硬件解压缩吗?

我希望不会,这是我在浏览器中播放UDP流的唯一方法:(