提交 576d5a09 authored 作者: blu's avatar blu

big refacting of communitation architect

上级 cefc965d
...@@ -270,6 +270,7 @@ private: ...@@ -270,6 +270,7 @@ private:
pAVFormatInput = (AVFormatContext *)malloc(sizeof(AVFormatContext)); pAVFormatInput = (AVFormatContext *)malloc(sizeof(AVFormatContext));
AVFormatCtxSerializer::decode((char *)(v[2].data()), v[2].size(), pAVFormatInput); AVFormatCtxSerializer::decode((char *)(v[2].data()), v[2].size(), pAVFormatInput);
gotFormat = true; gotFormat = true;
break;
} }
} }
catch(exception &e) { catch(exception &e) {
...@@ -302,7 +303,10 @@ private: ...@@ -302,7 +303,10 @@ private:
spdlog::info("evslicer {} streamList[{:d}]: {:d}", selfId, i, streamList[i]); spdlog::info("evslicer {} streamList[{:d}]: {:d}", selfId, i, streamList[i]);
} }
//av_dict_set(&pOptsRemux, "movflags", "frag_keyframe+empty_moov+default_base_moof", 0); av_dict_set(&pOptsRemux, "movflags", "frag_keyframe+empty_moov+default_base_moof", 0);
//av_dict_set(&pOptsRemux, "brand", "mp42", 0);
//av_dict_set(&pOptsRemux, "movflags", "faststart", 0);
//av_dict_set(&pOptsRemux, "-f", "mp4", 0);
return ret; return ret;
} }
void freeStream() void freeStream()
...@@ -376,14 +380,14 @@ protected: ...@@ -376,14 +380,14 @@ protected:
} }
spdlog::info("evslicer {} writing new slice {}", selfId, name.c_str()); spdlog::info("evslicer {} writing new slice {}", selfId, name.c_str());
slices[tail] = name; // slices[sliceTail] = name;
tail++; // sliceTail++;
if(tail >= numSlices) { // if(sliceTail >= numSlices) {
tail = 0; // sliceTail = 0;
head = 0; // sliceHead = 0;
} // }
slices["tail"] = tail; // slices["sliceTail"] = sliceTail;
slices["head"] = head; // slices["sliceHead"] = sliceHead;
while(chrono::duration_cast<chrono::seconds>(end-start).count() < minutes * 60) { while(chrono::duration_cast<chrono::seconds>(end-start).count() < minutes * 60) {
if(checkStop() == true) { if(checkStop() == true) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论