Video stream pushing method and system, computer equipment and readable storage medium

In the video push system, the video push terminal sends subscription information to the video server, monitors the subscription status of video data, and only sends video data when there is a subscription request. This solves the problem of resource waste caused by long-term unsubscription of video data and achieves Efficient transmission of video push streaming.

CN118612485APending Publication Date: 2024-09-06NEOLIX TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410675026.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing video streaming technology in point-to-many video transmission causes video data to be unsubscribed for a long time, occupying server storage resources and bandwidth, resulting in resource waste.

Method used

The video push end monitors the subscription status by sending subscription information to the video server, and only sends video data when it is determined that there is a subscription request to avoid invalid storage and bandwidth usage.

Benefits of technology

It effectively avoids the ineffective occupation of video storage resources and transmission bandwidth, ensures that video streaming is only performed when there is a subscription requirement, and reduces resource waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118612485A
    Figure CN118612485A
Patent Text Reader

Abstract

The invention provides a video stream pushing method and system, computer equipment and a readable storage medium, and the method comprises the steps that a video stream pushing end sends subscription information of a target stream pushing video to a video server; when the video server receives a video subscription request sent by a video subscription end for the target plug-flow video, the video server updates subscription information and returns the updated subscription information to the video plug-flow end; and when the video stream pushing end receives the updated subscription information, the video stream pushing end sends the target stream pushing video to the video subscription end through the video server. By adopting the method, invalid occupation and waste of video storage resources, transmission bandwidth and traffic are avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a video streaming method, system, computer equipment and readable storage medium. Background Art

[0002] Video transmission is a very common technology, and it has good applications and practices in many scenarios. Video transmission technology is used in applications such as remote audio and video conferencing, cloud games, live broadcasts, and security monitoring. At present, there are two common solutions for video transmission. The first is a point-to-point P2P solution, and the second is a solution forwarded by a server, that is, one party pushes the data stream and multiple parties subscribe to the data stream. In order to realize a point-to-multipoint video transmission solution where one party pushes the stream and multiple parties receive the stream, the existing technology usually sends the video data to the server immediately after the video push end obtains the video data, and uses the server as a video storage medium for video storage. After the video subscription end requests video data from the server, the server sends the stored video data to the video subscription end to realize video streaming.

[0003] However, the study found that since video data is usually massive and requires a large storage space and transmission bandwidth, when the above method is used for video transmission, after the video push end sends the video data to the server for storage, if there is no video subscription end requesting the video data from the server for a long time, then the video data will occupy too much storage resources and storage space of the video server for a long time, resulting in a waste of storage resources. In addition, if there is no video subscription end requesting the video data from the server, then the large amount of bandwidth and traffic consumed by the video push end to send the video data to the server will become invalid, resulting in a waste of transmission bandwidth and traffic. Summary of the invention

[0004] In view of this, an object of the present invention is to provide a video streaming method, system, computer device and readable storage medium to avoid ineffective occupation and waste of video storage resources, transmission bandwidth and traffic.

[0005] In a first aspect, an embodiment of the present application provides a video streaming method, which is applied to a video streaming system, wherein the system includes a video streaming terminal and a video server, and the method includes:

[0006] The video streaming end sends subscription information of the target streaming video to the video server;

[0007] When the video server receives a video subscription request sent by a video subscription end for the target streaming video, the video server updates the subscription information and returns the updated subscription information to the video streaming end;

[0008] When the video streaming end receives the updated subscription information, the video streaming end sends the target streaming video to the video subscription end through the video server.

[0009] Optionally, the method further comprises:

[0010] When the video server does not receive a video subscription request sent by the video subscription end for the target streaming video, the video server does not update the subscription information, and returns the unupdated subscription information to the video streaming end.

[0011] Optionally, the method further comprises:

[0012] When the video streaming end receives unupdated subscription information, the video streaming end continues to send the subscription information to the video server for keeping it alive until it receives updated subscription information.

[0013] Optionally, before the video streaming end sends the subscription information of the target streaming video to the video server, the method further includes:

[0014] The video streaming end obtains video data through a camera;

[0015] The video streaming end cuts and encodes the video data and then packages the data in RTP format to obtain the target streaming video.

[0016] Optionally, the system further includes a scheduling server, and before the video streaming end sends subscription information of the target streaming video to the video server, the method further includes:

[0017] The video streaming end sends a request to the scheduling server to obtain a video server address;

[0018] The scheduling server responds to the request and determines the video server from the optional servers based on the server attributes of the optional servers;

[0019] The scheduling server sends the server address of the video server to the video streaming end, so that the video streaming end can send the subscription information of the target streaming video to the video server based on the server address of the video server.

[0020] Optionally, when the video server receives a video subscription request sent by a video subscriber for the target streaming video, the video server updates the subscription information, including:

[0021] When the video server receives a video subscription request each time, the video server adds one to the value of the subscription information to update the subscription information;

[0022] Alternatively, the video server counts the number of video subscription requests received at preset time intervals, and updates the value of the subscription information according to the number of video subscription requests received, so as to update the subscription information.

[0023] Optionally, when the video streaming end sends subscription information of the target streaming video to the video server, the method further includes:

[0024] The video streaming end sends the streaming end version number of the video streaming end, the data packet sequence number and the data packet type of the target streaming video to the video server.

[0025] In a second aspect, an embodiment of the present application provides a video streaming system, the system comprising a video streaming terminal and a video server;

[0026] The video streaming end is used to send subscription information of the target streaming video to the video server;

[0027] The video server is configured to update the subscription information when receiving a video subscription request sent by a video subscription end for the target streaming video, and return the updated subscription information to the video streaming end;

[0028] The video streaming end is used to send the target streaming video to the video subscription end through the video server when it receives the updated subscription information.

[0029] Optionally, the video server is configured to, when it does not receive a video subscription request sent by a video subscriber for the target streaming video, not update the subscription information and return the unupdated subscription information to the video streaming end.

[0030] Optionally, the video streaming end is used for, when the video streaming end receives unupdated subscription information, continuously sending the subscription information to the video server for keeping it alive until it receives updated subscription information.

[0031] Optionally, the video streaming end is used to obtain video data through a camera before the video streaming end sends subscription information of the target streaming video to the video server;

[0032] The video streaming end is used to trim and encode the video data and then package it in RTP format to obtain the target streaming video.

[0033] Optionally, the system further includes a scheduling server, and the video streaming end is used to send a request to the scheduling server for obtaining the address of the video server before the video streaming end sends the subscription information of the target streaming video to the video server;

[0034] The scheduling server is used to respond to the request and determine the video server from the optional servers based on the server attributes of the optional servers;

[0035] The scheduling server is used to send the server address of the video server to the video streaming end, so that the video streaming end can send the subscription information of the target streaming video to the video server based on the server address of the video server.

[0036] Optionally, when the video server receives a video subscription request sent by a video subscriber for the target streaming video, the video server is specifically configured to:

[0037] When the video server receives a video subscription request each time, the value of the subscription information is increased by one to update the subscription information;

[0038] Alternatively, the number of video subscription requests received is counted at preset time intervals, and the value of the subscription information is updated according to the number of video subscription requests received, so as to update the subscription information.

[0039] Optionally, the video streaming end is used to send the streaming end version number of the video streaming end, the data packet sequence number and data packet type of the target streaming video to the video server when the video streaming end sends the subscription information of the target streaming video to the video server.

[0040] In a third aspect, an embodiment of the present application provides a computer device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the video streaming method described in any optional implementation manner of the second aspect are performed.

[0041] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the video streaming method described in any optional implementation manner in the second aspect are executed.

[0042] The technical solution provided by this application includes but is not limited to the following beneficial effects:

[0043] The present application sends the subscription information of the target streaming video to the video server through the video streaming end in the video streaming system. When it is uncertain whether there is a video subscription end that has subscribed to the target streaming video, the subscription information with a smaller data volume can be sent to the video server first to monitor the subscription status of the video data with a larger data volume, thereby avoiding blindly sending the video data with a larger data volume to the video server and occupying unnecessary transmission bandwidth and traffic.

[0044] Then, when the video server receives a video subscription request issued by the video subscription end for the target streaming video, the video server updates the subscription information and returns the updated subscription information to the video streaming end. When it is determined that there is a video subscription end that has subscribed to the target streaming video, the subscription status can be notified to the video streaming end through subscription information with a smaller data volume, so that the video streaming end can send video data to the video server when there is a streaming demand, thereby avoiding invalid occupation and waste of storage resources and space of the video server.

[0045] Finally, when the video streaming end receives the updated subscription information, the video streaming end sends the target streaming video to the video subscription end through the video server, so that when there is no video subscription end subscribing to the target streaming video, the video streaming end does not occupy the transmission bandwidth, does not consume transmission traffic for video streaming, and does not occupy the storage space of the video server for video storage. Only when there is a video subscription end subscribing to the target streaming video, the video streaming end uses the video server as a forwarding medium instead of a storage medium to directly stream the video, thereby avoiding invalid occupation and waste of video storage resources, transmission bandwidth and traffic.

[0046] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0048] Figure 1 A flow chart of a video streaming method provided by Embodiment 1 of the present invention is shown;

[0049] Figure 2 A flow chart of a method for generating a target streaming video provided by the first embodiment of the present invention is shown;

[0050] Figure 3 A flow chart of a method for determining a video server provided by Embodiment 1 of the present invention is shown;

[0051] Figure 4 A schematic diagram of a complete video streaming method based on a video streaming system provided in Embodiment 1 of the present invention is shown;

[0052] Figure 5 A schematic diagram of the structure of a video streaming system provided by Embodiment 2 of the present invention is shown;

[0053] Figure 6 A schematic diagram showing the structure of a second video streaming system provided by Embodiment 2 of the present invention is shown;

[0054] Figure 7 A schematic diagram of the structure of a computer device provided in Embodiment 3 of the present invention is shown. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present invention.

[0056] Embodiment 1

[0057] To facilitate understanding of this application, Figure 1 The content described in the flowchart of a video streaming method provided by the first embodiment of the present invention is described in detail for the first embodiment of the present application.

[0058] See also Figure 1 As shown, Figure 1 A flowchart of a video streaming method provided by Embodiment 1 of the present invention is shown, wherein the method is applied to a video streaming system, the system includes a video streaming terminal and a video server, and the method includes steps S101 to S103:

[0059] S101: The video streaming end sends subscription information of a target streaming video to the video server.

[0060] Specifically, the video streaming end obtains the video data packet of the target streaming video, calculates the data packet length of the video data packet, applies for a memory space of the data packet length plus 5 bytes, and copies the video data packet to the newly applied memory space. Then, the control information including the subscription information of the target streaming video is written to the end of the video data packet in the newly applied memory space to obtain the target video data packet containing the control information. The target video data packet has the following format:

[0061] Data packet header Packet Payload Control Information Packet header data Video data / audio data / files and other data 5 bytes of control information

[0062] The control information consists of four fields, occupying a total of 5 bytes, namely info (indicating subscription information, occupying one byte, such as the current stream pulling end stream number, subscription number), version (indicating the version number used by the current protocol, occupying one byte, used to prevent version mismatch), sequence number (indicating the data packet sequence number, occupying two bytes, used to allow the participants to confirm the order of the packets) and type (occupying one byte, indicating the type of data packet, used to allow the receiving end to confirm what form of data packet it is, such as video, audio, file, etc.). The control information composition format is as follows:

[0063] info version sequence number type Occupies 1 byte Occupies 1 byte Occupies 2 bytes Occupies 1 byte

[0064] The target video data packet (composed of the video data packet of the target streaming video and the control information of the target streaming video) is sent to the video server, so as to send the subscription information of the target streaming video to the video server.

[0065] S102: When the video server receives a video subscription request sent by a video subscription end for the target streaming video, the video server updates the subscription information and returns the updated subscription information to the video streaming end.

[0066] Specifically, after receiving the subscription information of the video data packet, the video server updates the subscription information according to whether it receives a video subscription request issued by the video subscription end for the target push-stream video. In this process, since the subscription information is included in the target video data packet, the video server strips the last 5 bytes of data (control information) in the target video data packet from the target video data packet. If it receives a video subscription request issued by the video subscription end for the target push-stream video, the subscription information corresponding to the first field "info" in the control information is updated to the number of video subscription requests issued by the video subscription end for the target push-stream video, and the updated subscription information is returned to the video push-stream end.

[0067] In addition, the video server can also verify whether the version number information corresponding to the second field "version" in the recorded control information matches the version number of the video server, and then use the version number of the video server to update the content of the field; at the same time, record the sequence number corresponding to the third field "sequence number", and put the target video data packet into different queues for processing according to the data packet type corresponding to the fourth field "type", and then return the control information obtained after the above update to the video streaming end.

[0068] S103: When the video streaming end receives the updated subscription information, the video streaming end sends the target streaming video to the video subscription end through the video server.

[0069] Specifically, when the video streaming end receives the updated subscription information, the video streaming end sends the target streaming video to the video server, and the video server sends the target streaming video to the video subscription end, so that the video subscription end that has sent a video subscription request to the video server for the target streaming video can obtain the target streaming video.

[0070] In one feasible embodiment, the method further comprises:

[0071] When the video server does not receive a video subscription request sent by the video subscription end for the target streaming video, the video server does not update the subscription information, and returns the unupdated subscription information to the video streaming end.

[0072] Specifically, if the video server does not receive the video subscription request and has not updated the subscription information, the subscription information that has not been updated will be returned to the video streaming end at a preset time interval.

[0073] In one feasible embodiment, the method further comprises:

[0074] When the video streaming end receives unupdated subscription information, the video streaming end continues to send the subscription information to the video server for keeping it alive until it receives updated subscription information.

[0075] Specifically, when the video streaming end receives unupdated subscription information, it indicates that there is no video subscription end that has issued a subscription request for the target streaming video at this time. The video streaming end only needs to continue to send the subscription information to the video server to keep it alive, without sending the target streaming video, so as to reduce the waste of transmission resources and the occupation of the storage space of the video server, until the video streaming end receives the updated subscription information, and sends the target streaming video to the video subscription end through the video server.

[0076] In one possible embodiment, see Figure 2 As shown, Figure 2 A flow chart of a method for generating a target streaming video provided by the first embodiment of the present invention is shown, wherein before the video streaming end sends subscription information of the target streaming video to the video server, the method further includes steps S201 to S202:

[0077] S201: The video streaming end obtains video data through a camera.

[0078] Specifically, the camera is set at a preset position of the vehicle to collect video data of the vehicle's surrounding environment. There are several cameras, and the video streaming end obtains multiple video data through each camera.

[0079] S202: The video streaming end cuts and encodes the video data, and then packages the data in RTP format to obtain the target streaming video.

[0080] Specifically, for each video data, the video streaming end crops the picture of the video data into the required size, and sends the picture to the encoder for encoding. The encoding is performed using any encoding method among H264, H265, VP8, and VP9, ​​and the encoded data is packaged in RTP format to obtain the target streaming video.

[0081] In one possible embodiment, see Figure 3 As shown, Figure 3 A flowchart of a video server determination method provided by the first embodiment of the present invention is shown, wherein the system further includes a scheduling server, and before the video streaming end sends the subscription information of the target streaming video to the video server, the method further includes steps S301 to S303:

[0082] S301: The video streaming end sends a request to the scheduling server to obtain a video server address.

[0083] Specifically, the video streaming end obtains the IP address and port of the video server from the scheduling server through an HTTP request, and prepares to stream the video to the address and port or send control information to keep the video alive.

[0084] S302: The scheduling server responds to the request and determines the video server from the optional servers based on the server attributes of the optional servers.

[0085] Specifically, the video streaming system also includes multiple optional servers, i.e., optional video servers, each of which can perform processing such as forwarding and streaming of videos. The scheduling server determines the video server used to execute this video streaming from each optional server according to the server attributes of each optional server. The specific process includes: the scheduling server obtains the clock frequency, memory and number of loaded videos of the CPU of each optional server, calculates the server score of each optional server according to the clock frequency, memory and number of loaded videos, and then determines the optional server with the highest server score as the video server used to execute this video streaming. The specific calculation method of the server score is to sum the inverse of the clock frequency, memory and number of loaded videos.

[0086] S303: The scheduling server sends the server address of the video server to the video streaming end, so that the video streaming end can send the subscription information of the target streaming video to the video server based on the server address of the video server.

[0087] Specifically, the scheduling server sends the server address of the selected video server to the video streaming end, so that the video streaming end can send data to the video server based on the server address.

[0088] In a feasible implementation manner, when the video server receives a video subscription request issued by a video subscriber for the target streaming video, the video server updates the subscription information, including:

[0089] When the video server receives a video subscription request each time, the video server adds one to the value of the subscription information to update the subscription information.

[0090] Specifically, for example, the value of the initial subscription information field is 0. When the video server receives a video subscription request, the video server adds 1 to the value of the subscription information to obtain 1.

[0091] Alternatively, the video server counts the number of video subscription requests received at preset time intervals, and updates the value of the subscription information according to the number of video subscription requests received, so as to update the subscription information.

[0092] Specifically, for example, the value of the initial subscription information field is 0. Ten seconds later, the video server counts the number of video subscription requests it has received as 2, and the video server updates the value of the subscription information to 2.

[0093] In a feasible implementation manner, when the video streaming end sends the subscription information of the target streaming video to the video server, the method further includes:

[0094] The video streaming end sends the streaming end version number of the video streaming end, the data packet sequence number and the data packet type of the target streaming video to the video server.

[0095] Specifically, the subscription information of the target streaming video (corresponding to the "info" field), the version number of the streaming end (corresponding to the "version" field), the data packet sequence number of the target streaming video (corresponding to the "sequence number" field) and the data packet type (corresponding to the "type" field) are combined as control information. The unupdated subscription information is the default number 0. The unupdated data packet sequence number starts from 0, accumulates to 65535, and then starts from 0 again; if the video streaming end pushes multiple different video streams, the sequence number of each video is independent of each other and starts from 0. For example, if the data packet type of the video data packet is an RTP packet, the type field is written with 0, the RTCP packet is written with 1, the STUN packet is written with 2, and the RIT packet is written with 3.

[0096] See also Figure 4 As shown, Figure 4A schematic diagram of a complete video streaming method based on a video streaming system provided by Embodiment 1 of the present invention is shown, wherein the video streaming system includes a video streaming end, a scheduling server, a video server, and a video subscription end (stream pulling end). The video streaming end sends a request for scheduling (obtaining the address of the video server) to the scheduling server, and the scheduling server requests information from the video server to obtain the server attribute information of the video server. The video server allocates a port to the scheduling server and allocates an information transmission address at the same time. The scheduling server sends the UDP IP address port allocated by the video server to the video streaming end. The video streaming end establishes a UDP channel with the video server through the UDP IP address port, and the video server initializes the processing program to complete the establishment of the communication link between the video streaming end and the video server. After the video push stream end performs video acquisition / encoding / RTP / RTCP packaging to obtain the video data that needs to be pushed stream, it adds RIT (Route Info Tail, i.e., the control information containing subscription information as described above) information occupying 5 bytes after the video data, and then sends it to the server. After filtering the RIT information by the video server, it updates the RIT information according to the subscription video stream request received from the video subscription end and then replies the RIT information to the video push stream end. Before the video subscription end sends the video subscription request of the target push stream video to the video server, it also needs to request scheduling information from the scheduling server. The scheduling server sends the information of the video server scheduled by the video push stream end for sending the target push stream video to the video subscription end, that is, returns the video server information to the video subscription end, and then the video subscription end sends the subscription video stream request to the video server according to the video server information. After the video server receives the RIT-containing data packet sent by the video push stream end, it changes the value of RIT info according to the subscription video stream request sent by the video subscription end and synchronizes the push stream information to the video push stream end, that is, realizes the update and update return of the subscription information corresponding to the "info" field in the RIT control information. Finally, the video streaming end changes the streaming mode according to the info information. If the subscription information corresponding to the "info" field is updated, the target streaming video is sent to the video server, and the video server sends the target streaming video to the video subscription end to realize video forwarding data; if the subscription information corresponding to the "info" field is not updated, the target streaming video is not sent to the video server, and only the RIT control information is sent to keep it alive, thereby realizing the reasonable allocation of server memory and processing resources.

[0097] Embodiment 2

[0098] See also Figure 5 As shown, Figure 5 A schematic diagram of the structure of a video streaming system provided by the second embodiment of the present invention is shown, wherein the system includes a video streaming terminal 501 and a video server 502;

[0099] The video streaming end is used to send subscription information of the target streaming video to the video server;

[0100] The video server is configured to update the subscription information when receiving a video subscription request sent by a video subscription end for the target streaming video, and return the updated subscription information to the video streaming end;

[0101] The video streaming end is used to send the target streaming video to the video subscription end through the video server when it receives the updated subscription information.

[0102] In a feasible implementation manner, the video server is configured to not update the subscription information and return the unupdated subscription information to the video streaming end when it does not receive a video subscription request issued by the video subscription end for the target streaming video.

[0103] In a feasible implementation manner, the video streaming end is used to, when receiving unupdated subscription information, continuously send the subscription information to the video server to keep it alive until it receives updated subscription information.

[0104] In a feasible implementation scheme, the video streaming end is used to obtain video data through a camera before the video streaming end sends subscription information of the target streaming video to the video server;

[0105] The video streaming end is used to trim and encode the video data and then package it in RTP format to obtain the target streaming video.

[0106] In one possible embodiment, see Figure 6 As shown, Figure 6 The schematic diagram of the structure of the second video streaming system provided by the second embodiment of the present invention is shown, wherein the system further includes a scheduling server 601, and the video streaming end is used to send a request to the scheduling server to obtain the address of the video server before the video streaming end sends the subscription information of the target streaming video to the video server;

[0107] The scheduling server is used to respond to the request and determine the video server from the optional servers based on the server attributes of the optional servers;

[0108] The scheduling server is used to send the server address of the video server to the video streaming end, so that the video streaming end can send the subscription information of the target streaming video to the video server based on the server address of the video server.

[0109] In a feasible implementation manner, when the video server receives a video subscription request sent by a video subscriber for the target streaming video, the video server is specifically configured to:

[0110] When the video server receives a video subscription request each time, the value of the subscription information is increased by one to update the subscription information;

[0111] Alternatively, the number of video subscription requests received is counted at preset time intervals, and the value of the subscription information is updated according to the number of video subscription requests received, so as to update the subscription information.

[0112] In a feasible implementation scheme, the video streaming end is used to send the streaming end version number of the video streaming end, the data packet sequence number and data packet type of the target streaming video to the video server when the video streaming end sends the subscription information of the target streaming video to the video server.

[0113] Embodiment 3

[0114] Based on the same application concept, see Figure 7 As shown, Figure 7 FIG. 4 shows a schematic diagram of the structure of a computer device provided by Embodiment 3 of the present invention, wherein: Figure 7 As shown, a computer device 700 provided in Embodiment 3 of the present application includes:

[0115] A processor 701, a memory 702 and a bus 703, wherein the memory 702 stores machine-readable instructions executable by the processor 701. When the computer device 700 is running, the processor 701 communicates with the memory 702 via the bus 703, and the machine-readable instructions are executed by the processor 701 to execute the steps of the video streaming method shown in the above-mentioned embodiment 1.

[0116] Embodiment 4

[0117] Based on the same application concept, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the video streaming method described in any one of the above embodiments are executed.

[0118] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0119] The computer program product for video streaming provided in the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can be found in the method embodiment, which will not be repeated here.

[0120] The video streaming method system provided in the embodiment of the present invention can be specific hardware on the device or software or firmware installed on the device. The system provided in the embodiment of the present invention has the same implementation principle and technical effects as the aforementioned method embodiment. For the sake of brief description, the parts not mentioned in the system embodiment can refer to the corresponding contents in the aforementioned method embodiment. Technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can all refer to the corresponding processes in the aforementioned method embodiment, and will not be repeated here.

[0121] In the embodiments provided by the present invention, it should be understood that the disclosed systems and methods can be implemented in other ways. The system embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some communication interface, device or unit, which can be electrical, mechanical or other forms.

[0122] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0123] In addition, each functional unit in the embodiment provided by the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0124] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, a service device, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0125] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.

[0126] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, those skilled in the art should understand that any person skilled in the art can still modify the technical solutions described in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. They should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A video streaming method, characterized in that: Applied to a video streaming system, the system includes a video streaming terminal and a video server, and the method includes: The video streaming end sends subscription information of the target streaming video to the video server; When the video server receives a video subscription request sent by a video subscription end for the target streaming video, the video server updates the subscription information and returns the updated subscription information to the video streaming end; When the video streaming end receives the updated subscription information, the video streaming end sends the target streaming video to the video subscription end through the video server.

2. The method according to claim 1, characterized in that The method further comprises: When the video server does not receive a video subscription request sent by the video subscription end for the target streaming video, the video server does not update the subscription information, and returns the unupdated subscription information to the video streaming end.

3. The method according to claim 2, characterized in that The method further comprises: When the video streaming end receives unupdated subscription information, the video streaming end continues to send the subscription information to the video server for keeping it alive until it receives updated subscription information.

4. The method according to claim 1, characterized in that: Before the video streaming end sends the subscription information of the target streaming video to the video server, the method further includes: The video streaming end obtains video data through a camera; The video streaming end cuts and encodes the video data and then packages the data in RTP format to obtain the target streaming video.

5. The method according to claim 1, characterized in that The system further includes a scheduling server. Before the video streaming end sends subscription information of the target streaming video to the video server, the method further includes: The video streaming end sends a request to the scheduling server to obtain a video server address; The scheduling server responds to the request and determines the video server from the optional servers based on the server attributes of the optional servers; The scheduling server sends the server address of the video server to the video streaming end, so that the video streaming end can send the subscription information of the target streaming video to the video server based on the server address of the video server.

6. The method according to claim 1, characterized in that When the video server receives a video subscription request sent by a video subscriber for the target streaming video, the video server updates the subscription information, including: When the video server receives a video subscription request each time, the video server adds one to the value of the subscription information to update the subscription information; Alternatively, the video server counts the number of video subscription requests received at preset time intervals, and updates the value of the subscription information according to the number of video subscription requests received, so as to update the subscription information.

7. The method according to claim 1, characterized in that When the video streaming end sends subscription information of the target streaming video to the video server, the method further includes: The video streaming end sends the streaming end version number of the video streaming end, the data packet sequence number and the data packet type of the target streaming video to the video server.

8. A video streaming system, characterized in that: The system includes a video streaming terminal and a video server; The video streaming end is used to send subscription information of the target streaming video to the video server; The video server is configured to update the subscription information when receiving a video subscription request sent by a video subscription end for the target streaming video, and return the updated subscription information to the video streaming end; The video streaming end is used to send the target streaming video to the video subscription end through the video server when it receives the updated subscription information.

9. A computer device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the video streaming method as described in any one of claims 1 to 7 are performed.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the video streaming method according to any one of claims 1 to 7 are executed.