From f4bedfe12a099da62cc1e8b0eca67ee2bad2cc4a Mon Sep 17 00:00:00 2001 From: pansen <pansen626@sina.com> Date: 星期三, 03 四月 2019 14:45:42 +0800 Subject: [PATCH] VideoAnalysFromHC 中修改sdkrule的处理等同于编辑摄像机 --- QiaoJiaSystem/VideoToImageMulth/pushStream/PushStreamAppPipeController.cpp | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/QiaoJiaSystem/VideoToImageMulth/pushStream/PushStreamAppPipeController.cpp b/QiaoJiaSystem/VideoToImageMulth/pushStream/PushStreamAppPipeController.cpp index 553a451..2bf9968 100644 --- a/QiaoJiaSystem/VideoToImageMulth/pushStream/PushStreamAppPipeController.cpp +++ b/QiaoJiaSystem/VideoToImageMulth/pushStream/PushStreamAppPipeController.cpp @@ -13,12 +13,12 @@ videoPublishElement(nullptr) { string path = appConfig.getStringProperty("srsAddr") + "cam" + chanPubID + ".flv"; - cv::Size size_(appPref.getIntData("pulish.width"), appPref.getIntData("pulish.height")); - int gupIdx = appPref.getLongData("gpu.index"); + cv::Size size_(appConfig.getIntProperty("pulish.width"), appConfig.getIntProperty("pulish.height")); + int gupIdx = appPref.getIntData("gpu.index"); videoPublishElement = new ffmpeg::VideoPublishElement(path, size_, "flv", 25, gupIdx); - if (appPref.getIntData("pulish.width") < 0 || appPref.getIntData("pulish.height") < 0) { - ERR("pulish.width: " << appPref.getIntData("pulish.width") << " Height: " - << appPref.getIntData("pulish.height")); + if (appConfig.getIntProperty("pulish.width") < 0 || appConfig.getIntProperty("pulish.height") < 0) { + ERR("pulish.width: " << appConfig.getIntProperty("pulish.width") << " Height: " + << appConfig.getIntProperty("pulish.height")); } videoCaptureElement.registerConnector([&] { //if(!videoPublishElement.isBusy()){ -- Gitblit v1.8.0