#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
|