| | |
| | | #include "AppPipeController.h" |
| | | #include <basic/util/app/AppPreference.hpp> |
| | | #include <basic/util/app/AppConfig.h> |
| | | #include <basic/util/app/AppUtil.h> |
| | | //#include <sstream> |
| | | #include <algorithm> |
| | | AppPipeController::AppPipeController(int index, const Json::Value &json): |
| | | videoCaptureElement(json["rtsp"].asString(), 25,3000,appPref.getIntData("gpu.index")), |
| | | index(index), videoPublishElement(appPref.getStringData("publish.basepath")+".flv", |
| | | cv::Size(appPref.getIntData("pulish.width"),appPref.getIntData("pulish.height")), |
| | | cv::Size(appConfig.getIntProperty("pulish.width"),appConfig.getIntProperty("pulish.height")), |
| | | "flv", 25, appPref.getIntData("gpu.index")) |
| | | { |
| | | if(appPref.getIntData("pulish.width") < 0 || appPref.getIntData("pulish.height") < 0) |
| | | if(appConfig.getIntProperty("pulish.width") < 0 || appConfig.getIntProperty("pulish.height") < 0) |
| | | { |
| | | ERR("pulish.width: "<<appPref.getIntData("pulish.width") <<" Height: "<< appPref.getIntData("pulish.height")); |
| | | ERR("pulish.width: "<<appConfig.getIntProperty("pulish.width") <<" Height: "<< appConfig.getIntProperty("pulish.height")); |
| | | } |
| | | videoCaptureElement.registerConnector([&]{ |
| | | //if(!videoPublishElement.isBusy()){ |