A video source management method and a video source management system

By obtaining the video source acquisition equipment information on the industrial control machine and assembling the streaming address, the problem of cumbersome video source management of cameras by multiple manufacturers at the construction site is solved, simplified operation and unified management are achieved, and user experience is improved.

CN114500945BActive Publication Date: 2025-07-25GLODON CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210076276.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-21
Publication Date
2025-07-25
Estimated Expiration
2042-01-21

AI Technical Summary

Technical Problem

In the prior art, the construction site surveillance cameras are mostly equipment from different manufacturers, resulting in cumbersome and inefficient video source management, and the inability to achieve unified and efficient management.

Method used

The gateway resource service deployed on the industrial control machine obtains the video source acquisition device information, assembles the streaming address, and pushes the video source to the video streaming service for playback when the client requests it, realizing the unified management of camera video sources for different manufacturers.

Benefits of technology

It simplifies video source management operations, improves management efficiency, supports unified management of equipment of different manufacturers, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114500945B_ABST
    Figure CN114500945B_ABST
Patent Text Reader

Abstract

The present invention provides a video source management method and a video source management system. The method is applied to a gateway resource service deployed on an industrial control computer. By obtaining device information corresponding to a video source acquisition device; assembling a pull stream address corresponding to the video source acquisition device based on the device information; when receiving a video call request for the video source acquisition device sent by a client, pushing the video source collected by the video source acquisition device to a video stream service according to the pull stream address based on the video call request, so that the client can extract the video source from the video stream service for playback. Thus, the user only needs to perform a playback operation to realize the playback of the video source of the corresponding device. The operation process is simple, the management efficiency of the video source is improved, and it is not restricted by the manufacturers and models of the video source acquisition devices, and the unified management of different video source acquisition devices can be realized, improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of video transmission, and particularly relates to a video source management method and a video source management system. Background Art

[0002] During construction sites, it is often necessary to install surveillance cameras for construction monitoring. In different construction stages, multiple surveillance cameras from different manufacturers may be installed according to monitoring requirements. In the prior art, if one wants to monitor the video source of the on-site construction progress, one can only monitor by logging in to the specified camera address through a page. When monitoring cameras from multiple manufacturers, it is cumbersome and time-consuming. How to achieve unified management of video sources collected by cameras from different manufacturers has become an urgent problem to be solved. Summary of the Invention

[0003] In view of this, embodiments of the present invention provide a video source management method and a video source management system to overcome the problems in the prior art that when monitoring the video source of the on-site construction progress, one can only monitor by logging in to the specified camera address through a page, the operation method is cumbersome and inefficient, and it is impossible to perform unified and efficient management of video sources collected by different acquisition devices.

[0004] According to a first aspect, an embodiment of the present invention provides a video source management method, which is applied to a gateway resource service deployed on an industrial control computer. The method includes:

[0005] Obtain device information corresponding to a video source acquisition device;

[0006] Assemble a pull stream address corresponding to the video source acquisition device based on the device information;

[0007] When receiving a video call request for the video source acquisition device sent by a client, push the video source collected by the video source acquisition device to a video stream service according to the pull stream address based on the video call request, so that the client extracts the video source from the video stream service for playback.

[0008] Optionally, the assembling a pull stream address corresponding to the video source acquisition device based on the device information includes:

[0009] Extract the user name, password, IP address, and port number of the video source acquisition device from the device information;

[0010] Assemble a pull stream address corresponding to the video source acquisition device based on the user name, password, IP address, and port number.

[0011] Optionally, the pushing the video source collected by the video source acquisition device to a video stream service according to the pull stream address based on the video call request includes:

[0012] Determine the target address of the video stream service based on the video call request;

[0013] Obtain the video call method in the video call request;

[0014] Use the interface corresponding to the video call method to push the video source collected by the video source acquisition device to the target address of the video stream service according to the pull stream address.

[0015] Optionally, the method further includes:

[0016] Obtain the SDK version information and initialize the SDK based on the SDK version information;

[0017] Establish a link relationship with the video stream service;

[0018] Register the device model based on the device information;

[0019] Determine the push stream channel based on the link relationship.

[0020] According to a second aspect, an embodiment of the present invention provides a video source management method applied to a video stream service deployed on a cloud server. The method includes:

[0021] Receive the video source pushed by the gateway resource service; the video source is the video source collected by the video source acquisition device obtained by the gateway resource service based on the video call request according to the pull stream address when receiving the video call request of the video source acquisition device, and the pull stream address is the gateway resource service obtaining the device information corresponding to the video source acquisition device and assembling the pull stream address corresponding to the video source acquisition device based on the device information;

[0022] Store the video source so that the client can extract the video source for playback.

[0023] Optionally, the method further includes:

[0024] Monitor the play instruction corresponding to the video source;

[0025] Disconnect the link with the gateway resource service and the client based on the relationship between the play instruction and the preset kick stream condition.

[0026] Optionally, the disconnecting the link with the gateway resource service and the client based on the relationship between the play instruction and the preset kick stream condition includes:

[0027] When the play instruction is a pause play instruction, start timing;

[0028] When the timing duration is greater than the pre - set timing duration, disconnect the link with the gateway resource service and the client.

[0029] According to a third aspect, an embodiment of the present invention provides a video source management system, including: a gateway resource service deployed on an industrial control computer, a video stream service deployed on a cloud server, a client, and multiple video source acquisition devices, where

[0030] The gateway resource service is used to obtain device information corresponding to the video source acquisition device; assemble a pull - stream address corresponding to the video source acquisition device based on the device information; when receiving a video call request of the video source acquisition device sent by the client, push the video source collected by the video source acquisition device to the video stream service according to the pull - stream address based on the video call request;

[0031] The video stream service is used to receive the video source pushed by the gateway resource service, store the video source, so that the client can extract the video source for playback.

[0032] According to a fourth aspect, an embodiment of the present invention provides a video source management device, including:

[0033] A memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to execute the method according to the first aspect and any one of its optional embodiments.

[0034] According to a fifth aspect, an embodiment of the present invention provides a computer - readable storage medium, which stores computer instructions for causing the computer to execute the method according to the first aspect or any one of the optional embodiments of the first aspect.

[0035] The technical solution of the present invention has the following advantages:

[0036] 1. The video source management method provided by the embodiments of the present invention is applied to a gateway resource service deployed on an industrial control computer. By obtaining the device information corresponding to a video source acquisition device; assembling the pull stream address corresponding to the video source acquisition device based on the device information; when receiving a video call request for the video source acquisition device sent by a client, pushing the video source collected by the video source acquisition device to a video stream service according to the pull stream address based on the video call request, so that the client can extract the video source from the video stream service for playback. Thus, by using the device information of different video source acquisition devices to assemble their corresponding pull stream addresses, and when the user requests to play the video source of the device, pushing the video source collected by the device to the video stream service according to the pull stream address, and the user performs a pull stream display by callback from the video stream service. The user only needs to perform a playback operation to realize the playback of the video source of the corresponding device. The operation process is simple, which improves the management efficiency of the video source, and is not restricted by the manufacturers and models of the video source acquisition devices, can realize the unified management of different video source acquisition devices, and improves the user experience.

[0037] 2. The video source management method provided by the embodiments of the present invention is applied to a video stream service deployed on a cloud server. By receiving the video source pushed by the gateway resource service; the video source is the video source collected by the video source acquisition device obtained by the gateway resource service according to the pull stream address based on the video call request when receiving a video call request for the video source acquisition device, and the pull stream address is that the gateway resource service obtains the device information corresponding to the video source acquisition device and assembles the pull stream address corresponding to the video source acquisition device; storing the video source, so that the client can extract the video source for playback. By using the device information of different video source acquisition devices to assemble their corresponding pull stream addresses, and when the user requests to play the video source of the device, pushing the video source collected by the device to the video stream service according to the pull stream address, and the user performs a pull stream display by callback from the video stream service. The user only needs to perform a playback operation to realize the playback of the video source of the corresponding device. The operation process is simple, which improves the management efficiency of the video source, and is not restricted by the manufacturers and models of the video source acquisition devices, can realize the unified management of different video source acquisition devices, and improves the user experience.

[0038] 3. The video source management system provided by the embodiments of the present invention includes: a gateway resource service deployed on an industrial control computer, a video stream service deployed on a cloud server, a client, and multiple video source acquisition devices. Among them, the gateway resource service is used to obtain the device information corresponding to the video source acquisition device; assemble the pull stream address corresponding to the video source acquisition device based on the device information; when receiving a video call request for the video source acquisition device sent by the client, push the video source collected by the video source acquisition device to the video stream service according to the pull stream address based on the video call request; the video stream service is used to receive the video source pushed by the gateway resource service and store the video source, so that the client can extract the video source from the target address for playback. By assembling the corresponding pull stream address using the device information of different video source acquisition devices, and when the user requests to play the video source of the device, pushing the video source collected by the device to the video stream service according to the pull stream address, and the user performs a pull stream display by callback from this video stream service, the user only needs to perform a playback operation to achieve the playback of the video source of the corresponding device. The operation process is simple, the management efficiency of the video source is improved, and it is not restricted by the manufacturers and models of the video source acquisition devices, and the unified management of different video source acquisition devices can be realized, improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required to be used in the description of the specific embodiments or the prior art. Obviously, the following drawings are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0040] Figure 1 It is a schematic structural diagram of the video source management system according to the embodiments of the present invention;

[0041] Figure 2 It is a working flowchart of the gateway resource service in the video source management system according to the embodiments of the present invention;

[0042] Figure 3 It is a working flowchart of the video stream service in the video source management system according to the embodiments of the present invention;

[0043] Figure 4 It is a schematic structural diagram of the video source management device according to the embodiments of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0044] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0045] The technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0046] During construction sites, it is often necessary to install surveillance cameras for construction monitoring. During different construction stages, multiple surveillance cameras from different manufacturers may be installed according to monitoring requirements. In the prior art, if one wants to monitor the video sources of the on-site construction progress, one can only log in to the specified camera address through a page for monitoring. When monitoring cameras from multiple manufacturers, it is cumbersome and time-consuming. Therefore, how to achieve unified management of the video sources collected by cameras from different manufacturers has become an urgent problem to be solved.

[0047] Based on the above problems, the embodiments of the present invention provide a video source management system, as Figure 1 shown. The video source management system includes: a gateway resource service 101 deployed on an industrial computer, a video stream service 102 deployed on a cloud server, a client 103, and multiple video source acquisition devices ( Figure 1 not shown in the figure). Among them, the gateway resource service 101 is used to obtain the device information corresponding to the video source acquisition device; assemble the pull stream address corresponding to the video source acquisition device based on the device information; when receiving a video call request of the video source acquisition device sent by the client 103, push the video source collected by the video source acquisition device to the video stream service 102 according to the pull stream address based on the video call request; the video stream service 102 is used to receive the video source pushed by the gateway resource service, store the video source, so that the client 103 can extract the video source for playback.

[0048] Among them, the above-mentioned industrial computer can be a hummingbird box or a server, etc. The above-mentioned video source acquisition devices include: cameras, network video recorders, etc. The present invention is not limited thereto. Exemplarily, in the embodiments of the present invention, the above-mentioned client 103 can be a platform such as a WEB platform for users to manage video devices.

[0049] It should be noted that, in the embodiments of the present invention, the used gateway resource service 101 is a gateway resource service developed using a software development kit (SDK), and the gateway resource service 101 uses the video stream push module in the ZlMediakit streaming media framework for push stream services.

[0050] Specifically, as Figure 2 shown, the gateway resource service 101 is used to execute steps S101 to S103. As Figure 3 shown, the video stream service 102 is used to execute steps S201 to S202. For the detailed working processes of the above gateway resource service 101 and video stream service 102, refer to the relevant descriptions in the method embodiments below, and details will not be elaborated here.

[0051] Through the collaborative cooperation of the above-mentioned various components, the video source management system provided by the embodiments of the present invention assembles the corresponding pull stream address by using the device information of different video source acquisition devices, and when a user requests to play the video source of the device, pushes the video source collected by the device to the video stream service according to the pull stream address. The user performs a pull stream display by calling back from the video stream service. The user only needs to perform a play operation to achieve the play of the video source of the corresponding device. The operation process is simple, improving the management efficiency of the video source, and is not restricted by the manufacturers and models of the video source acquisition devices, enabling unified management of different video source acquisition devices and improving the user experience.

[0052] The embodiments of the present invention also provide a video source management method, which is applied to the gateway resource service 101 and the video stream service 102 as Figure 1 shown. Among them, as Figure 2 shown, the gateway resource service 101 is used to execute steps S101 to S103. As Figure 3 shown, the video stream service 102 is used to execute steps S201 to S202.

[0053] Step S101: Obtain the device information corresponding to the video source acquisition device.

[0054] Specifically, the device information is the device-related information provided by the manufacturer corresponding to the video source acquisition device. Such as: username, password, IP address, port number, etc.

[0055] Step S102: Assemble the pull stream address corresponding to the video source acquisition device based on the device information.

[0056] Specifically, in the above step S102, the user name, password, IP address, and port number of the video source acquisition device are extracted from the device information; and the pull stream address corresponding to the video source acquisition device is assembled based on the user name, password, IP address, and port number. Exemplarily, the pull stream address is implemented based on the Real-Time Streaming Protocol (RTSP). The ports of each manufacturer are different, and the assembly formats are also different. Generally, it includes information such as device user name, password, IP, port, and channel number. Exemplarily, the pull stream address can be: rtsp: / / admin:admin@192.0.1.100:554 / Streaming / tracks / 101?starttime=20120802t063812z&endtime=20120802t064816z, but the present invention is not limited thereto. Thus, the pull stream address in the corresponding format can be assembled according to the device information corresponding to different devices, which is convenient for the subsequent unified management of the video sources collected by devices of different manufacturers.

[0057] Step S103: When receiving a video call request for a video source acquisition device sent by a client, push the video source collected by the video source acquisition device to the video stream service according to the pull stream address based on the video call request.

[0058] Specifically, in the above step S103, the target address of the video stream service is determined based on the video call request; the video call method in the video call request is obtained; and the video source collected by the video source acquisition device is pushed to the target address of the video stream service according to the pull stream address by using the interface corresponding to the video call method. Exemplarily, the video call methods include: live broadcast, playback, etc. For example, the user can click the live broadcast button on the client to call the live broadcast interface addPlayLive, obtain the video source collected by the corresponding device according to the pull stream address, and push the video source to the video stream service; the user can also click the playback button on the client to call the playback interface: addPlayBack, and push the video source to the video stream service. Thus, the management of different playback operations of the video source by the user is realized, the flexibility of video source management is further improved, and the user experience is enhanced.

[0059] Step S201: Receive the video source pushed by the gateway resource service.

[0060] Step S202: Store the video source so that the client can extract the video source for playback.

[0061] Specifically, the video stream service stores the received video source in the target address corresponding to the video call request, so that the user can extract the video source data of the video source acquisition device corresponding to the video call request from the target address. The user performs pull stream display through a callback on the client, and the whole process is completed with one-key operation, which is simple and smooth in terms of operation and visual experience.

[0062] By performing the above steps, the video source management method provided by the embodiments of the present invention assembles the corresponding pulling stream address by using the device information of different video source acquisition devices, and when a user requests to play the video source of a device, the video source acquired by the device is pushed to the video stream service according to the pulling stream address, and the user pulls the stream and displays it by calling back from the video stream service. The user only needs to perform a play operation to realize the play of the video source of the corresponding device. The operation process is simple, the management efficiency of the video source is improved, and it is not restricted by the manufacturers and models of the video source acquisition devices, and the unified management of different video source acquisition devices can be realized, improving the user experience.

[0063] Specifically, in one embodiment, the above gateway resource service 101 establishes the corresponding function service through the following steps:

[0064] Step S104: Obtain the SDK version information and initialize the SDK based on the SDK version information.

[0065] Specifically, by obtaining the SDK version glodon_iot_get_version; initializing the SDK glodon_iot_init: GatewayID is to set the gateway id, GatewayToken is to set the gateway token, MQTTHost, MQTTPort is to set the communication HostIp and port, and complete the initialization operation of the gateway.

[0066] Step S105: Establish a link relationship with the video stream service.

[0067] Specifically, establish a link relationship with the video stream service by starting the link server glodon_iot_connect.

[0068] Step S106: Register the device model based on the device information.

[0069] Specifically, register the device model glodon_iot_register_parser: on_gateway_message such as adding gateway information, on_nvr_message, on_camera_message such as adding device information such as network video recorders and cameras.

[0070] Step S107: Determine the pushing stream channel based on the link relationship.

[0071] Specifically, by initializing the global information init_global_data: adding camera data such as user password-related information, and then performing pushing stream channel management to determine the pushing stream channel for subsequent pushing to the video stream service.

[0072] Specifically, in one embodiment, the above video stream service 102 is further configured to perform the following steps:

[0073] Step S203: Monitor the play instruction corresponding to the video source.

[0074] Wherein, the play instruction includes: start play, pause play, end play and other instructions.

[0075] Step S204: Disconnect the connection with the gateway resource service and the client based on the relationship between the play instruction and the preset kick - off condition.

[0076] Wherein, the preset kick - off condition can be flexibly set according to the actual requirements of the user for video source management. In the embodiment of the present invention, the preset kick - off condition is that if the user pauses play for more than a certain time, then kick - off is executed.

[0077] Specifically, the above step S204 starts timing when the play instruction is a pause play instruction; when the timing duration is greater than the preset timing duration, it disconnects the connection with the gateway resource service and the client. For example: the client is the video stream being displayed; after the video stream service receives the user's pause operation, it starts timing as required, and disconnects the connection with the gateway resource service after N minutes, and at the same time disconnects the client connection.

[0078] Exemplarily, the specific implementation process of the above kick - off method is as follows:

[0079] 1) Add a thread: MointorClientStatus to the real - time status SrsStatistic of the video stream service;

[0080] 2) Add a stream array vector<StreamTime>vStreams to the thread;

[0081] 3) If the stream pauses play, then insert the array for timing vStreams.push_back(iStream)、getSystemTime();

[0082] 4) Traverse the stream array vStreams, and judge whether there is a client with stopped streaming (*iterStream).pStream->nb_clients == 1, and the time exceeds N minutes (*iterStream).t_now - (*iterStream).t_start)>N * 60;

[0083] 5) If so, kick off the client stream vStreams.erase(iterStream);

[0084] 6) Release resources iterClient->second->conn->expire().

[0085] The working process of the video source management method provided by the embodiments of the present invention will be described in detail below in combination with specific application examples.

[0086] Specifically, taking the client as a WEB platform, the streaming media range as an SRS server, and the video source acquisition device as a camera as an example, the above video source management process is as follows:

[0087] 1. Add camera-related information (such as user passwords) on the platform.

[0088] 2. Start the gateway video source service on the industrial control computer (which can be downloaded from the platform interface).

[0089] 3. The platform distributes all camera information.

[0090] 4. Click video playback on the platform: distribute the push stream address; the gateway video source service pushes the stream to the Srs server; the platform pulls the stream and displays it through the SDK callback.

[0091] 5. Pull the stream, stop the stream as required by the customer, and kick the stream if not watched for the default time interval.

[0092] In the embodiments of the present invention, the above video source management method is developed using the SDK based on the C++ development language. Through the transformation of the ZlMediakit streaming media framework server and the SRS server, the unified management of devices from various manufacturers is realized, and the unified management of video sources is achieved. The push and pull of video streams can be controlled; that is, real-time supervision can be carried out smoothly, and the stream can be kicked as needed in a timely manner.

[0093] By executing the above steps, the video source management method provided by the embodiments of the present invention assembles the corresponding pull stream address by using the device information of different video source acquisition devices, and when the user requests to play the video source of the device, the video source collected by the device is pushed to the video stream service according to the pull stream address. The user pulls the stream and displays it by calling back from the video stream service. The user only needs to perform a play operation to realize the playback of the video source of the corresponding device. The operation process is simple, the management efficiency of the video source is improved, and it is not restricted by the manufacturer and model of the video source acquisition device. The unified management of different video source acquisition devices can be realized, and the user experience is improved.

[0094] The embodiments of the present invention also provide a video source management device, as Figure 4 shown. The above video source management device includes: a processor 901 and a memory 902. Among them, the processor 901 and the memory 902 can be connected through a bus or other means. Figure 4 Taking the connection through the bus as an example.

[0095] The processor 901 can be a Central Processing Unit (CPU). The processor 901 can also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. chips, or combinations of the above types of chips.

[0096] As a non-transitory computer-readable storage medium, the memory 902 can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the program instructions / modules corresponding to the methods in the above method embodiments. The processor 901 executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions, and modules stored in the memory 902, that is, implements the methods in the above method embodiments.

[0097] The memory 902 can include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created by the processor 901, etc. In addition, the memory 902 can include high-speed random access memory, and can also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory 902 optionally includes a memory remotely set relative to the processor 901, and these remote memories can be connected to the processor 901 through a network. Examples of the above networks include but are not limited to the Internet, enterprise intranets, local area networks, mobile communication networks, and combinations thereof.

[0098] One or more modules are stored in the memory 902 and, when executed by the processor 901, implement the methods in the above method embodiments.

[0099] For the specific details of the above video source management device, reference can be made to the corresponding relevant descriptions and effects in the above embodiments for understanding, and details are not described herein again.

[0100] Those skilled in the art can understand that to implement all or part of the processes in the above-described method embodiments, it can be completed by instructing relevant hardware through a computer program. The implemented program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-described method embodiments. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memories.

[0101] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A video source management method, which is applied to a gateway resource service deployed on an industrial control computer, and is characterized in that The method includes: Obtain the device information corresponding to the video source acquisition device, where the device information is the device-related information provided by the manufacturer corresponding to the video source acquisition device, including: username, password, IP address, and port number; Assemble the pull stream address corresponding to the video source acquisition device based on the device information; When receiving the video call request for the video source acquisition device sent by the client, push the video source collected by the video source acquisition device to the video stream service according to the pull stream address based on the video call request, so that the client extracts the video source from the video stream service for playback; The assembling the pull stream address corresponding to the video source acquisition device based on the device information includes: Extract the username, password, IP address, and port number of the video source acquisition device from the device information; Assemble the pull stream address corresponding to the video source acquisition device based on the username, password, IP address, and port number; Among them, the pull stream address is implemented based on the Real-Time Streaming Protocol (RTSP). The ports of each manufacturer of the video source acquisition device are different, and the assembly formats are also different. Assemble the pull stream address with the corresponding assembly format according to the username, password, IP address, and port number corresponding to different video source acquisition devices; The pushing the video source collected by the video source acquisition device to the video stream service according to the pull stream address based on the video call request includes: Determine the target address of the video stream service based on the video call request; Obtain the video call method in the video call request; Push the video source collected by the video source acquisition device to the target address of the video stream service according to the pull stream address by using the interface corresponding to the video call method.

2. The method according to claim 1, characterized in that, It further includes: Obtain the SDK version information and initialize the SDK based on the SDK version information; Establish a link relationship with the video stream service; Register the device model based on the device information; Determine the push stream channel based on the link relationship.

3. A video source management method, which is applied to a video stream service deployed on a cloud server, is characterized in that The method includes: Receive the video source pushed by the gateway resource service; the video source is the video source collected by the video source acquisition device obtained by the gateway resource service based on the video call request according to the pull stream address when receiving the video call request from the video source acquisition device. The pull stream address is obtained by the gateway resource service acquiring the device information corresponding to the video source acquisition device and assembling the pull stream address corresponding to the video source acquisition device based on the device information. The device information is the device-related information provided by the manufacturer corresponding to the video source acquisition device, including: username, password, IP address, and port number. The assembling of the pull stream address corresponding to the video source acquisition device based on the device information includes: extracting the username, password, IP address, and port number of the video source acquisition device from the device information; assembling the pull stream address corresponding to the video source acquisition device based on the username, password, IP address, and port number. Among them, the pull stream address is implemented based on the Real-Time Streaming Protocol (RTSP). The ports of each manufacturer of the video source acquisition device are different, and the assembly formats are also different. Assemble the pull stream address with the corresponding assembly format according to the username, password, IP address, and port number corresponding to different video source acquisition devices. Among them, the process of the gateway resource service obtaining the video source collected by the video source acquisition device based on the video call request according to the pull stream address when receiving the video call request from the video source acquisition device includes: determining the target address of the video stream service based on the video call request; obtaining the video call method in the video call request; using the interface corresponding to the video call method to push the video source collected by the video source acquisition device to the target address of the video stream service according to the pull stream address. Store the video source so that the client can extract the video source for playback.

4. The method according to claim 3, characterized in that, It also includes: Monitor the play instruction corresponding to the video source; Disconnect the connection with the gateway resource service and the client based on the relationship between the play instruction and the preset kick-stream condition.

5. The method according to claim 4, wherein The disconnecting the connection with the gateway resource service and the client based on the relationship between the play instruction and the preset kick-stream condition includes: When the play instruction is a pause play instruction, start timing; When the timing duration is greater than the preset timing duration, disconnect the connection with the gateway resource service and the client.

6. A video source management system, characterized in that, It includes: The gateway resource service deployed on the industrial control computer, the video stream service deployed on the cloud server, the client, and multiple video source acquisition devices, where The gateway resource service is used to obtain the device information corresponding to the video source acquisition device. The device information is the device-related information provided by the manufacturer corresponding to the video source acquisition device, including: username, password, IP address, and port number; assemble the pull stream address corresponding to the video source acquisition device based on the device information; the assembling the pull stream address corresponding to the video source acquisition device based on the device information includes: extracting the username, password, IP address, and port number of the video source acquisition device from the device information; assembling the pull stream address corresponding to the video source acquisition device based on the username, password, IP address, and port number; wherein, the pull stream address is implemented based on the Real-Time Streaming Protocol (RTSP), and the ports of each manufacturer of the video source acquisition device are different and the assembly formats are also different, and assemble the pull stream address with the corresponding assembly format according to the username, password, IP address, and port number corresponding to different video source acquisition devices; when receiving the video call request of the video source acquisition device sent by the client, push the video source collected by the video source acquisition device to the video stream service according to the pull stream address based on the video call request, including: determining the target address of the video stream service based on the video call request; obtaining the video call method in the video call request; using the interface corresponding to the video call method to push the video source collected by the video source acquisition device to the target address of the video stream service according to the pull stream address; The video stream service is used to receive the video source pushed by the gateway resource service, store the video source, so that the client can extract the video source for playback.

7. A video source management device, characterized in that, Including: A memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to execute the method according to any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions, and the computer instructions are used to cause the computer to execute the method according to any one of claims 1-5.

Citation Information

Patent Citations

  • Video acquisition method, device, terminal equipment and server

    CN111641805A