From ae793ad92571cada5ee06779f2f4d3a4379e6dc8 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Thu, 26 Feb 2026 12:38:19 +0200 Subject: [PATCH] 60fps --- docs/v4.md | 3 ++- docs/video.md | 50 +++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 51 insertions(+), 2 deletions(-) diff --git a/docs/v4.md b/docs/v4.md index 7ac5e6d8..088696f1 100644 --- a/docs/v4.md +++ b/docs/v4.md @@ -247,7 +247,8 @@ To do that: - [Harden the remote access](auth.md) by enabling 2FA. - Configure access to PiKVM from the Internet using [port forwarding](port_forwarding.md) or [Tailscale VPN](tailscale.md). - Enable a microphone for [two-way audio](audio.md). - - Enable [HDMI pass-through](pass.md) and [USB passthrough](usb_pass.md). + - Enable [HDMI pass-through](pass.md) and [USB passthrough](usb_pass.md) on V4 Plus. + - Enable [H.264 60 fps streaming](video.md#boost-pikvm-v4-to-60fps-h264). - [Learn](config.md) how configuration files are structured. - Read how PiKVM is [identified](id.md) on the target host. diff --git a/docs/video.md b/docs/video.md index 67ab4621..b6611274 100644 --- a/docs/video.md +++ b/docs/video.md @@ -21,7 +21,7 @@ video. * Good network: use `WebRTC` or `Direct` mode, set `H.264 gop = 0`. - * Bad network and `WebRTC` mode: Set `H.264 gop = 30`. + * Bad network and `WebRTC` mode: Set `H.264 gop = 60`. * Bad network and `Direct` mode: Set `H.264 gop = 0`. @@ -39,6 +39,54 @@ video. The recommended values are described above. +----- +## Boost PiKVM V4 to 60fps H.264 + +By default, the performance of PiKVM in 1080p mode is limited to 30fps, but this limitation can be lifted. +The result will be a slightly lower video latency and a full 60fps stream +with a slight increase in processor temperature +(it's not critical for both [V4 Plus and Mini](v4.md), as they have a very good cooling system). +It will also double the consumption of network traffic. + +!!! warning "This is ONLY for PiKVM V4" + + Don't try it on DIY or V3 devices. + +??? example "Enabling H.264 boost" + + 1. Perform OS updating and reboot: + + {!_update_os.md!} + + 2. Switch filesystem to RW-mode: + + ```console + [root@pikvm ~]# rw + ``` + + 3. Add `gpu_freq=700` to `/boot/config.txt` as a separate line. + + 4. Enable H.264 boost: + + ```console + [root@pikvm ~]# kvmd-override --set kvmd/streamer/h264_boost=true + ``` + + 5. Optional: change default FPS limit from 30 to 60 with following command: + + ```console + [root@pikvm ~]# kvmd-override --set kvmd/streamer/desired_fps/default=60 + ``` + + 6. Perform reboot: + + ```console + [root@pikvm ~]# reboot + ``` + +Please don't use the boost on [PiKVM V3](v3.md) and DIY devices. + + ----- ## WebRTC H.264 mode