Video backhaul control method and apparatus, recorder and medium

By creating socket interfaces, message protocol management interfaces, and video return initialization interfaces in the recorder, adaptive management of the video transmission protocol is achieved, solving the problem of insufficient applicability caused by the single video transmission protocol of the recorder, adapting to various application scenarios of different clients, and expanding the applicability of the recorder.

CN119629156BActive Publication Date: 2025-12-26CHENGDU TD TECH LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In existing technologies, the single video transmission protocol of recorders limits the application scenarios and makes it impossible to adapt to the video transmission protocols of different industries, resulting in high modification difficulty and wasted resources.

Method used

By creating socket interfaces, message protocol management interfaces, and video return initialization interfaces in the recorder, adaptive management of video transmission protocols can be achieved, supporting multiple video transmission protocols such as RTSP, ONVIF, RTMP, HLS, and GB/T28181. Protocol configuration information can be controlled through these interfaces.

Benefits of technology

It improves the applicability of the recorder, enabling it to adapt to different client video transmission protocols, expanding the application scenarios of the recorder, and solving the problem of managing multiple video transmission protocols.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119629156B_ABST
    Figure CN119629156B_ABST
Patent Text Reader

Abstract

The application provides a video backhaul 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 connected to a target network, a first socket interface, a message protocol management interface and a video backhaul initialization interface are created at the recorder end; in response to receiving a target connection request through the first socket interface, a socket connection is established; a query request is sent to a local database through the message protocol management interface, so that the local database finds protocol configuration information of a client; when the protocol configuration information is found, the socket connection is disconnected; a video backhaul service corresponding to the protocol configuration information in the recorder is started through the video backhaul initialization interface, so that the video backhaul service interacts with the client at a control level, and video streams collected by the recorder are sent to the client. The application can adapt the recorder to multiple video transmission protocols, and improves the applicability of the recorder.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of video monitoring, and in particular to a video backhaul control method and device, a recorder, and a medium. BACKGROUND

[0002] With the rapid development of communication technology, human beings are increasingly dependent on modern communication technology to realize information transmission. In the field of video monitoring of recorders, different industries may use different video transmission protocols. Some manufacturers provide a variety of different recorders in order to realize the application of recorders in different industries. Each type of recorder is configured with a video transmission protocol for a specific industry and does not consider other protocols.

[0003] When a recorder used by an industry is applied to another industry using other protocols, the prior art can only modify the video transmission protocol by spending time, labor, and technical costs of the manufacturer.

[0004] However, protocol modification is difficult and wastes resources such as manpower and material resources. The root cause is the scene limitation caused by the single video transmission protocol of the recorder in the prior art. SUMMARY

[0005] The present application provides a video backhaul control method, device, recorder, and medium to solve the problem of scene limitation 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 a target network, a video backhaul management service of the recorder is started to create a first socket interface, a message protocol management interface, and a video backhaul initialization interface on the recorder side; wherein the target network is a network where a client is located;

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

[0009] A query request containing the identification information of the client is sent to a local database through the message protocol management interface, so that the local database finds protocol configuration information of the client according to the identification information of the client; wherein the protocol configuration information is configuration information of a video transmission protocol used by the client;

[0010] When the protocol configuration information is found, the Socket connection is disconnected.

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

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

[0013] 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.

[0014] Feedback information sent by the client based on the first flag information is received, the protocol configuration information in the feedback information is stored in a preset global protocol configuration information table in the local database in a target storage mode according to the identification information of the client, and the Socket connection is disconnected.

[0015] Optionally, the target storage mode is a structure mode, or a combination of an enumeration type and a structure.

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

[0017] Optionally, after the feedback information sent by the client based on the first flag information is received, the method further comprises:

[0018] Confirmation information indicating that the feedback information is received is sent to the client through the message protocol management interface.

[0019] Optionally, when the protocol configuration information is found, the method further comprises:

[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 an RTSP protocol, an ONVIF protocol, an RTMP protocol, an HLS protocol, a GB / T28181 protocol, or a Dash protocol.

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

[0023] A video backhaul management starting module is configured to start a video backhaul management service of the recorder after the recorder is started and connected to a target network, so that the video backhaul management service creates a first socket interface, a message protocol management interface and a video backhaul initialization interface at the recorder end; wherein the target network is a network where a client is located;

[0024] A establishing module is 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 a second socket interface created by the client;

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

[0026] A disconnecting module is configured to disconnect the Socket connection when the protocol configuration information is found;

[0027] A video backhaul service starting module is configured to start a video backhaul service corresponding to the protocol configuration information in the recorder through the video backhaul initialization interface after the Socket connection is disconnected, so that the video backhaul service interacts with the client at a control level and sends a video stream collected by the recorder to the client.

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

[0029] The memory stores computer execution instructions;

[0030] The at least one processor executes the computer execution instructions stored in the memory, so that the at least one processor executes the video backhaul 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 execution instructions, and the computer execution instructions are executed by a processor to implement the video backhaul control method as described in the first aspect above.

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

[0033] The video backhaul control method provided by the present application comprises: after a recorder is started and connected to a target network, starting a video backhaul management service of the recorder, so that the video backhaul management service creates a first socket interface, a message protocol management interface and a video backhaul initialization interface at the recorder end; wherein the target network is a network where a 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 a second socket interface created by the client; sending a query request containing the identification information of the client to a local database through the message protocol management interface, so that the local database finds protocol configuration information of the client according to the identification information of the client; wherein the protocol configuration information is configuration information of a video transmission protocol adopted by the client; when the protocol configuration information is found, the Socket connection is disconnected; after the Socket connection is disconnected, starting a video backhaul service corresponding to the protocol configuration information in the recorder through the video backhaul initialization interface, so that the video backhaul service interacts with the client at a control level and sends a video stream collected by the recorder to the client.

[0034] The present application creates three interfaces of the first socket interface, the message protocol management interface and the video backhaul initialization interface through the video backhaul 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 the interfaces, so that the recorder can adapt to different video transmission protocols adopted by different clients, and the applicability of the recorder is improved.

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

[0036] The drawings incorporated into the specification and forming a part thereof, 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 flowchart of a video backhaul control method provided by an embodiment of the present application;

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

[0039] Figure 3 A structural schematic diagram of a video backhaul control system provided by an embodiment of the present application is provided.

[0040] Figure 4 A flowchart of another video backhaul control method provided by an embodiment of the present application is provided.

[0041] Figure 5 A structural schematic diagram of a video backhaul control device provided by an embodiment of the present application is provided.

[0042] Figure 6 A structural schematic diagram of a recorder provided by an embodiment of the present application is provided.

[0043] The above-described figures have shown the specific embodiments of the present application, which will be described in more detail hereinafter. These figures and the written description are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application for those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0044] The exemplary embodiments will be described in detail herein with reference to the attached drawings. The same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application.

[0045] When a recorder used by an industry is applied to another industry using another protocol, the prior art can only modify the video transmission protocol by the manufacturer at the cost of time, labor and technology.

[0046] However, on the one hand, the protocol modification is difficult and wastes resources such as manpower and material resources, and the root cause is the scene limitation caused by the single video transmission protocol of the recorder in the prior art.

[0047] That is, the manufacturer for producing the recorder often only provides corresponding video backhaul services for specific fields, and does not fully understand video backhaul services for other fields, other protocols, etc. Ultimately, the recorder can only realize one video backhaul function. The video transmission protocol used by the video backhaul function is single, only supports interaction with a video receiving server that implements the video transmission protocol, and thus realizes video transmission. The recorder provided by the prior art has a small range of application fields. When the recorder is applied to another industry using another protocol, it will not be able to play the video backhaul function.

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

[0049] To solve the above technical problems, the overall inventive concept of the present application is how to provide a method applied to the field of video monitoring, for adapting different video transmission protocols adopted by different clients, and improving the applicability of the recorder.

[0050] The technical solutions of the present application and how the technical solutions of the present application solve the above technical problems will be 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 can not be described again in some embodiments. The embodiments of the present application will be described below with reference to the drawings.

[0051] Embodiment 1:

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

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

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

[0055] ​The embodiments of the present application can set different video backhaul 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 / T 28181 protocol, Dynamic Adaptive Streaming over HTTP (Dash) protocol and the like.

[0056] S20, in response to a target connection request carrying the 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. The connection request is also called a link request. The second socket interface is denoted as SocketClient.

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

[0058] S30, sending a query request containing the identification information of the client to the local database through a message protocol management interface, so that the local database finds 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 embodiments of the present application, the video transmission protocol is also called video backhaul protocol. The identification information of the client can be an IP address or other identification; the protocol configuration information includes at least one of the following: protocol type, protocol configuration parameter, and identification for indicating whether to automatically start video stream. Further, the protocol configuration information of the client is stored in a preset global protocol configuration information table of the local database in the form of a structure body, or in the form of combination of enumeration type and structure body, which will be described in detail in Embodiment 2 below, and will not be described here.

[0060] In the embodiments 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 the protocol configuration information into the local database, so that when the client accesses again, the protocol configuration information can be directly read from the local database.

[0061] S40, when the protocol configuration information is found, disconnect the Socket connection. By disconnecting the connection, the embodiment can release space and save resources.

[0062] S50, after the Socket connection is disconnected, the video upload initialization interface is started to start the video upload service corresponding to the protocol configuration information in the recorder, so that the video upload service and the client perform interaction at the control level, and the video stream collected by the recorder is sent to the client.

[0063] In the embodiment of the application, a plurality of video upload services are included in one recorder, and each video upload service corresponds to one video transmission protocol. The embodiment of the application does not make specific limitation on the collection time of the video stream, so the video stream can be collected by the recorder in real time or at a historical time node, which is not limited in the embodiment. When uploading the video, the recorder can transmit according to the preset data stream upload rule.

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

[0065] It should be understood that, since different video transmission protocols differ greatly at the control level and differ less at the video stream transmission level, for this scenario, the embodiment can manage the video transmission protocol before initiating the video upload, to realize effective management and control of multiple video transmission protocols. The embodiment manages multiple video transmission protocols through the established video upload management mechanism. That is, after the recorder is started and connected to the network, the embodiment adds three interfaces to complete the management and control of the protocol configuration information, specifically:

[0066] After the recorder is started and connected to the network, the SocketServer is created, which is used to bind and listen to the fixed port. When a client accesses, it is checked whether the IP of the client exists in the preset global protocol configuration information table stored in the local database. If the IP exists, the corresponding protocol configuration information stored in the local database is read according to the IP of the client, and then the connection with the client is disconnected, and the video upload service is started according to the protocol configuration information. If the IP of the client is not found in the local database, a message is sent, and the protocol configuration information sent by the client is received, and the protocol type, protocol configuration parameter, and identification of whether to automatically start the video stream are stored in the local database, and the corresponding video upload service is started according to the protocol configuration information, so that the corresponding video upload service realizes effective transmission of the video stream.

[0067] The video transmission protocol used by the recorder in the prior art is single, only supports data transmission with a video receiving server implementing the protocol, has a smaller application range, and cannot adapt to multiple protocols. Compared with the prior art, the embodiment of the application provides a frequency return control method, which is an adaptive video stream management and control method based on Socket communication. The method creates three interfaces of a first socket interface, a message protocol management interface and a video return initialization interface through a video return management service of the recorder, and realizes management and control of configuration information of a video transmission protocol used by a client through the functions of the interfaces, so that the recorder can adapt to different video transmission protocols used by different clients, and the applicability of the recorder is improved.

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

[0069] The recorder in the embodiment of the application can manage the above multiple video transmission protocols through the video return management service, and can correspondingly communicate with different clients using different video transmission protocols, so that the convenience of video return and the applicability of the recorder are improved.

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

[0071] S60, sending second flag information 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.

[0072] The steps S10 to S50 and the step S60 are specific steps in the video return management and control mechanism. The embodiment establishes the video return management and control mechanism, realizes compatibility of multiple video transmission protocols through the video return management and control mechanism, and manages and controls all implemented video transmission protocols. Specifically, the SocketServer is created, the local port is bound, the link request is listened to, after the link is accessed, the protocol configuration information of the received client is managed, and when the client is accessed again, the video return service corresponding to the video transmission protocol used by the client is adaptively started.

[0073] After the step S30, in addition to possibly finding the protocol configuration information, the embodiment can also not find the protocol configuration information. For the case of not finding the protocol configuration information, the embodiment of the application provides another video return control method.

[0074] Embodiment 2:

[0075] Figure 2Another flowchart of a video backhaul control method is provided for the embodiments of the present application. As shown in Figure 2 Another video backhaul control method includes:

[0076] S21, after the recorder is started and connected to the target network, a video backhaul management service of the recorder is started, so that the video backhaul management service creates a first socket interface, a message protocol management interface and a video backhaul initialization interface at the recorder end. The target network is a 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, a Socket connection between the recorder and the client is established; the target connection request is a connection request sent by the client through a second socket interface created by the client.

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

[0079] It should be understood that the specific implementation of steps S21 to S23 is similar to steps S10 to S30 in Figure 1 , which will not be repeated here.

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

[0081] S25, feedback information sent by the client based on the first flag information is received, the protocol configuration information in the feedback information is stored in a preset global protocol configuration information table of the local database according to a target storage mode, and the Socket connection is disconnected.

[0082] S26, after the Socket connection is disconnected, a video backhaul service corresponding to the protocol configuration information in the recorder is started through the video backhaul initialization interface, so that the video backhaul service interacts with the client at a control level, and the video stream collected by the recorder is sent to the client.

[0083] It should be understood that the specific implementation of step S26 is similar to step S50 in Figure 1 , which will not be repeated here.

[0084] Compared with the prior art, the embodiment of the application creates three interfaces of a socket interface, a message protocol management interface and a video backhaul initialization interface through the video backhaul 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 the interfaces, so that the recorder can be adapted to different video transmission protocols adopted by different clients, and the applicability of the recorder is improved.

[0085] In a possible implementation manner, the target storage mode is a structure mode or a combination of an enumeration type and a structure.

[0086] In view of the problem of difficult storage of multiple protocol configuration information in the prior art, the embodiment establishes a data structure set associated with the video transmission protocol, adopts a design mode of a combination of an enumeration type and a structure, and realizes global storage of protocol configuration information. The embodiment stores the protocol type in the protocol configuration information in the form of enumeration, and each protocol type corresponds to a respective protocol configuration structure.

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

[0088] The embodiment establishes a preset global protocol configuration information table, which is used to store protocol configuration information of various video transmission protocols, and mainly includes the following information: an IP of a client, a protocol type of a video transmission protocol, a configuration parameter of the video transmission protocol, and an identification for indicating whether to automatically start a video stream. Optionally, the embodiment stores the protocol type and the configuration parameter of the video transmission protocol in a combination of an enumeration type and a structure, that is, the protocol type and the configuration parameter correspond to each other.

[0089] The embodiment stores the identification information and the protocol configuration information of the once-connected client in the preset global protocol configuration information table, and when the same client accesses next time, the embodiment can traverse the corresponding protocol configuration information from the table according to the identification information of the client, and then start the corresponding video backhaul service according to the obtained protocol configuration information, thereby improving the applicability of the recorder.

[0090] In a possible implementation manner, after step S25, the method further includes:

[0091] S27, sending, to the client through the message protocol management interface, confirmation information for indicating that the feedback information is received.

[0092] Step S27 ensures information synchronization between the two communicating parties (client and recorder), preventing the failure to send protocol configuration information due to poor network conditions or client downtime, thereby ensuring the accuracy of protocol configuration information management.

[0093] Based on the above embodiments, the technical solution of this application will be described in more detail below with reference to several specific embodiments.

[0094] Figure 3 This is a schematic diagram of a video return control system provided in an embodiment of this application. Figure 3 As shown, the video backhaul control system includes a client 31 and a recorder 32. The recorder includes a video backhaul management service module 321 and a video backhaul service module 322. The video backhaul service module 322 provides multiple video backhaul services using different video transmission protocols. The video backhaul control system provides a video backhaul control method.

[0095] exist Figure 3 On this basis, Figure 4 This is a flowchart illustrating another video return control method provided in an embodiment of this application. Figure 4 As shown, the method in this embodiment includes the following steps:

[0096] S401, the video backhaul management service module establishes a SocketServer after powering on and connecting to the network.

[0097] S402, The client establishes a SocketClient.

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

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

[0100] S405, The video return management service module sends an unstored flag. It should be understood that this unstored flag corresponds to the first flag information in Embodiment 2.

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

[0102] S407, the video backhaul management service module saves protocol configuration information and the client's IP address.

[0103] S408. The video return management service module sends a response message to the client. It should be understood that the response message is equivalent to the feedback message in Embodiment 2.

[0104] S409, the video backhaul management service module sends the stored flag to the client. It should be understood that the stored flag corresponds to the second flag information in embodiment 1.

[0105] S410, the video backhaul management service module disconnects. Disconnect and send disconnection information to the client.

[0106] S411, the video backhaul management service module starts the video backhaul service.

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

[0108] S413, the video backhaul service module transmits the video stream.

[0109] Based on the operations of steps S401 to S413 described above, the above technical solution is practically applied in this embodiment. For example, a company in the first region uses the RTSP protocol for video backhaul, and another company in the second region uses the GB / T28181 protocol for video backhaul. To realize these two video transmission protocols, the recorder combines this scheme to complete the management and control of the two video transmission protocols. That is, when video backhaul is first performed based on the RTSP or GB / T28181 protocol, a socket is established for interaction to obtain the protocol configuration information of the RTSP protocol or the GB / T28181 protocol. When the companies access again, the recorder can adaptively read the pre-stored protocol configuration information of the video transmission protocol in the local database through the video backhaul management service, and then quickly initiate the video backhaul service of the corresponding protocol. This embodiment not only widens the application scenario of the recorder, but also effectively solves the problem of difficult management of different video transmission protocols.

[0110] By performing the operations of steps S401 to S413 described above, the video backhaul of the recorder can be researched in this embodiment, and the above scheme is proposed to realize the management and control of adaptive video backhaul service based on multiple video transmission protocols, which can be applied in various fields of different video transmission protocols, and expand the use range of the recorder.

[0111] Figure 5 A structural diagram of a video backhaul control device provided by this embodiment. The device of this embodiment can be in the form of software and / or hardware. As shown in the figure, the video backhaul control device provided by this embodiment includes a video backhaul management start module 51, an establishment module 52, a sending and searching module 53, a disconnection module 54, and a video backhaul service start module 55. Among them: Figure 5

[0112] ​The video backhaul management starting module 51 is configured to start the video backhaul management service of the recorder after the recorder is started and accessed to the target network, so that the video backhaul management service creates a first socket interface, a message protocol management interface and a video backhaul initialization interface at the recorder end; wherein the target network is a network where the client is located.

[0113] The establishing module 52 is 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 and received through the first socket interface; wherein the target connection request is a connection request sent by the client through a second socket interface created by the client;

[0114] The sending searching module 53 is configured 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 searches the protocol configuration information of the client according to the identification information of the client; wherein the protocol configuration information is configuration information of a video transmission protocol adopted by the client.

[0115] The disconnecting module 54 is configured to disconnect the Socket connection when the protocol configuration information is found.

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

[0117] In a possible implementation, after the local database searches the protocol configuration information of the client according to the identification information of the client, the video backhaul control device is further configured to:

[0118] When the protocol configuration information is not found, send 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.

[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 a target storage mode, and disconnect the Socket connection.

[0120] In a possible implementation, in the video backhaul control device, the target storage mode is a structure body mode or a combination of an enumeration type and a structure body.

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

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

[0123] send, to the client through the message protocol management interface, confirmation information indicating that the feedback information is received.

[0124] In a possible implementation, after the protocol configuration information is found, the video backhaul control apparatus is further configured to:

[0125] send, to the client through the message protocol management interface, second flag information; 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 backhaul control apparatus, the video transmission protocol used by the client is an RTSP protocol, an ONVIF protocol, an RTMP protocol, an HLS protocol, a GB / T 28181 protocol, or a Dash protocol.

[0127] The video backhaul control apparatus provided in this embodiment can be used to execute the video backhaul control method provided in any of the method embodiments, and has similar implementation principles and technical effects, which will not be described here.

[0128] It should be noted that the user information and data (including but not limited to data for analysis, stored data, displayed data, and the like) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use, and processing of the relevant data need to comply with relevant laws, regulations, and standards of countries and regions, and provide corresponding operation entrances for the user to select authorization or refusal.

[0129] That is, in the technical solutions of the present application, the collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved in the technical solutions comply with relevant laws and regulations and do not violate public order and good customs.

[0130] According to the embodiments of the present application, the present application further provides a recording instrument and a readable storage medium.

[0131] Figure 6A structural schematic diagram of a recorder is provided in the embodiments of the present application. The recorder includes a receiver 60, a transmitter 61, at least one processor 62 and a memory 63. The recorder formed by the above components can be used to implement the above several specific embodiments of the present application, which will not be described herein again.

[0132] The embodiments of the present application further provide a computer readable storage medium, and the computer readable storage medium stores computer execution instructions. When the processor executes the computer execution instructions, each step in the method in the above embodiments is implemented.

[0133] The embodiments of the present application further provide a computer program product, which includes a computer program. When the processor executes the computer program, each step in the method in the above embodiments is implemented.

[0134] The various embodiments of the system and technology described above can be implemented in digital electronic circuitry, integrated circuitry, field programmable gate arrays (FPGA), application specific integrated circuits (ASIC), application specific standard products (ASSP), system on a chip systems (SOC), load programmable logic devices (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.

[0135] Program code for carrying out the methods of the present application can be written in any combination of one or more programming languages. The program code can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the program code, when executed by the processor or controller, produces the functions / operations specified in the flowcharts and / or the block diagrams. The program code can be executed entirely on a machine, partially on a machine, partially on a machine as a stand-alone software package, and partially on a remote machine or electronic device.

[0136] In the context of this application, a computer-readable storage medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A computer-readable storage medium can be a machine-readable signal medium or a machine-readable storage medium. A computer-readable storage medium can include but is not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a computer-readable storage medium can include an electrical connection based on one or more wires, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0137] To provide for interaction with a user, the systems and techniques described here 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 a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, 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, speech, or tactile input.

[0138] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a client computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, 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 various forms of flow shown above can be re-ordered, added to, or deleted from without departing from the spirit of the present disclosure. For example, the steps recited in the present disclosure can be performed in parallel, in series, or in a different order, as long as the desired results of the present disclosure are achieved, and the present disclosure is not limited herein.

[0140] The foregoing detailed description has set forth various embodiments of the devices and / or processes via the use of specific terminology. However, embodiments thereof can be practiced with the exact description not being set forth but with the same essence; the principles set forth herein can be practiced to achieve the present application. The scope of protection is not limited to the embodiments described and shown.

Claims

1. A video backhaul control method, characterized by, The method comprises the following steps: After the recorder is started and connected to a target network, a video backhaul management service of the recorder is started, so that the video backhaul management service creates a first socket interface, a message protocol management interface and a video backhaul initialization interface at the end of the recorder; wherein the target network is a network where a client is located; In response to a target connection request carrying identification information of the client received through the first socket interface, a Socket connection between the recorder and the client is established; wherein the target connection request is a connection request sent by the client through a second socket interface created by the client; A query request containing the identification information of the client is sent to a local database through the message protocol management interface, so that the local database finds protocol configuration information of the client according to the identification information of the client; wherein the protocol configuration information is configuration information of a video transmission protocol adopted by the client; When the protocol configuration information is found, the Socket connection is disconnected; After the Socket connection is disconnected, a video backhaul service corresponding to the protocol configuration information in the recorder is started through the video backhaul initialization interface, so that the video backhaul service interacts with the client at a control level and sends a video stream collected by the recorder to the client.

2. The method of claim 1, wherein, After the local database finds the protocol configuration information of the client according to the identification information of the client, the method further comprises: 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; Feedback information sent by the client based on the first flag information is received, protocol configuration information in the feedback information and the identification information of the client are stored in a preset global protocol configuration information table of the local database in a target storage mode, and the Socket connection is disconnected.

3. The method of claim 2, wherein, The target storage mode is a structure mode or a combination of 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 comprises at least one of the following: a protocol type, a protocol configuration parameter and an identification used to indicate whether a video stream is automatically started.

5. The method of claim 2, wherein, After receiving the feedback information sent by the client based on the first flag information, the method further comprises: Confirmation information indicating that the feedback information is received is sent to the client through the message protocol management interface.

6. The method of claim 1, wherein, When the protocol configuration information is found, the method further comprises: 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 of claim 1, wherein, The video transmission protocol adopted by the client is an RTSP protocol, an ONVIF protocol, an RTMP protocol, an HLS protocol, a GB / T28181 protocol or a Dash protocol.

8. A video backhaul control device, characterized by, The method comprises the following steps: The video backhaul management starting module is configured to start a video backhaul management service of the recorder after the recorder is started and connected to a target network, so that the video backhaul management service creates a first socket interface, a message protocol management interface and a video backhaul initialization interface at the recorder end; wherein the target network is a network where the client is located; The establishing module is 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 a second socket interface created by the client; The sending searching module is configured to send a query request containing the identification information of the client to a local database through the message protocol management interface, so that the local database searches protocol configuration information of the client according to the identification information of the client; wherein the protocol configuration information is configuration information of a video transmission protocol adopted by the client; The disconnecting module is configured to disconnect the Socket connection when the protocol configuration information is found; The video backhaul service starting module is configured to start a video backhaul service corresponding to the protocol configuration information in the recorder through the video backhaul initialization interface after the Socket connection is disconnected, so that the video backhaul service interacts with the client at a control level and sends a video stream collected by the recorder to the client.

9. A recording instrument characterized by Comprise: At least one processor and a memory; The memory stores computer execution instructions; The at least one processor executes the computer execution instructions stored in the memory, so that the at least one processor executes the video backhaul 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 execution instructions, and the computer execution instructions are executed by the processor to implement the video backhaul 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