A kind of LAN video camera carries out the management system and method for network flow-medium live streaming
Technical field
The present invention relates to net cast technical fields more particularly to a kind of LAN video camera to carry out network flow-medium live streaming
Management system and method.
Background technology
The high regions of densely populated places, mobility such as many school, training center, amusement centers are generally provided with many videos
Monitor camera, these video cameras do not generate relationship all in same LAN with public network, and the people outside LAN can not be straight
Each video source in real time inspection LAN is connect, for example, parent wants to check study situation of the child in school, although knowing religion
There is video camera in interior, but can not connect use, and the video resource quantity in this kind of LAN is very huge, due to that can not be filled
Divide and efficiently use, value can not be played utmostly.
In order to solve the above-mentioned technical problem, there are mainly two types of technical solution, first, the video camera in local area network carries out
DDNS parameter configurations, to realize the integrated management of video camera, this needs professional technician that DDNS parameters are configured, troublesome in poeration,
Success rate is not high, and for packet loss than more serious, intelligence degree is low;It is regarded second is that being realized by the P2P modules in video camera to front end
The connection of frequency user, access procedure also only simply do the parameters such as direct broadcast address and directly enter, and do not form integrated pipe
The functions such as reason, distribution optimization, live streaming industry video source is mostly PC connections, such as USB port, video or mobile terminal video camera mainly lead to
The native interface for crossing front-end operations system obtains, and push to forwarding server and be distributed to head end video user, since front end is used
Family mostly directly plays the video source of each manufacturer, and the software scenario that video integration side makees each manufacturer is needed to integrate, is integrated out
Result also tend to as the broadcast window of final front end in the form of browser plug-in, and plug-in unit is in the equal base of existing browser
This is by disabling (such as ActiveX), and function is very limited, in addition, due to the limitation of P2P self-techniques, by this
The connection of mode, broadcast mode is also restrained, can not realize that multi-user accesses simultaneously.
Invention content
The purpose of the present invention is to provide a kind of video resource integrated with managing in LAN, and optimize head end video and use
The LAN video camera of family experience carries out the management system and method for network flow-medium live streaming.
The invention is realized in this way:A kind of LAN video camera carries out the management system of network flow-medium live streaming, including
Management client, server end management backstage and video user play front end;
The management client includes multiple video cameras and video packets management client, the video packets managing customer
The video camera in LAN is searched in end automatically after logging in, and the relevant parameter of target video camera is configured by ONVIF protocol interfaces, and
The RTSP video sources of video camera are obtained on the basis of ONVIF agreements;
The server end management backstage provides HTTP API and safeguards that video camera packet interface, video camera management connects in grouping
Mouth and user play media stream interface, are grouped online, and be turned on and off video camera for safeguarding that video user plays front end
Push Service;
The video packets management client passes through TCP long connection login service device end pipes using system registry grouping account
Reason backstage, reports the information of multiple video cameras searched, and the opening and closing that processing server management backstage is sent
The Push Service of video camera;The RTSP video sources got are pushed to streaming media server by video packets management client, and
Broadcast address is returned to server end management backstage;
The video user plays front end for submitting playing request to server end management backstage and according to from server
The broadcast address that end management backstage returns is drawn from streaming media server to be flowed and plays.
Wherein, door chain is also added into the broadcast address, the door chain is generated for video packets management client
Random code, server end management backstage verifies the random code.
Wherein, the server end management backstage is configured according to the open hour of video camera in grouping, is turned on and off taking the photograph
The Push Service of camera.
Wherein, the server end management backstage further includes detecting module, for detecting whether the video source of video camera has
People watches, and the Push Service acquiescence of video camera is closed state, if someone sees, Push Service is automatically turned on, if certain time
Interior unmanned viewing, then the Push Service of corresponding video camera is automatically closed in server end management backstage.
Wherein, the server end management backstage further includes rectification configurations module, for the RTSP of intelligent selection video camera
Meet the standard code stream of the system administration request in video source.
Wherein, host is equipped in the LAN, the video packets management client is mounted on host.
Wherein, the RTSP video sources of the video camera include main bit stream and subcode stream.
Wherein, the server end management backstage is additionally operable to safeguard the broadcasting shape that video user plays head end video user
State.
Wherein, it is HTML5 front ends that the video user, which plays front end,.
The present invention another technical solution be:The management method of one above-mentioned management system, including step:
(1) video packets management client is opened, and is logged in;The video packets management client is searched for automatically after logging in
Video camera in LAN the relevant parameter of target video camera is configured by ONVIF protocol interfaces, and in the base of ONVIF agreements
The RTSP video sources of video camera are obtained on plinth;
(2) video packets management client reports the information of multiple video cameras searched;Server end management backstage
Video camera is grouped;
(3) video user plays front end by video user and submits playing request to server end management backstage;
(4) server end management backstage notice video packets client opens Push Service;
(5) video packets management client will get RTSP video sources and push to streaming media server, and to server
Management backstage is held to return to broadcast address;
(6) server end management backstage returns to broadcast address and plays front end to video user, and video user, which plays front end, to be made
It is drawn with the broadcast address obtained from streaming media server and flows and play.
Video camera of the present invention refers to support the video camera of ONVIF international standard protocols.
It is described to safeguard that video camera packet interface, video camera management interface and user play media stream interface and be in grouping
HTTP api interfaces.
Video packets of the present invention refer to that the video camera of each LAN is broken generally into one group, and Different LANs is taken the photograph
Camera must divide in different groups.General small-scale school, training center, an amusement center etc. only there are one LAN,
Larger general more than one LAN, than if any such cases such as several buildings, it is possible to every one, building LAN.
When in a LAN video camera it is excessive in the case of, identify and distinguish between management for convenience, client also can be according to actual field
Situation is grouped, such as in same LAN, by geographical location can be divided into Stall, second floor, three buildings etc., can be divided by function
Bottom class, the middle class in a kindergarten, the top class in a kindergarten, dormitory, dining room etc., mode in this way are flexibly grouped, and can combine client's actual conditions and side
Just client quickly identifies and distinguishes between video camera.
Beneficial effects of the present invention are:The LAN video camera carries out the management system of network flow-medium live streaming, is based on
The ONVIF international standard protocols that most video camera is supported in the market, with reference to network flow-medium live broadcast system, by traditional office
The video source of substantial amounts is linked into public network in the net of domain, docks network flow-medium live broadcast system, such video source is made to obtain fully
It efficiently uses, value is also greatly played, and realizes flexible management according to the specific requirements of every profession and trade enterprise;It is not required to
Any configuration is done in video camera, operation is very simple, installs video packets management client and logs in, you can directly acquires
The group information of each video camera in LAN;It remotely can also directly add, change, delete, managing video camera in LAN,
Fast and easy forms the functions such as integrated management, distribution optimization;Due to direct converged network flow medium live system, full platform is broadcast
It puts, without plug-in unit, the video tastes of video user is substantially improved.
Description of the drawings
Fig. 1 is that the principle for the management system embodiment that LAN video camera of the present invention carries out network flow-medium live streaming is shown
It is intended to.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
The embodiment of the management system of network flow-medium live streaming, such as Fig. 1 are carried out as LAN video camera of the present invention
It is shown, play front end including management client, server end management backstage and video user;
The management client includes multiple video cameras and video packets management client, the video packets managing customer
The video camera in LAN is searched in end automatically after logging in, and the relevant parameter of target video camera is configured by ONVIF protocol interfaces, and
The RTSP video sources of video camera are obtained on the basis of ONVIF agreements;
The server end management backstage provides HTTP API and safeguards that video camera packet interface, video camera management connects in grouping
Mouth and user play media stream interface, are grouped online, and be turned on and off video camera for safeguarding that video user plays front end
Push Service;
The video packets management client passes through TCP long connection login service device end pipes using system registry grouping account
Reason backstage, reports the information of multiple video cameras searched, and the opening and closing that processing server management backstage is sent
The Push Service of video camera;The RTSP video sources got are pushed to streaming media server by video packets management client, and
Broadcast address is returned to server end management backstage;
The video user plays front end for submitting playing request to server end management backstage and according to from server
The broadcast address that end management backstage returns is drawn from streaming media server to be flowed and plays.
The video packets management client by ONVIF protocol interfaces be configured target video camera relevant parameter, be for
Network flow-medium live broadcast system video unified coding standard.
The maintenance video camera packet interface that the server end management backstage provides is for registration packet, modification grouping, note
Pin is grouped, and video camera management interface adds video camera for grouping, packet modification camera shooting, is grouped and deletes video camera in grouping.
The video camera that the video packets management client is searched for automatically in LAN is real-time, when LAN increase is taken the photograph
It during camera, will soon be searched, it is not necessary to which manual control is added;When LAN deletes video camera, the video packets pipe
The corresponding video camera of client is managed since search less than will not show again.
In the present embodiment, host is equipped in the LAN, the video packets management client is mounted on host,
Grouping management i.e. in LAN is realized completely by software, does not add any hardware device.
In the present embodiment, door chain is also added into the broadcast address, the door chain is video packets management visitor
The random code of family end generation, server end management backstage verify the random code.Broadcast address is provided with encrypted antitheft chain function,
By way of video packets management client and the verification of server end management backstage random code, prevent third party's tool from illegally grabbing
It wins the confidence breath, the information security of Support Resource avoids flow from being stolen.
In the present embodiment, the RTSP video sources of the video camera include main bit stream and subcode stream, according to video user
Actual demand carries out the video playing of common, SD and high definition.
In the present embodiment, the server end management backstage further includes rectification configurations module, is imaged for intelligent selection
Meet the standard code stream of the system administration request in the RTSP video sources of machine.It is small greatly no matter to access the code stream of video source and be,
Rectification configurations are carried out by rectification configurations module, can choose and be not higher than in management system standard code stream again closest to standard automatically
The value of code stream further ensures the demand of user, saves server and the flow of user, and it is various to integrate various forms in the market
Camera resource, effectively prevent management system because of excessive the caused system crash of resource consumption, ensured the steady of system
It is qualitative.The preferred 720P of this management system after rectification configurations module rectification configurations, can be selected with 720P most as standard code stream
Code stream that is close but being not higher than 720P.Even if having video camera have 1080P, 2K even 4K code stream, also only select 720P and
Below again closest to the code stream of 720P.
In the present embodiment, it is HTML5 front ends that the video user, which plays front end,.
In the present embodiment, the server end management backstage is additionally operable to safeguard that video user plays head end video user's
Broadcast state, for example open and play, exit broadcasting, ensure the video tastes of video user.
In the present embodiment, the server end management backstage is configured according to the open hour of video camera in grouping, opens
Or the Push Service of video camera is closed, realize flexible management according to the specific requirements of every profession and trade enterprise.
The server end management backstage further includes detecting module, and for detecting the video source of video camera, whether someone sees
It sees, the Push Service acquiescence of video camera is closed state, if someone sees, Push Service is automatically turned on, if nothing in certain time
People watches, then the Push Service of corresponding video camera is automatically closed in server end management backstage.It realizes that intelligent open and close are flow-optimized, adopts
With detection techniques, plug-flow is automatically turned on when someone sees, plug-flow is automatically closed when nobody sees, saves server and use
Family flow, safeguards system Effec-tive Function.
The management method of management system of the present invention, includes the following steps:
(1) video packets management client is opened, and is logged in;The video packets management client is searched for automatically after logging in
Video camera in LAN the relevant parameter of target video camera is configured by ONVIF protocol interfaces, and in the base of ONVIF agreements
The RTSP video sources of video camera are obtained on plinth;
(2) video packets management client reports the information of multiple video cameras searched;Server end management backstage
Video camera is grouped;
(3) video user plays front end by video user and submits playing request to server end management backstage;
(4) server end management backstage notice video packets client opens Push Service;
(5) video packets management client will get RTSP video sources and push to streaming media server, and to server
Management backstage is held to return to broadcast address;
(6) server end management backstage returns to broadcast address and plays front end to video user, and video user, which plays front end, to be made
It is drawn with the broadcast address obtained from streaming media server and flows and play.
The LAN video camera carries out the management system of network flow-medium live streaming, based on most video camera in the market
The ONVIF international standard protocols supported, with reference to network flow-medium live broadcast system, by the video of substantial amounts in conventional local area
Source is linked into public network, docks network flow-medium live broadcast system, such video source is made fully to be efficiently used, and value also obtains more
The performance of big degree, and realize flexible management according to the specific requirements of every profession and trade enterprise;It does not need to do any match in video camera
It puts, operation is very simple, installs video packets management client and logs in, you can directly acquires the group of each video camera in LAN
Group information;It remotely can also directly add, change, delete, managing video camera in LAN, fast and easy forms integrated pipe
The functions such as reason, distribution optimization;Due to direct converged network flow medium live system, full platform plays, and without plug-in unit, is substantially improved
The video tastes of video user.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
All any modification, equivalent and improvement made within refreshing and principle etc., should all be included in the protection scope of the present invention.