| | |
| | | #include <opencv2/opencv.hpp> |
| | | #include "../StructureApp/HiredisTool.h" |
| | | #include <atomic> |
| | | #include <basic/pipe_element/ffmpeg/FfmpegElement.h> |
| | | |
| | | class RtspAnalysManager; |
| | | |
| | |
| | | |
| | | //设置保存视频的最小和最大长度,单位是秒,实际的运行情况有一些差距,需要完善 |
| | | void SetVideoMinMaxSeconds(const int minSeconds, const int maxSeconds); |
| | | |
| | | void startPublishVideo(); |
| | | |
| | | void stopPublishVideo(); |
| | | |
| | | private: |
| | | //线程执行函数 |
| | |
| | | //保存视频流的路径,类似于rtsp://admin:a1234567@192.168.1.201:554/h264/ch2/main/av_stream |
| | | std::string m_path; |
| | | |
| | | |
| | | std::atomic<bool> m_publishVideoRet{false}; |
| | | ffmpeg::VideoPublishElement *videoPublishElement; |
| | | // Redis的工具类 |
| | | // HiredisTool m_redisTool; |
| | | |