From fd034ae0402af90c84f80b37037a59dfbf880f4b Mon Sep 17 00:00:00 2001 From: chenshijun <csj_sky@126.com> Date: 星期四, 07 三月 2019 11:27:43 +0800 Subject: [PATCH] 修改LocalDataDB的字段 删除RecordVideo的东西 --- QiaoJiaSystem/VideoAnalysFromHC/main.cpp | 31 +++++++++++++++++++++---------- 1 files changed, 21 insertions(+), 10 deletions(-) diff --git a/QiaoJiaSystem/VideoAnalysFromHC/main.cpp b/QiaoJiaSystem/VideoAnalysFromHC/main.cpp index 2b01d43..c037d6b 100644 --- a/QiaoJiaSystem/VideoAnalysFromHC/main.cpp +++ b/QiaoJiaSystem/VideoAnalysFromHC/main.cpp @@ -42,8 +42,8 @@ static void startRtspAnalysElement(LDBTool *_dbTool) { RtspAnalysElement rtspAnalysElement(_dbTool); - NewEncodeVideoManager newEncodeVideoManager; - newEncodeVideoManager.start(); +// NewEncodeVideoManager newEncodeVideoManager; +// newEncodeVideoManager.start(); while (1) { sleep(1 * 60 * 60 * 12); } @@ -66,13 +66,24 @@ int main(int argc, char **argv) { SAVE_APP_ARGS - + std::cout << __DATE__ << " " << __TIME__ << std::endl; #ifdef GLOG - ENABLEGLOG(GET_STR_CONFIG("logPath").c_str()); + ENABLEGLOG(GET_STR_CONFIG("logPath").c_str()); +#endif + +#ifndef GB28181 + DBG("no GB28181"); +#else + DBG("hava GB28181"); #endif appPref.setLongData("gpu.index", 0); appPref.setIntData("show.image", 0); + + //todo + appPref.setIntData("CamStart", atoi(argv[1])); + appPref.setIntData("CamStep", atoi(argv[2])); + appPref.setIntData("RpcServerPort", atoi(argv[3])); //#todo get from config File // appPref.setStringData("ipAdd", "192.168.1.185"); @@ -115,10 +126,10 @@ // faceSearchRpcClient("faceCmServer", "", 10004, "tcp") //loopRecord server - appPref.setStringData("loopRecord.proxy", "LoopRecordVideoServer"); - //#todo - appPref.setStringData("loopRecord.ip", ""); - appPref.setIntData("loopRecord.port", 10010); +// appPref.setStringData("loopRecord.proxy", "LoopRecordVideoServer"); +// //#todo +// appPref.setStringData("loopRecord.ip", ""); +// appPref.setIntData("loopRecord.port", 10010); //rpcClient(appPref.getStringData("loopRecord.proxy"), appPref.getStringData("loopRecord.ip"), appPref.getLongData("loopRecord.port"),"tcp"), LDBTool _dbTool; @@ -129,11 +140,11 @@ appPref.setStringData("fxDevID", rec.dev_id.toStdString()); appPref.setStringData("fxDevNAME", rec.dev_name.toStdString()); appPref.setStringData("user.loop.absolute.path", appConfig.getStringProperty("cutPath")); - + appPref.setStringData("clusterID", appConfig.getStringProperty("clusterID")); bool loopRet = true; while (loopRet) { - switch (_dbTool.searchDevTypeFromConfigTable()) { + switch (_dbTool.searchDevTypeFromConfigTable()) { case 0: { DBG("case 0"); -- Gitblit v1.8.0