JohnnyShu

Results 20 comments of JohnnyShu

当前的redroid-11.0.0 版本, h264编码已完成优化了吗,是否可以支持h264 硬件编码及GPU 渲染?

我们的服务器是AMD 架构的 “5.4.0-81-generic #91-Ubuntu SMP Thu Jul 15 19:09:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux (buildd@lgw01-amd64-052) ” 但我们的视频通信服务运行的时间mediacodec 进行cpu 利用率较用高达 50%左右; 开源方案 ADM 架构似乎默认没有开启GPU 硬件编码加速, 需要如何开启 呢?

当我尝试使用 redroid.gpu.mode=host 打开 gpu 加速时,收到 如下错误: ![253707722f409faf41fe72f435c282f8](https://user-images.githubusercontent.com/12620180/162153177-a5cd92aa-5385-451d-939e-d46ec70db0c9.jpg)

是否同时还需要指定 redroid.gpu.node ,当指定 redroid.gpu.node=/dev/dri/card0 时,还是出现surfacelinger 无法启动: ![615d13411d5cfa16de67e424ebc1881e](https://user-images.githubusercontent.com/12620180/162156496-73286701-4e35-4b07-9a99-6b3f596ed781.jpg) 另外, 为什么 我的系统 不存在 /dev/dri/renderDxxx 设备? 只有 card0 device;

![image](https://user-images.githubusercontent.com/12620180/162352432-806687a7-f74b-4832-aa09-2b5cb275bdfa.png) Host 虚拟机应该是有GPU 的呢。 不知为何 容器里的Redroid 访问不到DRM device? 另外, 开源方案的Mediacodec 需要怎么使能硬件编码加速呢, 除了开启GPU 外还需要其它优化,包括哪些点呢?

是的, /dev/dri 目录下没有找到GPU VAAPI 设备文件。我检测一下VAAPI 驱动。

redroid 运行指定[ro.kernel.redroid.gpu.node]: [/dev/dri/renderD128], 但运行是却报EGL-MAIN: failed to open /dev/dri/renderD129: Permission denied, 何故呢?

got root cause: my gpu driver is nouveau, it not case in “case $driver in i915|amdgpu|virtio_gpu|v3d|vc4|msm|panfrost)”。

have chmod 666 for /dev/dri/renderD129, now get "failed to open nouveau: dlopen failed: library "/vendor/lib64/dri/nouveau_dri.so" fault, if redroid support nouveau driver?