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