| | |
| | | long skipN = stol(ipcNode["skipN"].asString()); |
| | | ppf.skipN = skipN; |
| | | std::string push_type = ipcNode["push_type"].asString(); |
| | | std::string video_size = ipcNode["video_size"].asString(); |
| | | std::string fps = ipcNode["fps"].asString(); |
| | | std::string toRtmp = ipcNode["toRtmp"].asString(); |
| | | std::string interval = ipcNode["interval"].asString(); |
| | |
| | | pushVideoTasks.push_back(std::async(std::launch::async, &PreProcessFn::fnPushVideoInRabbitMQ, &ppf, std::ref(queMatVec2[i]), ipccode)); |
| | | } |
| | | else if (push_type == "stream") { |
| | | pushVideoTasks.push_back(std::async(std::launch::async, &PreProcessFn::fnPushVideoToUrl, &ppf, std::ref(queMatVec2[i]),toRtmp,fps, ipccode)); |
| | | pushVideoTasks.push_back(std::async(std::launch::async, &PreProcessFn::fnPushVideoToUrl, &ppf, std::ref(queMatVec2[i]),toRtmp,fps,video_size, ipccode)); |
| | | } |
| | | } |
| | | |