From 3439833e45f30a01a947b906704dae7270bd6578 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Mon, 21 Oct 2024 00:26:45 +0200 Subject: [PATCH] rpi: increase default camera bitrate to 5 Mbps --- internal/conf/conf_test.go | 2 +- internal/conf/path.go | 2 +- mediamtx.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/conf/conf_test.go b/internal/conf/conf_test.go index 5d81674c26d..6c24d8a37e0 100644 --- a/internal/conf/conf_test.go +++ b/internal/conf/conf_test.go @@ -75,7 +75,7 @@ func TestConfFromFile(t *testing.T) { RPICameraTextOverlay: "%Y-%m-%d %H:%M:%S - MediaMTX", RPICameraCodec: "auto", RPICameraIDRPeriod: 60, - RPICameraBitrate: 1000000, + RPICameraBitrate: 5000000, RPICameraProfile: "main", RPICameraLevel: "4.1", RunOnDemandStartTimeout: 5 * StringDuration(time.Second), diff --git a/internal/conf/path.go b/internal/conf/path.go index 54679939f12..f0f75502a31 100644 --- a/internal/conf/path.go +++ b/internal/conf/path.go @@ -218,7 +218,7 @@ func (pconf *Path) setDefaults() { pconf.RPICameraTextOverlay = "%Y-%m-%d %H:%M:%S - MediaMTX" pconf.RPICameraCodec = "auto" pconf.RPICameraIDRPeriod = 60 - pconf.RPICameraBitrate = 1000000 + pconf.RPICameraBitrate = 5000000 pconf.RPICameraProfile = "main" pconf.RPICameraLevel = "4.1" diff --git a/mediamtx.yml b/mediamtx.yml index c3aed76fa85..bb83727835c 100644 --- a/mediamtx.yml +++ b/mediamtx.yml @@ -588,7 +588,7 @@ pathDefaults: # Period between IDR frames rpiCameraIDRPeriod: 60 # Bitrate - rpiCameraBitrate: 1000000 + rpiCameraBitrate: 5000000 # H264 profile rpiCameraProfile: main # H264 level