Video stream data analysis method and analysis system

During the wireless transmission process between the video stream acquisition terminal and the server, an auxiliary terminal is set up for each video acquisition terminal, and an identification code is inserted into the video stream data, the security problem of video stream data transmission is solved and the video stream is ensured. Data accuracy and server stability.

CN118474460BActive Publication Date: 2025-02-25SICHUAN NATIONAL INNOVATION VISION UHD VIDEO TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410742775.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2025-02-25
Estimated Expiration
2044-06-11

AI Technical Summary

Technical Problem

During the wireless transmission process between the video stream acquisition terminal and the server, the terminal unique identifier in the video stream data is easily cracked by hackers, resulting in illegal content transmission, resulting in inaccurate video stream data and increased server storage burden, and may even lead to paralysis of the server .

Method used

By establishing a two-dimensional Cartesian coordinate system on the server, calculate the center of mass and its polar coordinates of the video acquisition terminal, and set up an auxiliary terminal for each video acquisition terminal. Based on the communication type, the identification code is set for the video stream data and stored simultaneously in the auxiliary terminal. When the video acquisition terminal transmits the video stream data, it obtains the identification code from the auxiliary terminal and inserts it into the video stream data.

Benefits of technology

It effectively ensures the security of video streaming data during transmission, prevents hackers from cracking the terminal's unique identifier, ensures that the video streaming data obtained by the playback terminal is accurate, and reduces the storage burden on the server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118474460B_ABST
    Figure CN118474460B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of data processing, and proposes a video stream data analysis method and analysis system, which mainly include: establishing a two-dimensional rectangular coordinate system based on a server, obtaining the centroids of all video acquisition terminals within the communication range, and calculating the polar coordinates of each centroid based on the two-dimensional rectangular coordinate system; setting an auxiliary terminal for the corresponding video acquisition terminal based on the polar coordinates of the centroid, and setting a corresponding identification code for each video terminal when transmitting video stream data to the server based on the communication type; when the video acquisition terminal acquires the video stream data, the corresponding identification code is obtained from the auxiliary terminal based on the communication type with the server, and the identification code is inserted at the corresponding video frame in the video stream data; the video stream data with the identification code inserted is compressed and transmitted to the server, and the server decompresses the video stream data fragment containing the identification code. The present invention can ensure the security of different video stream acquisition terminals when transmitting video streams to the server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a video stream data analysis method and analysis system. Background Art

[0002] Currently, due to differences in monitoring scenarios, different monitoring scenarios will be deployed with different numbers of video stream acquisition terminals, such as cameras, and most of the acquired video data is transmitted to the server in the data format of the video stream.

[0003] After the video stream acquisition terminal acquires the video stream data, the transmission and storage process to the server is basically based on the real-time information transmission protocol to transmit the video stream data. Although the traditional video stream data transmission protocol is relatively easy to implement technically, the current application scenario does not limit the communication transmission type between the video stream acquisition terminal and the server. Therefore, it can be either a wired transmission mode or a wireless transmission mode. However, in the wireless transmission mode, most of the time, the legitimacy of the server acquiring the video stream data is guaranteed by carrying the terminal unique identifier of the video stream acquisition terminal when transmitting the video stream data. When the terminal unique identifier is mixed in the video stream data for wireless transmission, it is easy to be cracked by an illegal hacker terminal. Once the terminal unique identifier is cracked, the illegal hacker terminal can easily transmit illegal content to the server, which will not only cause the playback terminal to be unable to obtain accurate video stream data, but also cause the server to receive more illegal video stream data, resulting in a storage burden on the server, and even paralysis of the server.

[0004] Therefore, there is an urgent need for a video stream data analysis solution that can ensure the security of the video stream. Summary of the invention

[0005] The object of the present invention is to provide a video stream data analysis method and analysis system, which can ensure the security of different video stream acquisition terminals when transmitting video streams to a server, thereby enabling a playback terminal to obtain accurate video stream data.

[0006] The present invention solves the technical problem and adopts the following technical solution:

[0007] In one aspect, the present invention provides a method for analyzing video stream data, comprising the following steps:

[0008] Obtain the communication type and communication range between each video acquisition terminal and the server;

[0009] A two-dimensional rectangular coordinate system is established based on the server, and the centroids of all video acquisition terminals within the communication range are obtained, and the polar coordinates of each centroid are calculated based on the two-dimensional rectangular coordinate system;

[0010] An auxiliary terminal is set for the corresponding video acquisition terminal based on the polar coordinates of the centroid, and a corresponding identification code is set for each video terminal when transmitting video stream data to the server based on the communication type, and the identification code is synchronously stored in the auxiliary terminal;

[0011] When the video acquisition terminal acquires the video stream data, it acquires the corresponding identification code from the auxiliary terminal based on the communication type with the server, and inserts the identification code at the corresponding video frame in the video stream data;

[0012] The video stream data with the identification code inserted is compressed and transmitted to the server, and the server decompresses the video stream data segment containing the identification code;

[0013] When the playback terminal selects video stream data to be played from the server, the server compresses the video stream data segment containing the identification code and transmits it to the playback terminal for decompression and playback.

[0014] As a further optimization, the establishment of a two-dimensional rectangular coordinate system based on the server means:

[0015] Get the size information of the server, and use any vertex on the bottom surface of the server as the origin O of the two-dimensional rectangular coordinate system, the straight line passing through the origin where the height of the server is located as the Y axis, and the straight line passing through the origin where the length or width of the server is located as the X axis, to establish a two-dimensional rectangular coordinate system.

[0016] As a further optimization, the method of obtaining the centroids of all video acquisition terminals within the communication range and calculating the polar coordinates of each centroid based on a two-dimensional rectangular coordinate system includes the following steps:

[0017] Get the centroid of all video acquisition terminals within the communication range;

[0018] The origin O of the two-dimensional rectangular coordinate system is used as the polar center of the polar coordinates, and the direction of the OX ray in the two-dimensional rectangular coordinate system is used as the polar axis of the polar coordinates;

[0019] Project all centroids into a two-dimensional rectangular coordinate system to form projection points, and connect the polar centers and projection points in sequence;

[0020] According to the coordinates of the projection point in the two-dimensional rectangular coordinate system, the polar diameter and polar angle of each projection point in the polar coordinates are calculated in turn, and the polar coordinates of the corresponding centroid are represented by the calculated polar diameter and polar angle of the projection point.

[0021] As a further optimization, the centroid-based polar coordinates are used to set an auxiliary terminal for the corresponding video acquisition terminal, wherein the polar diameter or polar angle of the projection point of the centroid of the auxiliary terminal in the two-dimensional rectangular coordinate system in the polar coordinates is equal to the polar diameter or polar angle of the projection point of the centroid of the corresponding video acquisition terminal in the two-dimensional rectangular coordinate system in the polar coordinates.

[0022] As a further optimization, when setting a corresponding identification code for each video terminal when transmitting video stream data to the server based on the communication type, the identification code is pre-stored in a first storage list in the server and synchronously stored in a second storage list in the auxiliary terminal;

[0023] When the video acquisition terminal acquires the video stream data and compresses the video stream data with the identification code inserted therein and transmits it to the server, the identification code in the first storage list is updated, and then the identification code in the second storage list is synchronously updated.

[0024] As a further optimization, the communication type between each video acquisition terminal and the server includes a wired communication mode and a wireless communication mode.

[0025] As a further optimization, the setting of corresponding identification codes for each video terminal when transmitting video stream data to the server based on the communication type means:

[0026] If the communication type between the video acquisition terminal and the server is a wired communication mode, setting a first identification code for the video stream data every first number of video frames;

[0027] If the communication type between the video acquisition terminal and the server is a wireless communication mode, setting a second identification code for the video stream data every second number of video frames;

[0028] The first number is greater than the second number.

[0029] As a further optimization, after the server decompresses the video stream data segment containing the identification code and before the playback terminal selects the video stream data to be played from the server, the following further includes:

[0030] If the communication type between the video acquisition terminal and the server is a wired communication mode, it is determined whether the number of the first identification codes in the video stream data segment containing the identification code decompressed by the server reaches a first preset value, and if so, the playback terminal is allowed to select to play the video stream data from the server, otherwise, the playback terminal is not allowed to select to play the video stream data from the server;

[0031] If the communication type between the video acquisition terminal and the server is wireless communication, it is determined whether the number of second identification codes in the video stream data segment containing the identification code decompressed by the server reaches a second preset value. If so, the playback terminal is allowed to select to play the video stream data from the server. Otherwise, the playback terminal is not allowed to select to play the video stream data from the server.

[0032] As a further optimization, the ratio of the first preset value to the number of all set first identification codes is greater than the ratio of the second preset value to the number of all set second identification codes.

[0033] On the other hand, the present invention further provides a video stream data analysis system, which is applied to the video stream data analysis method, comprising:

[0034] A communication type and communication range acquisition unit, used to acquire the communication type and communication range between each video acquisition terminal and the server;

[0035] A polar coordinate acquisition unit, used to establish a two-dimensional rectangular coordinate system based on the server, and obtain the centroids of all video acquisition terminals within the communication range, and calculate the polar coordinates of each centroid based on the two-dimensional rectangular coordinate system;

[0036] An identification code setting unit, used to set an auxiliary terminal for the corresponding video acquisition terminal based on the polar coordinates of the centroid, and to set a corresponding identification code for each video terminal when transmitting video stream data to the server based on the communication type, wherein the identification code is synchronously stored in the auxiliary terminal;

[0037] An identification code acquisition unit, configured to acquire a corresponding identification code from the auxiliary terminal based on the communication type with the server when the video acquisition terminal acquires the video stream data, and insert the identification code into the corresponding video frame in the video stream data;

[0038] A video stream data transmission unit, used for compressing the video stream data inserted with the identification code and transmitting it to the server, and the server decompresses the video stream data segment containing the identification code;

[0039] The video stream data acquisition unit is used for, when the playback terminal selects the video stream data to be played from the server, the server compresses the video stream data segment containing the identification code and transmits it to the playback terminal for decompression and playback.

[0040] The beneficial effects of the present invention are: through the above-mentioned video stream data analysis method and analysis system,

[0041] First, the communication type and communication range between each video acquisition terminal and the server are obtained; secondly, a two-dimensional rectangular coordinate system is established based on the server, and the centroids of all video acquisition terminals within the communication range are obtained, and the polar coordinates of each centroid are calculated based on the two-dimensional rectangular coordinate system; then, an auxiliary terminal is set for the corresponding video acquisition terminal based on the polar coordinates of the centroid, and a corresponding identification code is set for each video terminal when transmitting video stream data to the server based on the communication type, and the identification code is synchronously stored in the auxiliary terminal; then, when the video acquisition terminal acquires the video stream data, the corresponding identification code is obtained from the auxiliary terminal based on the communication type with the server, and the identification code is inserted at the corresponding video frame in the video stream data; then, the video stream data with the identification code inserted is compressed and transmitted to the server, and the server decompresses the video stream data segment containing the identification code; finally, when the playback terminal selects the video stream data to be played from the server, the server compresses the video stream data segment containing the identification code and transmits it to the playback terminal for decompression and playback.

[0042] Therefore, the present invention can ensure the security of different video stream acquisition terminals when transmitting video streams to a server, and further when a playback terminal acquires video stream data from a server, it can ensure that the acquired video stream data is accurate. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 This is a flowchart of a video stream data analysis method in Example 1 of the present invention. DETAILED DESCRIPTION

[0044] 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 part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0045] Example 1

[0046] This embodiment provides a method for analyzing video stream data. Figure 1 , wherein the method comprises the following steps:

[0047] S1. Obtain the communication type and communication range between each video acquisition terminal and the server;

[0048] S2. Establish a two-dimensional rectangular coordinate system based on the server, obtain the centroids of all video acquisition terminals within the communication range, and calculate the polar coordinates of each centroid based on the two-dimensional rectangular coordinate system;

[0049] S3, setting an auxiliary terminal for the corresponding video acquisition terminal based on the polar coordinates of the centroid, and setting a corresponding identification code for each video terminal when transmitting video stream data to the server based on the communication type, and the identification code is synchronously stored in the auxiliary terminal;

[0050] S4, when the video acquisition terminal acquires the video stream data, it acquires the corresponding identification code from the auxiliary terminal based on the communication type with the server, and inserts the identification code into the corresponding video frame in the video stream data;

[0051] S5, compressing the video stream data into which the identification code is inserted and transmitting it to the server, and the server decompresses the video stream data segment containing the identification code;

[0052] S6. When the playback terminal selects video stream data to be played from the server, the server compresses the video stream data segment containing the identification code and transmits it to the playback terminal for decompression and playback.

[0053] In the above method, since the number of video acquisition terminals that need to be installed in different application scenarios is not uniform, in this embodiment, the position and number of identification codes inserted into the video stream data will be determined based on the communication type between these installed video acquisition terminals and the server, and a two-dimensional rectangular coordinate system needs to be established based on the server. The basis for establishing the two-dimensional rectangular coordinate system is the position of the video acquisition terminal within the communication range. Therefore, in this embodiment, it is necessary to first obtain the communication type and communication range between each video acquisition terminal and the server, and then establish a two-dimensional rectangular coordinate system based on the server, and obtain the center of mass of all video acquisition terminals within the communication range, and calculate the polar coordinates of each center of mass based on the two-dimensional rectangular coordinate system.

[0054] This embodiment is also based on the real-time information transmission protocol, but different identification codes are inserted at different positions in the corresponding video stream data based on different data transmission types. The traditional identification code is the unique identification of the video acquisition terminal. This embodiment is different from the traditional identification code insertion scheme. In order to ensure that the video acquisition terminal obtains a safe and reliable identification code, an auxiliary terminal is set for each video acquisition terminal in this embodiment, and the identification code is obtained from the server through the auxiliary terminal. Therefore, in this embodiment, an auxiliary terminal is set for the corresponding video acquisition terminal based on the polar coordinates of the center of mass, and a corresponding identification code is set for each video terminal when transmitting video stream data to the server based on the communication type. The identification code is synchronously stored in the auxiliary terminal. Therefore, when the video acquisition terminal obtains the video stream data, the corresponding identification code is obtained from the auxiliary terminal based on the communication type between the server, and the identification code is inserted at the corresponding video frame in the video stream data.

[0055] Then, the video stream data with the identification code inserted is compressed and transmitted to the server, and the server decompresses the video stream data segment containing the identification code; when the playback terminal selects the video stream data to be played from the server, the server compresses the video stream data segment containing the identification code and transmits it to the playback terminal for decompression and playback.

[0056] In this embodiment, the purpose of establishing a two-dimensional rectangular coordinate system is to subsequently calculate the position of each video acquisition terminal in the polar coordinates. Within the communication range, the position of the video acquisition terminal in the polar coordinates can be used as a basis for selecting an auxiliary terminal. In addition, since the appearance of the server is basically a regular hexahedron (rectangular parallelepiped), and the size of today's servers is obviously relatively small compared to the communication range, the rules for establishing the two-dimensional rectangular coordinate system can be flexibly adjusted based on the appearance size of the server. For ease of understanding, this embodiment only takes the bottom surface of the server as an example for specific explanation.

[0057] Therefore, in this embodiment, the establishment of a two-dimensional rectangular coordinate system based on the server may refer to:

[0058] Get the size information of the server, and use any vertex on the bottom surface of the server as the origin O of the two-dimensional rectangular coordinate system, the straight line passing through the origin where the height of the server is located as the Y axis, and the straight line passing through the origin where the length or width of the server is located as the X axis, to establish a two-dimensional rectangular coordinate system.

[0059] It should be noted that the step of obtaining the centroids of all video acquisition terminals within the communication range and calculating the polar coordinates of each centroid based on a two-dimensional rectangular coordinate system may include the following steps:

[0060] Get the centroid of all video acquisition terminals within the communication range;

[0061] The origin O of the two-dimensional rectangular coordinate system is used as the polar center of the polar coordinates, and the direction of the OX ray in the two-dimensional rectangular coordinate system is used as the polar axis of the polar coordinates;

[0062] Project all centroids into a two-dimensional rectangular coordinate system to form projection points, and connect the polar centers and projection points in sequence;

[0063] According to the coordinates of the projection point in the two-dimensional rectangular coordinate system, the polar diameter and polar angle of each projection point in the polar coordinates are calculated in turn, and the polar coordinates of the corresponding centroid are represented by the calculated polar diameter and polar angle of the projection point.

[0064] In each step of calculating the polar coordinates of each centroid based on the two-dimensional rectangular coordinate system, in this embodiment, the centroid of the terminal is obtained through the video to represent the projection point in the two-dimensional rectangular coordinate system, and the polar diameter and polar angle of the projection point in the polar coordinates are used to represent its mapping relationship with the two-dimensional rectangular coordinate system. In the actual application process, after the two-dimensional rectangular coordinate system is established and X, O and Y are determined, the polar diameter in the polar coordinates can be represented by ρ, the polar angle can be represented by Θ, and the projection point can be represented by T. At this time, the projection point T can be represented as T(x, y) in the two-dimensional rectangular coordinate system, and it can be represented by T(ρ, Θ) in the polar coordinates, where x=ρcosΘ; y=ρsinΘ; tanΘ=y / x, (x is not equal to 0); ρ 2 =x 2 +y 2 ,; therefore, as long as we know the x and y values ​​of the projection point in the two-dimensional rectangular coordinate system, we can calculate ρ and Θ in the polar coordinates.

[0065] It should be pointed out that the purpose of setting up the auxiliary terminal is to further ensure the dynamic security of the identification code. Generally, even if there are illegal hackers impersonating the auxiliary terminal, their location is generally not within the communication range. Even within the communication range, it is difficult to ensure the polar diameter or polar angle of the projection point of the auxiliary terminal in the polar coordinates. Therefore, in this embodiment, the centroid-based polar coordinates are used to set an auxiliary terminal for the corresponding video acquisition terminal, wherein the projection point of the centroid of the auxiliary terminal in the two-dimensional rectangular coordinate system has a polar diameter or polar angle in the polar coordinates that is equal to the polar diameter or polar angle of the projection point of the centroid of the corresponding video acquisition terminal in the two-dimensional rectangular coordinate system.

[0066] Specifically, when setting the identification code, the identification code should be generated by the server and then synchronized to the auxiliary terminal. For storage convenience, in this embodiment, when setting the corresponding identification code for each video terminal to transmit video stream data to the server based on the communication type, the identification code can be pre-stored in the first storage list in the server, and needs to be synchronized with the second storage list stored in the auxiliary terminal;

[0067] When the video acquisition terminal acquires the video stream data and compresses the video stream data with the identification code inserted therein and transmits it to the server, the identification code in the first storage list is updated, and then the identification code in the second storage list is synchronously updated.

[0068] It should be pointed out that, in this embodiment, when updating the identification code, the basis for updating the identification code is that each video acquisition terminal has transmitted the current complete video stream data to the server. As long as the video acquisition terminal has transmitted the current complete video stream data to the server, it is necessary to send a notification to the server to inform the server to update the identification code and synchronize it in the auxiliary terminal. By dynamically updating the identification code, the security of the video acquisition terminal sending the video stream data to the server is further guaranteed.

[0069] In this embodiment, due to different application scenarios, the number of video stream acquisition terminals installed and used will generally not be the same. Generally, multiple video stream acquisition terminals will be set up, and the video stream acquisition terminals may communicate with the server in a wired manner, and of course, they may also communicate with the server in a wireless manner. Therefore, in this embodiment, the communication type between each video acquisition terminal and the server may include a wired communication method and a wireless communication method.

[0070] It should be pointed out that the existence of wired communication mode and wireless communication mode will directly determine how to set the identification code. Generally speaking, under the wired communication mode, the security of video stream data transmission is very high in itself, and it is generally difficult for illegal hackers to invade from the software level and information transmission level. Therefore, the number of identification codes set under the wired communication mode will be relatively small, while for the wireless communication mode, it will provide illegal hackers with more convenient illegal invasion opportunities. Therefore, under the wireless communication mode, more identification codes need to be set to ensure the accuracy and security of video stream data transmission to the server. Therefore, in this embodiment, the corresponding identification code is set for each video terminal to transmit video stream data to the server based on the communication type, which can refer to:

[0071] If the communication type between the video acquisition terminal and the server is a wired communication mode, setting a first identification code for the video stream data every first number of video frames;

[0072] If the communication type between the video acquisition terminal and the server is a wireless communication mode, setting a second identification code for the video stream data every second number of video frames;

[0073] The first number is greater than the second number.

[0074] Here, the basis for the first number to be greater than the second number is that the length of the video stream data is consistent. In specific applications, both the first number and the second number can be flexibly adjusted.

[0075] In addition, in order to further determine the accuracy and security of the video stream data transmitted from the server, in this embodiment, after the server decompresses the video stream data segment containing the identification code and before the playback terminal selects the video stream data to be played from the server, the following steps may also be included:

[0076] If the communication type between the video acquisition terminal and the server is a wired communication mode, it is determined whether the number of the first identification codes in the video stream data segment containing the identification code decompressed by the server reaches a first preset value, and if so, the playback terminal is allowed to select to play the video stream data from the server, otherwise, the playback terminal is not allowed to select to play the video stream data from the server;

[0077] If the communication type between the video acquisition terminal and the server is wireless communication, it is determined whether the number of second identification codes in the video stream data segment containing the identification code decompressed by the server reaches a second preset value. If so, the playback terminal is allowed to select to play the video stream data from the server. Otherwise, the playback terminal is not allowed to select to play the video stream data from the server.

[0078] Here, since data loss is generally rare in wired communication mode, the first preset value can basically be equal to the number of all set first identification codes, while in wireless communication mode, some data loss may occur due to network packet loss. Therefore, the second preset value is mostly smaller than the number of all set second identification codes. Therefore, in this embodiment, the ratio of the first preset value to the number of all set first identification codes is greater than the ratio of the second preset value to the number of all set second identification codes.

[0079] Example 2

[0080] Based on Example 1, this embodiment provides a video stream data analysis system, including:

[0081] A communication type and communication range acquisition unit, used to acquire the communication type and communication range between each video acquisition terminal and the server;

[0082] A polar coordinate acquisition unit, used to establish a two-dimensional rectangular coordinate system based on the server, and obtain the centroids of all video acquisition terminals within the communication range, and calculate the polar coordinates of each centroid based on the two-dimensional rectangular coordinate system;

[0083] An identification code setting unit, used to set an auxiliary terminal for the corresponding video acquisition terminal based on the polar coordinates of the centroid, and to set a corresponding identification code for each video terminal when transmitting video stream data to the server based on the communication type, wherein the identification code is synchronously stored in the auxiliary terminal;

[0084] An identification code acquisition unit, configured to acquire a corresponding identification code from the auxiliary terminal based on the communication type with the server when the video acquisition terminal acquires the video stream data, and insert the identification code into the corresponding video frame in the video stream data;

[0085] A video stream data transmission unit, used for compressing the video stream data inserted with the identification code and transmitting it to the server, and the server decompresses the video stream data segment containing the identification code;

[0086] The video stream data acquisition unit is used for, when the playback terminal selects the video stream data to be played from the server, the server compresses the video stream data segment containing the identification code and transmits it to the playback terminal for decompression and playback.

[0087] Referring to Example 1, the application scenario and implementation principle of this embodiment are consistent with those of Example 1, and thus will not be described in detail.

[0088] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A video stream data analysis method, characterized in that: The steps include: Obtain the communication type and communication range of each video acquisition terminal, and obtain the communication type and communication range of the server; A two-dimensional rectangular coordinate system is established based on the server, and the centroids of all video acquisition terminals within the communication range of the server are obtained, and the polar coordinates of each centroid are calculated based on the two-dimensional rectangular coordinate system; An auxiliary terminal is set for the corresponding video acquisition terminal based on the polar coordinates of the centroid, and a corresponding identification code is set for each video acquisition terminal when transmitting video stream data to the server based on the communication type, and the identification code is synchronously stored in the auxiliary terminal; When the video acquisition terminal acquires the video stream data, it acquires the corresponding identification code from the auxiliary terminal based on the communication type with the server, and inserts the identification code at the corresponding video frame in the video stream data; The video stream data with the identification code inserted is compressed and transmitted to the server, and the server decompresses the video stream data segment containing the identification code; When the playback terminal selects video stream data to be played from the server, the server compresses the video stream data segment containing the identification code and transmits it to the playback terminal for decompression and playback; The communication type between each video acquisition terminal and the server includes a wired communication mode and a wireless communication mode; The setting of corresponding identification codes when each video acquisition terminal transmits video stream data to the server based on the communication type refers to: If the communication type between the video acquisition terminal and the server is a wired communication mode, setting a first identification code for the video stream data every first number of video frames; If the communication type between the video acquisition terminal and the server is a wireless communication mode, setting a second identification code for the video stream data every second number of video frames; The first number is greater than the second number.

2. A video stream data analysis method according to claim 1, characterized in that: The establishment of a two-dimensional rectangular coordinate system based on the server refers to: Get the size information of the server, and use any vertex on the bottom surface of the server as the origin O of the two-dimensional rectangular coordinate system, the straight line passing through the origin where the height of the server is located as the Y axis, and the straight line passing through the origin where the length or width of the server is located as the X axis, to establish a two-dimensional rectangular coordinate system.

3. A video stream data analysis method according to claim 1, characterized in that: The method of obtaining the centroids of all video acquisition terminals within the communication range and calculating the polar coordinates of each centroid based on a two-dimensional rectangular coordinate system includes the following steps: Get the centroid of all video acquisition terminals within the communication range; The origin O of the two-dimensional rectangular coordinate system is used as the polar center of the polar coordinates, and the direction of the OX ray in the two-dimensional rectangular coordinate system is used as the polar axis of the polar coordinates; Project all centroids into a two-dimensional rectangular coordinate system to form projection points, and connect the polar centers and projection points in sequence; According to the coordinates of the projection point in the two-dimensional rectangular coordinate system, the polar diameter and polar angle of each projection point in the polar coordinates are calculated in turn, and the polar coordinates of the corresponding centroid are represented by the calculated polar diameter and polar angle of the projection point.

4. A video stream data analysis method according to claim 3, characterized in that: The centroid-based polar coordinates are used to set an auxiliary terminal for the corresponding video acquisition terminal, wherein the polar diameter or polar angle of the projection point of the centroid of the auxiliary terminal in the two-dimensional rectangular coordinate system in the polar coordinates is equal to the polar diameter or polar angle of the projection point of the centroid of the corresponding video acquisition terminal in the two-dimensional rectangular coordinate system in the polar coordinates.

5. A video stream data analysis method according to claim 1, characterized in that: When setting corresponding identification codes for each video acquisition terminal when transmitting video stream data to the server based on the communication type, the identification codes are pre-stored in a first storage list in the server and synchronously stored in a second storage list in the auxiliary terminal; When the video acquisition terminal acquires the video stream data and compresses the video stream data with the identification code inserted therein and transmits it to the server, the identification code in the first storage list is updated, and then the identification code in the second storage list is synchronously updated.

6. A video stream data analysis method according to claim 1, characterized in that: After the server decompresses the video stream data segment containing the identification code and before the playback terminal selects the video stream data to be played from the server, the method further includes: If the communication type between the video acquisition terminal and the server is a wired communication mode, it is determined whether the number of the first identification codes in the video stream data segment containing the identification code decompressed by the server reaches a first preset value, and if so, the playback terminal is allowed to select to play the video stream data from the server, otherwise, the playback terminal is not allowed to select to play the video stream data from the server; If the communication type between the video acquisition terminal and the server is wireless communication, it is determined whether the number of second identification codes in the video stream data segment containing the identification code decompressed by the server reaches a second preset value. If so, the playback terminal is allowed to select to play the video stream data from the server. Otherwise, the playback terminal is not allowed to select to play the video stream data from the server.

7. A video stream data analysis method according to claim 6, characterized in that: A ratio of the first preset value to the number of all set first identification codes is greater than a ratio of the second preset value to the number of all set second identification codes.

8. A video stream data analysis system, applied to a video stream data analysis method according to any one of claims 1 to 7, characterized in that: include: A communication type and communication range acquisition unit, used to acquire the communication type and communication range between each video acquisition terminal and the server; A polar coordinate acquisition unit, used to establish a two-dimensional rectangular coordinate system based on the server, and obtain the centroids of all video acquisition terminals within the communication range, and calculate the polar coordinates of each centroid based on the two-dimensional rectangular coordinate system; An identification code setting unit, used to set an auxiliary terminal for the corresponding video acquisition terminal based on the polar coordinates of the centroid, and to set a corresponding identification code for each video acquisition terminal when transmitting video stream data to the server based on the communication type, wherein the identification code is synchronously stored in the auxiliary terminal; An identification code acquisition unit, configured to acquire a corresponding identification code from the auxiliary terminal based on the communication type with the server when the video acquisition terminal acquires the video stream data, and insert the identification code into the corresponding video frame in the video stream data; A video stream data transmission unit, used for compressing the video stream data inserted with the identification code and transmitting it to the server, and the server decompresses the video stream data segment containing the identification code; The video stream data acquisition unit is used for, when the playback terminal selects the video stream data to be played from the server, the server compresses the video stream data segment containing the identification code and transmits it to the playback terminal for decompression and playback.

Citation Information

Patent Citations

  • Video playing, providing and detecting methods, set top box, media server and system

    CN109218752A

  • Video processing method and device, electronic equipment and storage medium

    CN116996736A