CN107707939B - Video access method, access balance server, central server and system - Google Patents

Video access method, access balance server, central server and system Download PDF

Info

Publication number
CN107707939B
CN107707939B CN201710944116.4A CN201710944116A CN107707939B CN 107707939 B CN107707939 B CN 107707939B CN 201710944116 A CN201710944116 A CN 201710944116A CN 107707939 B CN107707939 B CN 107707939B
Authority
CN
China
Prior art keywords
server
access
current
stream
video
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.)
Expired - Fee Related
Application number
CN201710944116.4A
Other languages
Chinese (zh)
Other versions
CN107707939A (en
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.)
Jiangxi Oufijuneng Iot Technology Co ltd
Original Assignee
Jiangxi Oufijuneng Iot 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 Jiangxi Oufijuneng Iot Technology Co ltd filed Critical Jiangxi Oufijuneng Iot Technology Co ltd
Priority to CN201710944116.4A priority Critical patent/CN107707939B/en
Publication of CN107707939A publication Critical patent/CN107707939A/en
Application granted granted Critical
Publication of CN107707939B publication Critical patent/CN107707939B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2404Monitoring of server processing errors or hardware failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload
    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • H04N21/25816Management of client data involving client authentication
    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Graphics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a video access method, an access equalization server, a central server and a system, wherein the system comprises a client, the access equalization server, the central server, an equipment access gateway, a monitoring device, at least one access server and at least one stream server; and the stream server is used for receiving the connection request of the client and the equipment access gateway and sending the real-time video stream to the client. The video access method and the video access system can meet the video access requirements of mass users and have good experience.

Description

Video access method, access balance server, central server and system
Technical Field
The invention relates to the technical field of security protection, in particular to a video access method, an access balancing server, a central server and a system.
Background
In the security industry, with the popularization of smart phones and 4G networks, a facility foundation is provided for internet users of a video monitoring system in the security industry, and the rapid development of the video monitoring system is promoted. Nowadays, video monitoring services have reached the ground of mobility and internet, and users can acquire real-time videos of monitoring equipment through software on mobile terminals anytime and anywhere.
However, in the prior art, the currently adopted access method and system for monitoring videos cannot meet the video access requirements of a large number of users, that is, when the high concurrency and high availability requirements on video access brought by the large number of users are met, phenomena such as incapability of access, system rushing, queuing access and the like easily occur, and the experience feeling is poor.
Disclosure of Invention
Based on the above, the invention aims to provide a video access method, an access balance server, a central server and a system which can meet the video access requirements of massive users.
The video access method according to the embodiment of the invention is applied to an access balancing server, and comprises the following steps:
when a video access request sent by a client is received, scheduling one access server;
and forwarding the video access request to a scheduled current access server so as to enable the current access server to send a real-time video request to a central server scheduled by a central balance server after authenticating the login of the client.
In addition, the video access method according to the above embodiment of the present invention may further have the following additional technical features:
further, after the step of forwarding the video access request to the scheduled current access server, the method further includes:
and when the current access server is detected to be down, the video access request is dispatched to another access server.
The video access method according to the embodiment of the invention is applied to a central server, the central server is connected with an equipment access gateway and at least one first-class server, the equipment access gateway is connected with monitoring equipment, and the method comprises the following steps:
responding to the dispatching of the central balance server;
when a real-time video request sent by an access server is received, scheduling one streaming server, and acquiring a stream receiving address of the current scheduled streaming server;
sending an instruction for pushing a real-time video stream to the current streaming server to the device access gateway, wherein the real-time video stream is shot by the monitoring device, and the instruction comprises the streaming receiving address;
and when the fact that the equipment access gateway successfully pushes the real-time video stream to the current streaming server is detected, the stream receiving address is responded to a client through the access server, so that the client obtains the real-time video stream from the current streaming server according to the stream receiving address, and the client is authenticated and logged in through the access server.
In addition, the video access method according to the above embodiment of the present invention may further have the following additional technical features:
further, after the step of sending the instruction for pushing the real-time video stream to the current streaming server to the device access gateway, the method further includes:
and when the fact that the equipment access gateway does not successfully push the real-time video stream to the current stream server is detected, responding an error code to the client through the access server.
Further, after the step of answering the flow receiving address to the client through the access server, the method further includes:
and when receiving a video access end notification sent by the current streaming server, sending an instruction for stopping pushing the real-time video stream to the current streaming server to the device access gateway, wherein the video access end notification is generated after the current streaming server detects that the client disconnects video access and a preset time elapses.
An access balancing server according to an embodiment of the present invention includes:
the first scheduling module is used for scheduling an access server when receiving a video access request sent by a client;
and the request sending module is used for forwarding the video access request to the scheduled current access server so as to send a real-time video request to a central server scheduled by a central balance server after the current access server authenticates the login of the client.
In addition, the access balancing server according to the above embodiment of the present invention may further have the following additional technical features:
further, the access balancing server further comprises:
and the second scheduling module is used for scheduling the video access request to another access server when the current access server is detected to be down.
According to an embodiment of the present invention, a central server is connected to an equipment access gateway and at least one first-class server, the equipment access gateway is connected to a monitoring device, and the central server includes:
the dispatching response module is used for responding the dispatching of the central balance server;
the stream server scheduling module is used for scheduling one stream server when receiving a real-time video request sent by an access server, and acquiring a stream receiving address of the scheduled current stream server;
a push instruction sending module, configured to send, to the device access gateway, an instruction for pushing a real-time video stream to the current streaming server, where the real-time video stream is shot by the monitoring device, and the instruction includes the streaming receiving address;
and the stream receiving address response module is used for responding the stream receiving address to a client through the access server when the fact that the equipment access gateway successfully pushes the real-time video stream to the current stream server is detected, so that the client acquires the real-time video stream from the current stream server according to the stream receiving address, and the client is authenticated and logged in through the access server.
In addition, the central server according to the above embodiment of the present invention may further have the following additional technical features:
further, the central server further includes:
and the error code response module is used for responding an error code to the client through the access server when the fact that the equipment access gateway does not successfully push the real-time video stream to the current stream server is detected.
The video access system according to the embodiment of the invention comprises a client, an access balancing server, a central server, a device access gateway, a monitoring device, at least one access server and at least one stream server, wherein,
the client is used for initiating or stopping video access;
the access balancing server is used for receiving the video access request of the client and dispatching the access server;
the access server is used for authenticating the login of the client and sending a real-time video request to the central balance server;
the central balance server is used for scheduling the central server and forwarding the real-time video request to the scheduled central server;
the central server is used for scheduling the stream server and sending a video stream pushing instruction to the equipment access gateway;
the equipment access gateway is used for pushing the real-time video stream shot by the monitoring equipment to a scheduled current stream server when receiving the video stream pushing instruction;
the stream server is used for receiving the connection request of the client and the equipment access gateway and sending the real-time video stream pushed by the equipment access gateway to the client.
According to the video access method, the access equalization server, the central server and the system, the access equalization service dynamically allocates one access server to each client requiring to be logged in the monitoring platform, so that massive users can be logged in, high concurrency request service can be provided for the users, and the client access server can be dynamically expanded, so that the capacity expansion of the concurrent access of the massive users is achieved. Therefore, the video access method can meet the video access requirements of massive users, can meet the video access request of each user when meeting the high concurrency and high availability requirements on video access brought by the massive users, is not easy to have the phenomena of incapability of access, running system, queuing access and the like, and has good experience.
Drawings
Fig. 1 is a block diagram showing components of a video access system according to an embodiment of the present invention;
fig. 2 is a flowchart of a video access method in a first embodiment of the present invention;
fig. 3 is a signaling diagram of a video access procedure in a first embodiment of the invention;
FIG. 4 is a flow chart of a video access method in a second embodiment of the present invention;
fig. 5 is a signaling diagram of a video access procedure in a second embodiment of the present invention;
fig. 6 is a schematic structural diagram of an access balancing server in a third embodiment of the present invention;
fig. 7 is a schematic structural diagram of a central server in a fourth embodiment of the present invention.
The following detailed description will further illustrate the invention in conjunction with the above-described figures.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Several embodiments of the invention are presented in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. The terms "vertical," "horizontal," "left," "right," and the like as used herein are for illustrative purposes only.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Referring to fig. 1, a structural diagram of a video access system according to the present invention is shown, and the following embodiments may be applied to the video access system shown in fig. 1, where the video access system includes a client 11, an access balance server 12, a central balance server 13, a device access gateway 14, a monitoring device 15, multiple access servers 16, multiple central servers 17, and multiple stream servers 18. The access balance server 12, the central balance server 13, the equipment access gateway 14, the access server 16, the central server 17 and the stream server 18 form a monitoring platform, which is composed of a local area intranet, and an internet access port is opened when the internet service is provided.
The client 11 is used for initiating or stopping video access, the client 11 is client software which provides services such as logging in a monitoring platform, querying an equipment list, starting or stopping video access and the like for a user, the client 11 can be connected with the monitoring platform through a user network, and the network can be the internet or a local area network.
Wherein, the access balance server 12 is connected with each access server 17, and is used for receiving the video access request of the client 11 and dispatching the access server 17.
The access server 16 is configured to authenticate login of the client, and send a real-time video request to the central equalization server 13;
the central balance server 13 is connected with each access balance server 12 and each central server, and the central balance server 13 is used for scheduling the central server 17 and forwarding a real-time video request to the scheduled central server 17;
wherein, the central server 17 is connected with each streaming server 18, and is used for scheduling the streaming server 18 and sending a video stream pushing instruction to the device access gateway 14;
the device access gateway 14 is configured to, when receiving a video stream pushing instruction, push a real-time video stream shot by the monitoring device 15 to the scheduled current streaming server 18;
the streaming server 18 is configured to receive a connection request between the client 11 and the device access gateway 14, and send a real-time video stream pushed by the device access gateway 14 to the client 11.
The monitoring device 15 is located on the monitoring network side and used for shooting a real-time video stream, and the monitoring device 15 may establish a connection with the device access gateway 14 through a local area network.
Referring to fig. 2 to 3, a video access method according to a first embodiment of the present invention is shown, including steps S01 to S10.
And step S01, the client sends a video access request to the access balancing server.
In specific implementation, a user can open client software and start the service of logging in the monitoring platform, and at the moment, the client automatically sends a video access request to the access balancing server.
The monitoring platform provides service address information accessed by the Internet in a DR mode by accessing the balance server and providing a virtual IP mode.
And S02, the access balancing server schedules an access server and forwards the video access request to the scheduled current access server.
It is understood that a scheduling policy may be preset to the access balancing server, so that the access balancing server schedules the idle, relatively idle, or newly added access server according to the scheduling policy.
When the access equilibrium server schedules the access server, the scheduled access server responds to the scheduling of the access equilibrium server.
And S03, the current access server authenticates the login of the client and then sends a real-time video request to a central balance server.
It should be noted that when the access balancing server schedules an access server to respond to a video access request, the client will log in to the monitoring platform through the scheduled current access server. Therefore, the current access server needs to authenticate the client (for example, verify the correctness of the IP and the password) to verify whether the user has the right to access the system, and after the authentication is successful, the client logs in the monitoring platform successfully through the current access server.
And S04, the central balance server schedules a central server and forwards the real-time video request to the scheduled current central server.
It is understood that a scheduling policy may be preset to the central equilibrium server, so that the access equilibrium server schedules the idle, relatively idle or newly added central server according to the scheduling policy.
Wherein, when the central equalization server schedules the central server, the scheduled central server will respond to the scheduling of the central equalization server.
And step S05, the current central server schedules a stream server and acquires a stream receiving address of the scheduled current stream server.
It should be noted that the streaming address is a sending address of the subsequent real-time video stream, and there is a difference in the streaming addresses of each streaming server.
Wherein, when the central server schedules the streaming server, the scheduled streaming server will respond to the scheduling of the central server.
It is understood that a scheduling policy may be preset to the central server, so that the central server schedules idle, relatively idle or newly added streaming servers according to the scheduling policy.
And S06, the current central server sends an instruction for pushing a real-time video stream to the current streaming server to the equipment access gateway, wherein the real-time video stream is shot by the monitoring equipment, and the instruction comprises the streaming receiving address.
And step S07, after receiving the instruction, the equipment access gateway establishes connection to the current streaming server according to the streaming receiving address and sends a request for pushing a real-time video to the monitoring equipment.
It should be noted that, since the instruction includes the stream receiving address, the stream server receiving the video stream, that is, the current stream server, can be determined according to the stream receiving address.
It can be understood that when the monitoring device receives a request for pushing a real-time video, the video obtained by shooting is sent to the device access gateway in real time.
And step S08, when receiving the real-time video stream pushed by the monitoring equipment, the equipment access gateway forwards the real-time video stream to the current stream server, and returns the execution result of the instruction to the current central server.
And step S09, when detecting that the equipment access gateway successfully pushes the real-time video stream to the current stream server, the current central server responds the stream receiving address to the client through the current access server.
It should be noted that, if the device access gateway successfully pushes the real-time video stream to the current stream server, the device access gateway returns the execution result of the normal response to the current central server, otherwise, the device access gateway returns the execution result of the abnormal response to the current central server.
And step S10, the client acquires the real-time video stream from the current stream server according to the stream receiving address.
It should be noted that, after receiving the streaming address, the client assembles an RTSP address according to a preset rule, and connects to the current streaming server through an RTSP protocol to obtain real-time video data from the current streaming server, and after successful obtaining, the client decodes and plays the real-time video data to complete real-time video detection of the user.
In summary, in the video access method in the above embodiment of the present invention, an access server is dynamically allocated to each client requiring to log in to a monitoring platform through an access balancing service, so as to achieve capacity expansion of concurrent access of massive users, and enable the login of massive users, and ensure that a high concurrent request service is provided for the users, in addition, through scheduling of the central balancing service and the central server, a video access request of each client can be responded in the respectively scheduled central server, and a real-time video stream pushed by a device access gateway can be received in the respectively scheduled stream servers, so that each client can obtain the real-time video stream in the respectively scheduled stream servers, and responses of the entire video access request are not interfered with each other, and in addition, a module of a real-time video access service is split through a reasonable architecture, and through reasonable scheduling configuration, high availability of the video access service is improved. Therefore, the video access method can meet the video access requirements of massive users, can meet the video access request of each user when meeting the high concurrency and high availability requirements on video access brought by the massive users, is not easy to have the phenomena of incapability of access, running system, queuing access and the like, and has good experience.
Referring to fig. 4 to 5, a video access method according to a second embodiment of the present invention is shown, including steps S11 to S25.
And step S11, the client sends a video access request to the access balancing server.
And step S12, the access balancing server schedules an access server according to a scheduling strategy and forwards the video access request to the scheduled current access server.
And S13, the current access server authenticates the login of the client and then sends a real-time video request to a central balance server.
And S14, the central balance server schedules a central server according to a scheduling strategy and forwards the real-time video request to the current scheduled central server.
And step S15, the current central server schedules a stream server according to the scheduling strategy and acquires the stream receiving address of the scheduled current stream server.
And S16, the current central server sends an instruction for pushing a real-time video stream to the current streaming server to the equipment access gateway, wherein the real-time video stream is shot by the monitoring equipment, and the instruction comprises the streaming receiving address.
And step S17, after receiving the instruction, the equipment access gateway establishes connection to the current streaming server according to the streaming receiving address and sends a request for pushing a real-time video to the monitoring equipment.
Step S18, when receiving the real-time video stream pushed by the monitoring device, the device access gateway forwards the real-time video stream to the current stream server, and returns the execution result of the instruction to the current central server.
Step S19, the current central server judges whether the equipment access gateway successfully pushes the real-time video stream to the current streaming server according to the execution result.
When it is determined that the device access gateway does not successfully push the real-time video stream to the current streaming server, step S20 is executed, and when it is determined that the device access gateway successfully pushes the real-time video stream to the current streaming server, steps S21 to S25 are executed.
And step S20, the current central server responds an error code to the client through the current access server.
The error code may be preset, so that when the device access gateway does not successfully push the real-time video stream to the current streaming server, the preset error code is returned to the current access server, so that the current access server rotates the preset error code to the client, and the client can know that the video access request sent by the client fails according to the preset error code.
And step S21, the current central server responds the stream receiving address to the client through the current access server.
And step S22, the client acquires the real-time video stream from the current stream server according to the stream receiving address.
Step S23, when it is detected that the client disconnects the video access and a preset time elapses, the current streaming server generates a video access end notification, and sends the video access end notification to the current central server.
And step S24, the current central server sends an instruction for stopping pushing the real-time video stream to the current stream server to the equipment access gateway.
And step S25, the equipment access gateway removes the connection with the current streaming server, sends a request for stopping pushing the real-time video to the monitoring equipment, and returns an execution result to the central server.
It can be understood that, when receiving the request for stopping pushing the real-time video, the monitoring device stops pushing the shot real-time video stream to the device access gateway.
In addition, after the step of scheduling, by the access balancing server, one access server according to a scheduling policy, the video access method further includes:
and when the access balancing server detects that the current access server is down, the access balancing server dispatches the video access request to another access server.
In summary, compared with the video access method in the first embodiment, the video access method in this embodiment implements service keep-alive detection of the access servers by accessing the balancing server, and when any access server is found to be down, the video access request responded by the access server can be dispatched to other idle or relatively idle access servers for responding, thereby ensuring high availability of the video access service. In addition, after the user disconnects the video connection between the client and the streaming server, the streaming server sends a notification of stopping video push to the central server after waiting for a period of time, so that the user can quickly recover the video connection when the client network shakes (becomes unstable).
Referring to fig. 6, the access balancing server 12 in the third embodiment of the present invention is described, where the access balancing server 12 includes:
a first scheduling module 121, configured to schedule one access server according to a scheduling policy when receiving a video access request sent by a client;
a request sending module 122, configured to forward the video access request to the scheduled current access server, so that after the current access server authenticates that the client logs in, the real-time video request is sent to a central server scheduled by a central balancing server.
Further, the access balancing server 12 further includes:
and the second scheduling module 123 is configured to schedule the video access request to another access server according to the scheduling policy when the current access server is detected to be down.
Referring to fig. 7, a center server 17 according to a fourth embodiment of the present invention is described, where the center server 17 includes:
a scheduling response module 171, configured to respond to scheduling of the central balancing server;
the streaming server scheduling module 172 is configured to schedule one streaming server according to a scheduling policy and obtain a stream receiving address of a scheduled current streaming server when receiving a real-time video request sent by an access server;
a push instruction sending module 173, configured to send, to the device access gateway, an instruction for pushing a real-time video stream to the current streaming server, where the real-time video stream is shot by the monitoring device, and the instruction includes the streaming receiving address;
and a flow receiving address response module 174, configured to, when it is detected that the device access gateway successfully pushes the real-time video flow to the current flow server, respond the flow receiving address to a client through the access server, so that the client obtains the real-time video flow from the current flow server according to the flow receiving address, and the client logs in through authentication of the access server.
Further, the central server 17 further includes:
an error code response module 175, configured to respond to the client through the access server with an error code when it is detected that the device access gateway does not successfully push the real-time video stream to the current streaming server.
Further, the central server 17 further includes:
a stop instruction sending module 176, configured to send, to the device access gateway, an instruction to stop pushing the real-time video stream to the current streaming server when receiving a video access end notification sent by the current streaming server, where the video access end notification is generated by the current streaming server after detecting that the client disconnects video access and a preset time elapses.
Those of skill in the art will understand that the logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be viewed as implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A video access method applied to an access equalization server, the method comprising:
when a video access request sent by a client is received, scheduling one access server of a plurality of access servers;
forwarding the video access request to a scheduled current access server, so that after the current access server authenticates that the client logs in, a real-time video request is sent to one scheduled current central server of a plurality of central servers scheduled by a central equilibrium server, so that the scheduled current central server schedules one scheduled current stream server of at least one stream server, and sends an instruction for pushing a real-time video stream to the current stream server to a device access gateway, so that a real-time video shot by a monitoring device is sent to a stream receiving address of the current stream server through the device access gateway, and the device access gateway returns an execution result of the instruction to the scheduled current central server, and when the device access gateway detects that the real-time video stream is successfully pushed to the current stream server, the scheduled current central server responds to the client through the scheduled current access server, so that the client acquires the real-time video stream from the scheduled current stream server according to the stream receiving address, and when the scheduled current access server receives the video stream and notifies the scheduled current access server that the video stream is sent to the scheduled current access server as a preset video stream access stop when the scheduled video stream access server finishes being sent to the preset video stream.
2. The video access method of claim 1, further comprising, after the step of forwarding the video access request to a scheduled current access server:
and when the current access server is detected to be down, the video access request is dispatched to another access server.
3. A video access method is applied to a central server, the central server is connected with an equipment access gateway and at least one stream server, the equipment access gateway is connected with monitoring equipment, and the method comprises the following steps:
responding to the dispatching of a central balance server, wherein the dispatching of the central balance server is to dispatch one access server of a plurality of access servers when the access balance server receives a video access request sent by a client; the video access request is forwarded to a scheduled current access server, so that the current access server authenticates the login of the client and sends the login request to the central balancing server;
when a real-time video request sent by an access server is received, scheduling one streaming server, and acquiring a stream receiving address of the current scheduled streaming server;
sending an instruction for pushing a real-time video stream to the current streaming server to the equipment access gateway, wherein the real-time video stream is shot by the monitoring equipment, the instruction comprises the streaming receiving address, the real-time video shot by the monitoring equipment is sent to the streaming receiving address of the current streaming server through the equipment access gateway, and the equipment access gateway returns an execution result of the instruction to the scheduled central server;
when the fact that the equipment access gateway successfully pushes the real-time video stream to the current streaming server is detected, the stream receiving address is responded to a client through the access server, so that the client can obtain the real-time video stream from the current streaming server according to the stream receiving address, and the client is authenticated and logged in through the access server;
after the step of answering the flow receiving address to the client through the access server, the method further comprises the following steps:
and when receiving a video access end notification sent by the current streaming server, sending an instruction for stopping pushing the real-time video stream to the current streaming server to the device access gateway, wherein the video access end notification is generated after the current streaming server detects that the client disconnects video access and a preset time elapses.
4. The video access method of claim 3, after the step of sending the instruction to the device access gateway to push the live video stream to the current streaming server, further comprising:
and when the fact that the equipment access gateway does not successfully push the real-time video stream to the current stream server is detected, responding an error code to the client through the access server.
5. An access balancing server, comprising:
the first scheduling module is used for scheduling one access server of the plurality of access servers when receiving a video access request sent by the client;
a request sending module, configured to forward the video access request to a scheduled current access server, so that after the current access server authenticates that the client logs in, a real-time video request is sent to a scheduled current central server of a plurality of central servers scheduled by a central balancing server, so that the scheduled central server schedules one scheduled current streaming server of at least one streaming server, and sends an instruction for pushing a real-time video stream to a device access gateway, so that a real-time video captured by a monitoring device is sent to a streaming address of the current streaming server through the device access gateway, and the device access gateway returns an execution result of the instruction to the scheduled current central server, and when it is detected that the device access gateway successfully pushes the real-time video stream to the current streaming server, the scheduled current central server replies the streaming address to the client through the scheduled current access server, so that the client obtains the real-time video stream from the scheduled current streaming server according to the streaming address, and when the scheduled current access server receives the video stream, notifies the scheduled current access server that the video stream is sent to the client at the preset video stream stop time, and the scheduled current access server notifies the client that the video access server stops sending the video stream.
6. The access balancing server of claim 5, further comprising:
and the second scheduling module is used for scheduling the video access request to another access server when the current access server is detected to be down.
7. A central server, wherein the central server is connected to an equipment access gateway and at least one primary server, the equipment access gateway is connected to a monitoring device, and the central server comprises:
the scheduling response module is used for responding to the scheduling of a central balance server, and the scheduling of the central balance server is to schedule one access server of a plurality of access servers when the access balance server receives a video access request sent by a client; the video access request is forwarded to a scheduled current access server, so that the current access server authenticates the login of the client and sends the login request to the central balancing server;
the device comprises a streaming server scheduling module, a central server and a device access gateway, wherein the streaming server scheduling module is used for scheduling a streaming server when receiving a real-time video request sent by an access server, acquiring a stream receiving address of the current scheduled streaming server, and returning an execution result of an instruction to the scheduled central server by the device access gateway;
a push indication sending module, configured to send, to the device access gateway, an instruction for pushing a real-time video stream to the current streaming server, where the real-time video stream is shot by the monitoring device, the instruction includes the streaming receiving address, and a real-time video shot by the monitoring device is sent to the streaming receiving address of the current streaming server through the device access gateway;
a flow receiving address response module, configured to, when it is detected that the device access gateway successfully pushes the real-time video flow to the current flow server, respond the flow receiving address to a client through the access server, so that the client obtains the real-time video flow from the current flow server according to the flow receiving address, and the client logs in through authentication of the access server;
and the stop instruction sending module is used for sending an instruction for stopping pushing the real-time video stream to the current streaming server to the device access gateway when receiving a video access end notification sent by the current streaming server, wherein the video access end notification is generated by the current streaming server after the current streaming server detects that the client side disconnects the video access and the preset time elapses.
8. The central server according to claim 7, wherein the central server further comprises:
and the error code response module is used for responding an error code to the client through the access server when the fact that the equipment access gateway does not successfully push the real-time video stream to the current stream server is detected.
9. A video access system is characterized by comprising a client, an access equalization server, a central equalization server, a plurality of central servers, a device access gateway, a monitoring device, at least one access server and at least one stream server, wherein,
the client is used for initiating or stopping video access;
the access balancing server is used for receiving the video access request of the client and scheduling one scheduled current access server in the multiple access servers;
the access server is used for authenticating the login of the client and sending a real-time video request to the central balance server;
the central balance server is used for scheduling one scheduled current central server in the central servers and forwarding the real-time video request to the scheduled current central server;
the current central server is used for scheduling one scheduled current stream server in at least one stream server and sending a video stream pushing instruction to the equipment access gateway;
the equipment access gateway is used for pushing the real-time video stream shot by the monitoring equipment to a scheduled current stream server when receiving the video stream pushing instruction;
the stream server is configured to receive a connection request between the client and the device access gateway, send the real-time video stream pushed by the device access gateway to the client, and the device access gateway returns an execution result of the instruction to the scheduled current central server, and when it is detected that the device access gateway successfully pushes the real-time video stream to a stream receiving address of the current stream server, the scheduled current central server responds to the client with the stream receiving address through the scheduled current access server, so that the client obtains the real-time video stream from the scheduled current stream server according to the stream receiving address, and when the scheduled current central server receives a video access end notification sent by the scheduled current stream server, the stream server sends an instruction to the device access gateway to stop pushing the real-time video stream to the current stream server, where the video access end notification is generated after the scheduled current stream server detects that the client disconnects video access and passes a preset time.
10. The video access system of claim 9, wherein the access balancing server is further configured to schedule the video access request to another access server when the current access server is detected as down.
CN201710944116.4A 2017-09-30 2017-09-30 Video access method, access balance server, central server and system Expired - Fee Related CN107707939B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710944116.4A CN107707939B (en) 2017-09-30 2017-09-30 Video access method, access balance server, central server and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710944116.4A CN107707939B (en) 2017-09-30 2017-09-30 Video access method, access balance server, central server and system

Publications (2)

Publication Number Publication Date
CN107707939A CN107707939A (en) 2018-02-16
CN107707939B true CN107707939B (en) 2023-03-10

Family

ID=61184112

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710944116.4A Expired - Fee Related CN107707939B (en) 2017-09-30 2017-09-30 Video access method, access balance server, central server and system

Country Status (1)

Country Link
CN (1) CN107707939B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109391614B (en) * 2018-09-06 2021-09-07 视联动力信息技术股份有限公司 Method and device for calling monitoring data based on video network
CN110856020A (en) * 2019-11-04 2020-02-28 深圳海翼智新科技有限公司 Method and system for controlling terminal equipment to be accessed into camera device to push flow
CN113873301A (en) * 2021-09-22 2021-12-31 深圳市商汤科技有限公司 Video stream acquisition method and device, server and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1922877B1 (en) * 2005-09-07 2016-05-04 Cisco Technology, Inc. Optimizing data rate for video services
CN105872577A (en) * 2015-12-01 2016-08-17 乐视云计算有限公司 Method, device and system for obtaining video data

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1922877B1 (en) * 2005-09-07 2016-05-04 Cisco Technology, Inc. Optimizing data rate for video services
CN105872577A (en) * 2015-12-01 2016-08-17 乐视云计算有限公司 Method, device and system for obtaining video data

Also Published As

Publication number Publication date
CN107707939A (en) 2018-02-16

Similar Documents

Publication Publication Date Title
US20200336482A1 (en) Batch registration and configuration of devices
US20220270606A1 (en) Voice-based parameter assignment for voice-capturing devices
US11096051B2 (en) Connection establishment method, device, and system
CN102884819A (en) System and method for WLAN roaming traffic authentication
CN104580553B (en) Method and device for identifying network address translation equipment
CN107707939B (en) Video access method, access balance server, central server and system
US10425537B2 (en) Method, apparatus, and system for allocating phone number
CN106686592B (en) Network access method and system with authentication
CN111194035B (en) Network connection method, device and storage medium
CN105592180B (en) A kind of method and apparatus of Portal certification
WO2018014683A1 (en) Visual communication management method and device
CN107517138A (en) Equipment detection method and device
CN107294910B (en) Login method and server
CN112217910B (en) Video service access method, device, network equipment and storage medium
CN104754689B (en) home gateway access management method and system
CN114554251B (en) Multimedia data requesting method and device, storage medium and electronic device
CN111385324A (en) Data communication method, device, equipment and storage medium
CN105812138A (en) Logging-in processing method, processing device, user terminal, and logging-in system
CN111262864B (en) Method, device and system for sending live broadcast state data and storage medium
CN104639321B (en) A kind of identity identifying method, equipment and system
CN109600346B (en) Intercommunication method, central server, stream server and intercommunication system
CN114499965B (en) Internet surfing authentication method and system based on POP3 protocol
CN112994922B (en) Method and device for configuring identification
CN112105069B (en) Internet edge computing wireless network switching method and system
CN114205811A (en) AP access method, AP, client and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518000 Guangdong city of Shenzhen province Nanshan District Guangdong streets Changhong technology science and technology twelve South Road, building 19 floor

Applicant after: Shenzhen Oufei New Technology Co.,Ltd.

Address before: 518000 Guangdong city of Shenzhen province Nanshan District Guangdong streets Changhong technology science and technology twelve South Road, building 19 floor

Applicant before: SHENZHEN TEMOBI INNOVATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200429

Address after: 335000 No.7 road-0006, high tech Industrial Development Zone, Yingtan City, Jiangxi Province

Applicant after: Jiangxi oufijuneng IOT Technology Co.,Ltd.

Address before: 518000 Guangdong city of Shenzhen province Nanshan District Guangdong streets Changhong technology science and technology twelve South Road, building 19 floor

Applicant before: Shenzhen Oufei New Technology Co.,Ltd.

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20230310