mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
feat: 大幅优化 RKMPP 在 ustreamer 中的编解码性能
feat: 添加 DRM 初步支持 fix: 修复 OEC TURBO 硬件编解码设备权限错误
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user