diff --git a/conf/config.ini b/conf/config.ini index 3507a45d..6c3c6e4a 100644 --- a/conf/config.ini +++ b/conf/config.ini @@ -116,7 +116,7 @@ filePath=/Users/xzl/git/ZLMediaKit/release/mac/Release/httpRoot fileSecond=3600 #mp4点播每次流化数据量,单位毫秒, #减少该值可以让点播数据发送量更平滑,增大该值则更节省cpu资源 -sampleMS=100 +sampleMS=500 #mp4录制完成后是否进行二次关键帧索引写入头部 fastStart=0 #MP4点播(rtsp/rtmp/http-flv/ws-flv)是否循环播放文件 diff --git a/src/Common/config.cpp b/src/Common/config.cpp index 5f15e24d..02827594 100644 --- a/src/Common/config.cpp +++ b/src/Common/config.cpp @@ -257,7 +257,7 @@ namespace Record { const string kAppName = RECORD_FIELD"appName"; //每次流化MP4文件的时长,单位毫秒 -#define RECORD_SAMPLE_MS 100 +#define RECORD_SAMPLE_MS 500 const string kSampleMS = RECORD_FIELD"sampleMS"; //MP4文件录制大小,默认一个小时