The content of the invention
Based on this, it is an object of the invention to provide a kind of video access for the video access requirement that disclosure satisfy that mass users
Method, access equalization server, central server and system.
A kind of video access methods according to embodiments of the present invention, applied to access equalization server, methods described includes:
When receiving the video access request of client transmission, an access server is dispatched;
Server is currently accessed by what video access request was transmitted to scheduling, so that described be currently accessed server mirror
Weigh after the client logins, real-time video request is sent to the central server of center poise server scheduling.
In addition, a kind of video access methods according to the above embodiment of the present invention, can also have technology additional as follows
Feature:
Further, it is described by the video access request be transmitted to scheduling the step of being currently accessed server it
Afterwards, in addition to:
When detect it is described be currently accessed server delay machine when, video access request is scheduled to another access clothes
Business device.
A kind of video access methods according to embodiments of the present invention, applied to central server, the central server with
Equipment access gateway and at least high quality services device are connected, and the equipment access gateway is connected with monitoring device, and methods described includes:
The scheduling of responsing center's equalization server;
When receiving the real-time video request of access server transmission, a streaming server is dispatched, and obtain tune
The receipts stream address of the current stream server of degree;
The instruction of the current stream server push live video stream is sent to the equipment access gateway, it is described real-time
Video flowing is shot by the monitoring device, flows address comprising described receive in the instruction;
, will when detecting that the equipment access gateway success pushes the live video stream to the current stream server
It is described to receive stream address by the access server response to client, so that the client flows address from institute according to described receive
State and the live video stream is obtained in current stream server, the client is logined through access server authentication.
In addition, a kind of video access methods according to the above embodiment of the present invention, can also have technology additional as follows
Feature:
Further, it is sent to the current stream server push live video stream to the equipment access gateway described
Instruction the step of after, in addition to:
When detecting that the equipment access gateway pushes the live video stream to the current stream server not successfully,
Error code response is given to the client by the access server.
Further, it is described by it is described receive flow address by the access server response to client the step of it
Afterwards, in addition to:
When receiving the video access end notification that the current stream server is sent, sent out to the equipment access gateway
The instruction for stopping that the live video stream is pushed to the current stream server is sent, the video access end notification is worked as to be described
Preceding streaming server detect the client disconnect video access and after preset time caused by.
A kind of access equalization server according to embodiments of the present invention, including:
First scheduler module, for when receiving the video access request of client transmission, dispatching an access service
Device;
Request sending module, server is currently accessed for what video access request was transmitted into scheduling, so that institute
State and be currently accessed server and authenticate after the client logins, sent to the central server of center poise server scheduling real-time
Video request.
In addition, a kind of access equalization server according to the above embodiment of the present invention, can also have skill additional as follows
Art feature:
Further, the access equalization server also includes:
Second scheduler module, for when detect it is described be currently accessed server delay machine when, the video access is asked
It is scheduled to another access server.
A kind of central server according to embodiments of the present invention, the central server and equipment access gateway and at least one
Streaming server is connected, and the equipment access gateway is connected with monitoring device, and the central server includes:
Dispatching response module, the scheduling for responsing center's equalization server;
Streaming server scheduler module, for when receiving the real-time video request of access server transmission, dispatching one
The streaming server, and obtain the receipts stream address of the current stream server of scheduling;
Push instruction sending module, is pushed in real time for being sent to the current stream server to the equipment access gateway
The instruction of video flowing, the live video stream are shot by the monitoring device, flow address comprising described receive in the instruction;
Stream address responder module is received, detects that the equipment access gateway success pushes away to the current stream server for working as
When sending the live video stream, described receive is flowed into address by the access server response to client, so that the client
End obtains the live video stream according to the stream address of receiving from the current stream server, and the client is through the access
Server authentication is logined.
In addition, a kind of central server according to the above embodiment of the present invention, can also have technology additional as follows special
Sign:
Further, the central server also includes:
Error code responder module, detect the equipment access gateway not successfully to the current stream server for working as
When pushing the live video stream, error code response is given to the client by the access server.
A kind of video access system according to embodiments of the present invention, including client, access equalization server, center poise
Server, central server, equipment access gateway, monitoring device, at least one access server and at least one streaming server,
Wherein,
The client is used to initiate or stop video access;
The access equalization server is used for the video access request for receiving the client, and dispatches the access service
Device;
The access server is used to authenticate logining for the client, and is sent in real time to the center poise server
Video request;
The center poise server is used to dispatch the central server, and is forwarded to the central server of scheduling
The real-time video request;
The central server is used to dispatch the streaming server, and sends pushing video streaming to the equipment access gateway
Instruction;
The equipment access gateway is used for when receiving the pushing video streaming instruction, to the current stream server of scheduling
Push the live video stream of the monitoring device shooting;
The streaming server is used for the connection request for receiving the client and the equipment access gateway, and is set described
The live video stream of standby access gateway push is sent to the client.
Above-mentioned video access methods, access equalization server, central server and system, by accessing balancing service pair
Each one access server of client dynamically distributes for requiring to login monitor supervision platform, can realize logining for mass users,
Guarantee to provide the user high concurrent request service, and Dynamic expansion client access server can be realized, so as to reach sea
The capacity extensions of user concurrent access are measured, in addition, passing through center poise service and the scheduling of central server so that each client
The video access request at end can be responded in the central server of each self scheduling, and the streaming server of each self scheduling
The central live video stream that can receive the push of equipment access gateway so that each client can be in each self scheduling
The live video stream is got among streaming server, the response of whole video access request is not interfere with each other, in addition, by rational
Real-time video access service is carried out module fractionation by framework, and by reasonably dispatching configuration, improves the height of video access service
Availability.Therefore the video access methods disclosure satisfy that the video access requirement of mass users, and it is in face of mass users band
During high concurrent and the high availability requirement to video access come, the video access request of each user is disclosure satisfy that, is not allowed
Easily appearance can not be accessed, system is run quickly and bursts, is lined up phenomena such as accessing, and experience sense is good.
Embodiment
For the ease of understanding the present invention, the present invention is described more fully below with reference to relevant drawings.In accompanying drawing
Give some embodiments of the present invention.But the present invention can realize in many different forms, however it is not limited to this paper institutes
The embodiment of description.On the contrary, the purpose for providing these embodiments is made to the disclosure more thorough and comprehensive.
It should be noted that when element is referred to as " being fixedly arranged on " another element, it can be directly on another element
Or there may also be element placed in the middle.When an element is considered as " connection " another element, it can be directly connected to
To another element or it may be simultaneously present centering elements.Term as used herein " vertical ", " horizontal ", " left side ",
" right side " and similar statement are for illustrative purposes only.
Unless otherwise defined, all of technologies and scientific terms used here by the article is with belonging to technical field of the invention
The implication that technical staff is generally understood that is identical.Term used in the description of the invention herein is intended merely to description tool
The purpose of the embodiment of body, it is not intended that in the limitation present invention.Term as used herein " and/or " include one or more phases
The arbitrary and all combination of the Listed Items of pass.
Referring to Fig. 1, the composition structure chart for the video access system showing in the present invention, following embodiment can transport
In the video access system shown in Fig. 1, the video access system include client 11, access equalization server 12, in
Heart equalization server 13, equipment access gateway 14, monitoring device 15, multiple access servers 16, multiple central servers 17 and
Multiple streaming servers 18.Access equalization server 12, center poise server 13, equipment access gateway 14, access server 16,
Central server 17 and streaming server 18 form a monitor supervision platform, are made up of a local Intranet, there is provided opened during Internet service
Put internet access port.
Wherein, the client 11 is used to initiate or stop video access, and the client 11 is client software, and it is
User, which provides, to be logged in monitor supervision platform, query facility list, starts or stops the service such as video access, and client 11 can pass through user
Network is established with monitor supervision platform and connected, and network can be internet or LAN.
Wherein, access equalization server 12 is connected with each access server 17, and it is used to receive the client 11
Video access is asked, and dispatches the access server 17.
Wherein, the access server 16 is used to authenticate logining for the client, and to the center poise server
13 send real-time video request;
Wherein, center poise server 13 is connected with each access equalization server 12 and each central server, center
Equalization server 13 is used for control centre's server 17, and forwards real-time video request to the central server 17 of scheduling;
Wherein, central server 17 is connected with each streaming server 18, and it is used to dispatching the streaming server 18, and to setting
Standby access gateway 14 sends pushing video streaming instruction;
Wherein, equipment access gateway 14 is used for when receiving pushing video streaming instruction, to the current stream server of scheduling
The live video stream that 18 push monitoring devices 15 are shot;
Wherein, streaming server 18 is used for the connection request for receiving client 11 and equipment access gateway 14, and equipment is connect
The live video stream that function Access Gateway 14 pushes is sent to client 11.
Wherein, monitoring device 15 is positioned at monitoring network side, and for shooting live video stream, monitoring device 15 can pass through local
Net is established with equipment access gateway 14 and connected.
Fig. 2 to Fig. 3 is referred to, the video access methods showing in first embodiment of the invention, including step S01 are extremely walked
Rapid S10.
Step S01, client send video access request to access equalization server.
When it is implemented, user can first open client software, and the service for logging in monitor supervision platform is enabled, now client
End will access equalization server from trend and send video access request.
Wherein, monitor supervision platform uses DR patterns by accessing equalization server, and interconnection is provided by way of providing empty IP
Net the address of service information accessed.
Step S02, the access equalization server dispatches an access server, and the video access is asked to forward
Server is currently accessed to scheduling.
It should be understood that a scheduling strategy can be preset to access equalization server, so that access equalization server root
Idle, relative free or newly-increased access server are dispatched according to the scheduling strategy.
Wherein, when access equalization server is scheduled to access server, scheduled access server will respond
Access the scheduling of equalization server.
Step S03, described be currently accessed after the server authentication client is logined send in fact to center poise server
When video request.
It is pointed out that when accessing equalization server one access server of scheduling to respond video access request,
Client will be currently accessed server to login monitor supervision platform by scheduling.Therefore being currently accessed server needs to client
End is authenticated (such as checking IP, the correctness of password), to verify whether user possesses the right of access system, is authenticated successfully
Afterwards, client, which will successfully pass, is currently accessed server and logins monitor supervision platform.
Step S04, described one central server of center poise server scheduling, and the real-time video is asked to forward
Current central server to scheduling.
It should be understood that a scheduling strategy can be preset to center poise server, so that access equalization server root
Idle, relative free or newly-increased central server are dispatched according to the scheduling strategy.
Wherein, when when center, equalization server is scheduled to central server, scheduled central server will respond
The scheduling of center poise server.
Step S05, described one streaming server of Current central server scheduling, and obtain the current stream server of scheduling
Receive stream address.
It is pointed out that the receipts stream address is the transmission address of follow-up live video stream, the receipts stream of each streaming server
Address has differences.
Wherein, when central server streaming server is scheduled, scheduled streaming server services responsing center
The scheduling of device.
It should be understood that a scheduling strategy can be preset to central server, so that central server is according to the scheduling
Strategy dispatches idle, relative free or newly-increased streaming server.
Step S06, the Current central server are sent to the current stream server to equipment access gateway and pushed in fact
When video flowing instruction, the live video stream by monitoring device shoot, in the instruction comprising it is described receive stream address.
Step S07, the equipment access gateway flow address to described current after the instruction is received, according to described receive
Streaming server establishes connection, and the request of push real-time video is sent to the monitoring device.
It is pointed out that due to flowing address comprising described receive in the instruction, it can determine that and connect according to the receipts stream address
Receive the streaming server of video flowing, as described current stream server.
It should be understood that when monitoring device receives the request of push real-time video, it will will shoot what is obtained in real time
Video is sent to equipment access gateway.
Step S08, the equipment access gateway is when receiving the live video stream of the monitoring device push, by described in
Live video stream is forwarded to the current stream server, and returns to the implementing result of the instruction to the Current central service
Device.
Step S09, regarded in real time when detecting that the equipment access gateway is successful to current stream server push is described
When frequency flows, the stream address of receiving is currently accessed server response to the client by the Current central server by described
End.
It is pointed out that if the success of equipment access gateway pushes live video stream to current stream server, equipment connects
Function Access Gateway gives the implementing result for returning to normal response to Current central server, and otherwise the implementing result of return exception response, which is given, works as
Preceding central server.
Step S10, the client according to it is described receive to flow address and obtain from the current stream server described regard in real time
Frequency flows.
It is pointed out that client receive it is described receive stream address after, will according to default rule assembly RTSP
Location, and current stream server is connected by RTSP agreements, to obtain real time video data from current stream server, successfully obtain
Afterwards, client will carry out decoding broadcasting, to complete the detection of the real-time video of user.
To sum up, the video access methods among the above embodiment of the present invention, each requirement is stepped on by accessing balancing service
Enter one access server of client dynamically distributes to monitor supervision platform, realize Dynamic expansion client access server, so as to
Reach the capacity extensions that mass users concurrently access, logining for mass users can be realized, guarantee to provide the user height simultaneously
Hair request service, in addition, passing through center poise service and the scheduling of central server so that the video access of each client please
Asking can be responded in the central server of each self scheduling, and can be received among the streaming server of each self scheduling
To the live video stream of equipment access gateway push so that each client can obtain among the streaming server of each self scheduling
The live video stream is got, the response of whole video access request is not interfere with each other, in addition, by rational framework real-time video
Access service carries out module fractionation, and by reasonably dispatching configuration, improves the high availability of video access service.Therefore it is described
Video access methods disclosure satisfy that the video access requirement of mass users, its in face of mass users bring to video access
When high concurrent and high availability requirement, the video access request of each user disclosure satisfy that, it is not easy to which appearance can not access, be
System, which is run quickly, bursts, is lined up phenomena such as accessing, and experience sense is good.
Fig. 4 to Fig. 5 is referred to, the video access methods showing in second embodiment of the invention, including step S11 are extremely walked
Rapid S25.
Step S11, client send video access request to access equalization server.
Step S12, the access equalization server dispatch an access server according to scheduling strategy, and by the video
What access request was transmitted to scheduling is currently accessed server.
Step S13, described be currently accessed after the server authentication client is logined send in fact to center poise server
When video request.
Step S14, the center poise server dispatch a central server according to scheduling strategy, and will be described real-time
Video request is transmitted to the Current central server of scheduling.
Step S15, the Current central server dispatch a streaming server according to scheduling strategy, and obtain working as scheduling
The receipts stream address of preceding streaming server.
Step S16, the Current central server are sent to the current stream server to equipment access gateway and pushed in fact
When video flowing instruction, the live video stream by monitoring device shoot, in the instruction comprising it is described receive stream address.
Step S17, the equipment access gateway flow address to described current after the instruction is received, according to described receive
Streaming server establishes connection, and the request of push real-time video is sent to the monitoring device.
Step S18, the equipment access gateway is when receiving the live video stream of the monitoring device push, by described in
Live video stream is forwarded to the current stream server, and returns to the implementing result of the instruction to the Current central service
Device.
Step S19, the Current central server according to the implementing result, judge the equipment access gateway whether into
Work(pushes the live video stream to the current stream server.
Wherein, the real-time video is pushed to the current stream server not successfully when determining the equipment access gateway
During stream, then step S20 is performed, it is described in real time to current stream server push when determining the equipment access gateway success
During video flowing, then step S21 to step S25 is performed.
Step S20, the Current central server are currently accessed server by error code response to described by described
Client.
Wherein, the error code can be preset so that when the equipment access gateway is not successfully to described current
When streaming server pushes the live video stream, default error code is returned to server is currently accessed, so as to be currently accessed
Server rotates the default error code can learn that itself sends out to client, client according to the default error code
The video access request failure sent.
Step S21, the Current central server by it is described receive flow address by it is described be currently accessed server response to
Client.
Step S22, the client according to it is described receive to flow address and obtain from the current stream server described regard in real time
Frequency flows.
Step S23, when detecting that the client disconnects video access and after preset time, the current stream service
Device produces video access end notification, and the video access end notification is sent into the Current central server.
Step S24, the Current central server is sent to the equipment access gateway to be stopped to the current stream service
Device pushes the instruction of the live video stream.
Step S25, the equipment access gateway remove the connection with the current stream server, and to the monitoring device
The request for stopping push real-time video is sent, and returns to implementing result to the central server.
It should be understood that the monitoring device will stop to setting when receiving the request of stopping push real-time video
The live video stream of standby access gateway push shooting.
In addition, after the step of access equalization server dispatches an access server according to scheduling strategy, institute
Stating video access methods also includes:
The access equalization server detect it is described be currently accessed server delay machine when, the video access is asked to adjust
Spend to another access server.
To sum up, the video access methods among the present embodiment are compared to the video access methods among first embodiment, its
By access equalization server realize the service keep-alive of access server detect, when find it is any access business take device delay machine when,
Access business can be taken to the video access request responded on device to be dispatched on other idle or relative free access servers
Responded, ensure the high availability of video access service.In addition, the video that client and streaming server are disconnected as user connects
Afterwards, the streaming server will send the notice for stopping video push to central server again after waiting for a period of time, it is ensured that
When shake (unstable) occurs in client network, user quick-recovery video can connect soon.
It refer to Fig. 6, the access equalization server 12 in third embodiment of the invention, the access balancing service
Device 12 includes:
First scheduler module 121, for when receiving the video access request of client transmission, being adjusted according to scheduling strategy
Spend an access server;
Request sending module 122, server is currently accessed for what video access request was transmitted into scheduling, so that
The server that is currently accessed is authenticated after the client logins, and is sent to the central server of center poise server scheduling real
When video request.
Further, the access equalization server 12 also includes:
Second scheduler module 123, for when detect it is described be currently accessed server delay machine when, according to the scheduling plan
Slightly, video access request is scheduled to another access server.
Fig. 7 is refer to, described is the central server 17 in fourth embodiment of the invention, and the central server 17 wraps
Include:
Dispatching response module 171, the scheduling for responsing center's equalization server;
Streaming server scheduler module 172, for when receive access server transmission real-time video request when, according to tune
Degree strategy one streaming server of scheduling, and obtain the receipts stream address of the current stream server of scheduling;
Push instruction sending module 173, is pushed for being sent to the current stream server to the equipment access gateway
The instruction of live video stream, the live video stream are shot by the monitoring device, are flowed in the instruction comprising described receive
Address;
Stream address responder module 174 is received, detects the equipment access gateway success to the current stream service for working as
When device pushes the live video stream, described receive is flowed into address by the access server response to client, so that described
Client flows address and obtains the live video stream from the current stream server according to described receive, described in the client warp
Access server authentication is logined.
Further, the central server 17 also includes:
Error code responder module 175, detect the equipment access gateway not successfully to the current stream clothes for working as
When business device pushes the live video stream, error code response is given to the client by the access server.
Further, the central server 17 also includes:
Halt instruction sending module 176, for terminating to lead to when the video access for receiving the current stream server transmission
When knowing, the instruction for stopping that the live video stream is pushed to the current stream server, institute are sent to the equipment access gateway
Video access end notification is stated to detect the client disconnection video access for the current stream server and passing through default
Caused by after time.
It will be understood by those skilled in the art that in flow charts represent or logic described otherwise above herein and/or
Step, for example, being considered the order list of the executable instruction for realizing logic function, it may be embodied in and appoint
In what computer-readable medium, for instruction execution system, device or equipment (such as computer based system including processor
System or other can be from the system of instruction execution system, device or equipment instruction fetch and execute instruction) use, or with reference to this
A little instruction execution system, device or equipment and use.For the purpose of this specification, " computer-readable medium " can be it is any can be with
Comprising, store, communicate, propagate or transmit program and perform system for instruction execution system, device or equipment or with reference to these instructions
System, device or equipment and the device used.
The more specifically example (non-exhaustive list) of computer-readable medium includes following:Connected up with one or more
Electrical connection section (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium, which can even is that, to print the paper of described program thereon or other are suitable
Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned
In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage
Or firmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardware
Any one of row technology or combinations thereof are realized:With the logic gates for realizing logic function to data-signal
Discrete logic, have suitable combinational logic gate circuit application specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description
Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not
Necessarily refer to identical embodiment or example.Moreover, specific features, structure, material or the feature of description can be any
One or more embodiments or example in combine in an appropriate manner.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more specific and detailed, but simultaneously
Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention
Protect scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.