派生自 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
25
26
27
28
29
#ifndef PUSHSTREAMAPPPIPECONTROLLER_H
#define PUSHSTREAMAPPPIPECONTROLLER_H
 
#include <basic/pipe/PipeController.h>
#include <basic/pipe_element/ffmpeg/FfmpegElement.h>
#include <jsoncpp/json/json.h>
#include "../GB28181DecoderModel/VideoCaptureElementWithRtp.h"
 
class PushStreamAppPipeController : public PipeController {
public:
    PushStreamAppPipeController(std::string &chanPubID, int fps,
                                int streamTransType,
                                int gpuIdx, RtspAnalysManager *manager);
 
    std::string getRtmp();
 
 
    void SaveVideo(const std::string &strImageName);
 
    //设置保存视频的最小和最大长度,单位是秒,实际的运行情况有一些差距,需要完善
    void SetVideoMinMaxSeconds(const int minSeconds, const int maxSeconds);
 
private:
    BASICGB28181::VideoCaptureElementWithRtp videoCaptureElement;
    ffmpeg::VideoPublishElement* videoPublishElement;
    std::string index;
};
 
#endif // PUSHSTREAMAPPPIPECONTROLLER_H