#ifndef PUSHSTREAMAPPPIPECONTROLLER_H #define PUSHSTREAMAPPPIPECONTROLLER_H #include #include #include #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