From 1dd975504f20cc95908042406c316d571cb41245 Mon Sep 17 00:00:00 2001 From: Alessandro Ros Date: Mon, 21 Oct 2024 01:25:32 +0200 Subject: [PATCH] rpi: increase default camera bitrate to 5 Mbps (#3896) --- 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 5d81674c..6c24d8a3 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 54679939..f0f75502 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 c3aed76f..bb837278 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