CN111601073A - Method for pushing video code stream to cloud server through local area network - Google Patents

Method for pushing video code stream to cloud server through local area network Download PDF

Info

Publication number
CN111601073A
CN111601073A CN202010296266.0A CN202010296266A CN111601073A CN 111601073 A CN111601073 A CN 111601073A CN 202010296266 A CN202010296266 A CN 202010296266A CN 111601073 A CN111601073 A CN 111601073A
Authority
CN
China
Prior art keywords
stream
pushing
video
cloud server
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010296266.0A
Other languages
Chinese (zh)
Inventor
周敏
冯雪原
陈越
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen New Bio Technology Co ltd
Original Assignee
Shenzhen New Bio Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen New Bio Technology Co ltd filed Critical Shenzhen New Bio Technology Co ltd
Priority to CN202010296266.0A priority Critical patent/CN111601073A/en
Publication of CN111601073A publication Critical patent/CN111601073A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/27Server based end-user applications
    • H04N21/274Storing end-user multimedia data in response to end-user request, e.g. network recorder
    • H04N21/2743Video hosting of uploaded data from client

Abstract

The invention relates to the technical field of video monitoring systems, and discloses a method for pushing a video code stream to a cloud server by a local area network, which comprises the following specific steps: sending an Http request to a plug flow program, providing a name of a video stream to be accessed, wherein the plug flow program runs on an intranet, and an external cloud server address needs to be accessed during access, and is penetrated by Frp; the stream pushing program receives the request, judges whether the stream is being pushed to the stream media server, if so, directly returns the stream address; if not, judging whether reaching the upper limit of the push path number, if not, directly pushing the video stream and returning to the stream address, if so, canceling the earliest push thread and then pushing the stream and returning to the address. According to the method for pushing the video code stream to the cloud server by the local area network, the purpose that the video code stream is pushed to the cloud server by the internal network is achieved through technical means, and the purpose that the real-time video of the video monitoring equipment is accessed to the external network is achieved.

Description

Method for pushing video code stream to cloud server through local area network
Technical Field
The invention relates to the technical field of video monitoring systems, in particular to a method for pushing a video code stream to a cloud server through a local area network.
Background
The monitoring is a physical basis for real-time monitoring of key departments or important places in various industries, and management departments can obtain effective data, image or sound information through the monitoring and memorizing system, timely monitor and memorize the process of sudden abnormal events, provide high-efficiency and timely command and height, arrange police strength, process cases and the like, and have raised a strong digital wave worldwide along with the rapid development and popularization of current computer application, and the digitization of various devices becomes a primary target of safety protection.
In general office buildings, communities and the like, video monitoring systems are provided, a video collected by a camera is stored in a DVR/NVR (digital video recorder/video recorder), a computer is deployed in a monitoring room and used for checking videos, video code streams cannot be pushed to the cloud end, other cloud end intelligent building systems cannot be accessed, video monitoring equipment in a local intranet cannot push code streams to a cloud end server under general conditions, and monitoring cannot be checked on the external network.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a method for pushing a video code stream to a cloud server by a local area network, and the invention realizes the viewing of a monitoring video in an external network.
The invention provides the following technical scheme: a method for pushing a video code stream to a cloud server by a local area network comprises the following specific steps:
s1, sending an Http request to the plug flow program, providing a name of a video stream to be accessed, wherein the plug flow program runs on an intranet, and an external cloud server address needs to be accessed during access, and is penetrated by Frp;
s2, the flow pushing program receives the request, judges whether the flow is pushed to the flow media server, if yes, returns the flow address directly; if not, judging whether the upper limit of the push path number is reached, if not, directly pushing the video stream and returning to a stream address, and if so, canceling the earliest push thread and then pushing the stream and returning to the address;
and S3, playing the video stream according to the returned address.
Preferably, in S1, the intranet may obtain the real-time video code stream of the camera through the RTSP protocol, and currently, common mainstream camera brands all support the RTSP protocol, and may directly obtain the code stream in the local intranet.
Preferably, in S2, a Nginx with an RTMP module is deployed as a streaming media server, which is responsible for receiving push of RTMP and providing external access.
Preferably, the stream pushing program uses FFMPEG to push stream, and converts the RTSP code stream in the intranet camera into an RTMP code stream with low code rate and resolution and pushes the RTSP code stream to the streaming media server.
Preferably, the stream pushing program provides an http interface externally, when a certain path of video is accessed externally, the monitoring device name to be accessed is transmitted by calling the interface, the program starts the FFMPEG to push the path of video code stream and returns the RTMP address for implementing the code stream in response, and if the path number set by the connection pool is reached, the previous code stream pushing is automatically disconnected according to the time sequence.
Preferably, frp intranet penetration is realized by deploying frps on a cloud server with a public network ip and deploying frpc on a local monitoring intranet server.
Compared with the prior art, the invention has the following beneficial effects:
according to the method for pushing the video code stream to the cloud server by the local area network, the purpose that the video code stream is pushed to the cloud server by the internal network is achieved through technical means, and the purpose that the real-time video of the video monitoring equipment is accessed to the external network is achieved.
Drawings
FIG. 1 is a schematic view of the structure of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present disclosure clearer, technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present disclosure, and in order to keep the following description of the embodiments of the present disclosure clear and concise, detailed descriptions of known functions and known parts of the disclosure are omitted to avoid unnecessarily obscuring the concepts of the present disclosure.
Referring to fig. 1, a method for pushing a video stream to a cloud server through a local area network is characterized by comprising the following specific steps:
s1, sending an Http request to the plug flow program, providing a name of a video stream to be accessed, wherein the plug flow program runs on an intranet, and an external cloud server address needs to be accessed during access, and is penetrated by Frp;
s2, the flow pushing program receives the request, judges whether the flow is pushed to the flow media server, if yes, returns the flow address directly; if not, judging whether the upper limit of the push path number is reached, if not, directly pushing the video stream and returning to a stream address, and if so, canceling the earliest push thread and then pushing the stream and returning to the address;
and S3, playing the video stream according to the returned address.
In monitoring a local intranet, a real-time video code stream of a camera can be obtained through an RTSP (real time streaming protocol), and currently common mainstream camera brands all support the RTSP and can directly obtain the code stream in the local intranet.
In the monitoring local intranet, a server is deployed, and a Nginx with an RTMP module is deployed as a streaming media server and is responsible for receiving the push of the RTMP and providing the push for external access. Since HTML5 provides support for the RTSP video stream, the RTSP stream of the camera cannot be played directly in web applications, and the RTSP is a better choice than the RTSP.
The reason for reducing the code rate and the resolution is to reduce the network overhead when accessing the external network and cope with a low-bandwidth scene.
The method comprises the steps that a developed dynamic stream pushing program is deployed on a monitoring local server, as a plurality of monitoring devices are arranged in a common office building and a cell, if videos of all the monitoring devices are pushed to a streaming media server at the same time, a server with very high performance is needed, the program maintains a connection pool, video code streams are pushed as required, an http interface is provided externally, when a certain path of video needs to be accessed externally, the name of the monitoring device needing to be accessed is transmitted by calling the interface, the program starts FFMPEG to push the path of video code streams and returns RTMP addresses of the implementation code streams in response, and if the number of paths set by the connection pool is reached, the code stream pushing before the path is automatically disconnected in a time sequence.
According to the scheme, the frp is used for intranet penetration, frps is deployed on a cloud server with a public network ip, and frpc is deployed on a local monitoring intranet server to achieve intranet penetration.
The above embodiments are only exemplary embodiments of the present invention, and are not intended to limit the present invention, and the scope of the present invention is defined by the claims. Various modifications and equivalents may be made by those skilled in the art within the spirit and scope of the present invention, and such modifications and equivalents should also be considered as falling within the scope of the present invention.

Claims (6)

1. A method for pushing a video code stream to a cloud server by a local area network is characterized by comprising the following specific steps:
s1, sending an Http request to the plug flow program, providing a name of a video stream to be accessed, wherein the plug flow program runs on an intranet, and an external cloud server address needs to be accessed during access, and is penetrated by Frp;
s2, the flow pushing program receives the request, judges whether the flow is pushed to the flow media server, if yes, returns the flow address directly; if not, judging whether the upper limit of the push path number is reached, if not, directly pushing the video stream and returning to a stream address, and if so, canceling the earliest push thread and then pushing the stream and returning to the address;
and S3, playing the video stream according to the returned address.
2. The method of claim 1, wherein the method for pushing the video stream to the cloud server via the local area network comprises: in S1, the intranet may obtain the real-time video code stream of the camera through the RTSP protocol, and currently, common mainstream camera brands all support the RTSP protocol, and may directly obtain the code stream in the local intranet.
3. The method of claim 1, wherein the method for pushing the video stream to the cloud server via the local area network comprises: in S2, a Nginx with an RTMP module is deployed as a streaming media server, which is responsible for receiving the push of the RTMP and providing external access.
4. The method of claim 1, wherein the method for pushing the video stream to the cloud server via the local area network comprises: the stream pushing program adopts FFMPEG to push stream, and converts RTSP code stream in the intranet camera into RTMP code stream with low code rate and resolution ratio to be pushed to the streaming media server.
5. The method of claim 1, wherein the method for pushing the video stream to the cloud server via the local area network comprises: and the stream pushing program externally provides an http interface, when a certain path of video is required to be accessed from the outside, the name of the monitoring equipment required to be accessed is transmitted by calling the interface, the program starts the FFMPEG to push the path of video code stream and returns the RTMP address for implementing the code stream in response, and if the path number on line set by the connection pool is reached, the previous code stream pushing is automatically disconnected according to the time sequence.
6. The method of claim 1, wherein the method for pushing the video stream to the cloud server via the local area network comprises: frp intranet penetration is realized by deploying frps on a cloud server with a public network ip and deploying frpc on a local monitoring intranet server.
CN202010296266.0A 2020-04-15 2020-04-15 Method for pushing video code stream to cloud server through local area network Pending CN111601073A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010296266.0A CN111601073A (en) 2020-04-15 2020-04-15 Method for pushing video code stream to cloud server through local area network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010296266.0A CN111601073A (en) 2020-04-15 2020-04-15 Method for pushing video code stream to cloud server through local area network

Publications (1)

Publication Number Publication Date
CN111601073A true CN111601073A (en) 2020-08-28

Family

ID=72190368

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010296266.0A Pending CN111601073A (en) 2020-04-15 2020-04-15 Method for pushing video code stream to cloud server through local area network

Country Status (1)

Country Link
CN (1) CN111601073A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112887762A (en) * 2021-01-26 2021-06-01 广州欢网科技有限责任公司 Method and system for delivering IPTV (Internet protocol television) advertisement resources according to crowd labels
CN112995714A (en) * 2021-04-08 2021-06-18 天津天地伟业智能安全防范科技有限公司 Method and device for converting private video stream into RTMP standard stream
CN114189721A (en) * 2021-12-10 2022-03-15 国网江苏省电力有限公司检修分公司 Video stream forwarding system and method for converter station

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103605571A (en) * 2013-11-20 2014-02-26 国家电网公司 Control method of database connection pool
CN104219500A (en) * 2014-08-27 2014-12-17 天津市中信互联科技有限公司 Device and method for monitoring video live broadcast
CN105872453A (en) * 2015-12-15 2016-08-17 乐视致新电子科技(天津)有限公司 Web camera monitoring method and system as well as server
CN205647807U (en) * 2016-04-29 2016-10-12 中傲智能科技(苏州)有限公司 Video acquisition and repeater system
CN106682644A (en) * 2017-01-11 2017-05-17 同观科技(深圳)有限公司 Double dynamic vehicle monitoring management system and method based on mobile vedio shooting device
CN107027045A (en) * 2017-04-11 2017-08-08 广州华多网络科技有限公司 Pushing video streaming control method, device and video flowing instructor in broadcasting end
CN107911706A (en) * 2017-12-18 2018-04-13 青岛国信发展(集团)有限责任公司 The audio/video player system and method for multi-brand compatibility
CN108881202A (en) * 2018-06-08 2018-11-23 北京联合众为科技发展有限公司 A kind of video monitoring system and method
CN109450911A (en) * 2018-11-26 2019-03-08 武汉虹信技术服务有限责任公司 A kind of across a network stream medium data transmission system and method
CN110365701A (en) * 2019-07-30 2019-10-22 深圳前海达闼云端智能科技有限公司 The management method of customer terminal equipment, calculates equipment and storage medium at device
CN209784828U (en) * 2019-06-24 2019-12-13 江西师范大学 Intelligent movement environment monitoring device based on raspberry group

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103605571A (en) * 2013-11-20 2014-02-26 国家电网公司 Control method of database connection pool
CN104219500A (en) * 2014-08-27 2014-12-17 天津市中信互联科技有限公司 Device and method for monitoring video live broadcast
CN105872453A (en) * 2015-12-15 2016-08-17 乐视致新电子科技(天津)有限公司 Web camera monitoring method and system as well as server
CN205647807U (en) * 2016-04-29 2016-10-12 中傲智能科技(苏州)有限公司 Video acquisition and repeater system
CN106682644A (en) * 2017-01-11 2017-05-17 同观科技(深圳)有限公司 Double dynamic vehicle monitoring management system and method based on mobile vedio shooting device
CN107027045A (en) * 2017-04-11 2017-08-08 广州华多网络科技有限公司 Pushing video streaming control method, device and video flowing instructor in broadcasting end
CN107911706A (en) * 2017-12-18 2018-04-13 青岛国信发展(集团)有限责任公司 The audio/video player system and method for multi-brand compatibility
CN108881202A (en) * 2018-06-08 2018-11-23 北京联合众为科技发展有限公司 A kind of video monitoring system and method
CN109450911A (en) * 2018-11-26 2019-03-08 武汉虹信技术服务有限责任公司 A kind of across a network stream medium data transmission system and method
CN209784828U (en) * 2019-06-24 2019-12-13 江西师范大学 Intelligent movement environment monitoring device based on raspberry group
CN110365701A (en) * 2019-07-30 2019-10-22 深圳前海达闼云端智能科技有限公司 The management method of customer terminal equipment, calculates equipment and storage medium at device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
侯艳君: "融合广电_网络直播的技术实现方案研究", 《传媒论坛》 *
武霖: "基于云直播的IPTV远程监看系统设计", 《中国有线电视》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112887762A (en) * 2021-01-26 2021-06-01 广州欢网科技有限责任公司 Method and system for delivering IPTV (Internet protocol television) advertisement resources according to crowd labels
CN112995714A (en) * 2021-04-08 2021-06-18 天津天地伟业智能安全防范科技有限公司 Method and device for converting private video stream into RTMP standard stream
CN114189721A (en) * 2021-12-10 2022-03-15 国网江苏省电力有限公司检修分公司 Video stream forwarding system and method for converter station
CN114189721B (en) * 2021-12-10 2023-09-19 国网江苏省电力有限公司检修分公司 Video stream forwarding system and method for converter station

Similar Documents

Publication Publication Date Title
CN111601073A (en) Method for pushing video code stream to cloud server through local area network
CN102457707B (en) Safety monitoring video data transmission, storage and order method
CN101720029B (en) Intelligent network video monitoring method and system
KR101260167B1 (en) Method and Apparatus for Distributing Video under Multi-channel, Video Management System Using The Same
US20150125130A1 (en) Method for network video recorder to accelerate history playback and event locking
CN110769310B (en) Video processing method and device based on video network
CN102186061A (en) Cloud computing mode based method for implementing remote network monitoring system
CN206517517U (en) Scenic spot based on mobile Internet monitors live broadcast system in real time
CN104639905A (en) Wireless video monitoring method suitable for live broadcast on mobile terminal of iOS system
US20190174089A1 (en) Method and device for storing warning image
WO2018016925A1 (en) Network separation device and image surveillance system having same
CN108965930B (en) Video data processing method and device
KR20220115956A (en) Secure methods, devices, and systems that are easy to access by users
CN111491132A (en) Industrial video monitoring system based on satellite emergency communication network
CN111294556A (en) Video front-end processing method based on GB/T28181
CN113194295B (en) Monitoring data storage system
CN112637334A (en) AI-based fixed pollution source online monitoring system
CN110740295B (en) Round-robin playing method and device for video stream monitored by video network
CN111447407A (en) Monitoring resource transmission method and device
CN203608286U (en) Satellite communication monitoring system
CN105635647A (en) Monitoring system
CN110401633B (en) Monitoring and inspection data synchronization method and system
CN116074543A (en) Live broadcast data supervision system based on live broadcast interaction platform
KR101837980B1 (en) Total image transmission and using system having different kinds of image providing apparatus and control method of the same
CN110620796B (en) Fingerprint information access method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200828

RJ01 Rejection of invention patent application after publication