新增帧合并开关,优化国标流秒开速度

This commit is contained in:
xia-chu
2025-04-21 11:07:38 +08:00
parent 9e6b33b02e
commit a9fe5d6f42
5 changed files with 17 additions and 2 deletions

View File

@@ -366,6 +366,7 @@ const string kOpusPT = RTP_PROXY_FIELD "opus_pt";
const string kGopCache = RTP_PROXY_FIELD "gop_cache";
const string kRtpG711DurMs = RTP_PROXY_FIELD "rtp_g711_dur_ms";
const string kUdpRecvSocketBuffer = RTP_PROXY_FIELD "udp_recv_socket_buffer";
const std::string kMergeFrame = RTP_PROXY_FIELD "merge_frame";
static onceToken token([]() {
mINI::Instance()[kDumpDir] = "";
@@ -378,6 +379,7 @@ static onceToken token([]() {
mINI::Instance()[kGopCache] = 1;
mINI::Instance()[kRtpG711DurMs] = 100;
mINI::Instance()[kUdpRecvSocketBuffer] = 4 * 1024 * 1024;
mINI::Instance()[kMergeFrame] = 1;
});
} // namespace RtpProxy

View File

@@ -563,6 +563,8 @@ extern const std::string kGopCache;
extern const std::string kRtpG711DurMs;
// udp recv socket buffer size
extern const std::string kUdpRecvSocketBuffer;
// ps/ts解析后是否等待下一帧以判断本帧是否完整开启后提高兼容性但是可能增加延时
extern const std::string kMergeFrame;
} // namespace RtpProxy
/**