Video acquisition system and method, network camera and video recorder

The communication connection is established with the server through the streaming media device, and the terminal device displays the device list and responds to the binding instructions, solving the communication difficulties between the video recorder and the network camera, realizing the connection without third-party devices, and reducing costs.

CN120475128AActive Publication Date: 2025-08-12HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510730076.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-30
Publication Date
2025-08-12
Estimated Expiration
2045-05-30

AI Technical Summary

Technical Problem

In the prior art, the communication connection between the video recorder and the network camera requires the formation of a virtual LAN with the help of third-party devices, which increases the equipment and maintenance costs, and the user configuration is complex and difficult to operate.

Method used

The pre-configured communication connection is established with the server through the streaming media device. The terminal device displays the device list and responds to the binding instructions. The server determines the identification of the video recorder and the device to be bound to establish a target communication connection without the need for a third-party device.

Benefits of technology

The communication connection between the video recorder and the device to be bound is realized, regardless of whether the device is in the same LAN, simplifying the configuration process and reducing equipment and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120475128A_ABST
    Figure CN120475128A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a video acquisition system and method, a network camera and a video recorder. The system comprises a terminal device, a server and a plurality of streaming media devices. Each streaming media device sends the device identifier to the server; the terminal device obtains a first device identifier of the video recorder indicated by the binding instruction and a second device identifier of the to-be-bound device indicated by the binding instruction; the server determines a device corresponding to the first device identifier as a target video recorder and a device corresponding to the second device identifier as a target to-be-bound device, and establishes a first target communication connection; the video recorder determines target to-be-controlled equipment targeted by the control instruction; and controlling the target to-be-controlled equipment to execute the operation indicated by the control instruction through the target communication connection established with the target to-be-controlled equipment. By applying the video acquisition system provided by the embodiment of the invention, no matter whether streaming media devices are in the same local area network or not, communication connection can be established without the third-party device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of video acquisition technology, and in particular to a video acquisition system, method, network camera and video recorder. Background Art

[0002] In a video acquisition system, a communication connection is usually established between a video recorder and a network camera to enable the video recorder to manage the network camera. In related technologies, for video recorders and network cameras belonging to the same local area network, a communication connection can be directly established between the video recorder and the network camera. However, for video recorders and network cameras that do not belong to the same local area network, a virtual local area network must be formed with the help of third-party equipment to establish a communication connection, which increases equipment and maintenance costs. Summary of the Invention

[0003] The purpose of the embodiments of the present application is to provide a video capture system, method, network camera, and recorder to achieve communication between a recorder and a network camera in different local area networks without introducing third-party equipment. The specific technical solution is as follows:

[0004] In a first aspect, an embodiment of the present application provides a video acquisition system, the system comprising a terminal device, a server, and a plurality of streaming media devices; the streaming media devices comprising at least one video recorder; each of the streaming media devices being pre-configured with a connection method for connecting to the server;

[0005] Each of the streaming media devices is configured to establish a communication connection with the server in accordance with the configured connection mode; and to send the device identification of the streaming media device to the server via the established communication connection;

[0006] The server is configured to record correspondingly the received device identification and the device that sent the device identification;

[0007] The terminal device is configured to, in response to an add instruction, obtain a device identifier of the streaming media device indicated by the add instruction as the identifier of the device to be added; and send the account identifier of the account logged in by the terminal device and the identifier of the device to be added to the server;

[0008] The server is further configured to determine, in response to the account identifier and the to-be-added device identifier sent by the terminal device, the device corresponding to the to-be-added device identifier, and record the determined device and the account identifier accordingly;

[0009] The terminal device is further configured to send, to the server, an account identifier of the account logged in by the terminal device in response to a list display instruction;

[0010] The server is further configured to determine, in response to the account identifier sent by the terminal device, a device corresponding to the account identifier; and send a device list representing the determined devices to the terminal device;

[0011] The terminal device is further configured to display the device list; receive a binding instruction input for a streaming device in the device list, obtain a first device identifier of the video recorder indicated by the binding instruction, and obtain a second device identifier of the device to be bound indicated by the binding instruction; and send the obtained first device identifier and second device identifier to the server; wherein the devices indicated by the binding instruction include at least one video recorder; and the device to be bound is a streaming device other than the video recorder indicated by the binding instruction;

[0012] The server is further configured to, in response to the first device identifier and the second device identifier sent by the terminal device, determine the device corresponding to the first device identifier as the target video recorder, and determine the device corresponding to the second device identifier as the target device to be bound; establish a communication connection between the target video recorder and the target device to be bound as a first target communication connection; the first target communication connection being composed of a communication connection established between the server and the target video recorder and a communication connection established between the server and the target device to be bound;

[0013] The video recorder is also used to respond to control instructions for other streaming media devices other than the video recorder, determine the device targeted by the control instruction as the target device to be controlled; and control the target device to be controlled to perform the operation indicated by the control instruction through the target communication connection established with the target device to be controlled.

[0014] In a second aspect, an embodiment of the present application further provides a video capture method, which is applied to a video recorder in a video capture system, wherein the video capture system further includes a terminal device, a server, and multiple streaming media devices other than the video recorder; the video recorder and the streaming media devices are pre-configured with a connection method for connecting to the server, and the method includes:

[0015] Establishing a communication connection with the server according to the configured connection mode; sending the fifth device identification of the video recorder to the server through the established communication connection; so that the server correspondingly records the received fifth device identification and the device that sent the fifth device identification;

[0016] In response to a control instruction for the streaming device, determining the device targeted by the control instruction as a target device to be controlled; and controlling the target device to be controlled to perform the operation indicated by the control instruction through a target communication connection established with the target device to be controlled;

[0017] The server also records a sixth device identifier and a device that sends the sixth device identifier. The sixth device identifier is sent to the server in the following manner:

[0018] Each of the streaming media devices establishes a communication connection with the server according to the configured connection mode; sends the sixth device identification of each of the streaming media devices to the server through the established communication connection; so that the server correspondingly records the sixth device identification and the device that sent the sixth device identification;

[0019] Establishing a communication connection between the video recorder and the streaming device as a target communication connection in the following manner includes:

[0020] In response to the add instruction, the terminal device obtains the device identification of the streaming device indicated by the add instruction as the device identification to be added; and sends the account identification of the account logged in by the terminal device and the device identification to be added to the server;

[0021] In response to the account identifier and the to-be-added device identifier sent by the terminal device, the server determines the device corresponding to the to-be-added device identifier, and records the determined device and the account identifier accordingly;

[0022] In response to the list display instruction, the terminal device sends the account identifier of the account logged in by the terminal device to the server;

[0023] In response to the account identifier sent by the terminal device, the server determines a device corresponding to the account identifier; and sends a device list representing the determined devices to the terminal device;

[0024] The terminal device displays the device list; receives a binding instruction input for a streaming device in the device list, obtains a first device identifier of the network video recorder indicated by the binding instruction, and obtains a second device identifier of the device to be bound indicated by the binding instruction; and sends the obtained first device identifier and second device identifier to the server; wherein the devices indicated by the binding instruction include at least one video recorder; and the device to be bound is a streaming device other than the video recorder indicated by the binding instruction;

[0025] In response to the first device identifier and the second device identifier sent by the terminal device, the server determines the device corresponding to the first device identifier as the target video recorder, and determines the device corresponding to the second device identifier as the target streaming device; establishes a communication connection between the target video recorder and the target streaming device as a first target communication connection, and the first target communication connection is composed of the communication connection established between the server and the target video recorder and the communication connection established between the server and the target streaming device.

[0026] In a third aspect, an embodiment of the present application further provides a video capture method, which is applied to a network camera in a video capture system, wherein the video capture system further includes a terminal device, a server, and at least one video recorder, the method comprising:

[0027] Establishing a communication connection with the server according to the configured connection mode, and sending the ninth device identification of the network camera to the server through the established communication connection, so that the server correspondingly records the received ninth device identification and the device that sent the ninth device identification;

[0028] In response to the control instruction, executing the operation indicated by the control instruction;

[0029] Wherein, the control instruction is sent to the network camera in the following manner;

[0030] The video recorder responds to the control instruction for the network camera, determines the network camera targeted by the control instruction as the target network camera, and sends the control instruction to the target network camera via the target communication connection established between the video recorder and the target network camera;

[0031] Establish a communication connection between the video recorder and the network camera as a target communication connection by:

[0032] Each of the video recorders establishes a communication connection with the server according to the configured connection mode, and sends the tenth device identification of each of the video recorders to the server through the established communication connection; so that the server correspondingly records the tenth device identification and the device that sent the tenth device identification;

[0033] In response to the add instruction, the terminal device obtains the device identification of the streaming device indicated by the add instruction as the device identification to be added; and sends the account identification of the account logged in by the terminal device and the device identification to be added to the server;

[0034] In response to the account identifier and the to-be-added device identifier sent by the terminal device, the server determines the device corresponding to the to-be-added device identifier, and records the determined device and the account identifier accordingly;

[0035] In response to the list display instruction, the terminal device sends the account identifier of the account logged in by the terminal device to the server;

[0036] In response to the account identifier sent by the terminal device, the server determines a device corresponding to the account identifier; and sends a device list representing the determined devices to the terminal device;

[0037] The terminal device displays the device list; receives a binding instruction input for a streaming device in the device list, obtains a first device identifier of the video recorder indicated by the binding instruction, and obtains a second device identifier of the device to be bound indicated by the binding instruction; and sends the obtained first device identifier and second device identifier to the server; wherein the devices indicated by the binding instruction include at least one video recorder; and the device to be bound is a streaming device other than the video recorder indicated by the binding instruction;

[0038] In response to the first device identifier and the second device identifier sent by the terminal device, the server determines the device corresponding to the first device identifier as the target video recorder, and determines the device corresponding to the second device identifier as the target network camera; establishes a communication connection between the target video recorder and the target network camera as a first target communication connection, and the first target communication connection is composed of the communication connection established between the server and the target video recorder and the communication connection established between the server and the target network camera.

[0039] In a fourth aspect, an embodiment of the present application further provides a network video recorder, comprising:

[0040] Memory for storing computer programs;

[0041] The processor is configured to implement any of the above-mentioned video acquisition methods applied to a video recorder when executing the program stored in the memory.

[0042] In a fifth aspect, an embodiment of the present application further provides a network camera, comprising a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement any of the above-mentioned video acquisition methods applied to network cameras.

[0043] Beneficial effects of the embodiments of the present application:

[0044] Each streaming device establishes a communication connection with a server according to a preconfigured connection method and transmits its device identifier to the server via the established communication connection, so that the server records the received device identifier and the device that sent it. Subsequently, a binding instruction for a streaming device in the device list is input through the device list displayed by the terminal device. In response to the binding instruction, the terminal device determines the first device identifier of the video recorder indicated by the binding instruction and obtains the second device identifier of the device to be bound indicated by the binding instruction. The obtained first and second device identifiers are then transmitted to the server. Based on the first and second device identifiers transmitted by the terminal device, the server can determine the video recorder corresponding to the first device identifier as the target video recorder and the device to be bound corresponding to the second device identifier as the target device to be bound. The communication connection between the server and the target video recorder and the communication connection between the server and the target device to be bound then form a target communication connection, which serves as the communication connection between the target video recorder and the target device to be bound. Thus, in response to the binding instruction, a communication connection can be established regardless of whether the video recorder and the device to be bound are devices on the same local area network, without the need for third-party devices.

[0045] Based on the aforementioned method, a communication connection can be established between any video recorder and a device to be bound. Based on this, when the video recorder responds to a control instruction directed at a streaming device other than the video recorder, it determines the device targeted by the control instruction as the target device to be controlled. Then, through the target communication connection established with the target device to be controlled, it can control the target device to perform the operation indicated by the control instruction. In other words, based on the target communication connection, the video recorder can control streaming devices other than the video recorder.

[0046] Of course, it is not necessary to achieve all the advantages described above at the same time when implementing any product or method of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other embodiments can also be obtained based on these drawings.

[0048] Figure 1 A schematic diagram of an information configuration interface when a video recorder and a network camera establish a communication connection in the related art;

[0049] Figure 2 A schematic diagram of binding network cameras and video recorders in different local area networks in the related art;

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

[0051] Figure 4 A schematic diagram of the first process interaction of the video acquisition system provided in an embodiment of the present application;

[0052] Figure 5 A schematic diagram of a device list provided in an embodiment of the present application;

[0053] Figure 6 A schematic diagram of the second process interaction of the video acquisition system provided in an embodiment of the present application;

[0054] Figure 7 A schematic diagram of the third process interaction of the video acquisition system provided in an embodiment of the present application;

[0055] Figure 8 A schematic diagram of the fourth process interaction of the video acquisition system provided in an embodiment of the present application;

[0056] Figure 9 A fifth process interaction diagram of the video acquisition system provided in an embodiment of the present application;

[0057] Figure 10 A schematic diagram of a process interaction for binding a network camera and a video recorder provided in an embodiment of the present application;

[0058] Figure 11 A schematic diagram of a process interaction for obtaining video stream data provided in an embodiment of the present application;

[0059] Figure 12 A flowchart of a video acquisition method provided in an embodiment of the present application;

[0060] Figure 13 A flowchart of another video acquisition method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0061] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field based on this application are within the scope of protection of this application.

[0062] In video capture systems, a communication connection is typically established between a video recorder and a network camera, and / or between video recorders, to enable a video recorder to manage other video recorders and network cameras in the video capture system. The following uses the establishment of a communication connection between a video recorder and a network camera as an example to illustrate the difficulties encountered in establishing such a connection in the related art. The principles for establishing a communication connection between video recorders and network cameras are the same as those for establishing a communication link between a video recorder and a network camera; the network camera is simply replaced by a video recorder, so the details will not be repeated here.

[0063] In the related art, the method of establishing a communication connection between a video recorder and a network camera is to configure the network camera's Internet Protocol Address (IP address), the port used when communicating with the video recorder, the user name, the user password and other information to the video recorder. For details, see the following Figure 1 After that, the video recorder initiates the network connection to the network camera. At this time, if the video recorder and the network camera are devices in the same local area network, the video recorder can directly establish a communication connection with the network camera without the need to use a third-party device to form a virtual local area network; if the video recorder and the network camera are not devices in the same local area network, the video recorder and the network camera cannot directly establish a communication connection. A virtual local area network must be formed with a third-party device to establish a communication connection. For details, please refer to the following Figure 2 Description in .

[0064] like Figure 1 As shown, Figure 1 This is a schematic diagram of the information configuration interface when a video recorder and a network camera establish a communication connection in the related art. Figure 1 The first line of data in the interface shown is the IP channel address, that is, the IP address of the network camera; the second line of data is the protocol, that is, the communication protocol between the video recorder and the network camera; the third line of data is the management port, that is, the port number used when the network camera and the video recorder communicate; the fourth line of data is the user name; the fifth line of data is the administrator password. Among them, "******" indicates the content to be filled in. For example, the "******" after the IP channel protocol address indicates the IP channel protocol address to be filled in; the "******" after the username indicates the username to be filled in.

[0065] Depend on Figure 1 It can be seen that if you need to establish a communication connection between the video recorder and the network camera, you need to Figure 1The interface shown completes the configuration of the IP channel address, protocol, management port, user name, and administrator password. However, since users generally lack any network knowledge, it is difficult for them to understand the meaning of these information. Therefore, it is usually difficult for users to complete the configuration of these information. In other words, in the related art, the data required to configure when establishing a communication connection between a video recorder and a network camera is relatively complex, making it difficult for users to operate.

[0066] like Figure 2 As shown, the headquarters is equipped with services, storage, switches, decoders, and a monitoring screen wall. Storage refers to equipment with storage functions, and services refer to equipment with service functions. Branches 1 to 3 are all equipped with routers, IPCs, and hard drives, but the headquarters' network is a separate LAN, and the networks of the three branches, Branches 1 to 3, are also separate LANs. In other words, the headquarters and the branches are not on the same LAN. To establish a communication connection between the headquarters' NVR and the branch's IPC, a virtual LAN must be formed with the help of third-party equipment, and the connection can be achieved through the formed virtual LAN. In this way, the headquarters' NVR and the branch's IPC can be regarded as devices within the same LAN. When the NVR and IPC are devices within the same LAN, a communication connection can be established directly. Figure 2 Although the method shown can realize the communication connection between video recorders and network cameras in different local area networks, users need to add additional third-party equipment and activate services to achieve it, which will increase equipment and maintenance costs.

[0067] To address the deficiencies in the above-mentioned related technologies, an embodiment of the present application provides a video acquisition system. Through the technical solution provided by the embodiment of the present application, each streaming device establishes a communication connection with a server according to a pre-configured connection method, and sends the device identification of the streaming device to the server through the established communication connection, so that the server records the received device identification and the device sending the device identification. Afterwards, in response to a binding instruction, the terminal device determines the first device identification of the video recorder indicated by the binding instruction, and obtains the second device identification of the device to be bound indicated by the binding instruction, and sends the obtained first device identification and second device identification to the server; based on the first device identification and second device identification sent by the terminal device, the server can determine the video recorder corresponding to the first device identification as the target video recorder, and determine the device to be bound corresponding to the second device identification as the target device to be bound; then, the target communication connection is formed by the communication connection between the server and the target video recorder and the communication connection between the server and the target device to be bound, as the communication connection between the target video recorder and the target device to be bound. Thus, in response to the binding instruction, regardless of whether the video recorder and the device to be bound are devices in the same local area network, a communication connection can be established, and there is no need to introduce a third-party device.

[0068] Based on the aforementioned method, a communication connection can be established between any video recorder and a device to be bound. Based on this, when the video recorder responds to a control instruction directed at a streaming device other than the video recorder, it determines the device targeted by the control instruction as the target device to be controlled. Then, through the target communication connection established with the target device to be controlled, it can control the target device to perform the operation indicated by the control instruction. In other words, based on the target communication connection, the video recorder can control streaming devices other than the video recorder.

[0069] The video acquisition system provided in the embodiment of the present application is described in detail below with reference to specific examples.

[0070] The video acquisition system provided in the embodiment of the present application includes a terminal device, a server and multiple streaming media devices, wherein the streaming media devices include at least one video recorder. For example, there are 5 streaming media devices in the video acquisition system, and 3 of them are network cameras and the other two are video recorders. Figure 3 As shown, Figure 3 This is a schematic diagram of the structure of a video capture system provided in an embodiment of the present application, in which a terminal device 31 is connected to a server 32, which is connected to a streaming device 33. A first network camera 331, a second network camera 332, a third network camera 333, a first video recorder 334, and a second video recorder 335 are all streaming devices 33. The first video recorder 334 can establish a communication connection with any one or more of the first network camera 331, the second network camera 332, the third network camera 333, and the second video recorder 335; and the second video recorder 335 can establish a communication connection with any one or more of the first network camera 331, the second network camera 332, the third network camera 333, and the first video recorder 334.

[0071] Specifically, such as Figure 4 As shown, the video acquisition system includes a terminal device, a server and multiple streaming media devices, wherein the streaming media devices include at least one video recorder; each streaming media device is pre-configured with a connection method for connecting to the server. Figure 4 The first process interaction diagram of the video acquisition system provided in the embodiment of the present application includes the following steps:

[0072] Step S41: Each streaming device establishes a communication connection with the server according to the configured connection mode; and sends the device identification of the streaming device to the server via the established communication connection;

[0073] Step S42: The server records the received device identifier and the device that sent the device identifier;

[0074] Step S43: The terminal device obtains the device ID of the streaming device indicated by the add instruction in response to the add instruction as the device ID to be added; and sends the account ID of the account logged in by the terminal device and the device ID to be added to the server;

[0075] Step S44: The server determines the device corresponding to the to-be-added device identifier in response to the account identifier and the to-be-added device identifier sent by the terminal device, and records the determined device and account identifier accordingly;

[0076] Step S45: The terminal device sends the account identifier of the account logged in by the terminal device to the server in response to the list display instruction;

[0077] Step S46: The server determines the device corresponding to the account identifier in response to the account identifier sent by the terminal device; and sends a device list representing the determined device to the terminal device;

[0078] Step S47: The terminal device displays a device list; receives a binding instruction input for a streaming device in the device list, obtains a first device identifier of the video recorder indicated by the binding instruction, and obtains a second device identifier of the device to be bound indicated by the binding instruction; and sends the obtained first device identifier and second device identifier to the server; wherein the devices indicated by the binding instruction include at least one video recorder; and the device to be bound is a streaming device other than the video recorder indicated by the binding instruction;

[0079] Step S48: In response to the first device identifier and the second device identifier sent by the terminal device, the server determines the device corresponding to the first device identifier as the target video recorder, and determines the device corresponding to the second device identifier as the target device to be bound; establishes a communication connection between the target video recorder and the target device to be bound as a first target communication connection; wherein the first target communication connection is composed of the communication connection established between the server and the target video recorder and the communication connection established between the server and the target device to be bound;

[0080] Step S49: The video recorder responds to the control instructions for other streaming media devices other than the video recorder, determines the device targeted by the control instructions as the target device to be controlled; and controls the target device to be controlled to perform the operation indicated by the control instructions through the target communication connection established with the target device to be controlled.

[0081] In the technical solution provided by the embodiment of the present application, each streaming device establishes a communication connection with the server according to a pre-configured connection method, and sends the device identification of the streaming device to the server through the established communication connection, so that the server records the received device identification and the device sending the device identification. Afterwards, a binding instruction for the streaming device in the device list is input through the device list displayed by the terminal device. In response to the binding instruction, the terminal device determines the first device identification of the video recorder indicated by the binding instruction, and obtains the second device identification of the device to be bound indicated by the binding instruction, and sends the obtained first device identification and second device identification to the server; based on the first device identification and second device identification sent by the terminal device, the server can determine the video recorder corresponding to the first device identification as the target video recorder, and determine the device to be bound corresponding to the second device identification as the target device to be bound; then the target communication connection is formed by the communication connection between the server and the target video recorder and the communication connection between the server and the target device to be bound, as the communication connection between the target video recorder and the target device to be bound. Thus, in response to the binding instruction, regardless of whether the video recorder and the device to be bound are devices in the same local area network, a communication connection can be established without introducing a third-party device.

[0082] Based on the aforementioned method, a communication connection can be established between any video recorder and a device to be bound. Based on this, when the video recorder responds to a control instruction directed at a streaming device other than the video recorder, it identifies the device targeted by the control instruction as the target device to be controlled. Then, through the target communication connection established with the target device to be controlled, it can control the target device to perform the operation indicated by the control instruction. In other words, based on the target communication connection, the video recorder can control streaming devices other than the video recorder.

[0083] In step S41, the streaming device can be a network camera or a video recorder. An Internet Protocol Camera (IPC) can transmit video streams over a network. Specifically, an IP camera can encode captured video images into data signals and transmit them over the network to a video recorder or other receiving device. Video recorders can be specifically divided into digital video recorders (DVRs) and network video recorders (NVRs). A network video recorder can receive video streams from an IP camera over the network and store and remotely manage the received video streams.

[0084] The server is a cloud platform. According to the pre-configured connection method, each streaming device establishes a communication connection with the server, and the device identification of the streaming device is sent to the server through the established communication connection. The timing for the streaming device to establish a communication connection with the server is when the streaming device meets the pre-set communication establishment conditions. The communication establishment conditions can be conditions such as device access to the network and device power-on. For example, when the communication establishment condition is when the device is connected to the network, once the streaming device is connected to the network, a communication connection with the server is established; for another example, when the communication establishment condition is when the device is powered on, once the streaming device is powered on, a communication connection with the server is established.

[0085] It is understood that the video capture system includes multiple streaming devices, which may be network cameras and video recorders. Therefore, in some embodiments, taking the communication establishment condition as access to a network as an example, step S61 can be understood as follows: after accessing the network, the video recorder establishes a communication connection with the server via a pre-configured connection method, and sends the video recorder's own device identification to the server via the established communication connection; after accessing the network, the network camera establishes a communication connection with the server via a pre-configured connection method, and sends the network camera's own device identification to the server via the established communication connection. The network refers to a network that can connect to the server.

[0086] Specifically, for example, the streaming media devices in the video acquisition system are video recorder 1, video recorder 2, network camera 3, and network camera 4; the communication establishment condition is access to the network as an example. When video recorder 1 accesses the network, it establishes a communication connection with the server through a pre-configured connection method, and sends the device identification 1 of video recorder 1 to the server through the established communication connection; when video recorder 2 accesses the network, it establishes a communication connection with the server through a pre-configured connection method, and sends the device identification 2 of video recorder 2 to the server through the established communication connection; network camera 3 establishes a communication connection with the server through a pre-configured connection method, and sends the device identification 3 of video recorder 3 to the server through the established communication connection; when network camera 4 accesses the network, it establishes a communication connection with the server through a pre-configured connection method, and sends the device identification 4 of network camera 4 to the server through the established communication connection.

[0087] In an embodiment of the present application, the device identification includes information describing the capabilities and characteristics of the device, such as the model of the device, the serial number of the device, and the device type. For example, the device identification of a video recorder includes information describing the capabilities and characteristics of the video recorder, such as the model of the video recorder, the serial number of the video recorder, and the performance of the video recorder; the device identification of a network camera includes information describing the capabilities and characteristics of the network camera, such as the model of the network camera, the serial number of the network camera, and the performance of the network camera.

[0088] In the above step S41, the streaming media device only sends its own device identification to the server for recording. At this time, no operation is performed on the streaming media device, and the device waits for the user to add it.

[0089] In the above step S42, the server records the received device identification and the device that sends the device identification, which can be understood as the server records the received device identification and the communication information of the device that sends the device identification. The device can be determined based on the communication information. Specifically, the communication information may include only the network address of the device, or may include the network address of the device and other information.

[0090] Taking the example that the communication information only includes the network address of the device, and continuing with the example shown in the above step S41 as an example, the content in step S42 is explained. After the server receives the device identification 1 sent by recorder 1, it records the device identification 1 of recorder 1 and the network address 1 of recorder 1; after the server receives the device identification 2 sent by recorder 2, it records the device identification 2 of recorder 2 and the network address 2 of recorder 2; after the server receives the device identification 3 sent by network camera 3, it records the device identification 3 of network camera 3 and the network address 3 of network camera 3; after the server receives the device identification 4 sent by network camera 4, it records the device identification 4 of network camera 4 and the network address 4 of network camera 4.

[0091] In step S43 above, the device identifier to be added refers to the device identifier of the streaming device indicated by the add instruction. In response to the instruction to be added, the terminal device sends the streaming device identifier indicated by the instruction to be added and the account identifier of the account logged in by the terminal device to the server. The instruction to be added is an instruction issued by the user to add the streaming device to the account identifier. It will be understood that the account identifier in this article is not equivalent to the account information in the related art. For example, the account information in the related art generally includes the user's secret name and password, but the account identifier in this article does not include a password.

[0092] In some embodiments, the streaming device carries an identifier describing its own device identifier, such as a QR code or barcode. The device identifier of the device can be obtained by scanning the identifier on the device. Based on this, the user can use a terminal device or an image acquisition device that is in communication with the terminal device to scan the identifier on the streaming device to obtain the device identifier of the streaming device. Afterwards, the server can determine whether the streaming device has been added using the device identifier of the streaming device. For example, the server can determine whether the streaming device has been added using the serial number in the device identifier, or directly determine whether the streaming device has been added using the device identifier. If the streaming device has been added, the server can return information indicating that the streaming device has been added to the terminal device. If the streaming device has not been added, the server proceeds to the subsequent step S44, which adds the streaming device to the account identifier of the account currently logged in by the terminal device.

[0093] Let's take a specific example to illustrate. For example, the network camera 1 carries a QR code on its body that is used to represent its own device identification. The user uses the terminal device to scan the QR code carried by the network camera 1 to obtain the device identification of the network camera 1. Then, the device identification of the network camera 1 is used to determine whether the network camera 1 has been added. If the network camera 1 has been added, the server returns information to the terminal device indicating that the network camera 1 has been added; if the network camera 1 has not been added, the service adds the network camera 1 to the account identification of the account currently logged in by the terminal device, that is, executes the subsequent step S44.

[0094] Regarding determining whether a streaming device has been added to the server using the device identifier of the streaming device, it can be understood that the server determines whether the streaming device has been added to the account identifier of the account currently logged into the terminal, or to another account identifier, using the device identifier of the streaming device. Another account identifier refers to an account identifier other than the account identifier of the account currently logged into the terminal. It can be understood that steps S43 and S44 are executed whenever a streaming device is added to an account identifier. Specifically, if a streaming device has been added to an account identifier, the server should have a corresponding record of the streaming device's device identifier and the account identifier. Based on this, after scanning and obtaining the streaming device's device identifier, the server can send the device identifier to the server. The server can then determine whether the streaming device has been added by querying whether the device identifier and the account identifier are recorded. Specifically, if the server has a corresponding record of the device identifier and the account identifier, it indicates that the streaming device has been added. If the server does not have a corresponding record of the device identifier and the account identifier, it indicates that the streaming device has not been added.

[0095] In addition, it is understood that the device identifier may include a device serial number. Therefore, in some embodiments, after scanning and obtaining the device identifier of the streaming device, the device serial number of the streaming device may also be used to determine whether the streaming device has been added. Specifically, the terminal device may send the serial number of the streaming device to the server, and the server may determine the device identifier corresponding to the device serial number based on the device serial number, that is, the device identifier including the device serial number. The server may then determine whether the streaming device has been added by querying whether the device identifier and account identifier corresponding to the device serial number are recorded.

[0096] In other embodiments, in addition to the identifier used to describe the device itself, the streaming media device may also carry verification information for security verification. This verification information may be carried in an identifier such as a QR code or barcode, which is scanned by a terminal device, or may be represented in the form of a digital sequence, which is directly read by the user. The server also records the device and its verification information.

[0097] Based on this, after determining that the streaming device has not been added, the server can also return a message to the terminal device for obtaining verification information. After the terminal device receives the message returned by the server for obtaining verification information, a prompt box can pop up to inform the user to enter verification information. At this time, the terminal device can obtain the verification information of the streaming device by scanning the identifier carrying the verification information, or the user can enter a numerical sequence to obtain the verification information of the streaming device, and then send the verification information to the server. It can be understood that after receiving the device identifier sent by the terminal device, the server can determine the streaming device corresponding to the device identifier. Then, after receiving the verification information of the streaming device, based on the corresponding recorded device and device verification information, it can determine whether the verification information is the verification information of the device corresponding to the device identifier sent by the terminal device. If the verification information is the verification information of the device corresponding to the device identifier sent by the terminal device, the device and account identification determined by the corresponding record in step S44 below are executed. In this way, other users are prevented from pre-adding the streaming device to the user's own account identification after obtaining the identifier used to represent the device identifier, thereby improving the security of device addition.

[0098] In the above step S44, after receiving the account identifier and the identifier to be added sent by the terminal device, the server determines the device corresponding to the identifier to be added, and records the determined device and account identifier accordingly.

[0099] For example, the server receives an account ID sent by a terminal device as account ID 1, and the IDs to be added are device ID 1, device ID 2, and device ID 3. The server determines that the device corresponding to device ID 1 is network video recorder 1, the device corresponding to device ID 2 is network camera 2, and the device corresponding to device ID 3 is network camera 3. Therefore, the server records account ID 1 and network video recorder 1, network camera 2, and network camera 3. Alternatively, it can be understood that the server records account ID 1 and device ID 1, device ID 2, and device ID 3.

[0100] In the above step S45, the list display instruction is an instruction issued by the user to view the devices managed by the user account. In response to the list display instruction, the terminal device sends the account ID of the logged-in account to the server.

[0101] In the above step S46, in response to the account identifier sent by the terminal device, the server determines the device corresponding to the account identifier, that is, determines the streaming media device recorded corresponding to the account identifier, and then sends a device list representing the determined device to the terminal device.

[0102] Here, the device list represents the devices corresponding to the account identifier determined by the server based on the account identifier. It will be understood that each time a terminal device adds a streaming device, it will execute steps S43 and S44. That is, each time a streaming device is added, the server will record the corresponding account identifier and the added device. Therefore, when the terminal device sends the account identifier to the server in response to the list display instruction, the devices corresponding to the account identifier found by the server are all devices added under that account identifier.

[0103] In step S47, the terminal device can be a desktop computer, a portable computer, a smart mobile terminal, or other device. The binding instruction is a user-issued instruction for binding a video recorder to the device to be bound. That is, the devices indicated by the binding instruction include at least one video recorder. The devices to be bound are streaming media devices other than the network video recorder indicated by the binding instruction. The first device identifier is the device identifier of the video recorder indicated by the binding instruction; the second device identifier is the second device identifier of the device to be bound indicated by the binding instruction.

[0104] In response to the binding instruction, the terminal device obtains the first and second device identifiers and sends them to the server. Specifically, after obtaining the device list, the terminal device displays it. Based on this device list, the terminal device can receive binding instructions for the network cameras and video recorders listed in the device list. In other words, based on the device list, the user can determine the network video recorders and devices to be bound and issue binding instructions based on the displayed device list. The devices indicated by the binding instructions include at least one video recorder.

[0105] For example, Figure 5 As shown, Figure 5 A schematic diagram of a device list provided in an embodiment of the present application, Figure 5 The Added Devices list and the Online Devices list are displayed. The Added Devices list represents the devices that have been added to the account ID of the currently logged-in account on the terminal device. Below the Added Devices list is the text "+Custom Add," allowing users to add devices to the Added Devices list based on the functionality indicated by this text. It is understood that this is merely an example; actual applications may include other functions, and this is not intended to be limiting. Each row of data in the Added Devices list represents a device, and each row is divided into eight columns: Channel Number, IP Address, Channel Name, Status, Protocol, Binding Status, Operation, and Security. The Online Devices list represents a list of online devices to be added. The Online Devices list includes controls such as Add, One-Click Add, Activate, Batch IP Modification, Refresh, and Cross-Segment Search. Each row of data in the Online Devices list represents a device, and each row is divided into eight columns: Serial Number, IP Address, Status, Operation, Protocol, Management Port, Device Type, and Serial Number.

[0106] In step S48 above, after receiving the first device identifier and the second device identifier sent by the terminal device, the server determines the device identifier that matches the first device identifier sent by the terminal device from the corresponding device identifiers and devices recorded on the server, and then selects the device recorded corresponding to this device identifier as the target video recorder. Furthermore, the server determines the device identifier that matches the second device identifier sent by the terminal device from the corresponding device identifiers and devices recorded on the server, and then selects the device recorded corresponding to this device identifier as the target device to be bound.

[0107] After the server determines the target video recorder and the target device to be bound, it establishes a communication connection between the target video recorder and the target device to be bound as a first target communication connection; wherein, the first target communication connection is composed of the communication connection established between the server and the target video recorder and the communication connection established between the server and the target device to be bound.

[0108] It can be understood that the first target communication connection refers to the communication connection between the target video recorder indicated by the binding instruction and the target device to be bound. In some embodiments, a binding instruction may instruct the establishment of a communication connection between a video recorder and multiple devices to be bound. For example, in response to a binding instruction, the terminal device obtains the first device identifier of the video recorder indicated by the binding instruction, the device identifier 1 of the device to be bound 1, and the device identifier 2 of the device to be bound 2. In this case, the device identifier 1 and the device identifier 2 are both second device identifiers. Subsequently, after receiving the first device identifier, the device identifier 1, and the device identifier 2 sent by the terminal device, the server determines the video recorder corresponding to the first device identifier as the target video recorder. The server determines that the device corresponding to the device identifier 1 is the device to be bound 1 and the device identifier 2 is the device to be bound 2. Thus, the devices to be bound 1 and 2 are both target devices to be bound. Based on this, the server establishes a communication connection 1 between the target video recorder and the device to be bound 1. The communication connection 1 consists of a communication connection between the target video recorder and the server and a communication connection between the device to be bound 1 and the server. Furthermore, the server establishes a communication connection 2 between the target video recorder and the device to be bound 2. The communication connection 2 consists of a communication connection between the target video recorder and the server and a communication connection between the device to be bound 2 and the server. In this case, both the communication connection 1 and the communication connection 2 are target communication connections.

[0109] In step S49, the control command is a user-issued command instructing the DVR to control other streaming devices other than the DVR to perform the operation indicated by the control command. Specifically, the control command issued by the DVR to the network camera may include a stream acquisition command, an intercom command, a pan / tilt control command, and the like. The control command issued by the DVR to another DVR may include a storage policy synchronization command or a system status synchronization command. The storage policy synchronization command is used to synchronize recording storage parameters with other DVRs to ensure storage configuration consistency; the system status synchronization command is used to synchronize device operating status to support clustered resource scheduling.

[0110] The target device to be controlled is the device targeted by the control instruction; the first target communication connection is the target communication connection. For example, if the control instruction is a stream acquisition instruction, in response to the stream acquisition instruction, the video recorder obtains video stream data from the target device to be controlled via the target communication connection established between the server and the target device to be controlled. Specifically, when the target communication connection is the first target communication connection, the server obtains video stream data from the target device to be controlled via the communication connection between the server and the target device to be controlled. The server then transmits the obtained video stream data to the video recorder via the communication connection between the server and the video recorder.

[0111] Taking the control instruction as a pan-tilt control instruction as an example, when the target communication connection is the first target communication connection, in response to the pan-tilt control instruction, the video recorder sends the pan-tilt control instruction to the server through the communication connection between the video recorder and the server, and then the server sends the received pan-tilt control instruction to the target device to be controlled through the communication connection between the server and the target device to be controlled, so that the target device to be controlled performs the operation indicated by the pan-tilt control instruction.

[0112] Understandably, the above Figure 4 In the embodiment shown, steps S41 to S42, steps S43 to S46, steps S47 to S48, and step S49 are not necessarily closely continuous in execution time. Figure 4 In the example shown, only during the initial execution, steps S41-S42 must be executed before steps S43-S46, and then steps S47-S48 and S49 can be executed. However, after the initial execution is completed, steps S41-S48 may not be executed before step S49; steps S41-S42 may not be executed before steps S43-S46; steps S41-S48 may not be executed before steps S47-S48, or steps S41-S42 may not be executed before steps S47-S48, or steps S43-S46 may not be executed before steps S47-S48. Furthermore, whether in the initial execution or in the subsequent execution process, the execution time between steps S41-step S42, steps S43-step S46, steps S47-step S48, and step S49 is not necessarily closely related. That is, after executing steps S41-step S42, steps S43-step S46 may be executed after a certain period of time, or they may be executed immediately. Similarly, after executing steps S43-step S46, steps S47-step S48 may be executed after a certain period of time, or they may be executed immediately. After executing steps S47-step S48, steps S49 may be executed after a certain period of time, or they may be executed immediately.

[0113] See also Figure 6 , Figure 6 The second process interaction diagram of the video acquisition system provided in the embodiment of the present application may include the following steps:

[0114] Step S61: Each streaming device establishes a communication connection with the server according to the configured connection mode; the device identification of the streaming device is sent to the server via the established communication connection; this is the same as the above step S41;

[0115] Step S62: The server records the received device identifier and the device that sent the device identifier; the same as the above step S42;

[0116] Step S63: The terminal device obtains the device ID of the streaming device indicated by the add instruction in response to the add instruction as the device ID to be added; and sends the account ID of the account logged in by the terminal device and the device ID to be added to the server; this is the same as the above step S43;

[0117] Step S64: The server determines the device corresponding to the to-be-added device identifier in response to the account identifier and the to-be-added device identifier sent by the terminal device, and records the determined device and account identifier accordingly; this is the same as step S44 above;

[0118] Step S65: The terminal device responds to the list display instruction and sends the account ID of the account logged in by the terminal device to the server; the same as the above step S45;

[0119] Step S66: The server determines the device corresponding to the account identifier in response to the account identifier sent by the terminal device; and sends a device list representing the determined devices to the terminal device; the same as the above step S46;

[0120] Step S67: The terminal device displays a device list; receives a binding instruction input for a streaming device in the device list, obtains the first device identifier of the video recorder indicated by the binding instruction, and obtains the second device identifier of the device to be bound indicated by the binding instruction; and sends the obtained first device identifier and second device identifier to the server; wherein the devices indicated by the binding instruction include at least one video recorder; and the device to be bound is a streaming device other than the video recorder indicated by the binding instruction; the same as step S47 above.

[0121] Step S68: The server determines the device corresponding to the first device identifier as the target video recorder and the device corresponding to the second device identifier as the target device to be bound in response to the first device identifier and the second device identifier sent by the terminal device;

[0122] Step S69: The server determines the network address of the target device to be bound when establishing a communication connection with the target device to be bound; and sends the determined network address to the target video recorder via the communication connection with the target video recorder;

[0123] Step S610: The target video recorder responds to the network address sent by the server and determines whether a communication connection with the network address can be successfully established; if a communication connection with the network address cannot be successfully established, the target video recorder sends a message to the server through the communication connection established with the server indicating that the communication connection cannot be successfully established;

[0124] Step S611: In response to the message sent by the target video recorder indicating that the communication connection cannot be established, the server establishes a communication connection between the target video recorder and the target device to be bound as a first target communication connection; the first target communication connection is composed of the communication connection established between the server and the target video recorder and the communication connection established between the server and the target device to be bound;

[0125] Step S612: The video recorder, in response to the control instruction directed to a streaming device other than the video recorder, determines the device targeted by the control instruction as the target device to be controlled; and controls the target device to perform the operation indicated by the control instruction via the target communication connection established with the target device to be controlled. This is the same as step S49 above.

[0126] In the technical solution provided by the embodiment of the present application, in the process of establishing a target communication connection between a target video recorder and a target device to be bound, after determining the target video recorder and the target device to be bound, the server will also determine the network address used by the target device to be bound when establishing a communication connection with the target device to be bound, and send the network address to the target video recorder. The target video recorder will then determine whether it can successfully establish a communication connection with the network address. If the target video recorder cannot successfully establish a communication connection with the network address, the server will then establish a communication connection between the target video recorder and the target device to be bound, that is, establish a first target communication connection. If the target video recorder can successfully establish a communication connection with the network address, communication will be carried out through the established communication connection without the need to establish a communication connection through the server. In this way, based on the technical solution provided by the embodiment of the present application, the communication connection between the target video recorder and the target device to be bound is only established through the server when the target video recorder cannot successfully establish a communication connection with the network address, thereby reducing the consumption of server resources.

[0127] In step S68 above, after receiving the first device identifier and the second device identifier sent by the terminal device, the server determines the device corresponding to the first device identifier as the target video recorder based on the pre-recorded device identifiers and devices, and determines the device corresponding to the second device identifier as the target device to be bound. For details, see step S48 above.

[0128] In the above step S69, after the server determines the target video recorder and the target device to be bound, it determines the network address used by the target device to be bound when establishing a communication connection with the target device to be bound, and sends the determined network address to the target video recorder through the communication connection between the server and the target video recorder.

[0129] Specifically, for example, the first device identifier sent by the terminal device to the server is device identifier 1, and the second device identifiers are device identifiers 2, 3, and 4. The server determines that the device corresponding to device identifier 1 is video recorder 1, the device corresponding to device identifier 2 is network camera 2, the device corresponding to device identifier 3 is network camera 3, and the device corresponding to device identifier 4 is network camera 4. At this point, the server determines network address 2 to be used by network camera 2 when establishing a communication connection with network camera 2, network address 3 to be used by network camera 3 when establishing a communication connection with network camera 3, and network address 4 to be used by network camera 4 when establishing a communication connection with network camera 4. Thus, the server then sends network address 2, network address 3, and network address 4 to video recorder 1 via the communication connection between the server and video recorder 1.

[0130] In step S610, in response to the network address sent by the server, the target video recorder determines whether a communication connection with the network address can be successfully established. Specifically, after receiving the network address sent by the server, the target video recorder attempts to establish a communication connection with the network address. If a communication connection with the network address can be established, it indicates that a communication connection with the network address can be successfully established. If a communication connection with the network address cannot be established, it indicates that a communication connection with the network address cannot be successfully established.

[0131] If the communication connection cannot be successfully established, the target video recorder sends a message to the server through the communication connection established between the target video recorder and the server to indicate that the communication connection cannot be successfully established, so that the server executes the subsequent step S77 to establish a communication connection between the target video recorder and the target device to be bound, that is, the first communication connection.

[0132] In some embodiments, if the target video recorder can successfully establish a communication connection with the network address, the established communication connection is used as the second target communication connection.

[0133] Continuing with the example shown in step S69 above, after receiving network address 2, network address 3, and network address 4, recorder 1 determines that it can successfully establish communication connections with network address 2 and network address 4, but cannot successfully establish a communication connection with network address 3. In this case, the communication connection established between recorder 1 and network address 2 becomes the communication connection between recorder 1 and network camera 2; the communication connection established between recorder 1 and network address 4 becomes the communication connection between recorder 1 and network camera 4. Furthermore, recorder 1 sends a message to the server indicating that it could not successfully establish a communication connection with network address 3, causing the server to establish a communication connection between recorder 1 and network camera 3 corresponding to network address 3, in step S611 described below. As a result, the communication connections between recorder 1 and network camera 2 and between recorder 1 and network camera 4 are both second-target communication connections, while the communication connection between recorder 1 and recorder 3 becomes the first-target communication connection.

[0134] In step S611, after receiving the message from the target video recorder indicating that the communication connection cannot be established, the server establishes a communication connection between the target video recorder and the target device to be bound as the first target communication connection. For details about the first target communication connection, please refer to the description of step S48.

[0135] In some embodiments, in response to the add instruction, the terminal device can also obtain the device identification of the streaming device indicated by the add instruction as the device identification to be added, and send the account identification of the account logged in by the terminal device and the device identification to be added to the server. For details, please refer to the description in the above step S43. The server determines the device corresponding to the device identification to be added in response to the account identification and the device identification to be added sent by the terminal device, and records the determined device and account identification accordingly. For details, please refer to the description in the above step S44. Under this embodiment, the embodiment of the present application also provides two other process interaction diagrams of the video acquisition system, please refer to the following for details. Figure 7 and Figure 8 Description in .

[0136] See also Figure 7 , Figure 7 The third process interaction diagram of the video acquisition system provided in the embodiment of the present application may include the following steps:

[0137] Step S71: Each streaming device establishes a communication connection with the server according to the configured connection mode; the device identification of the streaming device is sent to the server through the established communication connection; the same as the above step S41;

[0138] Step S72: The server records the received device identifier and the device that sent the device identifier; the same as the above step S42;

[0139] Step S73: The terminal device obtains the device ID of the streaming device indicated by the add instruction in response to the add instruction as the device ID to be added; and sends the account ID of the account logged in by the terminal device and the device ID to be added to the server; this is the same as the above step S43;

[0140] Step S74: The server determines the device corresponding to the to-be-added device identifier in response to the account identifier and the to-be-added device identifier sent by the terminal device, and records the determined device and account identifier accordingly; this is the same as the above step S44;

[0141] Step S75: The terminal device responds to the binding instruction by obtaining the first device identifier of the video recorder indicated by the binding instruction and the second device identifier of the device to be bound indicated by the binding instruction; and sends the obtained first device identifier, second device identifier, and the account identifier of the account logged in by the terminal device to the server; wherein the device to be bound is a streaming device other than the video recorder indicated by the binding instruction;

[0142] Step S76: In response to the first device identifier and the second device identifier sent by the terminal device, the server determines whether the device corresponding to the first device identifier is the target video recorder, the device corresponding to the second device identifier is the target device to be bound, and whether the target video recorder and the target device to be bound are the devices corresponding to the account identifier; if so, executing the subsequent step S77; if not, executing the subsequent steps S78-S79;

[0143] Step S77: The server establishes a communication connection between the target video recorder and the target device to be bound as a first target communication connection; wherein the first target communication connection is composed of the communication connection established between the server and the target video recorder and the communication connection established between the server and the target device to be bound; the same as the above step S48;

[0144] Step S78: The server sends a prompt message indicating that the binding has failed to the terminal device;

[0145] Step S79: The terminal device displays prompt information.

[0146] In the technical solution provided by the embodiment of the present application, in response to the add instruction, the terminal device sends the account identification and the device identification to be added to the server, so that the server determines the device corresponding to the device identification to be added, and records the determined device and account identification accordingly. Based on this, when the terminal device sends the account identification and the first device identification and the second device identification indicated by the binding instruction to the server in response to the binding instruction, the server determines the device corresponding to the first device identification as the target video recorder, determines the device corresponding to the second device identification as the target device to be bound, and determines whether the target video recorder and the target device to be bound are the devices corresponding to the account identification based on the corresponding recorded devices and account identification. When the target video recorder and the target device to be bound are the devices corresponding to the account identification, a communication connection between the target video recorder and the target device to be bound is established as the first target communication connection. In this way, the security of the video acquisition system is improved, and the binding of devices that have not been added to the account is prevented.

[0147] In the above step S75, the terminal device obtains the first device identifier and the second device identifier in response to the binding instruction. The specific description can be found in the content of the above step S47. Compared with the above step S47 in which only the first device identifier and the second device identifier are sent to the server, in step S75, in addition to sending the first device identifier and the second device identifier to the server, the account identifier of the account logged in by the terminal device is also sent to the server.

[0148] In the above step S76, it can be understood that based on the above step S74, the server has corresponding records of the account ID and the device, that is, the server has corresponding records of the account ID and the device added under the account ID. Based on this, in step S76, the server determines whether the target video recorder and the target device to be bound are the devices corresponding to the account ID. It can actually be understood that the server determines whether the target video recorder and the target device to be bound exist in the devices recorded corresponding to the account ID. If the target video recorder and the target device to be bound exist in the devices recorded corresponding to the account ID, it indicates that the target video recorder and the target device to be bound are the devices corresponding to the account ID. If the target video recorder or the target device to be bound does not exist in the devices recorded corresponding to the account ID, it indicates that the target video recorder and the target device to be bound are not the devices corresponding to the account ID.

[0149] To illustrate with a specific example, for example, the server records correspondingly account ID 1 and video recorder 1, network camera 2, and network camera 3; account ID 2 and video recorder 4, network camera 5, and network camera 6. In response to the binding instruction, the terminal device sends device ID 1 (i.e., the first device ID), device ID 2 (i.e., the second device ID), and account ID 1 (i.e., the account ID of the account logged in by the terminal device) to the server. The server determines that the device corresponding to device ID 1 is video recorder 1, and the device corresponding to device ID 2 is network camera 2. Based on this, since the server records that the devices corresponding to account ID 1 are video recorder 1, network camera 2, and network camera 3, it can be seen that video recorder 1 and network camera 2 are among the devices recorded corresponding to account ID 1. Therefore, video recorder 1 and network camera 2 are the devices corresponding to account ID 1.

[0150] In this step, the server determines the target video recorder and the target device to be bound in response to the first device identification and the second device identification sent by the terminal device. For detailed description, please refer to the content of the above step S48 and will not be repeated here.

[0151] In step S78 above, if the target video recorder and the target device to be bound are not devices corresponding to the account identifier of the account logged in by the terminal device, the server sends a prompt message to the terminal device, indicating that the binding failed. Alternatively, in some embodiments, the prompt message may indicate that the reason for the binding failure is that the current target video recorder or the target device to be bound has not been added to the account logged in by the terminal device.

[0152] In the above step S79, after receiving the prompt information indicating that the binding has failed, the terminal device displays the prompt information to inform the user that the binding has failed.

[0153] See also Figure 8 , Figure 8 The fourth process interaction diagram of the video acquisition system provided in the embodiment of the present application may include the following steps:

[0154] Step S81: Each streaming device establishes a communication connection with the server according to the configured connection mode; the device identification of the streaming device is sent to the server via the established communication connection; this is the same as the above step S71;

[0155] Step S82: The server records the received device identifier and the device that sent the device identifier; the same as the above step S72;

[0156] Step S83: The terminal device obtains the device ID of the streaming device indicated by the add instruction in response to the add instruction as the device ID to be added; and sends the account ID of the account logged in by the terminal device and the device ID to be added to the server; this is the same as the above step S73;

[0157] Step S84: The server obtains the device ID of the streaming device indicated by the add instruction in response to the add instruction as the device ID to be added, and records the determined device ID and account ID accordingly; this is the same as the above step S74;

[0158] Step S85: The terminal device responds to the binding instruction by obtaining the first device identifier of the video recorder indicated by the binding instruction and the second device identifier of the device to be bound indicated by the binding instruction; the obtained first device identifier, second device identifier, and the account identifier of the account logged in by the terminal device are sent to the server; wherein the device to be bound is a streaming device other than the video recorder indicated by the binding instruction; this is the same as step S75 above;

[0159] Step S86: In response to the first device identifier and the second device identifier sent by the terminal device, the server determines whether the device corresponding to the first device identifier is the target video recorder, the device corresponding to the second device identifier is the target device to be bound, and whether the target video recorder and the target device to be bound are the devices corresponding to the account identifier; if so, the server executes the subsequent step S87; if not, the server executes the subsequent steps S88-S89, which are the same as the above step S76;

[0160] Step S87: The server establishes a communication connection between the target video recorder and the target device to be bound as a target communication connection;

[0161] Step S88: The server sends a prompt message indicating that the binding has failed to the terminal device; this is the same as the above step S78;

[0162] Step S89: The terminal device displays the prompt information, which is the same as the above step S79.

[0163] In the technical solution provided by the embodiment of the present application, before establishing a communication connection between a target video recorder and a target device to be bound, the server first determines whether the target video recorder and the target device to be bound are devices corresponding to the account identifier. If the target video recorder and the target device to be bound are devices corresponding to the account identifier, the communication connection between the target video recorder and the target device to be bound is established as the target communication connection. This improves the security of the video capture system.

[0164] In the above step S87, after the server determines that the target video recorder and the target device to be bound are devices corresponding to the account identifier, Figure 6In the manner shown in steps S69 to S611 , a communication connection is established between the target video recorder and the target device to be bound, as the target communication connection.

[0165] Specifically, in some embodiments, after the server determines that the target video recorder and the target device to be bound are devices corresponding to the account identifier, it determines the network address of the target device to be bound to use when establishing a communication connection with the target device to be bound. Thereafter, the server transmits the determined network address to the target video recorder via the communication connection between the target video recorder and the server. Furthermore, the target video recorder determines whether a communication connection with the determined network address can be successfully established. If a communication connection with the determined network address can be successfully established, the established communication connection is used as the second target communication connection. If a communication connection with the determined network address cannot be successfully established, the target video recorder transmits a message to the server indicating that a communication connection cannot be successfully established, so that the server establishes a communication connection between the target video recorder and the target device to be bound as the first target communication connection.

[0166] Based on the above Figure 8 The scheme shown in the figure takes the control instruction as the flow instruction as an example, see Figure 9 , Figure 9 The fifth process interaction diagram of the video acquisition system provided in the embodiment of the present application may include the following steps:

[0167] Step S91: Each streaming device establishes a communication connection with the server according to the configured connection mode; the device identification of the streaming device is sent to the server via the established communication connection; this is the same as the above step S41;

[0168] Step S92: The server records the received device identifier and the device that sent the device identifier; the same as the above step S42;

[0169] Step S93: The terminal device responds to the binding instruction by obtaining the first device identifier of the video recorder indicated by the binding instruction, the second device identifier of the device to be bound indicated by the binding instruction, and the account identifier of the account logged in by the terminal device; and sends the obtained first device identifier, second device identifier, and account identifier to the server;

[0170] Step S94: After establishing a communication connection between the target video recorder and the target device to be bound, the server records the account identifier and the binding relationship between the target video recorder and the target device to be bound;

[0171] Step S95: The video recorder responds to the stream acquisition instruction by acquiring the third device identifier of the video recorder, the fourth device identifier of the device to be acquired, and the account identifier of the account logged into the terminal device; and sends the acquired third device identifier, fourth device identifier, and account identifier to the server;

[0172] Step S96: The server determines whether there is a binding relationship between the video recorder corresponding to the third device identifier under the account identifier and the device to be retrieved corresponding to the fourth device identifier; if there is a binding relationship between the video recorder corresponding to the third device identifier under the account identifier and the device to be retrieved corresponding to the fourth device identifier, step S97 is executed; if there is no binding relationship between the video recorder corresponding to the third device identifier under the account identifier and the device to be retrieved corresponding to the fourth device identifier, step S98 is executed;

[0173] Step S97: The video recorder corresponding to the third device identifier obtains the video stream data from the device to be obtained corresponding to the fourth device identifier through the target communication connection established between the device to be obtained and the device to be obtained;

[0174] Step S98: The server sends a message indicating that no binding relationship exists to the video recorder corresponding to the third device identifier through the communication connection established between the server and the video recorder corresponding to the third device identifier;

[0175] Step S99: The video recorder displays the video stream data in response to the video stream data obtained from the to-be-obtained stream device corresponding to the fourth device identifier; or displays the message sent by the server to indicate that there is no binding relationship.

[0176] In the technical solution provided by the embodiment of the present application, during the execution of the binding instruction, the server records the corresponding account identification and the binding relationship between the target video recorder and the target device to be bound. Based on this, in the subsequent process of obtaining the stream, the server responds to the third device identification, the fourth device identification and the account identification sent by the terminal device to determine whether there is a binding relationship between the video recorder corresponding to the third device identification under the account identification and the device to be obtained corresponding to the fourth device identification. If there is a binding relationship between the video recorder corresponding to the third device identification under the account identification of the account logged in by the terminal device and the device to be obtained corresponding to the fourth device identification, the subsequent stream obtaining steps can be executed. Based on this, the security of the video acquisition system is improved.

[0177] In the above step S93, step S93 is the same as the above step S93. Figure 7 The contents disclosed in step S75 are the same as those disclosed in step S75, except that Figure 7In the example shown, step S75 is used to facilitate the server to determine whether the target video recorder and the target device to be bound are the devices corresponding to the account ID of the account logged in by the terminal device, thereby preventing the binding of devices that are not added to the account, thereby improving the security of the video acquisition system. Figure 9 The role played is that after the target network camera and the target device to be bound successfully establish a communication connection, the server can record the account ID and the binding relationship between the target recorder and the target device to be bound. In this way, when the recorder responds to the stream acquisition instruction to obtain the stream from the device to be obtained, the server can determine whether the recorder and the device to be obtained have a binding relationship under the account ID of the account logged in by the terminal device based on the corresponding recorded account ID and the binding relationship between the target recorder and the target device to be bound. If there is a binding relationship, the stream will be obtained. If there is no binding relationship, the stream will not be obtained, thereby improving the security of the video acquisition system.

[0178] In step S94, after establishing a communication connection between the target video recorder and the target device to be bound, the server records the account ID and the binding relationship between the target video recorder and the target device to be bound. It will be appreciated that, in response to the binding instruction, the terminal device executes step S93 each time, and the server executes step S94 each time. Consequently, the server should record the account ID of each account logged into the terminal device and the binding relationship between each device associated with that account ID.

[0179] For example, initially, in response to a binding instruction, the terminal device sends to the server a first device identifier of device identifier 1, a second device identifier of device identifier 2, and an account identifier of account identifier 1. The server determines that the device corresponding to device identifier 1 is video recorder 1, and the device corresponding to device identifier 2 is network camera 1. After completing the communication connection between video recorder 1 and network camera 1, the server records that a binding relationship exists between video recorder 1 and network camera 1 under account identifier 1. Later, in response to another binding instruction, the terminal device sends to the server a first device identifier of device identifier 3, a second device identifier of device identifier 4, and an account identifier of account identifier 2. The server determines that the device corresponding to device identifier 3 is video recorder 2, and the device corresponding to device identifier 4 is network camera 2. After completing the communication connection between video recorder 2 and network camera 2, the server records that a binding relationship exists between video recorder 1 and network camera 1 under account identifier 1, and a binding relationship exists between network camera 2 and network camera 2 under account identifier 2. Later, in response to the binding instruction, the terminal device sends to the server the first device ID 5, the second device ID 6, and the account ID 1. The server determines that the device corresponding to device ID 5 is recorder 3, and the device corresponding to device ID 6 is network camera 3. After completing the communication connection between recorder 3 and network camera 3, the server now records that under account ID 1, recorder 1 and network camera 1 are bound, and recorder 3 and network camera 3 are bound; under account ID 2, network camera 2 and network camera 2 are bound. Similarly, the server records the binding relationship between each device under each account ID.

[0180] Among them, the specific process of the server receiving the first device identification and the second device identification sent by the terminal device and establishing a communication connection according to the first device identification and the second device identification can be referred to the above steps S48, S68-S611, S76-S77, and S86-S87.

[0181] In the above step S95, the device to be streamed is the streaming media device targeted by the stream acquisition instruction; the third device identifier is the device identifier of the video recorder that responds to the stream acquisition instruction; and the fourth device identifier is the device identifier of the device to be streamed.

[0182] In response to the stream acquisition instruction, the video recorder obtains its own third device identification, the fourth device identification of the device to be acquired for which the stream acquisition instruction is directed, and the account identification of the account logged in by the terminal device, and sends the obtained third device identification, fourth device identification, and account identification to the server.

[0183] In step S96, it can be understood that, based on step S92, the server records the received device identifier and the device that sent the device identifier. Therefore, the server can determine the video recorder corresponding to the third device identifier and the device to be retrieved corresponding to the fourth device identifier. Based on step S94, the server records the account identifier and the binding relationship between the target video recorder and the target device to be bound. Therefore, after determining the video recorder corresponding to the third device identifier, the device to be retrieved corresponding to the fourth device identifier, and the account identifier of the account logged in by the terminal device, the server can determine whether a binding relationship exists between the video recorder corresponding to the third device identifier and the device to be retrieved corresponding to the fourth device identifier under the account identifier of the account logged in by the terminal device. Specifically, if the server records the account identifier of the account logged in by the terminal device and the binding relationship between the video recorder and the device to be retrieved, it is determined that a binding relationship exists between the video recorder corresponding to the third device identifier and the device to be retrieved corresponding to the fourth device identifier under the account identifier of the account logged in by the terminal device.

[0184] Continuing with the example shown in step S94 above, it can be seen from the example shown in step S94 above that the server records that under account ID 1, recorder 1 and network camera 1 are in a binding relationship, and recorder 3 and network camera 3 are in a binding relationship; and under account ID 2, network camera 2 and network camera 2 are in a binding relationship. In response to the stream acquisition instruction, the terminal device sends device ID 1 (i.e., the third device ID), device ID 2 (i.e., the fourth device ID), and account ID 1 (i.e., the account ID of the account logged in by the terminal device) to the server. The server determines that the device corresponding to device ID 1 is recorder 1, and the device corresponding to device ID 2 is network camera 1. Therefore, since the server records that under account ID 1, recorder 1 and network camera 1 are in a binding relationship, the server can determine that under account ID 1, recorder 1 corresponding to device ID 1 and network camera 1 corresponding to device ID 2 are in a binding relationship. That is, under the account ID of the account logged in by the terminal device, the recorder corresponding to the third device ID and the device to be acquired corresponding to the fourth device ID are in a binding relationship.

[0185] If there is a binding relationship between the video recorder corresponding to the third device identifier under the account identifier and the device to be obtained corresponding to the fourth device identifier, execute the subsequent step S97; if there is no binding relationship between the video recorder corresponding to the third device identifier under the account identifier and the device to be obtained corresponding to the fourth device identifier, execute the subsequent step S98.

[0186] In the above step S97, the video recorder corresponding to the third device identifier obtains video stream data from the stream device to be obtained corresponding to the fourth device identifier through the target communication connection established between the video recorder and the stream device to be obtained corresponding to the fourth device identifier. Specifically, in some embodiments, the video recorder corresponding to the third device identifier can obtain video stream data from the stream device to be obtained corresponding to the fourth device identifier through a first target communication connection established between the video recorder and the stream device to be obtained corresponding to the fourth device identifier. That is, the server obtains video stream data from the stream device to be obtained corresponding to the fourth device identifier through the communication connection between the stream device to be obtained corresponding to the fourth device identifier, and then sends the obtained video stream data to the video recorder corresponding to the third device identifier through the communication connection between the video recorders corresponding to the third device identifier. In other embodiments, the video recorder corresponding to the third device identifier can obtain video stream data from the stream device to be obtained corresponding to the fourth device identifier through a second target communication connection established between the video recorder and the stream device to be obtained corresponding to the fourth device identifier. The video recorder corresponding to the third device identifier can directly obtain video stream data from the stream device to be obtained corresponding to the fourth device identifier through a communication connection established between the network address of the stream device to be obtained corresponding to the fourth device identifier.

[0187] In the above step S98, when there is no binding relationship between the video recorder corresponding to the third device identifier and the device to be obtained corresponding to the fourth device identifier under the account identifier, the server sends a message indicating that there is no binding relationship to the video recorder corresponding to the third device identifier through the communication connection established with the video recorder corresponding to the third device identifier, so as to inform the user that there is no binding relationship between the video recorder that responds to the flow obtaining instruction and the device to be obtained targeted by the flow obtaining instruction under the account identifier of the account logged in by the terminal device, and there is an abnormality in the flow obtaining.

[0188] In step S99, if the video recorder receives the video stream data obtained from the device to be obtained corresponding to the fourth device identifier, the obtained video stream data is displayed. If the video recorder receives a message sent by the server indicating that a binding relationship does not exist, the message indicating that a binding relationship does not exist is displayed.

[0189] Understandably, the above Figure 9 The example shown is only for illustrating the case where the control instruction is a binding instruction. When the control instruction is an instruction other than a binding instruction, the server can also first determine whether there is a binding relationship between the device that responds to the instruction under the account ID of the account logged in by the terminal device and the device targeted by the instruction. If a binding relationship exists, the device targeted by the instruction is controlled to perform the operation indicated by the instruction.

[0190] To facilitate understanding of the video acquisition system provided in the embodiment of the present application, the following specific examples are used as examples. Figure 10-11The process interaction between the devices in the video acquisition system provided by the embodiment of the present application is described again. Figure 10 , take the terminal device as a mobile client, the server as a cloud platform, and the streaming media devices to be bound as a video recorder and a network camera as an example, Figure 10 A schematic diagram of a process interaction for binding a network camera and a video recorder provided in an embodiment of the present application may include the following steps:

[0191] Step S101: The mobile client obtains a device list from the client backend;

[0192] The message for obtaining the device list carries the account ID of the account logged in by the mobile client, and the device list is a list of devices bound to the account ID.

[0193] Step S102: The client backend returns the NVR and IPC list to the mobile client, that is, the client backend returns the device list to the mobile client.

[0194] For the specific contents of the above steps S101 to S102, please refer to the description of the above steps S43 to S47.

[0195] Step S103: The mobile client sends a message to the client backend to bind the NVR to the IPC; the message includes the camera ID of the network camera to be bound and the ID of the video recorder, as well as the binding relationship between the network camera and the video recorder; see the above step S47.

[0196] Step S104: The client backend forwards the binding request to the information recording service in the cloud platform; see the above step S47.

[0197] Step S105: The information recording service in the cloud platform checks the device access rights; that is, checks whether the device is a device under the account currently logged into the cloud platform. See steps S73 to S76 above.

[0198] Step S106: the information recording service in the cloud platform sends the associated channels to the device access service. That is, the information recording service sends the channels that each network camera needs to occupy when binding each video recorder to the device access service.

[0199] Step S107: The device access service sends the association configuration to the NVR, that is, notifies the NVR which IPC to bind to and the channel occupied by the IPC when binding; and may also inform the NVR of other information required for binding.

[0200] Step S108: NVR configures the channel, ie, implements the binding between NVR and IPC.

[0201] Step S109: The NVR returns a configuration result to the device access service. The configuration result may carry the binding relationship between the NVR and the IPC, and the channel used for the binding.

[0202] Step S1010: The device access service records channel information. That is, the device access service records the binding relationship between the NVR and the IPC, as well as the channel used for the binding.

[0203] Step S1011: the device access service returns the configuration result to the information recording service;

[0204] Step S1012: The information recording service records the association information. Specifically, the information recording service records the binding relationships between the NVR and the IPC, such as which IPCs are bound to the NVR. This facilitates checking whether a binding relationship exists between the IPC to be captured and the NVR during subsequent stream acquisition. See step S94 above.

[0205] Step S1013: The information recording service returns an association result, ie, a binding result, to the client backend, indicating whether the binding is successful.

[0206] Step S1014: The client backend returns the association result to the mobile client.

[0207] See also Figure 11 , Figure 11 A schematic diagram of a process interaction for obtaining video stream data provided in an embodiment of the present application may include the following steps:

[0208] Step S111: The NVR obtains stream information from the device access service. The request for stream information carries the identifier of the IPC from which the stream is to be retrieved, as well as the NVR's device identifier. For details, see the description of step S95 above. The request for stream information can be understood as the stream instruction in step S95; the IPC identifier can be understood as the fourth device identifier in step S95; and the NVR's device identifier can be understood as the third device identifier in step S95.

[0209] Step S112: The device access service obtains stream information from the media module.

[0210] Step S113: The media module initiates authentication with the information recording service. Here, the information recording service checks whether there is a binding relationship between the IPC and the NVR. For details, please refer to the description of step S96 above.

[0211] Step S114: The information recording service checks the binding relationship. For details, please refer to the description in the above step S96.

[0212] Step S115: The information recording service returns the authentication result to the media module.

[0213] Here, the authentication result is used to indicate whether the NVR and IPC that need to implement the current flow have a binding relationship. If the NVR and IPC that need to implement the current flow have a binding relationship, the media module will obtain the video stream from the IPC specified in the flow information after receiving the authentication result (it is understandable that this step Figure 11 (not shown), then, the acquired video stream information is returned to the NVR, for details, see subsequent steps S116-S117.

[0214] If the NVR and IPC that currently need to obtain the stream do not have a binding relationship, the media module can send information to the NVR to indicate that the stream has failed, or the information indicating the failure can also carry the failure reason as the non-existence of the binding relationship.

[0215] Step S116: The media module returns the stream information to the device access service; it is understandable that Figure 11 The example shown is based on the fact that the IPC and NVR cannot be connected without a server. Therefore, it is necessary to obtain the video stream from the IPC through the media module in the cloud platform, rather than the NVR directly obtaining the video stream from the IPC. In addition, Figure 11 In the example shown, after the media module obtains the video stream, it first sends the video stream to the device access service, which then sends it to the NVR. However, in some embodiments, the media module can also send the video stream directly to the NVR after obtaining it.

[0216] Step S117: The device access service sends the stream acquisition information to the NVR.

[0217] Based on the above content, the video acquisition system provided by the embodiment of the present application can achieve the following beneficial effects:

[0218] (1) Based on the video capture system provided by the embodiment of the present application, if the NVR and the IPC cannot establish a direct communication connection, the data exchanged between the IPC and the NVR will first pass through the server and then be sent to the other party. In other words, whether it is stream data, control data, or alarm data, the data will first be sent to the server, and then forwarded by the server to the IPC or NVR. In this way, regardless of whether the IPC and NVR are directly connected or transfer data through the server, what the user sees is that the IPC and NVR are successfully bound. Whether the IPC is in a remote network or a local network, the effect displayed to the user is completely different, and the user's usage process is exactly the same.

[0219] (2) The video acquisition system provided in the embodiment of the present application can realize the remote networking function of NVR and IPC without the help of additional third-party equipment. After startup, NVR and IPC are automatically registered to the server. Users register their own accounts on the server. After the NVR and IPC are started, the user adds both NVR and IPC to their own accounts by scanning codes, etc. After that, the user can realize the binding association between NVR and IPC in the mobile phone APP client or the local NVR GUI interface. After the association, the IPC can be used by the user just like the IPC added by IP address. Preview, recording, playback and alarm management of IPC are realized.

[0220] (3) The video capture system provided by the embodiment of the present application breaks the geographical restrictions of NVR and IPC, and realizes the free connection between IPC and NVR. No matter what network environment the IPC and NVR are in, as long as they can register with the server, the IPC can be added to the NVR. This can greatly expand the connection range between NVR and IPC and realize free connection. Compared with traditional IPC addition, it is no longer limited by network topology. There is no need to use additional third-party equipment, and networking is very convenient and fast.

[0221] (4) The video acquisition system provided by the embodiment of the present application is applicable not only to situations where the IPC and NVR are not in the same local area network, but also to situations where the IPC and NVR are in the same local area network, allowing the NVR and IPC to break through the limitations of traditional network topology and achieve free addition and association. In addition, compared with the traditional method of adding an IPC to an NVR, which requires filling in a lot of device information using the IP address, the present solution only requires scanning the code and associating to add the IPC to the NVR, which simplifies the operation process and makes the user operation simpler and more convenient.

[0222] (5) In the video acquisition system provided by the embodiment of the present application, the process of quickly adding IPC to NVR is realized through the scanning code association operation, which simplifies the user's operational workload of adding IPC to NVR. The user does not need to worry about whether the IPC and NVR are in the same local area network. The integration realizes the remote networking and local networking functions. Regardless of whether the IPC and NVR are connected to the network, the IPC can be added to the NVR, unifying the process of adding and using IPC in remote networking and local networking, and expanding the connection range of the IPC.

[0223] Corresponding to the above-mentioned video acquisition system, the embodiment of the present application further provides a video acquisition method, which is applied to a video recorder in the video acquisition system. The video acquisition system also includes a terminal device, a server, and multiple streaming media devices other than the video recorder; the video recorder and the streaming media device are pre-configured with a connection method for connecting to the server, such as Figure 12 As shown, the method includes the following steps:

[0224] Step S121: establishing a communication connection with the server according to the configured connection mode; sending the fifth device identification of the video recorder to the server through the established communication connection; so that the server records the received fifth device identification and the device with the fifth device identification;

[0225] Step S122: In response to the control instruction for the streaming media device, determine the device targeted by the control instruction as the target device to be controlled; and control the target device to be controlled to perform the operation indicated by the control instruction through the target communication connection established with the target device to be controlled;

[0226] The server also records the sixth device identifier and the device that sends the sixth device identifier. The sixth device identifier is sent to the server in the following manner:

[0227] Each streaming device establishes a communication connection with the server according to the configured connection mode; sends the sixth device identification of each streaming device to the server through the established communication connection; so that the server records the sixth device identification and the device that sent the sixth device identification;

[0228] The communication connection between the recorder and the streaming device is established as the target communication connection through the following methods, including:

[0229] In response to the add instruction, the terminal device obtains the device identification of the streaming device indicated by the add instruction as the device identification to be added; and sends the account identification of the account logged in by the terminal device and the device identification to be added to the server;

[0230] In response to the account identifier and the to-be-added device identifier sent by the terminal device, the server determines the device corresponding to the to-be-added device identifier, and records the determined device and the account identifier accordingly;

[0231] In response to the list display instruction, the terminal device sends the account identifier of the account logged in by the terminal device to the server;

[0232] In response to the account identifier sent by the terminal device, the server determines a device corresponding to the account identifier; and sends a device list representing the determined devices to the terminal device;

[0233] The terminal device displays the device list; receives a binding instruction input for a streaming device in the device list, obtains a first device identifier of the video recorder indicated by the binding instruction, and obtains a second device identifier of the device to be bound indicated by the binding instruction; and sends the obtained first device identifier and second device identifier to the server; wherein the devices indicated by the binding instruction include at least one video recorder; and the device to be bound is a streaming device other than the video recorder indicated by the binding instruction;

[0234] In response to the first device identifier and the second device identifier sent by the terminal device, the server determines the device corresponding to the first device identifier as the target video recorder, and determines the device corresponding to the second device identifier as the target streaming device; establishes a communication connection between the target video recorder and the target streaming device as a first target communication connection, and the first target communication connection is composed of the communication connection established between the server and the target video recorder and the communication connection established between the server and the target streaming device.

[0235] In an embodiment of the present application, the video recorder and each streaming device establish a communication connection with the server according to a pre-configured connection method, and send their own device identification to the server through the established communication connection, so that the server can record the received device identification and the device that sent the device identification. Afterwards, in response to the binding instruction, the terminal device determines the first device identification of the video recorder indicated by the binding instruction, and obtains the second device identification of the streaming device indicated by the binding instruction, and sends the obtained first device identification and second device identification to the server; based on the first device identification and second device identification sent by the terminal device, the server can determine the video recorder corresponding to the first device identification as the target video recorder, and determine the device corresponding to the second device identification as the target streaming device; then, the communication connection between the server and the target video recorder and the communication connection between the server and the target streaming device form a target communication connection, which serves as the communication connection between the target video recorder and the target streaming device. Therefore, in response to the binding instruction, regardless of whether the video recorder and the streaming device are devices in the same local area network, a communication connection can be established without introducing a third-party device.

[0236] In some embodiments, establishing a communication connection between a target video recorder and a target streaming device as a first target communication connection includes:

[0237] The server determines the network address of the target device to be bound when establishing a communication connection with the target device to be bound; and sends the determined network address to the target video recorder through the communication connection with the target video recorder;

[0238] The target video recorder responds to the network address sent by the server and determines whether a communication connection with the network address can be successfully established. If the communication connection with the network address cannot be successfully established, the target video recorder sends a message to the server through the communication connection established with the server indicating that the communication connection cannot be successfully established.

[0239] In response to the message sent by the target video recorder indicating that the communication connection cannot be established, the server establishes a communication connection between the target video recorder and the target device to be bound as a first target communication connection.

[0240] In some embodiments, the method further comprises,

[0241] If the target video recorder can successfully establish a communication connection with the network address, the established communication connection is used as the second target communication connection.

[0242] In some embodiments, the control instruction is a stream acquisition instruction; in response to the control instruction for the streaming media device, the device targeted by the control instruction is determined as the target device to be controlled; and the target device to be controlled is controlled to perform the operation indicated by the control instruction through the target communication connection established with the target device to be controlled, including:

[0243] In response to the stream acquisition instruction, the seventh device identification of the video recorder, the eighth device identification of the device to be acquired for which the stream acquisition instruction is directed, and the account identification of the account logged into the terminal device are acquired; the acquired seventh device identification, eighth device identification, and account identification are sent to the server; so that the server determines whether there is a binding relationship between the video recorder corresponding to the seventh device identification under the account identification and the device to be acquired corresponding to the eighth device identification;

[0244] If a binding relationship exists between the video recorder corresponding to the seventh device identifier under the account identifier and the device to be obtained corresponding to the eighth device identifier, the video recorder corresponding to the seventh device identifier obtains video stream data from the device to be obtained corresponding to the eighth device identifier through the target communication connection established between the video recorder and the device to be obtained corresponding to the eighth device identifier; and displays the obtained video stream data;

[0245] If there is a binding relationship between the recorder corresponding to the seventh device identifier under the account identifier and the device to be retrieved corresponding to the eighth device identifier, the recorder receives a message sent by the server indicating that there is no binding relationship, and displays the message;

[0246] The server records the account ID and the binding relationship between the recorder and the device to be bound in the following way:

[0247] In response to the binding instruction, the terminal device obtains the first device identifier of the video recorder indicated by the binding instruction, the second device identifier of the device to be bound indicated by the binding instruction, and the account identifier of the account logged in by the terminal device; and sends the obtained first device identifier, second device identifier, and account identifier to the server;

[0248] After the target video recorder establishes a communication connection with the target device to be bound, the server correspondingly records the account identifier and the binding relationship between the target video recorder and the target device to be bound.

[0249] Corresponding to the above-mentioned video acquisition system, the embodiment of the present application further provides a video acquisition method, which is applied to a network camera in the video acquisition system, and the video acquisition system also includes a terminal device, a server and at least one video recorder, such as Figure 13 As shown, the method includes:

[0250] Step S131: establishing a communication connection with the server according to the configured connection mode, and sending the ninth device identification of the network camera to the server through the established communication connection, so that the server records the received ninth device identification and the device sending the ninth device identification;

[0251] Step S132: In response to the control instruction, executing the operation indicated by the control instruction;

[0252] Among them, the control command is sent to the network camera in the following ways;

[0253] The video recorder responds to the control instruction for the network camera, determines the network camera targeted by the control instruction as the target network camera, and sends the control instruction to the target network camera via the target communication connection established between the video recorder and the target network camera;

[0254] Establish a communication connection between the recorder and the network camera as the target communication connection in the following way:

[0255] Each video recorder establishes a communication connection with the server according to the configured connection mode, and sends the tenth device identification of each video recorder to the server through the established communication connection; so that the server records the tenth device identification and the device that sent the tenth device identification;

[0256] In response to the add instruction, the terminal device obtains the device identifier of the streaming device indicated by the add instruction as the identifier of the device to be added; and sends the account identifier of the account logged in by the terminal device and the identifier of the device to be added to the server;

[0257] In response to the account identifier and the identifier of the device to be added sent by the terminal device, the server determines the device corresponding to the identifier of the device to be added, and records the determined device and account identifier accordingly;

[0258] In response to the list display instruction, the terminal device sends the account identifier of the account logged in by the terminal device to the server;

[0259] In response to the account identifier sent by the terminal device, the server determines the device corresponding to the account identifier; and sends a device list representing the determined device to the terminal device;

[0260] The terminal device displays a device list; receives a binding instruction input for a streaming device in the device list, obtains a first device identifier of the video recorder indicated by the binding instruction, and obtains a second device identifier of the bound device indicated by the binding instruction; and sends the obtained first device identifier and second device identifier to the server; wherein the devices indicated by the binding instruction include at least one video recorder; and the device to be bound is a streaming device other than the video recorder indicated by the binding instruction;

[0261] In response to the first device identification and the second device identification sent by the terminal device, the server determines the device corresponding to the first device identification as the target video recorder, and determines the device corresponding to the second device identification as the target network camera; establishes a communication connection between the target video recorder and the target network camera as a first target communication connection, and the first target communication connection is composed of the communication connection established between the server and the target video recorder and the communication connection established between the server and the target network camera.

[0262] In an embodiment of the present application, a network camera and a video recorder establish a communication connection with a server according to a pre-configured connection method, and send their own device identifications to the server through the established communication connection, so that the server can record the received device identification and the device that sent the device identification. Afterwards, in response to the binding instruction, the terminal device determines the first device identification of the video recorder indicated by the binding instruction, obtains the second device identification of the network camera indicated by the binding instruction, and sends the obtained first device identification and second device identification to the server; based on the first device identification and second device identification sent by the terminal device, the server can determine the video recorder corresponding to the first device identification as the target video recorder, and determine the device corresponding to the second device identification as the target network camera; the communication connection between the server and the target video recorder and the communication connection between the server and the target network camera then form a target communication connection, which serves as the communication connection between the target video recorder and the target network camera. Therefore, in response to the binding instruction, regardless of whether the video recorder and the network camera are devices in the same local area network, a communication connection can be established without introducing a third-party device.

[0263] In some embodiments, establishing a communication connection between a target video recorder and a target network camera as a first target communication connection includes:

[0264] The server determines the network address used by the target network camera when establishing a communication connection with the target network camera; and sends the determined network address to the target video recorder through the communication connection with the target video recorder;

[0265] The target video recorder responds to the network address sent by the server and determines whether a communication connection with the network address can be successfully established. If the communication connection with the network address cannot be successfully established, the target video recorder sends a message to the server through the communication connection established with the server indicating that the communication connection cannot be successfully established.

[0266] In response to the message sent by the target video recorder indicating that the communication connection cannot be established, the server establishes a communication connection between the target video recorder and the target network camera as a first target communication connection.

[0267] In some embodiments, the method further comprises:

[0268] If the target video recorder can successfully establish a communication connection with the network address, the established communication connection is used as the second target communication connection.

[0269] In some embodiments, the control instruction is a fetch instruction. In response to the control instruction, the operation indicated by the control instruction is executed, including:

[0270] If a binding relationship exists between the video recorder corresponding to the eleventh device identifier under the account identifier and the device to be retrieved corresponding to the twelfth device identifier, the device to be retrieved corresponding to the twelfth device identifier sends the video stream data to the video recorder corresponding to the eleventh device identifier through the target communication connection with the video recorder corresponding to the eleventh device identifier, so that the video recorder displays the video stream;

[0271] The account identifier is the identifier of the account logged in by the terminal device, the eleventh device identifier is the device identifier of the video recorder indicated by the stream acquisition instruction; the twelfth device identifier is the device identifier of the network camera indicated by the stream acquisition instruction; the device to be acquired is the network video camera indicated by the stream acquisition instruction;

[0272] Furthermore, it is determined whether there is a binding relationship between the video recorder corresponding to the eleventh device identifier under the account identifier and the device to be streamed corresponding to the twelfth device identifier:

[0273] In response to the binding instruction, the terminal device obtains the first device identifier of the video recorder indicated by the binding instruction, the second device identifier of the device to be bound indicated by the binding instruction, and the account identifier of the account logged in by the terminal device; and sends the obtained first device identifier, second device identifier, and account identifier to the server;

[0274] After the target video recorder and the target network camera establish a communication connection, the server records the account ID and the binding relationship between the target video recorder and the target network camera;

[0275] The video recorder responds to the stream acquisition instruction, obtains the eleventh device identification of the video recorder, the twelfth device identification of the device to be acquired that the stream acquisition instruction targets, and the account identification of the account logged in by the terminal device; sends the obtained eleventh device identification, twelfth device identification, and account identification to the server; so that the server determines whether there is a binding relationship between the video recorder corresponding to the eleventh device identification under the account identification and the device to be acquired corresponding to the twelfth device identification.

[0276] The present application also provides a network camera, including:

[0277] Memory for storing computer programs;

[0278] The processor is configured to implement any of the above-mentioned video acquisition methods applied to a network camera when executing the program stored in the memory.

[0279] An embodiment of the present application also provides a video recorder, including a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement any of the above-mentioned video acquisition methods applied to a video recorder.

[0280] In another embodiment provided by the present application, a computer-readable storage medium is further provided, wherein a computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, any of the above-mentioned video acquisition systems is implemented.

[0281] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any one of the video acquisition systems in the above embodiments.

[0282] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a solid-state drive (SSD).

[0283] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.

[0284] Each embodiment in this specification is described in a related manner. Similar portions between embodiments can be referenced to each other. Each embodiment focuses on the differences between the other embodiments. In particular, the method, network camera, and video recorder embodiments are generally similar to the method embodiment, so their descriptions are simplified. For relevant portions, refer to the descriptions of the method embodiment.

[0285] The above description is only a preferred embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application are included in the scope of protection of the present application.

Claims

1. A video acquisition system, characterized in that: The system includes a terminal device, a server and a plurality of streaming media devices; the streaming media devices include at least one video recorder; each of the streaming media devices is pre-configured with a connection method for connecting to the server; Each of the streaming media devices is used to establish a communication connection with the server according to the configured connection mode; sending the device identification of the streaming device to the server via the established communication connection; The server is configured to record correspondingly the received device identification and the device that sent the device identification; The terminal device is configured to, in response to an add instruction, obtain a device identifier of the streaming media device indicated by the add instruction as the identifier of the device to be added; and send the account identifier of the account logged in by the terminal device and the identifier of the device to be added to the server; The server is further configured to determine, in response to the account identifier and the to-be-added device identifier sent by the terminal device, the device corresponding to the to-be-added device identifier, and record the determined device and the account identifier accordingly; The terminal device is further configured to send, to the server, an account identifier of the account logged in by the terminal device in response to a list display instruction; The server is further configured to determine, in response to the account identifier sent by the terminal device, a device corresponding to the account identifier; and send a device list representing the determined devices to the terminal device; The terminal device is further configured to display the device list; receive a binding instruction input for a streaming device in the device list, obtain a first device identifier of the video recorder indicated by the binding instruction, and obtain a second device identifier of the device to be bound indicated by the binding instruction; and send the obtained first device identifier and second device identifier to the server; wherein the devices indicated by the binding instruction include at least one video recorder; and the device to be bound is a streaming device other than the video recorder indicated by the binding instruction; The server is further configured to, in response to the first device identification and the second device identification sent by the terminal device, determine the device corresponding to the first device identification as the target video recorder, and determine the device corresponding to the second device identification as the target device to be bound; Establishing a communication connection between the target video recorder and the target device to be bound as a first target communication connection; the first target communication connection is composed of a communication connection established between the server and the target video recorder and a communication connection established between the server and the target device to be bound; The video recorder is also used to respond to control instructions for other streaming media devices other than the video recorder, determine the device targeted by the control instruction as the target device to be controlled; and control the target device to be controlled to perform the operation indicated by the control instruction through the target communication connection established with the target device to be controlled.

2. The system according to claim 1, wherein: The server is further configured to determine a network address used by the target device to be bound when establishing a communication connection with the target device to be bound; and send the determined network address to the target video recorder via the communication connection with the target video recorder; The target video recorder is further configured to determine whether a communication connection with the network address sent by the server can be successfully established in response to the network address sent by the server; if the communication connection with the network address cannot be successfully established, send a message to the server through the communication connection established with the server indicating that the communication connection cannot be successfully established; The server is specifically used to establish a communication connection between the target video recorder and the target device to be bound as a first target communication connection in response to a message sent by the target video recorder indicating that a communication connection cannot be established; the first target communication connection is composed of a communication connection established between the server and the target video recorder and a communication connection established between the server and the target device to be bound.

3. The system according to claim 2, characterized in that The target video recorder is further configured to use the established communication connection as the second target communication connection if a communication connection with the network address can be successfully established.

4. The system according to claim 1, wherein: The terminal device is further configured to, in response to the add instruction, obtain the device identifier of the streaming media device indicated by the add instruction as the identifier of the device to be added; and send the account identifier of the account logged in by the terminal device and the identifier of the device to be added to the server; The server is further configured to determine, in response to the account identifier and the to-be-added device identifier sent by the terminal device, the device corresponding to the to-be-added device identifier, and record the determined device and the account identifier accordingly; The sending the acquired first device identifier and second device identifier to the server includes: Sending the acquired first device identifier, second device identifier, and account identifier of the account logged in by the terminal device to the server; The server is further configured to determine whether the target video recorder and the target device to be bound are devices corresponding to the account identifier; If so, establishing a communication connection between the target video recorder and the target device to be bound as a first target communication connection; If not, sending a prompt message indicating that the binding failed to the terminal device; The terminal device is also used to display the prompt information.

5. The system according to claim 3, wherein: The terminal device is further configured to, in response to the add instruction, obtain the device identifier of the streaming media device indicated by the add instruction as the identifier of the device to be added; and send the account identifier of the account logged in by the terminal device and the identifier of the device to be added to the server; The server is further configured to determine, in response to the account identifier and the to-be-added device identifier sent by the terminal device, the device corresponding to the to-be-added device identifier, and record the determined device and the account identifier accordingly; The sending the acquired first device identifier and second device identifier to the server includes: Sending the acquired first device identifier, second device identifier, and account identifier of the account logged in by the terminal device to the server; The server is further configured to determine whether the target video recorder and the target device to be bound are devices corresponding to the account identifier; If so, establishing a communication connection between the target video recorder and the target device to be bound as a target communication connection; If not, sending a prompt message indicating that the binding failed to the terminal device; The terminal device is also used to display the prompt information.

6. The system according to claim 1, wherein: The terminal device is specifically configured to, in response to a binding instruction, obtain a first device identifier of the video recorder indicated by the binding instruction, a second device identifier of the device to be bound indicated by the binding instruction, and an account identifier of the account logged in by the terminal device; and send the obtained first device identifier, second device identifier, and account identifier to the server; The server is further configured to record the account identifier and the binding relationship between the target video recorder and the target device to be bound after establishing a communication connection between the target video recorder and the target device to be bound; The control instruction is a stream acquisition instruction, and the video recorder is specifically configured to, in response to the stream acquisition instruction, acquire a third device identifier of the video recorder, a fourth device identifier of the device to be streamed from which the stream acquisition instruction is directed, and an account identifier of an account logged into the terminal device; and send the acquired third device identifier, fourth device identifier, and account identifier to the server; The server is further configured to determine whether a binding relationship exists between the video recorder corresponding to the third device identifier under the account identifier and the to-be-obtained stream device corresponding to the fourth device identifier; if a binding relationship exists between the video recorder corresponding to the third device identifier under the account identifier and the to-be-obtained stream device corresponding to the fourth device identifier, enabling the video recorder corresponding to the third device identifier to obtain video stream data from the to-be-obtained stream device corresponding to the fourth device identifier through a target communication connection established between the video recorder and the to-be-obtained stream device corresponding to the fourth device identifier; If a binding relationship exists between the video recorder corresponding to the third device identifier under the account identifier and the device to be streamed corresponding to the fourth device identifier, a message indicating that no binding relationship exists is sent to the video recorder through the communication connection established with the video recorder corresponding to the third device identifier; The video recorder is further configured to display the video stream data in response to the video stream data obtained from the device to be obtained corresponding to the fourth device identifier; Alternatively, in response to a message sent by the server indicating that no binding relationship exists, the message is displayed.

7. A video acquisition method, characterized in that: A video recorder is used in a video acquisition system, wherein the video acquisition system further includes a terminal device, a server, and a plurality of streaming media devices other than the video recorder; the video recorder and the streaming media devices are pre-configured with a connection mode for connecting to the server, and the method includes: Establishing a communication connection with the server according to the configured connection mode; sending the fifth device identification of the video recorder to the server through the established communication connection; so that the server correspondingly records the received fifth device identification and the device that sent the fifth device identification; In response to a control instruction for the streaming device, determining the device targeted by the control instruction as a target device to be controlled; and controlling the target device to be controlled to perform the operation indicated by the control instruction through a target communication connection established with the target device to be controlled; The server also records a sixth device identifier and a device that sends the sixth device identifier. The sixth device identifier is sent to the server in the following manner: Each of the streaming media devices establishes a communication connection with the server according to the configured connection mode; sends the sixth device identification of each of the streaming media devices to the server through the established communication connection; so that the server correspondingly records the sixth device identification and the device that sent the sixth device identification; Establishing a communication connection between the video recorder and the streaming device as a target communication connection in the following manner includes: In response to the add instruction, the terminal device obtains the device identification of the streaming device indicated by the add instruction as the device identification to be added; and sends the account identification of the account logged in by the terminal device and the device identification to be added to the server; In response to the account identifier and the to-be-added device identifier sent by the terminal device, the server determines the device corresponding to the to-be-added device identifier, and records the determined device and the account identifier accordingly; In response to the list display instruction, the terminal device sends the account identifier of the account logged in by the terminal device to the server; In response to the account identifier sent by the terminal device, the server determines a device corresponding to the account identifier; and sends a device list representing the determined devices to the terminal device; The terminal device displays the device list; receives a binding instruction input for a streaming device in the device list, obtains a first device identifier of the network video recorder indicated by the binding instruction, and obtains a second device identifier of the device to be bound indicated by the binding instruction; and sends the obtained first device identifier and second device identifier to the server; wherein the devices indicated by the binding instruction include at least one video recorder; and the device to be bound is a streaming device other than the video recorder indicated by the binding instruction; In response to the first device identifier and the second device identifier sent by the terminal device, the server determines the device corresponding to the first device identifier as the target video recorder, and determines the device corresponding to the second device identifier as the target streaming device; establishes a communication connection between the target video recorder and the target streaming device as a first target communication connection, and the first target communication connection is composed of the communication connection established between the server and the target video recorder and the communication connection established between the server and the target streaming device.

8. The method according to claim 7, characterized in that The establishing of a communication connection between the target video recorder and the target streaming device as a first target communication connection includes: The server determines a network address used by the target device to be bound when establishing a communication connection with the target device to be bound; and sends the determined network address to the target video recorder through the communication connection with the target video recorder; The target video recorder determines whether a communication connection with the network address can be successfully established in response to the network address sent by the server, and if the communication connection with the network address cannot be successfully established, sends a message to the server through the communication connection established with the server indicating that the communication connection cannot be successfully established; In response to the message sent by the target video recorder indicating that the communication connection cannot be established, the server establishes a communication connection between the target video recorder and the target device to be bound as a first target communication connection.

9. The method according to claim 8, characterized in that The method further comprises, If the target video recorder can successfully establish a communication connection with the network address, the established communication connection is used as the second target communication connection.

10. The method according to claim 7, characterized in that The control instruction is a stream acquisition instruction; in response to the control instruction for the streaming media device, the device targeted by the control instruction is determined as the target device to be controlled; and the target device to be controlled is controlled to perform the operation indicated by the control instruction through the target communication connection established with the target device to be controlled, including: In response to the stream acquisition instruction, obtaining the seventh device identification of the video recorder, the eighth device identification of the device to be acquired for which the stream acquisition instruction is directed, and the account identification of the account logged in by the terminal device; sending the obtained seventh device identification, eighth device identification, and account identification to the server; so that the server determines whether there is a binding relationship between the video recorder corresponding to the seventh device identification and the device to be acquired corresponding to the eighth device identification under the account identification; If a binding relationship exists between the video recorder corresponding to the seventh device identifier under the account identifier and the device to be obtained corresponding to the eighth device identifier, the video recorder corresponding to the seventh device identifier obtains video stream data from the device to be obtained corresponding to the eighth device identifier through a target communication connection established between the video recorder and the device to be obtained corresponding to the eighth device identifier; And display the acquired video stream data; If a binding relationship exists between the video recorder corresponding to the seventh device identifier under the account identifier and the device to be streamed corresponding to the eighth device identifier, the video recorder receives a message sent by the server indicating that no binding relationship exists, and displays the message; The server records the account identifier and the binding relationship between the recorder and the device to be bound in the following manner: In response to the binding instruction, the terminal device obtains the first device identifier of the video recorder indicated by the binding instruction, the second device identifier of the device to be bound indicated by the binding instruction, and the account identifier of the account logged in by the terminal device; and sends the obtained first device identifier, second device identifier, and account identifier to the server; After the target video recorder establishes a communication connection with the target device to be bound, the server correspondingly records the account identifier and the binding relationship between the target video recorder and the target device to be bound.

11. A video acquisition method, characterized in that: A network camera is used in a video acquisition system, wherein the video acquisition system further includes a terminal device, a server, and at least one video recorder. The method includes: Establishing a communication connection with the server according to the configured connection mode, and sending the ninth device identification of the network camera to the server through the established communication connection, so that the server correspondingly records the received ninth device identification and the device that sent the ninth device identification; In response to the control instruction, executing the operation indicated by the control instruction; Wherein, the control instruction is sent to the network camera in the following manner; The video recorder responds to the control instruction for the network camera, determines the network camera targeted by the control instruction as the target network camera, and sends the control instruction to the target network camera via the target communication connection established between the video recorder and the target network camera; Establish a communication connection between the video recorder and the network camera as a target communication connection by: Each of the video recorders establishes a communication connection with the server according to the configured connection mode, and sends the tenth device identification of each of the video recorders to the server through the established communication connection; so that the server correspondingly records the tenth device identification and the device that sent the tenth device identification; In response to the add instruction, the terminal device obtains the device identification of the streaming device indicated by the add instruction as the device identification to be added; and sends the account identification of the account logged in by the terminal device and the device identification to be added to the server; In response to the account identifier and the to-be-added device identifier sent by the terminal device, the server determines the device corresponding to the to-be-added device identifier, and records the determined device and the account identifier accordingly; In response to the list display instruction, the terminal device sends the account identifier of the account logged in by the terminal device to the server; In response to the account identifier sent by the terminal device, the server determines a device corresponding to the account identifier; and sends a device list representing the determined devices to the terminal device; The terminal device displays the device list; receives a binding instruction input for a streaming device in the device list, obtains a first device identifier of the video recorder indicated by the binding instruction, and obtains a second device identifier of the device to be bound indicated by the binding instruction; and sends the obtained first device identifier and second device identifier to the server; wherein the devices indicated by the binding instruction include at least one video recorder; and the device to be bound is a streaming device other than the video recorder indicated by the binding instruction; In response to the first device identifier and the second device identifier sent by the terminal device, the server determines the device corresponding to the first device identifier as the target video recorder, and determines the device corresponding to the second device identifier as the target network camera; establishes a communication connection between the target video recorder and the target network camera as a first target communication connection, and the first target communication connection is composed of the communication connection established between the server and the target video recorder and the communication connection established between the server and the target network camera.

12. The method according to claim 11, characterized in that The establishing of a communication connection between the target video recorder and the target network camera as a first target communication connection includes: The server determines the network address used by the target network camera when establishing a communication connection with the target network camera; and sends the determined network address to the target video recorder through the communication connection with the target video recorder; The target video recorder determines whether a communication connection with the network address can be successfully established in response to the network address sent by the server, and if the communication connection with the network address cannot be successfully established, sends a message to the server through the communication connection established with the server indicating that the communication connection cannot be successfully established; In response to the message sent by the target video recorder indicating that the communication connection cannot be established, the server establishes a communication connection between the target video recorder and the target network camera as a first target communication connection.

13. The method according to claim 12, characterized in that The method further comprises: If the target video recorder can successfully establish a communication connection with the network address, the established communication connection is used as the second target communication connection.

14. The method according to claim 11, characterized in that The control instruction is a stream fetch instruction, and in response to the control instruction, executing the operation indicated by the control instruction includes: If a binding relationship exists between the video recorder corresponding to the eleventh device identifier under the account identifier and the device to be retrieved corresponding to the twelfth device identifier, the device to be retrieved corresponding to the twelfth device identifier sends the video stream data to the video recorder corresponding to the eleventh device identifier through a target communication connection with the video recorder corresponding to the eleventh device identifier, so that the video recorder displays the video stream; The account identifier is the identifier of the account logged in by the terminal device, the eleventh device identifier is the device identifier of the video recorder indicated by the stream acquisition instruction; the twelfth device identifier is the device identifier of the network camera indicated by the stream acquisition instruction; the device to be streamed is the network video camera indicated by the stream acquisition instruction; Furthermore, it is determined whether there is a binding relationship between the video recorder corresponding to the eleventh device identification under the account identification and the device to be streamed corresponding to the twelfth device identification: In response to the binding instruction, the terminal device obtains the first device identifier of the video recorder indicated by the binding instruction, the second device identifier of the device to be bound indicated by the binding instruction, and the account identifier of the account logged in by the terminal device; and sends the obtained first device identifier, second device identifier, and account identifier to the server; After the target video recorder establishes a communication connection with the target network camera, the server correspondingly records the account identifier and the binding relationship between the target video recorder and the target network camera; The video recorder responds to the stream acquisition instruction, obtains the eleventh device identification of the video recorder, the twelfth device identification of the device to be acquired that is targeted by the stream acquisition instruction, and the account identification of the account logged in by the terminal device; sends the obtained eleventh device identification, twelfth device identification, and the account identification to the server; so that the server determines whether there is a binding relationship between the video recorder corresponding to the eleventh device identification under the account identification and the device to be acquired corresponding to the twelfth device identification.

15. A network video recorder, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the method described in any one of claims 7 to 10 when executing a program stored in a memory.

16. A network camera, characterized in that: The method comprises a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement the method according to any one of claims 11 to 14.

Citation Information

Patent Citations

  • Equipment automatic configuration method in wide area network video monitoring system

    CN104506807A

  • Method and device for remotely configuring IPC parameters and storage medium

    CN113473090A

  • Stream taking method for network camera and network video recorder

    CN117676311A

  • Cloud platform docking debugging method and apparatus, electronic device and storage medium

    US20240275855A1

  • Video resource sharing method and system, and related device

    WO2017084318A1