feat: 大幅优化 RKMPP 在 ustreamer 中的编解码性能

feat: 添加 DRM 初步支持

fix: 修复 OEC TURBO 硬件编解码设备权限错误
This commit is contained in:
mofeng-git
2025-09-28 15:24:25 +08:00
parent 0328163a9e
commit edb9112435
3 changed files with 28 additions and 26 deletions

View File

@@ -374,6 +374,15 @@ config_oec_turbo_files() {
echo "信息:配置 VPU 硬件编码支持..."
run_in_chroot "sed -i 's/--h264-hwenc=disabled/--h264-hwenc=rkmpp/g' /etc/kvmd/override.yaml"
# 配置 rc.local 自启脚本,添加设备权限设置
echo "信息:配置 rc.local 自启脚本..."
run_in_chroot "cat > /etc/rc.local << 'EOF'
#!/bin/bash
chmod 777 /dev/mpp_service /dev/rga
exit 0
EOF"
run_in_chroot "chmod +x /etc/rc.local"
# 替换 DTB 文件
replace_oec_turbo_dtb