From 6540a2a9d69432c4cc475e3b32eae11e9e0ace73 Mon Sep 17 00:00:00 2001
From: chenshijun <csj_sky@126.com>
Date: 星期四, 11 四月 2019 20:28:10 +0800
Subject: [PATCH] 1.srs的分辨率在config.json配置 2.单播推流控制,国标摄像机差一个关闭测试 3. 底库字段添加

---
 QiaoJiaSystem/DataManagerServer/demo.cpp |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/QiaoJiaSystem/DataManagerServer/demo.cpp b/QiaoJiaSystem/DataManagerServer/demo.cpp
index 8756a8c..1a0073b 100644
--- a/QiaoJiaSystem/DataManagerServer/demo.cpp
+++ b/QiaoJiaSystem/DataManagerServer/demo.cpp
@@ -5,16 +5,17 @@
 #include <AppPipeController.h>
 #include <basic/util/app/AppPreference.hpp>
 
+using namespace std;
 
 int main() {
     Json::Value json;
     json["rtsp"] = "rtsp://admin:a1234567@192.168.1.201:554/h264/ch1/main/av_stream";
 
     std::string publish_basepath = "rtmp://localhost:1934/live/cam" + std::to_string(554);
-    appPref.setLongData("gpu.index", 0);
+    appPref.setIntData("gpu.index", 0);
     appPref.setStringData("publish.basepath", publish_basepath);
-    appPref.setIntData("pulish.width", 640);
-    appPref.setIntData("pulish.height", 360);
+//    appPref.setIntData("pulish.width", 640);
+//    appPref.setIntData("pulish.height", 360);
 
     AppPipeController a(0, json);
     a.start();
@@ -23,6 +24,15 @@
 
     a.stop();
     a.wait();
+//    std::cout<<__DATE__<<" "<<__TIME__<<std::endl;
+//    string img = "http://192.168.1.182:8080/ManCarAnaly/group2/M00/02/B5/wKgBnFw3TB-AfsrIAAah4WWyHJ0555.jpg";
+//
+//    auto pos = img.find("group");
+//
+//    auto img_url = img.substr(pos);
+//    std::string img_str = "http://";
+//    img_str.append("");
+
 
     return 0;
 }
\ No newline at end of file

--
Gitblit v1.8.0