| | |
| | | cv::Size(appPref.getIntData("pulish.width"),appPref.getIntData("pulish.height")), |
| | | "flv", 25, appPref.getLongData("gpu.index")) |
| | | { |
| | | if(appPref.getIntData("pulish.width") < 0 || appPref.getIntData("pulish.height") < 0) |
| | | { |
| | | ERR("pulish.width: "<<appPref.getIntData("pulish.width") <<" Height: "<< appPref.getIntData("pulish.height")); |
| | | } |
| | | videoCaptureElement.registerConnector([&]{ |
| | | //if(!videoPublishElement.isBusy()){ |
| | | videoPublishElement.setImage(videoCaptureElement.getImage()); |
| | |
| | | registerElement(videoCaptureElement); |
| | | registerElement(videoPublishElement); |
| | | |
| | | videoCaptureElement.setOutPutInterval(3); |
| | | //videoCaptureElement.setOutPutInterval(3); |
| | | } |
| | | |
| | | std::string AppPipeController::getRtmp() |