派生自 development/c++

pansen
2019-03-07 d3b7bbe7102cd089680a828f5d8f6402c8cf6342
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <iostream>
#include "AppController.h"
 
#include <basic/util/file/FileUtil.h>
 
using namespace std;
 
int main(int argc, char **argv) {
 
    std::string strOutPath = "/home/bsk/test/";
    std::string strPath = "rtsp://admin:a1234567@192.168.1.201:554/h264/ch1/main/av_stream";;
    Json::Value value;
    value["rtsp"] = strPath;
    RapidAppPipeController p(0, value, strOutPath);
    p.start();
//    getchar();
 
    while (p.getIsRunning()) {
        usleep(40000);
    }
    p.stop();
    p.wait();
    return 0;
}