chenshijun
2019-04-16 f946a62d3921e86b44ff8e2973138304b9cd53cd
QiaoJiaSystem/DataManagerServer/demo.cpp
@@ -8,30 +8,30 @@
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.setIntData("gpu.index", 0);
//    appPref.setStringData("publish.basepath", publish_basepath);
    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.setIntData("gpu.index", 0);
    appPref.setStringData("publish.basepath", publish_basepath);
//    appPref.setIntData("pulish.width", 640);
//    appPref.setIntData("pulish.height", 360);
//
//    AppPipeController a(0, json);
//    a.start();
//
//    getchar();
//
//    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");
    AppPipeController a(0, json);
    a.start();
    auto img_url = img.substr(pos);
    std::string img_str = "http://";
    img_str.append("");
    getchar();
    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;