CN113556585B - Video stream limiting method and device - Google Patents

Video stream limiting method and device Download PDF

Info

Publication number
CN113556585B
CN113556585B CN202110827071.9A CN202110827071A CN113556585B CN 113556585 B CN113556585 B CN 113556585B CN 202110827071 A CN202110827071 A CN 202110827071A CN 113556585 B CN113556585 B CN 113556585B
Authority
CN
China
Prior art keywords
monitoring center
flow
video stream
information
stream
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.)
Active
Application number
CN202110827071.9A
Other languages
Chinese (zh)
Other versions
CN113556585A (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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202110827071.9A priority Critical patent/CN113556585B/en
Publication of CN113556585A publication Critical patent/CN113556585A/en
Application granted granted Critical
Publication of CN113556585B publication Critical patent/CN113556585B/en
Active 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/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • 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
    • H04N21/26208Content 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 the scheduling operation being performed under constraints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a video stream limiting method and device, and relates to the technical field of networks and communication. One embodiment of the method comprises: receiving an opening request of a stream caller for a target video stream, and acquiring a flow direction passing path of the target video stream according to main information of the target video stream; acquiring current first open flow information of key positions, and processing the first open flow information based on priority sequencing and current limiting conditions of the key positions so as to transmit a target video stream to a monitoring center; and acquiring current second open flow information of the monitoring center, and processing the second open flow information based on priority sequencing and the current limiting condition of the monitoring center so as to transmit the target video stream to the stream caller. The embodiment designs a current limiting service component, flexibly defines the priority of various video streams according to the service attributes, and carries out current limiting based on the priority of the video streams instead of simply calling the service information of the open flow interface, thereby improving the accuracy of current limiting.

Description

Video stream limiting method and device
Technical Field
The invention relates to the technical field of network and communication in the Internet of things, in particular to a video stream limiting method and device.
Background
In the security service of the financial industry, in order to realize rapid security and timely co-check at the first time, the demand for checking key parts (such as network points) and historical monitoring records through a mobile terminal is increasingly strong, the pressure of service bandwidth is greatly increased in the process of checking videos, and at present, management is mainly performed on the basis of system calling times (mode one) or network flow control equipment (mode two).
The first method is as follows: the stream provider provides a flow control component, the stream caller applies for calling the video stream to the stream provider based on the flow control component, and the stream provider restricts the stream caller from requesting a stream interface under the action of the flow limiting service. The second method comprises the following steps: and installing flow control equipment at key positions, and when the flow of the key positions exceeds the limit, monitoring the flow through the equipment to limit the flow.
In the process of implementing the invention, the inventor finds that the prior art at least has the following problems:
1. the essence of the first mode is that the current limitation is carried out on the number of open stream requests, but not on the actual video stream of the requests, so that the accuracy of the current limitation is not high;
2. the essence of the second method is to perform traffic limitation on all video streams, but in an actual service scenario, each type of video stream has different priorities essentially due to service differences, and the current scheme cannot perform traffic limitation on video streams with different service attribute priorities. In addition, the flow control equipment needs to be purchased in the mode, and the purchasing cost is increased.
Disclosure of Invention
In view of this, embodiments of the present invention provide a video stream limiting method and apparatus, which can at least solve the problem of low accuracy or high cost of current limiting in the prior art.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a video stream restriction method, including: receiving an open flow request of a flow calling party to a target video flow, and acquiring a flow direction passing path of the target video flow according to main information of the target video flow; the flow direction passing path comprises a key part and a monitoring center; acquiring current first open flow information of key positions, and processing the first open flow information based on priority sequencing and current limiting conditions of the key positions so as to transmit the target video stream to a monitoring center; and acquiring current second open flow information of the monitoring center, and processing the second open flow information based on priority sequencing and the current limiting condition of the monitoring center so as to transmit the target video stream to the stream caller.
Optionally, before the receiving the streaming request of the streaming caller to the target video stream, the method further includes: transmitting the main information of each video stream to a current limiting service component for storage; the main information comprises key position information, subordinate monitoring center information, superior monitoring center information and video stream priority.
Optionally, the method further includes: and acquiring the service attribute of each video stream, and determining the priority of each video stream according to the preset priority sequence among different service attributes.
Optionally, before the receiving the streaming request of the streaming caller to the target video stream, the method further includes: transmitting the current open flow information and the total open flow quantity of each key part to a current limiting service component for storage; and transmitting the current open flow input and output flow of each monitoring center to the flow limiting service component for storage.
Optionally, the processing the first openflow information based on the priority ranking and the current limiting condition of the important part includes: counting the total flow of the current open flow according to the first open flow information, and combining the flow demand of the target video flow to obtain a first flow demand total amount; judging whether the total quantity of the first flow demand is greater than the open flow upper limit of a key part, and if not, not processing the first open flow information; if the judgment result is yes, one or more video streams with the lowest priority are screened out from the first open flow information to be closed.
Optionally, the screening out one or more video streams with the lowest priority from the first open flow information to perform closing processing includes: calculating a difference value between the total quantity of the first flow demand and the open flow upper limit, and screening out a video stream with the lowest priority from the first open flow information; judging whether the flow demand of the video stream is greater than or equal to the difference value, if so, closing the video stream; and if the judgment result is negative, accumulating the plurality of video streams according to the sequence of the priority levels from low to high until the accumulated flow demand is greater than or equal to the difference value, and closing the accumulated plurality of video streams.
Optionally, the screening out the video stream with the lowest priority from the first streaming information includes: screening out a video stream with the lowest priority from the first open flow information and the target video stream; and judging whether the video stream contains the target video stream, and if so, ending the operation flow of the target video stream.
Optionally, the flow calling party is a lower monitoring center; the second open flow information is processed based on the priority sorting and the current limiting condition of the monitoring center, and the processing comprises the following steps: acquiring current third switching information of a lower monitoring center inlet, and processing the third switching information based on priority sequencing and the current limiting condition of the lower monitoring center inlet so as to transmit the target video stream to a lower monitoring center outlet; and acquiring current fourth flow information of an outlet of the lower monitoring center, and processing the fourth flow information based on priority sequencing and the current limiting condition of the outlet of the lower monitoring center.
Optionally, the processing the third traffic information based on the priority ranking and the current limiting condition of the lower monitoring center inlet includes: counting the total flow of the current open flow according to the third open flow information, and combining the flow of the target video flow to obtain the total required flow of the second flow; judging whether the total quantity of the second traffic demand is greater than the upper opening limit of an inlet of a subordinate monitoring center, and if not, not processing the third opening information; if yes, screening one or more video streams with the lowest priority from the third switching information and carrying out closing processing.
Optionally, the method further includes: and under the condition that the flow calling party is the lower monitoring center, the cascade relation between the outlet of the lower monitoring center and the inlet of the upper monitoring center is not established.
Optionally, the flow calling party is a superior monitoring center; the acquiring current second open flow information of the monitoring center, and processing the second open flow information based on priority sequencing and the current limiting condition of the monitoring center includes: acquiring current third open flow information of an inlet of a subordinate monitoring center, and processing the third open flow information based on priority sequencing and a flow limiting condition of the inlet of the subordinate monitoring center so as to transmit the target video flow to an outlet of the subordinate monitoring center; acquiring current fourth streaming information of an outlet of a lower monitoring center, and processing the fourth streaming information based on priority sequencing and a current limiting condition of the outlet of the lower monitoring center so as to transmit the target video stream to an inlet of a higher monitoring center; acquiring current fifth open flow information of an inlet of a superior monitoring center, and processing the fifth open flow information based on the current limiting condition and priority sequencing of the inlet of the superior monitoring center so as to transmit the target video to an outlet of the superior monitoring center; and acquiring current sixth open flow information of an outlet of a superior monitoring center, and processing the sixth open flow information based on the current limiting condition and priority sequence of the outlet of the superior monitoring center.
Optionally, the method further includes: and under the condition that the flow calling party is the superior monitoring center, establishing a cascade relation between an outlet of the inferior monitoring center and an inlet of the superior monitoring center.
Optionally, the method further includes: determining the time for receiving the last open flow request, and calculating the interval between the time and the time for receiving the open flow request; judging whether the interval is greater than or equal to a preset interval or not, and if so, processing the streaming request; and if the judgment result is negative, processing the opening request after finishing processing the last opening request and updating the opening information of the key part and the monitoring center.
Optionally, the method further includes: in the process of processing the open flow request, if an exception occurs, a rollback operation is triggered to rollback the open flow information of the key part and the monitoring center to a state when the open flow request is not processed.
Optionally, the method further includes: and updating a video stream list to be fed back based on the target video stream.
To achieve the above object, according to another aspect of the embodiments of the present invention, there is provided a video stream restriction apparatus, including: the video stream information storage module is used for receiving an open stream request of a stream calling party to a target video stream and acquiring a flow direction passing path of the target video stream according to main information of the target video stream; the flow direction passing path comprises a key part and a monitoring center; the key part flow control module is used for acquiring current first open flow information of a key part and processing the first open flow information based on priority sequencing and the current limiting condition of the key part so as to transmit the target video stream to a monitoring center; and the monitoring center flow control module is used for acquiring current second open flow information of the monitoring center and processing the second open flow information based on priority sequencing and the flow limiting condition of the monitoring center so as to transmit the target video stream to the stream caller.
Optionally, the video stream information storage module is further configured to: transmitting the main information of each video stream to a current limiting service component for storage; the main information comprises key position information, subordinate monitoring center information, superior monitoring center information and video stream priority.
Optionally, the system further includes a priority calculating module, configured to: and acquiring the service attribute of each video stream, and determining the priority of each video stream according to the preset priority sequence among different service attributes.
Optionally, the video stream information storage module is further configured to: transmitting the current open flow information and the total open flow quantity of each key part to a current limiting service component for storage; and transmitting the current open flow input and output flow of each monitoring center to a flow limiting service component for storage.
Optionally, the focus site flow control module is configured to: counting the total flow of the current open flow according to the first open flow information, and combining the flow demand of the target video flow to obtain a first flow demand total amount; judging whether the total quantity of the first flow demand is greater than the open flow upper limit of a key part, and if not, not processing the first open flow information; if the judgment result is yes, one or more video streams with the lowest priority are screened out from the first open flow information to be closed.
Optionally, the focus site flow control module is configured to: calculating a difference value between the total quantity of the first flow demand and the open flow upper limit, and screening out a video stream with the lowest priority from the first open flow information; judging whether the flow demand of the video stream is greater than or equal to the difference value, if so, closing the video stream; and if the judgment result is negative, accumulating the plurality of video streams according to the sequence of the priority levels from low to high until the accumulated flow demand is greater than or equal to the difference value, and closing the accumulated plurality of video streams.
Optionally, the focus site flow control module is configured to: screening out the video stream with the lowest priority from the first open flow information and the target video stream; and judging whether the video stream contains the target video stream, and if so, ending the operation flow of the target video stream.
Optionally, the flow calling party is a lower monitoring center; the monitoring center flow control module is used for: acquiring current third open flow information of an inlet of a subordinate monitoring center, and processing the third open flow information based on priority sequencing and a flow limiting condition of the inlet of the subordinate monitoring center so as to transmit the target video flow to an outlet of the subordinate monitoring center; and acquiring current fourth flow information of an outlet of the lower monitoring center, and processing the fourth flow information based on priority sequencing and the current limiting condition of the outlet of the lower monitoring center.
Optionally, the monitoring center flow control module is configured to: counting the total flow of the current open flow according to the third open flow information, and combining the flow of the target video flow to obtain the total required flow of the second flow; judging whether the total quantity of the second traffic demand is greater than the upper opening limit of an inlet of a subordinate monitoring center, and if not, not processing the third opening information; if the judgment result is yes, one or more video streams with the lowest priority are screened out from the third switching stream information to be switched off.
Optionally, the method further includes: and under the condition that the flow calling party is the lower-level monitoring center, the cascade relation between the outlet of the lower-level monitoring center and the inlet of the upper-level monitoring center is not established.
Optionally, the flow calling party is a superior monitoring center; the monitoring center flow control module is used for: acquiring current third switching information of a lower monitoring center inlet, and processing the third switching information based on priority sequencing and the current limiting condition of the lower monitoring center inlet so as to transmit the target video stream to a lower monitoring center outlet; acquiring current fourth stream information of an outlet of a lower-level monitoring center, and processing the fourth stream information based on priority sequencing and a current limiting condition of the outlet of the lower-level monitoring center so as to transmit the target video stream to an inlet of a higher-level monitoring center; acquiring current fifth open flow information of an inlet of a superior monitoring center, and processing the fifth open flow information based on the current limiting condition and priority sequencing of the inlet of the superior monitoring center so as to transmit the target video to an outlet of the superior monitoring center; and acquiring current sixth open flow information of an outlet of a superior monitoring center, and processing the sixth open flow information based on the current limiting condition and priority sequence of the outlet of the superior monitoring center.
Optionally, the method further includes: and under the condition that the flow calling party is the superior monitoring center, establishing a cascade relation between an outlet of the inferior monitoring center and an inlet of the superior monitoring center.
Optionally, the system further includes an open flow request processing module, configured to: determining the time for receiving the last open flow request, and calculating the interval between the time and the time for receiving the open flow request; judging whether the interval is greater than or equal to a preset interval, and if so, processing the streaming request; and if the judgment result is negative, processing the opening request after finishing processing the last opening request and updating the opening information of the key part and the monitoring center.
Optionally, the system further includes an exception handling module, configured to: in the process of processing the open flow request, if an exception occurs, a rollback operation is triggered to rollback the open flow information of the key part and the monitoring center to a state when the open flow request is not processed.
Optionally, the method further includes: and updating a video stream list to be fed back based on the target video stream.
To achieve the above object, according to still another aspect of embodiments of the present invention, there is provided a video stream current limiting electronic device.
The electronic device of the embodiment of the invention comprises: one or more processors; a storage device, configured to store one or more programs, which when executed by the one or more processors, cause the one or more processors to implement any of the video stream restriction methods described above.
To achieve the above object, according to a further aspect of the embodiments of the present invention, there is provided a computer readable medium having a computer program stored thereon, the computer program, when executed by a processor, implements any of the video stream restriction methods described above.
According to the scheme provided by the invention, one embodiment of the invention has the following advantages or beneficial effects: after multi-stage stream opening, low-priority video streams to be closed are quickly calculated according to a higher-level monitoring center, a lower-level monitoring center, each key part and video streams with different priorities, so that flow analysis and carding are realized, meanwhile, the processing accuracy is improved, and the flow limiting cost is reduced.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic view of the business process of retrieving video streams from different monitoring centers;
FIG. 2 is a schematic main flow chart of a video stream limiting method according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating an alternative video stream restriction method according to an embodiment of the present invention;
FIGS. 4 (a) and (b) are schematic diagrams of the flow control module before and after processing the open flow information;
FIG. 5 is a flow chart illustrating an alternative video stream restriction method according to an embodiment of the present invention;
FIG. 6 is a flow chart illustrating an alternative video streaming method according to an embodiment of the present invention;
fig. 7 (a) and (b) are schematic diagrams before and after the lower monitoring center inlet flow control component processes the openflow information;
FIG. 8 is a flow chart illustrating an alternative video streaming method according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of modules in a current limiting service assembly;
fig. 10 is a schematic diagram of main blocks of a video stream current limiting apparatus according to an embodiment of the present invention;
FIG. 11 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
FIG. 12 is a schematic block diagram of a computer system suitable for use with a mobile device or server implementing an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The words involved in the scheme are explained as follows:
video streaming: the technology and process are that after a series of videos are compressed, the data are sent by network segments, and video and audio are transmitted on the network in real time for viewing.
Frame: the single image frame of the minimum unit in the motion picture is equivalent to each frame of the shot on the motion picture film.
Code rate: the video streaming encoding format brings the sharpness of video data transmitted per unit time.
The monitoring center: by adopting the encryption method of the single-key cryptosystem, the same key can be used for encrypting and decrypting information at the same time.
Cascading: in the financial industry scene, an organization presents upper and lower video monitoring centers, wherein the upper monitoring center needs to call and read video streams from the lower monitoring center due to management service.
The key parts are: in the financial industry, a certain place is managed as a concept by taking a key part in a system as a concept under the requirement of security management.
The priority of the flow is as follows: the service attribute of the video stream itself, and the video streams with different priorities need to be effectively managed according to the priority.
Referring to fig. 1, a schematic diagram of a business process of different monitoring centers for retrieving video streams is shown:
1. the subordinate monitoring center accesses the video stream, the flow direction of the video stream is a key position- > the subordinate monitoring center through a path, and the flow is limited by the exit limit of the key position, the entrance limit of the subordinate monitoring center and the exit limit of the subordinate monitoring center;
2. the superior monitoring center retrieves the video stream, the flow direction of the video stream is the key position- > the subordinate monitoring center- > the superior monitoring center through the path, and the flow is limited by the exit limit of the key position, the entrance limit of the subordinate monitoring center, the exit limit of the subordinate monitoring center, the entrance limit of the superior monitoring center and the exit limit of the superior monitoring center.
Referring to fig. 2, a main flowchart of a video stream restriction method according to an embodiment of the present invention is shown, including the following steps:
s201: receiving an open flow request of a flow calling party to a target video flow, and acquiring a flow direction passing path of the target video flow according to main information of the target video flow; the flow direction passing path comprises a key part and a monitoring center;
s202: acquiring current first open flow information of key positions, and processing the first open flow information based on priority sequencing and current limiting conditions of the key positions so as to transmit the target video stream to a monitoring center;
s203: and acquiring current second open flow information of the monitoring center, and processing the second open flow information based on priority sequencing and the current limiting condition of the monitoring center so as to transmit the target video stream to the stream caller.
In the above embodiment, for step S101, the present solution is applicable to a scene that needs to monitor a video stream, such as a bank, a telecom/mobile/unicom, etc. that has a large number of similar organizations all over the country, where the video stream is a video stream in a monitoring system, including but not limited to a video captured by a monitoring device. And the scheme does not relate to the storage of the content of the video stream, and only relates to the storage of the state of each video stream in the stream control component.
Before each streaming, the system transmits the main information of each video stream to the current limiting service component, such as key position information, lower level monitoring center information, upper level monitoring center information, video stream priority and code rate.
The flow-restricting service assembly includes a plurality of flow control assemblies, with different flow control assemblies being disposed on different stage mechanisms. The current limiting service component itself holds the following core information:
1. all video stream information currently in an open stream state;
2. the total flow size and the open flow information (arranged from small to large according to the priority) of all the current key points. For example, although the video streams for routine inspection and the video streams for emergency alarm (such as fire and robbery) are both video streams, the video streams have different service attributes and therefore different priorities, and when the traffic is insufficient or reaches the upper limit, the video stream with the lower priority is preferentially closed.
3. The sizes of the open-flow inlet and outlet flows of all the current monitoring centers (the flows are arranged from small to large according to the priority).
When the stream caller initiates an open stream request for the target video stream, the open stream request enters the current limiting service component. The flow-limiting service component firstly checks a flow direction passing path of a target video stream according to main information of the target video stream, wherein the flow direction passing path comprises a flow control component passing a key part, an inlet flow control component of a lower monitoring center, an outlet flow control component of the lower monitoring center, an inlet flow control component of a higher monitoring center (under the condition of cascade), and an outlet flow control component of the higher monitoring center (under the condition of cascade).
For step S102, the key portion flow control component calculates the sum of the existing video streams at the current key portion to obtain the current open stream flow, and obtains the first flow demand total by combining the flow with the target video stream. And if the total quantity of the first flow demand exceeds the upper opening flow limit of the flow control assembly of the key position, screening the video stream with the lowest priority level from the existing video streams to be used as the video stream to be closed.
Embodiment one, see fig. 3 for a description of:
s301: calculating a difference value between the total quantity of the first flow demand and the open flow upper limit, and screening out the video stream with the lowest priority from the first open flow information;
s302: judging whether the flow demand of the video stream is greater than or equal to the difference value, if so, closing the video stream;
s303: and if the judgment result is negative, accumulating the plurality of video streams according to the sequence of the priority levels from low to high until the accumulated flow demand is greater than or equal to the difference value, and closing the accumulated plurality of video streams.
Referring to fig. 4 (a), 3 paths of flow are opened at the key point a, which are 4M, 1M and 2M, respectively, and the bandwidth is 7M/S through accumulation. The target video stream is 8M, and the sum of the target video stream and the target video stream is 15M. However, the upper limit of the open stream of the important part a is 12M, if the 8M stream needs to be opened, part of the existing video stream needs to be closed, and 1 path of 4M video stream is closed according to priority, as shown in fig. 4 (b). In some cases, it may be necessary to close multiple video streams, for example, when the newly opened video stream is greater than 9M and less than or equal to 10M, such as 10M and 9.5M, 1 way of 4M video stream and 2 ways of 1M video stream need to be closed. If the newly opened video stream is larger than 10M and smaller than 12M, all the currently opened video streams need to be closed.
In this embodiment, in order to open a target video stream, only a video stream having the lowest priority is selected from the open information existing in the important part, and the closing process is performed.
Example two, see fig. 5 for a schematic representation:
s501: calculating a difference value between the total quantity of the first flow demand and the open flow upper limit, and screening out the video stream with the lowest priority from the first open flow information and the target video stream;
s502: judging whether the video stream contains the target video stream, if so, ending the operation flow of the target video stream, otherwise, continuing the subsequent operation;
s503: judging whether the flow demand of the video stream is greater than or equal to the difference value, if so, closing the video stream;
s504: and if the judgment result is negative, accumulating the plurality of video streams according to the sequence of the priority levels from low to high until the accumulated flow demand is greater than or equal to the difference value, and closing the accumulated plurality of video streams.
In some cases, the priority of the target video stream is also lower, even lower than the video stream with the lowest priority in the existing streaming information of the important part, and at this time, the operation flow of the target video stream is ended. For example, the existing video stream of the important part is an emergency alarm (such as fire and robbery) video stream, the target video stream is a video stream of daily inspection, and the original video stream cannot be closed at this time.
Furthermore, the flow control component of the key part can also transmit the video stream to be closed to the stream caller in a list form, and inform the stream caller of the information of other video streams closed by the open flow target video stream. Or before/after closing the video stream, the information of the current video stream is informed to the stream caller in the form of a list.
In step S103, according to fig. 1, no matter the lower monitoring center is looking for the video stream or the upper monitoring center is looking for the video stream, the target video stream passes through the lower monitoring center, so that the flow control component at the inlet of the lower monitoring center is determined first.
Example, see fig. 6 for an illustration:
s601: acquiring current third open flow information of an inlet of a lower monitoring center, counting the total flow of current open flow according to the third open flow information, and combining the flow of the target video flow to obtain a second flow demand total amount;
s602: judging whether the total quantity of the second traffic demand is greater than the upper opening limit of an inlet of a subordinate monitoring center, and if not, not processing the third opening information;
s603: if yes, screening one or more video streams with the lowest priority from the third switching information and carrying out closing processing.
The flow control component of the same-point part calculates the sum of the existing video flows on the inlet of the current subordinate monitoring center to obtain the current opened flow, and obtains the total quantity of the second flow demand by combining the flow of the target video flow. And if the total required amount of the second flow exceeds the upper opening limit of the inlet flow control assembly of the lower monitoring center, screening the video flow with the lowest priority level from the existing video flows to be used as the video flow to be closed. Further, the video stream with the lowest priority level may be screened out from the existing video stream and the target video stream as the video stream to be closed.
Referring to fig. 7 (a), the lower monitoring center B opens 3 flows currently, which are 4M, 1M, and 2M, respectively, and the bandwidth is 7M/S by accumulation. The target video stream is 8M, and the sum of the target video stream and the 8M is 15M. However, the upper limit of the open flow at the entrance of the current lower monitoring center is 14M, if 8M flows need to be opened, part of the existing video flows need to be closed, and 1 path of 4M video flows need to be closed according to priority, see fig. 7 (b). In some cases, it may be necessary to close multiple video streams, for example, when the newly opened video stream is greater than 12M and less than or equal to 13M, such as 13M and 12.5M, 1 way of 5M video stream and 2 ways of 1M video stream need to be closed. If the newly opened video stream is larger than 13M and smaller than 15M, all opened video streams need to be closed.
Further, the lower monitoring center inlet flow control component can also transmit the video stream to be closed to the stream caller in a list form, and inform the stream caller of other video stream information closed by the open flow target video stream. Or before/after closing the video stream, the information of the current video stream is informed to the stream caller in the form of a list.
Similarly, for the flow control component at the outlet of the subordinate monitoring center, the existing fourth stream information sum on the outlet of the current subordinate monitoring center is calculated, and the total flow demand is calculated by combining the flow demand of the target video stream. And if the video stream exceeds the upper open stream limit, the video stream with lower priority level needs to be screened from the fourth stream information (and the target video stream), and a video stream list to be closed of the current monitoring center is returned.
In the above, in the case that the flow caller is only the lower level monitoring center, for the scenario that the flow caller is the upper level monitoring center, the limitation of the inlet and the outlet of the upper level monitoring center needs to be passed, specifically, see fig. 8:
s801: acquiring current third switching information of a lower monitoring center inlet, and processing the third switching information based on priority sequencing and the current limiting condition of the lower monitoring center inlet so as to transmit the target video stream to a lower monitoring center outlet;
s802: acquiring current fourth streaming information of an outlet of a lower monitoring center, and processing the fourth streaming information based on priority sequencing and a current limiting condition of the outlet of the lower monitoring center so as to transmit the target video stream to an inlet of a higher monitoring center;
s803: acquiring current fifth open flow information of an inlet of a superior monitoring center, and processing the fifth open flow information based on the current limiting condition and priority sequencing of the inlet of the superior monitoring center so as to transmit the target video to an outlet of the superior monitoring center;
s804: and acquiring current sixth open flow information of an outlet of a superior monitoring center, and processing the sixth open flow information based on the current limiting conditions and the priority sequence of the outlet of the superior monitoring center.
Under the condition that the flow calling party is a lower monitoring center, the cascade relation between the outlet of the lower monitoring center and the inlet of a higher monitoring center is not established, but if the flow calling party is the higher monitoring center, the cascade relation exists between the outlet of the lower monitoring center and the inlet of the higher monitoring center.
The method provided by the embodiment of the invention designs a current limiting service component, flexibly defines the priority of various video streams according to the service attributes, and limits the current based on the priority of the video streams instead of simply calling the service information of the open flow interface, thereby realizing the rapid analysis and carding of the flow, improving the processing accuracy and reducing the current limiting cost.
In the scheme, the key parts are similar to the central data structure, and the core work comprises the following aspects:
1. an appropriate data structure and storage mechanism is selected for storage and retrieval.
2. When an operation step in the core flow is abnormal, for example, an open flow request is lost, all the previous involved operations need to be rolled back, so as to roll back the open flow information of the key part and the monitoring center to the state of not processing the open flow request, and if necessary, the re-processing of the open flow request can be abandoned.
3. The problem of inconsistent data in a high-speed switching flow scene is solved: if two open flow requests are received in a very short time, the first open flow request may not be processed completely when the second open flow request is processed, that is, the open flow information of the important part and the monitoring center is not updated completely, and the second open flow request may be processed inaccurately, and the two open flow requests may collide with each other. In this case, after the first open flow request is processed and the open flow information is updated, the second open flow request may be processed, or the second open flow request may not be processed.
The maintenance of data consistency is crucial to the flow control component for storing video stream information and calculating a flow control rule, and the efficiency of high-frequency switching stream is also considered.
Referring to fig. 9, the current limiting service assembly mainly includes four modules: the system comprises a key part flow control module, a monitoring center flow control module, a video flow information storage module and a priority calculation module:
1. and the key part flow control module is used for determining key part information in the main information of the target video stream when the stream calling party initiates an open stream request for the target video, calling the video stream information storage module to compare the flow required by the target video stream, and calling the priority ordering module to preferentially close the video stream with the lowest priority when the flow exceeds the flow.
2. And the monitoring center flow control module is used for determining monitoring center information in the main information of the target video stream when a stream calling party initiates an open stream request for the target video, calling the video stream information storage module to compare the flow rate required by the target video stream, and calling the priority ordering module to preferentially close the video stream with the lowest priority when the flow rate exceeds the flow rate.
3. And the video stream information storage module stores various video stream information and merges the video stream information according to the monitoring center and the key parts.
4. The priority calculation module is used for quickly sequencing the video streams according to the priority of the video streams;
5. the sorting module belongs to an auxiliary module, and a very mature stream priority sorting algorithm is available at present.
Referring to fig. 10, a schematic diagram of main modules of a video stream current limiting apparatus 1000 according to an embodiment of the present invention is shown, including:
a video stream information storage module 1001, configured to receive an open request of a stream caller for a target video stream, and obtain a flow direction passing path of the target video stream according to main information of the target video stream; the flow direction passing path comprises a key part and a monitoring center;
the key part flow control module 1002 is configured to acquire current first open flow information of a key part, process the first open flow information based on priority ordering and a current limiting condition of the key part, and transmit the target video stream to a monitoring center;
and the monitoring center flow control module 1003 is configured to acquire current second open flow information of the monitoring center, and process the second open flow information based on priority ordering and a flow limiting condition of the monitoring center, so as to transmit the target video stream to the stream caller.
In the apparatus for implementing the present invention, the video stream information storage module 1001 is further configured to:
transmitting the main information of each video stream to a current limiting service component for storage; the main information comprises key position information, subordinate monitoring center information, superior monitoring center information and video stream priority.
The device also comprises a priority calculating module used for:
and acquiring the service attribute of each video stream, and determining the priority of each video stream according to the preset priority sequence among different service attributes.
In the apparatus for implementing the present invention, the video stream information storage module 1001 is further configured to:
transmitting the current open flow information and the total open flow quantity of each key part to a current limiting service component for storage; and
and transmitting the current open flow inlet and outlet flow of each monitoring center to a flow limiting service component for storage.
In the device for implementing the present invention, the key part flow control module 1002 is configured to:
counting the total flow of the current open flow according to the first open flow information, and combining the flow demand of the target video flow to obtain a first flow demand total amount;
judging whether the total quantity of the first flow demand is greater than the open flow upper limit of a key part, and if not, not processing the first open flow information;
if the judgment result is yes, one or more video streams with the lowest priority are screened out from the first open flow information to be closed.
In the device for implementing the present invention, the key part flow control module 1002 is configured to:
calculating a difference value between the total quantity of the first flow demand and the open flow upper limit, and screening out a video stream with the lowest priority from the first open flow information;
judging whether the flow demand of the video stream is greater than or equal to the difference value, if so, closing the video stream;
and if the judgment result is negative, accumulating the plurality of video streams according to the sequence of the priority levels from low to high until the accumulated flow demand is greater than or equal to the difference value, and closing the accumulated plurality of video streams.
In the device for implementing the present invention, the key part flow control module 1002 is configured to:
screening out a video stream with the lowest priority from the first open flow information and the target video stream;
and judging whether the video stream contains the target video stream, and if so, ending the operation flow of the target video stream.
In the implementation device of the invention, a flow calling party is a lower monitoring center;
the monitoring center flow control module 1003 is configured to: acquiring current third switching information of a lower monitoring center inlet, and processing the third switching information based on priority sequencing and the current limiting condition of the lower monitoring center inlet so as to transmit the target video stream to a lower monitoring center outlet;
and acquiring current fourth flow information of an outlet of the lower monitoring center, and processing the fourth flow information based on priority sequencing and the current limiting condition of the outlet of the lower monitoring center.
In the implementation apparatus of the present invention, the monitoring center flow control module 1003 is configured to:
counting the total flow of the current open flow according to the third open flow information, and combining the flow of the target video flow to obtain the total required flow of the second flow;
judging whether the total quantity of the second traffic demand is greater than the upper opening limit of an inlet of a subordinate monitoring center, and if not, not processing the third opening information;
if the judgment result is yes, one or more video streams with the lowest priority are screened out from the third switching stream information to be switched off.
The implementation device of the invention also comprises: and under the condition that the flow calling party is the lower-level monitoring center, the cascade relation between the outlet of the lower-level monitoring center and the inlet of the upper-level monitoring center is not established.
In the implementation device of the invention, a flow calling party is a superior monitoring center;
the monitoring center flow control module 1003 is configured to:
acquiring current third switching information of a lower monitoring center inlet, and processing the third switching information based on priority sequencing and the current limiting condition of the lower monitoring center inlet so as to transmit the target video stream to a lower monitoring center outlet;
acquiring current fourth streaming information of an outlet of a lower monitoring center, and processing the fourth streaming information based on priority sequencing and a current limiting condition of the outlet of the lower monitoring center so as to transmit the target video stream to an inlet of a higher monitoring center;
acquiring current fifth open flow information of an inlet of a superior monitoring center, and processing the fifth open flow information based on the current limiting condition and priority sequencing of the inlet of the superior monitoring center so as to transmit the target video to an outlet of the superior monitoring center;
and acquiring current sixth open flow information of an outlet of a superior monitoring center, and processing the sixth open flow information based on the current limiting condition and priority sequence of the outlet of the superior monitoring center.
The device for implementing the invention also comprises: and under the condition that the flow calling party is the superior monitoring center, establishing a cascade relation between an outlet of the inferior monitoring center and an inlet of the superior monitoring center.
The implementation device of the invention also comprises an open flow request processing module which is used for:
determining the time for receiving the last open flow request, and calculating the interval between the time and the time for receiving the open flow request;
judging whether the interval is greater than or equal to a preset interval, and if so, processing the streaming request;
and if the judgment result is negative, processing the opening request after finishing processing the last opening request and updating the opening information of the key part and the monitoring center.
The device for implementing the invention also comprises an exception handling module which is used for:
in the process of processing the open flow request, if an exception occurs, a rollback operation is triggered to rollback the open flow information of the key part and the monitoring center to a state when the open flow request is not processed.
The implementation device of the invention also comprises: and updating a video stream list to be fed back based on the target video stream.
In addition, the detailed implementation of the device in the embodiment of the present invention has been described in detail in the above method, so that the repeated description is not repeated here.
Fig. 11 shows an exemplary system architecture 1100 to which embodiments of the invention may be applied, comprising terminal devices 1101, 1102, 1103, a network 1104 and a server 1105 (by way of example only).
The terminal devices 1101, 1102, 1103 may be various electronic devices having a display screen and supporting web browsing, and installed with various communication client applications, and users may interact with the server 1105 via the network 1104 using the terminal devices 1101, 1102, 1103 to receive or send messages or the like.
The network 1104 serves as a medium to provide communication links between the terminal devices 1101, 1102, 1103 and the server 1105. Network 1104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The server 1105 may be a server providing various services, and is configured to receive an open flow request, filter a video stream with the lowest priority and shut down the operation, compared with an open flow demand and an open flow upper limit.
It should be noted that the method provided by the embodiment of the present invention is generally executed by the server 1105, and accordingly, the apparatus is generally disposed in the server 1105.
It should be understood that the number of terminal devices, networks, and servers in fig. 11 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 12, shown is a block diagram of a computer system 1200 suitable for use with a terminal device implementing embodiments of the present invention. The terminal device shown in fig. 12 is only an example, and should not bring any limitation to the functions and the use range of the embodiment of the present invention.
As shown in fig. 12, the computer system 1200 includes a Central Processing Unit (CPU) 1201, which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 1202 or a program loaded from a storage section 1208 into a Random Access Memory (RAM) 1203. In the RAM 1203, various programs and data necessary for the operation of the system 1200 are also stored. The CPU 1201, ROM 1202, and RAM 1203 are connected to each other by a bus 1204. An input/output (I/O) interface 1205 is also connected to bus 1204.
The following components are connected to the I/O interface 1205: an input section 1206 including a keyboard, a mouse, and the like; an output portion 1207 including a display device such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 1208 including a hard disk and the like; and a communication section 1209 including a network interface card such as a LAN card, a modem, or the like. The communication section 1209 performs communication processing via a network such as the internet. A driver 1210 is also connected to the I/O interface 1205 as needed. A removable medium 1211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is mounted on the drive 1210 as necessary, so that a computer program read out therefrom is mounted into the storage section 1208 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 1209, and/or installed from the removable medium 1211. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 1201.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor comprises a video stream information storage module, a key part flow control module and a monitoring center flow control module. The names of these modules do not in some cases form a limitation on the modules themselves, and for example, the monitoring center flow control module may also be described as an "upper and lower level monitoring center flow control module".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not assembled into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise:
receiving an open flow request of a flow calling party to a target video flow, and acquiring a flow direction passing path of the target video flow according to main information of the target video flow; the flow direction passing path comprises a key part and a monitoring center;
acquiring current first open flow information of key parts, and processing the first open flow information based on priority sequencing and current limiting conditions of the key parts so as to transmit the target video stream to a monitoring center;
and acquiring current second open flow information of the monitoring center, and processing the second open flow information based on priority sequencing and the current limiting condition of the monitoring center so as to transmit the target video stream to the stream caller.
According to the technical scheme of the embodiment of the invention, a current-limiting service component is designed, the priority of various video streams is flexibly defined according to the service attribute, and after multi-stage stream opening, the low-priority video stream to be closed is calculated according to a higher-level monitoring center, a lower-level monitoring center, each key part and the video streams with different priorities, so that the rapid analysis of the flow of the video stream is realized.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (15)

1. A method for limiting video streaming, comprising:
receiving an open flow request of a flow calling party to a target video flow, and acquiring a flow direction passing path of the target video flow according to main information of the target video flow; the flow direction passing path comprises a key part and a monitoring center, and the monitoring center is one of a subordinate monitoring center, a subordinate monitoring center and a superior monitoring center;
acquiring current first open flow information of a key part, counting the total flow of current open flow according to the first open flow information, and combining the flow demand of the target video flow to obtain the total flow demand of the first flow; judging whether the total quantity of the first flow demand is greater than the open flow upper limit of a key part, and if the judgment result is negative, not processing the first open flow information; if the judgment result is yes, screening one or more video streams with the lowest priority from the first open flow information to carry out closing processing; transmitting the target video stream to a monitoring center;
acquiring current third switching information of a lower monitoring center inlet, and processing the third switching information based on priority sequencing and the current limiting condition of the lower monitoring center inlet so as to transmit the target video stream to a lower monitoring center outlet; acquiring current fourth switching information of an outlet of a lower monitoring center, and processing the fourth switching information based on priority sequencing and the current limiting condition of the outlet of the lower monitoring center;
under the condition that the stream caller is a lower monitoring center, after the fourth stream information is processed, the target video stream is transmitted to the stream caller; or
Under the condition that the stream calling party is a superior monitoring center, after the fourth streaming information is processed, the target video stream is transmitted to an inlet of the superior monitoring center; acquiring current fifth open flow information of an inlet of a superior monitoring center, and processing the fifth open flow information based on the current limiting condition and priority sequencing of the inlet of the superior monitoring center so as to transmit the target video to an outlet of the superior monitoring center; acquiring current sixth open flow information of an upper monitoring center outlet, and processing the sixth open flow information based on the current limiting condition and priority sequence of the upper monitoring center outlet so as to transmit the target video stream to the stream caller.
2. The method according to claim 1, further comprising, before said receiving an open stream request for a target video stream from a stream caller:
transmitting the main information of each video stream to a current limiting service component for storage; the main information includes key position information, subordinate monitoring center information, superior monitoring center information, and video stream priority.
3. The method of claim 2, further comprising:
and acquiring the service attribute of each video stream, and determining the priority of each video stream according to the preset priority sequence among different service attributes.
4. The method according to claim 2 or 3, wherein before receiving the open stream request of the stream caller for the target video stream, the method further comprises:
transmitting the current open flow information and the total open flow quantity of each key part to a current limiting service component for storage; and
and transmitting the current open flow inlet and outlet flow of each monitoring center to a flow limiting service component for storage.
5. The method according to claim 1, wherein the step of screening out one or more video streams with the lowest priority from the first open stream information for shutdown processing comprises:
calculating a difference value between the total quantity of the first flow demand and the open flow upper limit, and screening out a video stream with the lowest priority from the first open flow information;
judging whether the flow demand of the video stream is greater than or equal to the difference value, if so, closing the video stream;
and if the judgment result is negative, accumulating the plurality of video streams according to the sequence of the priority levels from low to high until the accumulated flow demand is greater than or equal to the difference value, and closing the accumulated plurality of video streams.
6. The method of claim 5, wherein the step of screening out the video stream with the lowest priority from the first streaming information comprises:
screening out a video stream with the lowest priority from the first open flow information and the target video stream;
and judging whether the video stream contains the target video stream, and if so, ending the operation flow of the target video stream.
7. The method according to claim 1, wherein the processing the third open flow information based on the priority ordering and the flow restriction condition of the subordinate monitoring center entrance comprises:
counting the total flow of the current open flow according to the third open flow information, and combining the flow of the target video flow to obtain the total required flow of the second flow;
judging whether the total quantity of the second traffic demand is greater than the upper opening limit of an inlet of a subordinate monitoring center, and if not, not processing the third opening information;
if yes, screening one or more video streams with the lowest priority from the third switching information and carrying out closing processing.
8. The method of claim 1, further comprising: and under the condition that the flow calling party is the lower-level monitoring center, the cascade relation between the outlet of the lower-level monitoring center and the inlet of the upper-level monitoring center is not established.
9. The method of claim 1, further comprising: and under the condition that the flow calling party is the superior monitoring center, establishing a cascade relation between an outlet of the inferior monitoring center and an inlet of the superior monitoring center.
10. The method of claim 1, further comprising:
determining the time for receiving the last open flow request, and calculating the interval between the time and the time for receiving the open flow request;
judging whether the interval is greater than or equal to a preset interval, and if so, processing the streaming request;
and if the judgment result is negative, processing the opening request after finishing processing the last opening request and updating the opening information of the key part and the monitoring center.
11. The method of claim 1, further comprising:
in the process of processing the open flow request, if an exception occurs, a rollback operation is triggered to rollback the open flow information of the key part and the monitoring center to a state when the open flow request is not processed.
12. The method of claim 1, further comprising: and updating a video stream list to be fed back based on the target video stream.
13. A video stream restriction apparatus, comprising:
the video stream information storage module is used for receiving an opening request of a stream calling party for a target video stream and acquiring a flow direction passing path of the target video stream according to main information of the target video stream; the flow direction passing path comprises a key part and a monitoring center, and the monitoring center is one of a subordinate monitoring center, a subordinate monitoring center and a superior monitoring center;
the key part flow control module is used for acquiring current first open flow information of a key part, counting the total flow of the current open flow according to the first open flow information, and combining the flow demand of the target video flow to obtain the total flow demand; judging whether the total quantity of the first flow demand is greater than the open flow upper limit of a key part, and if not, not processing the first open flow information; if the judgment result is yes, screening one or more video streams with the lowest priority from the first open flow information to carry out closing processing; to stream the target video to a monitoring center;
the monitoring center flow control module is used for acquiring current third opening flow information of a lower-level monitoring center inlet, and processing the third opening flow information based on priority sequencing and the flow limiting condition of the lower-level monitoring center inlet so as to transmit the target video flow to a lower-level monitoring center outlet; acquiring current fourth switching information of an outlet of a lower monitoring center, and processing the fourth switching information based on priority sequencing and the current limiting condition of the outlet of the lower monitoring center;
under the condition that the stream caller is a lower monitoring center, after the fourth stream information is processed, the target video stream is transmitted to the stream caller; or
Under the condition that the stream calling party is a superior monitoring center, after the fourth streaming information is processed, the target video stream is transmitted to an inlet of the superior monitoring center; acquiring current fifth open flow information of an inlet of a superior monitoring center, and processing the fifth open flow information based on the current limiting condition and priority sequencing of the inlet of the superior monitoring center so as to transmit the target video to an outlet of the superior monitoring center; acquiring current sixth open flow information of an upper monitoring center outlet, and processing the sixth open flow information based on the current limiting condition and priority sequence of the upper monitoring center outlet so as to transmit the target video stream to the stream caller.
14. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-12.
15. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-12.
CN202110827071.9A 2021-07-21 2021-07-21 Video stream limiting method and device Active CN113556585B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110827071.9A CN113556585B (en) 2021-07-21 2021-07-21 Video stream limiting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110827071.9A CN113556585B (en) 2021-07-21 2021-07-21 Video stream limiting method and device

Publications (2)

Publication Number Publication Date
CN113556585A CN113556585A (en) 2021-10-26
CN113556585B true CN113556585B (en) 2022-11-04

Family

ID=78103933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110827071.9A Active CN113556585B (en) 2021-07-21 2021-07-21 Video stream limiting method and device

Country Status (1)

Country Link
CN (1) CN113556585B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114363263A (en) * 2021-12-24 2022-04-15 深圳市紫金支点技术股份有限公司 Bandwidth control method of financial service network and related equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10334314B1 (en) * 2017-12-22 2019-06-25 Hulu, LLC Preload-supported concurrent video stream limiting
CN109982034B (en) * 2017-12-28 2021-02-02 杭州海康威视系统技术有限公司 Access request processing method and device in video monitoring system
CN112770145B (en) * 2020-12-31 2023-07-25 罗普特科技集团股份有限公司 Scheduling method and system for video monitoring platform

Also Published As

Publication number Publication date
CN113556585A (en) 2021-10-26

Similar Documents

Publication Publication Date Title
EP3072260B1 (en) Methods, systems, and computer readable media for a network function virtualization information concentrator
US10104442B2 (en) Social delivery of IPTV streams
US10499214B2 (en) Data usage analytics application for dynamic control of data usage on a client device
US8904451B2 (en) Systems for prioritizing video processing events based on availability of media file and agent to process the event type
CN113517985B (en) File data processing method and device, electronic equipment and computer readable medium
CN113556585B (en) Video stream limiting method and device
US20240031135A1 (en) Key broker for a network monitoring device, and applications thereof
US11483141B2 (en) Key broker for a network monitoring device, and applications thereof
Hassan et al. A scalable and elastic cloud-assisted publish/subscribe model for IPTV video surveillance system
CN109857524A (en) Streaming computing method, apparatus, equipment and computer readable storage medium
CN113627412A (en) Target area detection method, target area detection device, electronic equipment and medium
CN112837155A (en) Method and device for registering and executing intelligent contracts in block chain
CN113760634A (en) Data processing method and device
CN115589489B (en) Video transcoding method, device, equipment, storage medium and video on demand system
US9537707B2 (en) System for self organization of an internet protocol television grid
CN110247847B (en) Method and device for back source routing between nodes
CN116192752A (en) Service flow control method, device, electronic equipment and storage medium
CN115906177A (en) Aggregate security intersection method and device, electronic equipment and storage medium
CN114039983A (en) Server equalization method, equipment and medium for video call
CN111770121A (en) Method and device for service access based on directional flow
CN112788075A (en) Business service monitoring method and device
CN114884903B (en) Data processing method, field programmable gate array chip and network security device
CN113096298B (en) Network voting method and device
CN110366009A (en) The recognition methods of multimedia resource request and device
US11750664B2 (en) System for content triggered high-speed data service delivery independent of media delivery mechanisms

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant