From 080afae264fe7ff89a54886f28dff208fe5a06c4 Mon Sep 17 00:00:00 2001 From: chenshijun <csj_sky@126.com> Date: 星期二, 16 四月 2019 22:01:35 +0800 Subject: [PATCH] 整合代码 --- QiaoJiaSystem/VideoToImageMulth/RtspCaptureElement.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/QiaoJiaSystem/VideoToImageMulth/RtspCaptureElement.h b/QiaoJiaSystem/VideoToImageMulth/RtspCaptureElement.h index 51c5a86..af806a5 100644 --- a/QiaoJiaSystem/VideoToImageMulth/RtspCaptureElement.h +++ b/QiaoJiaSystem/VideoToImageMulth/RtspCaptureElement.h @@ -5,6 +5,7 @@ #include <opencv2/opencv.hpp> #include "../StructureApp/HiredisTool.h" #include <atomic> +#include <basic/pipe_element/ffmpeg/FfmpegElement.h> class RtspAnalysManager; @@ -26,6 +27,10 @@ //璁剧疆淇濆瓨瑙嗛鐨勬渶灏忓拰鏈�澶ч暱搴�,鍗曚綅鏄,瀹為檯鐨勮繍琛屾儏鍐垫湁涓�浜涘樊璺濓紝闇�瑕佸畬鍠� void SetVideoMinMaxSeconds(const int minSeconds, const int maxSeconds); + + void startPublishVideo(); + + void stopPublishVideo(); private: //绾跨▼鎵ц鍑芥暟 @@ -49,6 +54,9 @@ //淇濆瓨瑙嗛娴佺殑璺緞,绫讳技浜巖tsp://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{nullptr}; // Redis鐨勫伐鍏风被 // HiredisTool m_redisTool; -- Gitblit v1.8.0