Riduce reload MediaMTX in live e allinea ingest mobile al preset qualità.
Evita patch recording ripetute che distruggevano i muxer HLS (500 ops) e fa encoderare 1080p/720p con codec e bitrate coerenti al wizard. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -334,7 +334,9 @@ final class LiveBroadcastEngine: ObservableObject {
|
||||
videoSettings.videoSize = .init(width: config.width, height: config.height)
|
||||
videoSettings.bitRate = config.videoBitrate
|
||||
videoSettings.maxKeyFrameIntervalDuration = 2
|
||||
videoSettings.profileLevel = kVTProfileLevel_H264_Baseline_3_1 as String
|
||||
videoSettings.profileLevel = config.height > 720
|
||||
? (kVTProfileLevel_H264_Baseline_4_1 as String)
|
||||
: (kVTProfileLevel_H264_Baseline_3_1 as String)
|
||||
videoSettings.expectedFrameRate = Double(config.fps)
|
||||
try await stream.setVideoSettings(videoSettings)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user