mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-01 23:57:37 +08:00
新增帧合并开关,优化国标流秒开速度
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user