chromium硬件加速播放video观察(intel630和Mali G610)

Intel® UHD Graphics 630

Intel(R) UHD Graphics 630

驱动程序版本:    27.20.100.8935
驱动程序日期:    2020/10/28
DirectX 版本:    12 (FL 12.1)
物理位置:    PCI 总线 0、设备 2、功能 0

利用率    2%
专用 GPU 内存    
共享 GPU 内存    0.3/7.9 GB
GPU 内存    0.3/7.9 GB

浏览器中输入chrome://gpu可以看到

  • Video Decode: Hardware accelerated
  • Video Encode: Hardware accelerated

其中video decode和encode的hardware加速是开启了。并且发现intel 630集显竟然支持h265和vp9的8K视频解码硬件加速,而且还支持10bit格式。

Decoding :
Decode h264 baseline: 64x64 to 4096x4096 pixels
Decode h264 main : 64x64 to 4096x4096 pixels
Decode h264 high : 64x64 to 4096x4096 pixels
Decode vp9 profile0 : 64x64 to 8192x8192 pixels
Decode vp9 profile2 : 64x64 to 8192x8192 pixels
Decode hevc main : 64x64 to 8192x8192 pixels
Decode hevc main 10 : 64x64 to 8192x8192 pixels

Encoding :
Encode h264 baseline: 32x32 to 1920x1088 pixels, and/or 30.000 fps.
Encode h264 baseline: 32x32 to 1088x1920 pixels, and/or 30.000 fps.
Encode h264 main : 32x32 to 1920x1088 pixels, and/or 30.000 fps.
Encode h264 main : 32x32 to 1088x1920 pixels, and/or 30.000 fps.
Encode h264 high : 32x32 to 1920x1088 pixels, and/or 30.000 fps.
Encode h264 high : 32x32 to 1088x1920 pixels, and/or 30.000 fps.

然后也可以看到驱动信息

GPU0 : VENDOR= 0x8086, DEVICE=0x3e92, SUBSYS=0x08651028, LUID={0,62572}, DRIVER_VENDOR=Intel, DRIVER_VERSION=27.20.100.8935 ACTIVE

Driver D3D12 feature level : D3D 12.1

GL_RENDERER : ANGLE (Intel, Intel® UHD Graphics 630 (0x00003E92) Direct3D11 vs_5_0 ps_5_0, D3D11-27.20.100.8935)

解码

浏览器中播放视频,可以明显看到GPU的video decode使用率上升。

在这里插入图片描述

播放视频同时,地址栏输入chrome://media-internals/,可以看到

FFmpegDemuxer: created video stream, config codec: h264, profile: h264 high

FFmpegDemuxer: created audio stream, config codec: aac, profile: unknown

kAudioDecoderName“FFmpegAudioDecoder”
kVideoDecoderNameD3D11VideoDecoder

从log看出,浏览器使用ffmpeg的demuxer(解复用器)来提取音视频流,然后用了D3D11VideoDocoder来做硬件加速。

Rockchip rk3588

我这里是orangepi 5 plus板子,其上的GPU是ARM Mali G610

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Panfrost (0xffffffff)
    Device: Mali-G610 (Panfrost) (0xffffffff)
    Version: 23.0.0
    Accelerated: yes
    Video memory: 7689MB
    Unified memory: yes
    Preferred profile: compat (0x2)
    Max core profile version: 0.0
    Max compat profile version: 3.0
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.1
OpenGL vendor string: Panfrost
OpenGL renderer string: Mali-G610 (Panfrost)
OpenGL version string: 3.0 Mesa 23.0.0-devel
OpenGL shading language version string: 1.30
OpenGL context flags: (none)

OpenGL ES profile version string: OpenGL ES 3.1 Mesa 23.0.0-devel
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10

我看了mesa主线代码,截止2023.12.07日其主线上并没有支持Mali G610的驱动,然后在github上找到一个mesa-panfrost-G610的驱动,估计是这个版本。

同样,浏览器中GPU internals可以看到rk3588只支持解码硬件加速,编码不支持硬件加速。

Video Decode: Hardware accelerated

Video Encode: Software only. Hardware acceleration disabled

驱动信息

Operating systemLinux 5.10.110-rockchip-rk3588
GPU0VENDOR= 0x0000 [Panfrost], DEVICE=0x0000 [Mali-G610 (Panfrost)], DRIVER_VENDOR=Mesa, DRIVER_VERSION=23.0.0 ACTIVE
GL_RENDERERMali-G610 (Panfrost)
GL_VERSIONOpenGL ES 3.1 Mesa 23.0.0-devel

然后支持av1、h264、h265、vp8、vp9的8k视频硬解加速播放,不支持编码的硬件加速。

Decoding
Decode av1 profile main48x48 to 7680x4320 pixels
Decode av1 profile high48x48 to 7680x4320 pixels
Decode av1 profile pro48x48 to 7680x4320 pixels
Decode hevc main48x48 to 7680x4320 pixels
Decode hevc main1048x48 to 7680x4320 pixels
Decode hevc main still-picture48x48 to 7680x4320 pixels
Decode h264 baseline48x48 to 7680x4320 pixels
Decode h264 main48x48 to 7680x4320 pixels
Decode h264 high48x48 to 7680x4320 pixels
Decode vp848x48 to 7680x4320 pixels
Decode vp9 profile048x48 to 7680x4320 pixels

同样,在media-internals中可以看到使用ffmpegdemuxer,但其video decoder是VDAVideoDecoder

kAudioDecoderName“FFmpegAudioDecoder”
kVideoDecoderName“VDAVideoDecoder”
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值