Video return control method and device, recorder and medium

By starting the video return management service in the recorder, managing the client's protocol configuration information and adapting to multiple video transmission protocols, the application scenario restriction caused by the single video transmission protocol of the recorder is solved, and the applicability and efficiency of the recorder are improved.

CN119629156AActive Publication Date: 2025-03-14CHENGDU TD TECH LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311175852.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-12
Publication Date
2025-03-14
Estimated Expiration
2043-09-12

AI Technical Summary

Technical Problem

In the prior art, the video transmission protocol of the recorder is single, resulting in frequent modification of the protocol when applied between different industries, which is costly and wasteful.

Method used

By starting the video return management service in the recorder, creating an interface to manage the client's protocol configuration information, establishing a Socket connection, and starting the video return service of the corresponding protocol after disconnection, realizing the adaptation of multiple video transmission protocols.

Benefits of technology

It improves the applicability of the recorder, reduces the difficulty and cost of agreement modification, and saves human and material resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119629156A_ABST
    Figure CN119629156A_ABST
Patent Text Reader

Abstract

The invention provides a video return control method and device, a recorder and a medium, and relates to the technical field of video monitoring. The method comprises the following steps: after the recorder is started and accessed to a target network, creating a first socket interface, a message protocol management interface and a video return initialization interface at a recorder end; in response to a target connection request received through the first socket interface, establishing a Socket connection; sending a query request to a local database through the message protocol management interface, so that the local database searches protocol configuration information of the client; when the protocol configuration information is found, disconnecting the Socket connection; and starting a video return service corresponding to the protocol configuration information in the recorder through the video return initialization interface, so that the video return service and the client perform control-level interaction, and sending a video stream collected by the recorder to the client. According to the invention, the recorder can adapt to various video transmission protocols, and the applicability of the recorder is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of video surveillance technology, and in particular to a video return control method, device, recorder and medium. Background Art

[0002] With the rapid development of communication technology, humans are increasingly relying on modern communication technology to transmit information. In the field of video surveillance of recorders, different industries may use different video transmission protocols. In order to realize the application of recorders in different industries, some manufacturers provide a variety of different recorders. Among them, each recorder is only targeted at a specific industry and is configured with a video transmission protocol, and no other protocols are considered.

[0003] When a recorder used in one industry is to be applied to other industries that use other protocols, the existing technology can only require manufacturers to modify the video transmission protocol at the cost of time, labor, and technology.

[0004] However, it is difficult to modify the protocol and wastes human and material resources. The fundamental reason is that the existing technology has a problem of limited scenarios due to the single video transmission protocol of the recorder. Summary of the invention

[0005] The present application provides a video return control method, device, recorder and medium, which are used to solve the problem of limited scenarios caused by the single video transmission protocol of the recorder in the prior art.

[0006] According to a first aspect of the present application, a video backhaul control method is provided, comprising:

[0007] After the recorder is started and connected to the target network, the video return management service of the recorder is started, so that the video return management service creates a first socket interface, a message protocol management interface and a video return initialization interface on the recorder end; wherein the target network is the network where the client is located;

[0008] In response to a target connection request carrying identification information of the client received through the first socket interface, establishing a Socket connection between the recorder and the client; wherein the target connection request is a connection request sent by the client through the second socket interface created by the client;

[0009] Sending a query request including the identification information of the client to a local database through the message protocol management interface, so that the local database searches for the protocol configuration information of the client according to the identification information of the client; wherein the protocol configuration information is the configuration information of the video transmission protocol adopted by the client;

[0010] After finding the protocol configuration information, disconnect the Socket connection;

[0011] After disconnecting the Socket connection, the video return service corresponding to the protocol configuration information in the recorder is started through the video return initialization interface, so that the video return service interacts with the client at the control level and sends the video stream collected by the recorder to the client.

[0012] Optionally, after the local database searches for the protocol configuration information of the client according to the identification information of the client, the method further includes:

[0013] When the protocol configuration information is not found, sending first flag information to the client through the message protocol management interface; wherein the first flag information is used to indicate that the protocol configuration information is not stored in the local database;

[0014] Receive feedback information sent by the client based on the first flag information, store the protocol configuration information in the feedback information and the identification information of the client in a preset global protocol configuration information table of the local database in correspondence with each other according to a target storage method, and disconnect the Socket connection.

[0015] Optionally, the target storage method is a structure method, or a method combining an enumeration type and a structure.

[0016] Optionally, the identification information of the client is an IP address; the protocol configuration information includes at least one of the following: a protocol type, a protocol configuration parameter, and an identifier for indicating whether to automatically start a video stream.

[0017] Optionally, after receiving feedback information sent by the client based on the first flag information, the method further includes:

[0018] A confirmation message indicating receipt of the feedback information is sent to the client through the message protocol management interface.

[0019] Optionally, after finding the protocol configuration information, the method further includes:

[0020] Second flag information is sent to the client through the message protocol management interface; wherein the second flag information is used to indicate that the protocol configuration information is stored in the local database.

[0021] Optionally, the video transmission protocol adopted by the client is RTSP protocol, ONVIF protocol, RTMP protocol, HLS protocol, GB / T28181 protocol or Dash protocol.

[0022] According to a second aspect of the present application, a video return control device is provided, comprising:

[0023] A video return management startup module, used to start the video return management service of the recorder after the recorder is started and connected to the target network, so that the video return management service can create a first socket interface, a message protocol management interface and a video return initialization interface on the recorder side; wherein the target network is the network where the client is located;

[0024] An establishing module, configured to establish a Socket connection between the recorder and the client in response to a target connection request carrying identification information of the client received through the first socket interface; wherein the target connection request is a connection request sent by the client through the second socket interface created by the client;

[0025] A sending search module, used for sending a query request containing the identification information of the client to the local database through the message protocol management interface, so that the local database can search for the protocol configuration information of the client according to the identification information of the client; wherein the protocol configuration information is the configuration information of the video transmission protocol adopted by the client;

[0026] A disconnection module, used for disconnecting the Socket connection after finding the protocol configuration information;

[0027] The video return service startup module is used to start the video return service corresponding to the protocol configuration information in the recorder through the video return initialization interface after disconnecting the Socket connection, so that the video return service can interact with the client at the control level and send the video stream collected by the recorder to the client.

[0028] According to a third aspect of the present application, there is provided a recorder, comprising: at least one processor and a memory;

[0029] The memory stores computer-executable instructions;

[0030] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the video return control method as described in the first aspect above.

[0031] According to a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the video return control method described in the first aspect above.

[0032] According to a fifth aspect of the present application, a computer program product is provided, including a computer program, which, when executed by a processor, implements the video return control method described in the first aspect.

[0033] A video return control method provided by the present application includes: after the recorder is started and connected to the target network, starting the video return management service of the recorder, so that the video return management service creates a first socket interface, a message protocol management interface and a video return initialization interface on the recorder side; wherein the target network is the network where the client is located; in response to a target connection request carrying the client's identification information received through the first socket interface, establishing a Socket connection between the recorder and the client; wherein the target connection request is a connection request sent by the client through a second socket interface created by the client; sending a query request containing the client's identification information to a local database through the message protocol management interface, so that the local database can search for the client's protocol configuration information according to the client's identification information; wherein the protocol configuration information is the configuration information of the video transmission protocol adopted by the client; when the protocol configuration information is found, disconnecting the Socket connection; after disconnecting the Socket connection, starting the video return service corresponding to the protocol configuration information in the recorder through the video return initialization interface, so that the video return service can interact with the client at the control level, and send the video stream collected by the recorder to the client.

[0034] This application creates three interfaces, namely the first socket interface, the message protocol management interface and the video return initialization interface, through the video return management service of the recorder, and realizes the management and control of the configuration information of the video transmission protocol adopted by the client through the functions of each interface, so that the recorder can adapt to different video transmission protocols adopted by different clients, thereby improving the applicability of the recorder.

[0035] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0037] Figure 1 A schematic diagram of a flow chart of a video transmission control method provided in an embodiment of the present application;

[0038] Figure 2 A flowchart of another video return control method provided in an embodiment of the present application;

[0039] Figure 3 A schematic diagram of the structure of a video feedback control system provided in an embodiment of the present application;

[0040] Figure 4 A flowchart of another video transmission control method provided in an embodiment of the present application;

[0041] Figure 5 A schematic diagram of the structure of a video return control device provided in an embodiment of the present application;

[0042] Figure 6 A schematic diagram of the structure of a recorder provided in an embodiment of the present application.

[0043] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0044] Here, exemplary embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application.

[0045] When a recorder used in one industry is to be applied to other industries that use other protocols, the existing technology can only require manufacturers to modify the video transmission protocol at the cost of time, labor, and technology.

[0046] However, on the one hand, it is difficult to modify the protocol and wastes human and material resources. The fundamental reason is that the existing technology has a problem of limited scenarios due to the single video transmission protocol of the recorder.

[0047] In other words, manufacturers who produce recorders often only provide corresponding video return services for specific fields, and do not have sufficient understanding of video return services in other fields and other protocols. Ultimately, the recorder can only realize one video return function. The video transmission protocol used by the video return function is single, and only supports interaction with the video receiving server that implements the video transmission protocol to realize video transmission. The recorder provided by the prior art has a small scope of application. When the recorder is to be applied to other industries that adopt other protocols, the video return function will not be able to play a role.

[0048] On the other hand, for the video return service of a single video transmission protocol, since the configuration information of the video transmission protocol is fixed, the video receiving server can simply perform a simple analysis after receiving the video; if two or more video transmission protocols are involved, the differences between different video transmission protocols need to be considered, and the previous simple analysis method will not be applicable. If the protocol configuration parameters of multiple video transmission protocols are inconsistent, if the single structure provided by the existing technology is still used for data storage, there will be a problem of storage difficulty.

[0049] In order to solve the above technical problems, the overall inventive concept of the present application is to provide a method for adapting to different video transmission protocols used by different clients and improving the applicability of the recorder in the field of video surveillance.

[0050] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0051] Embodiment 1:

[0052] Figure 1 A flowchart of a video transmission control method provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the method of this embodiment includes the following steps:

[0053] S10, after the recorder is started and connected to the target network, the video return management service of the recorder is started, so that the video return management service creates a first socket interface, a message protocol management interface and a video return initialization interface on the recorder side. The target network is the network where the client is located.

[0054] It should be understood that the recorder may be called a recorder device, a video sending server, etc., and the client may be called a video receiving server. The client is generally a server of a power company or a server of a certain unit. The first socket interface may be called a server socket interface, denoted as SocketServer, which is a listening port, the message protocol management interface is denoted as ProtocolMessageManage, and the video upload initialization interface is denoted as VideoUploadInitial.

[0055] The embodiments of the present application can set different video return protocols for the recorder, so that the recorder can support multiple video transmission protocols, such as Real-Time Streaming Protocol (RTSP), ONVIF protocol, Real-Time Messaging Protocol (RTMP), HTTP Live Streaming (HLS) protocol, GB / T28181 protocol, and a new generation of streaming media transmission based on HTTP (Dynamic Adaptive Streaming over HTTP, Dash) protocol.

[0056] S20, in response to the target connection request carrying the identification information of the client received through the first socket interface, establish a Socket connection between the recorder and the client; wherein the target connection request is a connection request sent by the client through the second socket interface created by the client. The connection request is also called a link request. The second socket interface is recorded as SocketClient.

[0057] After the SocketServer is created, the SocketServer is used to bind and listen to a fixed port (or local port) to check whether there is access to the second socket interface SocketClient of the client.

[0058] S30. Send a query request containing the identification information of the client to the local database through the message protocol management interface, so that the local database can search for the protocol configuration information of the client according to the identification information of the client; wherein the protocol configuration information is the configuration information of the video transmission protocol adopted by the client.

[0059] In the embodiment of the present application, the video transmission protocol is also called the video return protocol. The identification information of the client may be an IP address or other identification; the protocol configuration information includes at least one of the following: a protocol type, a protocol configuration parameter, and an identification indicating whether to automatically start the video stream. Furthermore, the protocol configuration information of the client is stored in a preset global protocol configuration information table of the local database in a structure or in a combination of an enumeration type and a structure. This part of the content is specifically described in the following embodiment 2 and will not be repeated here.

[0060] In an embodiment of the present application, when the client accesses the recorder for the first time, the recorder interacts with the client and obtains the protocol configuration information of the video transmission protocol adopted by the client through ProtocolMessageManage, and stores it in the local database. When the client accesses again, it can be read directly from the local database.

[0061] S40, after finding the protocol configuration information, disconnect the Socket connection. This embodiment can release space and save resources by disconnecting the connection.

[0062] S50. After disconnecting the Socket connection, start the video return service corresponding to the protocol configuration information in the recorder through the video return initialization interface, so that the video return service interacts with the client at the control level, and sends the video stream collected by the recorder to the client.

[0063] In an embodiment of the present application, a recorder includes multiple video return services, and each video return service corresponds to a video transmission protocol. The embodiment of the present application does not specifically limit the acquisition time of the video stream, so the video stream can be collected by the recorder in real time, or it can be collected by the recorder at a historical time node, and this embodiment does not specifically limit this. When the video is returned, the recorder can transmit according to the preset data stream return rules.

[0064] VideoUploadInitial is used to start the video uplink service of the corresponding protocol according to the protocol configuration information, so that the video uplink service corresponding to the video transmission protocol adopted by the client can transmit the video stream.

[0065] It should be understood that different video transmission protocols differ greatly at the control level but less at the video stream transmission level. For this scenario, this embodiment can manage the video transmission protocol before the video backhaul is initiated to achieve effective control of multiple video transmission protocols. This embodiment completes the management of multiple video transmission protocols through the established video backhaul control mechanism. That is, after the recorder is started and connected to the network, this embodiment adds three interfaces to complete the control of the protocol configuration information, specifically:

[0066] After the recorder is started and connected to the network, a SocketServer is created. The SocketServer is used to bind and listen to a fixed port. When a client accesses, it checks whether the client's IP exists in the preset global protocol configuration information table stored in the local database. If so, the corresponding protocol configuration information stored in the local database is read according to the client's IP, and then the connection with the client is disconnected, and the video return service is started according to the protocol configuration information; if the local database does not find the client's IP, a message is sent and waits to receive the protocol configuration information sent by the client. After receiving the protocol configuration information sent by the client, the video return management service stores the protocol type, protocol configuration parameters, whether to automatically start the video stream, and other information locally, and starts the corresponding video return service according to the protocol configuration information, so that the corresponding video return service can realize the effective transmission of the video stream.

[0067] The video transmission protocol used by the recorder in the prior art is single, and only supports data transmission with the video receiving server that implements the protocol. It has a small scope of application and cannot adapt to multiple protocols. Compared with the prior art, the embodiment of the present application provides a frequency return control method, which is an adaptive video stream control method based on Socket communication. The method creates three interfaces, namely a first socket interface, a message protocol management interface and a video return initialization interface, through the video return management service of the recorder, and realizes the control of the configuration information of the video transmission protocol used by the client through the function of each interface, thereby enabling the recorder to adapt to different video transmission protocols used by different clients, thereby improving the applicability of the recorder.

[0068] In a possible implementation, the video transmission protocol adopted by the client is the RTSP protocol, the ONVIF protocol, the RTMP protocol, the HLS protocol, the GB / T28181 protocol or the Dash protocol.

[0069] The recorder in the embodiment of the present application can manage the above-mentioned multiple video transmission protocols through the video return management service, and then can communicate with different clients using different video transmission protocols, thereby improving the convenience of video return and the applicability of the recorder.

[0070] In a possible implementation, after the protocol configuration information is found and before the socket connection is disconnected, the method further includes:

[0071] S60. Send second flag information to the client through the message protocol management interface; wherein the second flag information is used to indicate that protocol configuration information is stored in the local database.

[0072] The above steps S10 to S50 and step S60 are all specific steps in the video return control mechanism. This embodiment establishes a video return control mechanism, through which the compatibility of multiple video transmission protocols is achieved, and all implemented video transmission protocols are controlled. Specifically, it creates a SocketServer, binds a local port, listens for link requests, and manages the received client's protocol configuration information after accessing the link. When accessing again, the video return service corresponding to the video transmission protocol adopted by the client is adaptively started.

[0073] After step S30, in addition to finding the protocol configuration information, this embodiment may also fail to find the protocol configuration information. In the case where the protocol configuration information cannot be found, the embodiment of the present application provides another video return control method.

[0074] Embodiment 2:

[0075] Figure 2A flowchart of another video transmission control method provided in an embodiment of the present application. Figure 2 As shown, another video return control method includes:

[0076] S21, after the recorder is started and connected to the target network, the video return management service of the recorder is started, so that the video return management service creates a first socket interface, a message protocol management interface and a video return initialization interface on the recorder side. The target network is the network where the client is located.

[0077] S22. In response to a target connection request carrying identification information of the client received through the first socket interface, establish a Socket connection between the recorder and the client; wherein the target connection request is a connection request sent by the client through the second socket interface created by the client.

[0078] S23. Send a query request containing the identification information of the client to the local database through the message protocol management interface, so that the local database can search for the protocol configuration information of the client according to the identification information of the client; wherein the protocol configuration information is the configuration information of the video transmission protocol adopted by the client.

[0079] It should be understood that the specific implementation of steps S21 to S23 is the same as Figure 1 Steps S10 to S30 are similar and will not be described in detail here.

[0080] S24. When the protocol configuration information is not found, sending first flag information to the client through the message protocol management interface; wherein the first flag information is used to indicate that the protocol configuration information is not stored in the local database;

[0081] S25, receiving feedback information sent by the client based on the first flag information, storing the protocol configuration information in the feedback information and the identification information of the client in a preset global protocol configuration information table of the local database in correspondence with each other according to the target storage method, and disconnecting the Socket connection.

[0082] S26. After disconnecting the Socket connection, start the video return service corresponding to the protocol configuration information in the recorder through the video return initialization interface, so that the video return service interacts with the client at the control level, and sends the video stream collected by the recorder to the client.

[0083] It should be understood that the specific implementation of step S26 is the same as Figure 1 The process is similar to step S50 in , and will not be described in detail here.

[0084] Compared with the prior art, the embodiment of the present application creates three interfaces, namely the first socket interface, the message protocol management interface and the video return initialization interface, through the video return management service of the recorder, and realizes the management and control of the configuration information of the video transmission protocol adopted by the client through the function of each interface, thereby enabling the recorder to adapt to different video transmission protocols adopted by different clients, thereby improving the applicability of the recorder.

[0085] In a possible implementation, the target storage method is a structure method, or a method combining an enumeration type and a structure.

[0086] In view of the difficulty in storing multiple protocol configuration information in the prior art, this embodiment establishes a data structure set associated with the video transmission protocol, and adopts a design pattern combining enumeration type and structure to realize global storage of protocol configuration information. This embodiment stores the protocol type in the protocol configuration information in the form of enumeration, and each protocol type corresponds to its own protocol configuration structure.

[0087] In a possible implementation, the identification information of the client is an IP address; the protocol configuration information includes at least one of the following: a protocol type, a protocol configuration parameter, and an identifier for indicating whether to automatically start a video stream.

[0088] This embodiment establishes a preset global protocol configuration information table, which is used to store protocol configuration information of various video transmission protocols. The table mainly includes: client IP, protocol type of video transmission protocol, configuration parameters of video transmission protocol, whether to automatically start video stream, etc. Optionally, this embodiment uses a combination of enumeration type and structure to store protocol type, configuration parameters, etc. of video transmission protocol, that is, protocol type and configuration parameters correspond one to one.

[0089] This embodiment stores the identification information and protocol configuration information of the client that has accessed previously in a preset global protocol configuration information table. When the same client accesses next time, this embodiment can traverse and obtain the corresponding protocol configuration information from the above table based on the identification information of the client, and then start the corresponding video return service based on the obtained protocol configuration information, thereby improving the applicability of the recorder.

[0090] In a possible implementation, after receiving feedback information sent by the client based on the first flag information in step S25, the method further includes:

[0091] S27. Send confirmation information indicating receipt of the feedback information to the client through the message protocol management interface.

[0092] Step S27 can ensure information synchronization between the communicating parties (client and recorder), prevent failure in sending protocol configuration information due to poor network / client downtime, and thus ensure accuracy of protocol configuration information management.

[0093] Based on the above embodiments, the technical solution of the present application is described in more detail below in combination with several specific embodiments.

[0094] Figure 3 The structure diagram of a video return control system provided in the embodiment of the present application is shown in FIG. Figure 3 As shown, the video return control system includes a client 31 and a recorder 32. The recorder includes a video return management service module 321 and a video return service module 322, wherein the video return service module 322 is used to provide multiple video return services using different video transmission protocols. The video return control system is used to provide a video return control method.

[0095] exist Figure 3 On the basis of Figure 4 A flowchart of another video transmission control method provided in an embodiment of the present application is shown below. Figure 4 As shown, the method of this embodiment includes the following steps:

[0096] S401, after the video transmission management service module is powered on and connected to the network, a SocketServer is established.

[0097] S402: The client establishes a SocketClient.

[0098] S403: The client initiates a connection request carrying the client's IP.

[0099] S404, the video return management service module establishes a connection and queries the client's protocol configuration information according to the client's IP. After executing step S404, this embodiment determines whether to execute the following steps S405 to S408 or step S409 according to the query result.

[0100] S405: The video return management service module sends a non-storage flag. It should be understood that the non-storage flag corresponds to the first flag information in the second embodiment.

[0101] S406: The client sends protocol configuration information.

[0102] S407: The video transmission management service module saves the protocol configuration information and the client's IP.

[0103] S408: The video return management service module sends a receiving reply message to the client. It should be understood that the receiving reply message is equivalent to the feedback information in the second embodiment.

[0104] S409: The video transmission management service module sends a stored flag to the client. It should be understood that the stored flag corresponds to the second flag information in the first embodiment.

[0105] S410: The video transmission management service module disconnects the connection and sends a disconnection message to the client.

[0106] S411. The video return management service module starts the video return service.

[0107] S412: The video backhaul service module interacts with the client at the control level.

[0108] S413: The video backhaul service module performs video stream transmission.

[0109] Based on the operations of the above steps S401 to S413, this embodiment has put the above technical solution into practical application. For example, a company in the first area uses the RTSP protocol for video transmission, and another company in the second area uses the GB / T28181 protocol for video transmission. In order to implement these two video transmission protocols, the recorder combines this solution to complete the management and control of the two video transmission protocols, that is, when the video is transmitted based on the RTSP or GB / T28181 protocol for the first time, a Socket is established for interaction to obtain the protocol configuration information of the RTSP protocol or the GB / T28181 protocol. When each company accesses again, the recorder can adaptively read the protocol configuration information of the video transmission protocol pre-stored in the local database through the video transmission management service, and then quickly initiate the video transmission service of the corresponding protocol. This embodiment not only broadens the application scenarios of the recorder, but also effectively solves the problem of difficult management of different video transmission protocols.

[0110] By executing the operations of steps S401 to S413 above, the embodiment of the present application can study the video backhaul of the recorder. The proposed scheme realizes the management and control of adaptive video backhaul services based on multiple video transmission protocols, which can be applied in multiple fields of different video transmission protocols, thereby expanding the scope of use of the recorder.

[0111] Figure 5 The structure diagram of a video return control device provided in an embodiment of the present application is shown in FIG. The device of this embodiment may be in the form of software and / or hardware. Figure 5 As shown, the video return control device provided in this embodiment includes: a video return management startup module 51, a creation module 52, a sending search module 53, a disconnection module 54 and a video return service startup module 55. Among them:

[0112] The video return management startup module 51 is used to start the video return management service of the recorder after the recorder is started and connected to the target network, so that the video return management service can create a first socket interface, a message protocol management interface and a video return initialization interface on the recorder side; wherein the target network is the network where the client is located;

[0113] Establishing module 52, used to establish a Socket connection between the recorder and the client in response to a target connection request carrying identification information of the client received through the first socket interface; wherein the target connection request is a connection request sent by the client through the second socket interface created by the client;

[0114] The sending search module 53 is used to send a query request containing the identification information of the client to the local database through the message protocol management interface, so that the local database can search for the protocol configuration information of the client according to the identification information of the client; wherein the protocol configuration information is the configuration information of the video transmission protocol adopted by the client;

[0115] A disconnection module 54 is used to disconnect the Socket connection after finding the protocol configuration information;

[0116] The video return service startup module 55 is used to start the video return service corresponding to the protocol configuration information in the recorder through the video return initialization interface after the Socket connection is disconnected, so that the video return service interacts with the client at the control level and sends the video stream collected by the recorder to the client.

[0117] In a possible implementation, after searching the local database for the client's protocol configuration information according to the client's identification information, the video return control device is further used to:

[0118] When the protocol configuration information is not found, first flag information is sent to the client through the message protocol management interface; wherein the first flag information is used to indicate that the protocol configuration information is not stored in the local database;

[0119] Receive feedback information sent by the client based on the first flag information, store the protocol configuration information in the feedback information and the identification information of the client in a preset global protocol configuration information table of the local database in correspondence with each other according to the target storage method, and disconnect the Socket connection.

[0120] In a possible implementation, in the video return control device, the target storage method is a structure method, or a method combining an enumeration type and a structure.

[0121] In a possible implementation, in the video return control device, the identification information of the client is an IP address; the protocol configuration information includes at least one of the following: a protocol type, a protocol configuration parameter, and an identifier for indicating whether to automatically start the video stream.

[0122] In a possible implementation, after receiving feedback information sent by the client based on the first flag information, the video return control device is further used to:

[0123] A confirmation message indicating receipt of the feedback information is sent to the client through the message protocol management interface.

[0124] In a possible implementation, after finding the protocol configuration information, the video return control device is further used to:

[0125] The second flag information is sent to the client through the message protocol management interface; wherein the second flag information is used to indicate that the protocol configuration information is stored in the local database.

[0126] In a possible implementation, in the video return control device, the video transmission protocol adopted by the client is the RTSP protocol, ONVIF protocol, RTMP protocol, HLS protocol, GB / T28181 protocol or Dash protocol.

[0127] The video return control device provided in this embodiment can be used to execute the video return control method provided in any of the above method embodiments. Its implementation principles and technical effects are similar and will not be described in detail here.

[0128] It should be noted that the user information and data involved in this application (including but not limited to data used for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0129] That is to say, in the technical solution of this application, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the relevant laws and regulations and do not violate public order and good morals.

[0130] According to an embodiment of the present application, the present application also provides a recorder and a readable storage medium.

[0131] Figure 6A structural diagram of a recorder provided in an embodiment of the present application. The recorder includes a receiver 60, a transmitter 61, at least one processor 62 and a memory 63. The recorder composed of the above components can be used to implement the above-mentioned several specific embodiments of the present application, which will not be described in detail here.

[0132] The embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, each step of the method in the above embodiment is implemented.

[0133] An embodiment of the present application also provides a computer program product, including a computer program, which implements each step of the method in the above embodiment when executed by a processor.

[0134] Various embodiments of the systems and techniques described above in the present application can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs, which can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor, which can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0135] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or electronic device.

[0136] In the context of the present application, a computer-readable storage medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may be a machine-readable signal medium or a machine-readable storage medium. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a computer-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0137] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0138] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data electronic device), or a computing system that includes middleware components (e.g., an application electronic device), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0139] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps disclosed in this application can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solution disclosed in this application can be achieved, and this document does not limit this.

[0140] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the principles of this application should be included in the protection scope of this application.

Claims

1. A video return control method, characterized in that: include: After the recorder is started and connected to the target network, the video return management service of the recorder is started, so that the video return management service creates a first socket interface, a message protocol management interface and a video return initialization interface on the recorder end; wherein the target network is the network where the client is located; In response to a target connection request carrying identification information of the client received through the first socket interface, establishing a Socket connection between the recorder and the client; wherein the target connection request is a connection request sent by the client through the second socket interface created by the client; Sending a query request including the identification information of the client to a local database through the message protocol management interface, so that the local database searches for the protocol configuration information of the client according to the identification information of the client; wherein the protocol configuration information is the configuration information of the video transmission protocol adopted by the client; After finding the protocol configuration information, disconnect the Socket connection; After disconnecting the Socket connection, the video return service corresponding to the protocol configuration information in the recorder is started through the video return initialization interface, so that the video return service interacts with the client at the control level and sends the video stream collected by the recorder to the client.

2. The method according to claim 1, characterized in that After the local database searches for the protocol configuration information of the client according to the identification information of the client, the method further includes: When the protocol configuration information is not found, sending first flag information to the client through the message protocol management interface; wherein the first flag information is used to indicate that the protocol configuration information is not stored in the local database; Receive feedback information sent by the client based on the first flag information, store the protocol configuration information in the feedback information and the identification information of the client in a preset global protocol configuration information table of the local database in correspondence with each other according to a target storage method, and disconnect the Socket connection.

3. The method according to claim 2, characterized in that The target storage method is a structure method, or a method combining an enumeration type and a structure.

4. The method according to claim 1 or 2, characterized in that: The identification information of the client is an IP address; the protocol configuration information includes at least one of the following: a protocol type, a protocol configuration parameter, and an identifier for indicating whether to automatically start a video stream.

5. The method according to claim 2, characterized in that: After receiving feedback information sent by the client based on the first flag information, the method further includes: A confirmation message indicating receipt of the feedback information is sent to the client through the message protocol management interface.

6. The method according to claim 1, characterized in that After the protocol configuration information is found, the method further includes: Second flag information is sent to the client through the message protocol management interface; wherein the second flag information is used to indicate that the protocol configuration information is stored in the local database.

7. The method according to claim 1, characterized in that The video transmission protocol adopted by the client is RTSP protocol, ONVIF protocol, RTMP protocol, HLS protocol, GB / T28181 protocol or Dash protocol.

8. A video return control device, characterized in that: include: A video return management startup module, used to start the video return management service of the recorder after the recorder is started and connected to the target network, so that the video return management service can create a first socket interface, a message protocol management interface and a video return initialization interface on the recorder side; wherein the target network is the network where the client is located; An establishing module, configured to establish a Socket connection between the recorder and the client in response to a target connection request carrying identification information of the client received through the first socket interface; wherein the target connection request is a connection request sent by the client through the second socket interface created by the client; A sending search module, used for sending a query request containing the identification information of the client to the local database through the message protocol management interface, so that the local database can search for the protocol configuration information of the client according to the identification information of the client; wherein the protocol configuration information is the configuration information of the video transmission protocol adopted by the client; A disconnection module, used for disconnecting the Socket connection after finding the protocol configuration information; The video return service startup module is used to start the video return service corresponding to the protocol configuration information in the recorder through the video return initialization interface after disconnecting the Socket connection, so that the video return service can interact with the client at the control level and send the video stream collected by the recorder to the client.

9. A recorder, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the video return control method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the video return control method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Video backhaul control method and device, intelligent large-screen equipment and storage medium

    CN112333492A

  • Optimization method based on Eureka heartbeat connection

    CN115633081A

  • Low-delay audio and video transmission method, device and computer readable storage medium

    WO2019056203A1