From a604d8c6205bc4927af19a195afa0e0f9a0b2371 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Thu, 10 Oct 2019 17:52:19 +0800 Subject: [PATCH] =?UTF-8?q?mp4=E7=82=B9=E6=92=AD=E6=AF=8F=E6=AC=A1?= =?UTF-8?q?=E6=B5=81=E5=8C=96=E6=97=B6=E9=97=B4=E6=94=B9=E6=88=90500?= =?UTF-8?q?=E6=AF=AB=E7=A7=92=EF=BC=8C=E4=BC=98=E5=8C=96=E6=96=87=E4=BB=B6?= =?UTF-8?q?io=E6=80=A7=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/config.ini | 2 +- src/Common/config.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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文件录制大小,默认一个小时