Video data transmission method and device, electronic equipment and storage medium
By processing video stream data through edge computing nodes, the problems of latency and low efficiency in video stream data transmission of the RTSP protocol are solved, achieving low-latency, high-efficiency video stream data transmission and playback experience.
Patent Information
- Application Number
- CN202511716515.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-21
- Publication Date
- 2026-02-17
AI Technical Summary
The existing RTSP protocol suffers from transmission latency and low transmission efficiency in video streaming data transmission, especially in situations with multiple users and high concurrency, which cannot meet users' video playback needs.
The video stream data is encoded and uploaded to the network video recorder through the monitoring channel. The real-time streaming protocol of the network video recorder is determined by the pre-deployed edge computing nodes, and the video stream protocol address is constructed. The edge computing nodes pull, decode and store the video stream data, and respond to the user's video playback request for real-time playback.
It reduces the transmission latency of video stream data, improves transmission efficiency, and enhances the user's viewing experience.
Smart Images

Figure CN121547602A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a video data transmission method, apparatus, electronic device, and storage medium. Background Technology
[0002] Currently, the Real Time Streaming Protocol (RTSP) is widely used in the field of video streaming data transmission due to its advantages of strong real-time performance, flexible control, and high scalability.
[0003] In existing technologies, when transmitting video stream data from the source server to the client using the RTSP protocol, it needs to pass through multiple network nodes, which can easily lead to transmission delays and low transmission efficiency. Furthermore, when multiple users simultaneously request to play video data, the existing transmission scheme has a bandwidth bottleneck and cannot meet the high-concurrency video playback needs of users. Summary of the Invention
[0004] This invention provides a video data transmission method, apparatus, electronic device, and storage medium, which can reduce the transmission latency of video stream data, improve transmission efficiency, and enhance the user's viewing experience of video stream data.
[0005] According to one aspect of the present invention, a video data transmission method is provided, the method comprising:
[0006] The collected video stream data is encoded and uploaded to a network video recorder through at least one monitoring channel, and the network video recorder stores the encoded video stream data.
[0007] By using pre-deployed edge computing nodes, the real-time streaming protocol matched by the network video recorder is determined, and the video stream protocol address corresponding to the network video recorder is constructed based on the streaming protocol.
[0008] The edge computing node retrieves video stream data from the network video recorder according to the video stream protocol address, and decodes and stores the video stream data.
[0009] In response to a user-triggered video playback request, the video stream data stored in the edge computing node is played in real time.
[0010] Optionally, the real-time streaming protocol matched by the network video recorder is determined through pre-deployed edge computing nodes, including:
[0011] The edge computing node polls the Internet Protocol address and port number corresponding to each monitoring channel.
[0012] The polling results identify network video recorders that meet the preset protocol requirements, and the real-time streaming protocol matched by the network video recorder is determined based on the feature information of the network video recorder.
[0013] Optionally, the process of retrieving video stream data from the network video recorder according to the video stream protocol address, and decoding and storing the video stream data includes:
[0014] The video stream data is retrieved from the network video recorder according to the video stream protocol address, and the video stream data is decoded according to the real-time streaming protocol matched by the network video recorder.
[0015] Determine whether the video stream data has been successfully decoded. If so, persist the decoded video stream data locally.
[0016] Optionally, in response to a user-triggered video playback request, the video stream data stored in the edge computing node is played in real time, including:
[0017] The edge computing node initiates a streaming service and, in response to a user-triggered video playback request, performs format conversion on the video stream data stored in the edge computing node.
[0018] The converted video stream data is played in real time through the edge computing node.
[0019] Optionally, after encoding and uploading the acquired video stream data to the network video recorder through at least one monitoring channel, the method further includes:
[0020] A heartbeat detection is performed on the network video recorder, and the operating status of the network video recorder is determined based on the detection results.
[0021] Based on the judgment result, the operating status of the network video recorder is reported to the server.
[0022] Optionally, before encoding and uploading the acquired video stream data to the network video recorder via at least one monitoring channel, the following steps are also included:
[0023] By developing a node deployment system, the attribute information corresponding to the edge computing nodes is configured, and the configured edge computing nodes are deployed within a preset range around the user terminal location.
[0024] According to another aspect of the present invention, a video data transmission apparatus is provided, the apparatus comprising:
[0025] The encoding and uploading module is used to encode and upload the collected video stream data to the network video recorder through at least one monitoring channel, and the network video recorder stores the encoded video stream data.
[0026] The protocol determination module is used to determine the real-time streaming protocol matched by the network video recorder through pre-deployed edge computing nodes, and construct the video stream protocol address corresponding to the network video recorder based on the streaming protocol.
[0027] The decoding and storage module is used to retrieve video stream data from the network video recorder according to the video stream protocol address through the edge computing node, and to decode and store the video stream data.
[0028] The video playback module is used to respond to a user-triggered video playback request and play the video stream data stored in the edge computing node in real time.
[0029] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0030] At least one processor; and
[0031] A memory communicatively connected to the at least one processor; wherein,
[0032] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the video data transmission method according to any embodiment of the present invention.
[0033] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the video data transmission method according to any embodiment of the present invention.
[0034] According to another aspect of the present invention, a computer program product is provided, the computer program product comprising a computer program that, when executed by a processor, implements the video data transmission method described in any embodiment of the present invention.
[0035] The technical solution provided by this invention encodes and uploads collected video stream data to a network video recorder through at least one monitoring channel. The network video recorder stores the encoded video stream data. A pre-deployed edge computing node determines the real-time streaming protocol matched to the network video recorder and constructs a video stream protocol address corresponding to the network video recorder based on the protocol. The edge computing node retrieves video stream data from the network video recorder according to the video stream protocol address, decodes and stores the video stream data, and responds to a user-triggered video playback request by playing the video stream data stored in the edge computing node in real time. This technical approach can reduce the transmission latency of video stream data, improve transmission efficiency, and enhance the user's viewing experience.
[0036] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0037] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0038] Figure 1a This is a flowchart of a video data transmission method provided according to an embodiment of the present invention;
[0039] Figure 1b This is a schematic diagram of a system architecture applicable to a video data transmission method provided by an embodiment of the present invention;
[0040] Figure 2 This is a flowchart of another video data transmission method provided according to an embodiment of the present invention;
[0041] Figure 3 This is a schematic diagram of the structure of a video data transmission device according to an embodiment of the present invention;
[0042] Figure 4 This is a schematic diagram of the structure of an electronic device that implements the video data transmission method of the present invention. Detailed Implementation
[0043] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0044] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0045] Figure 1a This is a flowchart illustrating a video data transmission method provided in an embodiment of the present invention. This embodiment is applicable to the transmission, buffering, and playback of video stream data acquired by a video acquisition device. The method can be executed by a video data transmission device, which can be implemented in hardware and / or software and configured in an electronic device, such as... Figure 1a As shown, the method includes:
[0046] Step 110: Encode and upload the collected video stream data to a network video recorder (NVR) through at least one monitoring channel, and store the encoded video stream data through the network video recorder.
[0047] In this embodiment, specifically, Figure 1b This can be a schematic diagram of the system architecture applicable to the video data transmission method, such as... Figure 1b As shown, the collected video stream data can be encoded and uploaded to the network video recorder through multiple monitoring channels (such as Channel_1, Channel_2, Channel_3, Channel_4, etc.), and then the network video recorder stores the encoded video stream data.
[0048] Step 120: Determine the real-time streaming protocol matched by the network video recorder through pre-deployed edge computing nodes, and construct the video stream protocol address corresponding to the network video recorder based on the streaming protocol.
[0049] In this embodiment, as Figure 1b As shown, an edge computing node can include a device discovery system, an RTSP caching and persistence system, and a real-time streaming media transmission system. The data transfer process between these three systems also includes two processing steps: a device protocol parser and a video codec. In addition, Figure 1b The architecture diagram shown also includes the computing node deployment system.
[0050] The computing node deployment system is used to deploy a series of edge computing nodes at the network edge between the server and the user terminal. These nodes are distributed close to the user to provide low-latency data transmission and real-time streaming media services.
[0051] The device discovery system is used to discover network video recorders that meet the device protocol requirements. Once a network video recorder is discovered, a local device discovery notification is sent.
[0052] The device protocol parser is used to adapt different RTSP protocols according to the different types of network video recorders (such as brand information or product models), and to construct the video stream protocol address corresponding to the network video recorder based on the adapted protocol.
[0053] The video codec is used to encode or decode the main or sub-stream data of a network video recorder according to different protocols adapted to the network video recorder. These protocols include Advanced Video Coding (H.264), High Efficiency Video Coding (H.265), Advanced Audio Coding (AAC), OPUS audio coding, and G.711 audio coding.
[0054] Step 130: Through the edge computing node, retrieve video stream data from the network video recorder according to the video stream protocol address, and decode and store the video stream data.
[0055] In this embodiment, optionally, such as Figure 1b The architecture diagram shown illustrates that the RTSP caching and persistence system in the edge computing node can pull video stream data from the network video recorder according to the video stream protocol address, decode the video stream data with the help of a video codec, and finally perform local persistent storage of the decoded video stream data.
[0056] In one specific embodiment, the RTSP caching and persistence system can use the open-source audio and video processing tool ffmpeg to locally persist the decoded video stream data. The video stream data can be stored in MP4 format on a SATA HDD. The implementation code related to the persistent storage is as follows:
[0057] ffmpeg -i rtsp: / / 10.1.188.64:554 / live / sample -r 1 / 60 -c copy -map 0 -f segment -segment_time 120 -segment_format mp4.
[0058] Step 140: In response to a user-triggered video playback request, play the video stream data stored in the edge computing node in real time.
[0059] In this embodiment, optionally, such as Figure 1b As shown, if a user triggers a video playback request through a terminal or edge computing node, the MP4 format video stream data can be converted into RTSP protocol video stream data through the real-time streaming media transmission system in the edge computing node, and then played in real time. Specifically, the format conversion can be performed using ffmpeg commands; the relevant code is as follows:
[0060] ffmpeg -re -i $input_file -vcodec h264 -acodec aac -f rtsp rtsp: / / 127.0.0.1:$output_port / live.sdp.
[0061] In this embodiment, since the edge computing node has intelligent caching and prefetching functions, by actively caching the video stream data related to user needs using the edge computing node, and playing the video stream data using a real-time streaming media transmission system, a low-latency and high-bandwidth real-time streaming media transmission experience can be provided to users, improving the transmission efficiency of video stream data and reducing transmission latency.
[0062] The technical solution provided by this invention encodes and uploads collected video stream data to a network video recorder through at least one monitoring channel. The network video recorder stores the encoded video stream data. A pre-deployed edge computing node determines the real-time streaming protocol matched to the network video recorder and constructs a video stream protocol address corresponding to the network video recorder based on the protocol. The edge computing node retrieves video stream data from the network video recorder according to the video stream protocol address, decodes and stores the video stream data, and responds to a user-triggered video playback request by playing the video stream data stored in the edge computing node in real time. This technical approach can reduce the transmission latency of video stream data, improve transmission efficiency, and enhance the user's viewing experience.
[0063] Figure 2 A flowchart of another video data transmission method provided in an embodiment of the present invention is shown below. Figure 2 As shown, the method includes:
[0064] Step 210: Deploy the system through the development node, configure the attribute information corresponding to the edge computing node, and deploy the configured edge computing node within a preset range around the user terminal location.
[0065] In this embodiment, the development node deployment system is an automated tool or platform used to efficiently and consistently deploy software applications, services, or components to multiple physical / virtual nodes (servers, containers, etc.) and manage inter-node collaboration and resource scheduling. Specifically, the edge computing nodes can be deployed using the Android 12 system, Kotlin language, and MVVM (Model-View-ViewModel) architecture.
[0066] The attribute information of the edge computing node pair may include developer mode information and network configuration information (such as Transmission Control Protocol / Internet Protocol (TCP / IP), Domain Name System (DNS) server, gateway configuration, etc.). The edge computing node is uniquely identified by its local / system / proc device number, and its configuration information is uniformly managed through a central server.
[0067] In this step, specifically, the development node deployment system can deploy the configured edge computing nodes in locations close to the user terminal.
[0068] Step 220: Encode and upload the collected video stream data to the network video recorder through at least one monitoring channel, and store the encoded video stream data through the network video recorder.
[0069] In this step, optionally, the monitoring channel can use the TCP protocol or the User Datagram Protocol (UDP) to upload the encoded video stream data to the network video recorder.
[0070] In one embodiment of this example, after the collected video stream data is encoded and uploaded to the network video recorder through at least one monitoring channel, the method further includes: performing heartbeat detection on the network video recorder, determining whether the network video recorder is operating normally based on the detection result, and reporting the operating status of the network video recorder to the server based on the determination result.
[0071] In one specific embodiment, heartbeat detection is a "liveness confirmation" mechanism between the network video recorder and the monitoring platform. The network video recorder needs to periodically send heartbeat signals (small data packets) to the platform to prove that it is online. If the platform does not receive a signal within a set time, it determines that the network video recorder has malfunctioned and triggers an alarm or switches to a backup device.
[0072] The advantage of this setup is that it ensures the stability of the network video recorder's data connection and allows for a rapid response to operational failures of the network video recorder.
[0073] Step 230: Poll the Internet Protocol (IP) address and port number corresponding to each monitoring channel through the edge computing node.
[0074] Step 240: Using the edge computing node, identify network video recorders that meet the preset protocol requirements based on the polling results, and determine the real-time streaming protocol matched by the network video recorder based on the feature information of the network video recorder.
[0075] In this embodiment, specifically, such as Figure 1b As shown, the device discovery system in the edge computing node can poll the open status of ports 554 / 555 for IP addresses within the same gateway and network segment, and discover network video recorders that meet the preset protocol requirements by IP address and port number.
[0076] In this step, after the device discovery system identifies a network video recorder that meets the preset protocol requirements, it can determine the real-time streaming protocol matched by the network video recorder based on the network video recorder's characteristic information (such as manufacturer identification, manufacturer protocol information, etc.).
[0077] Step 250: Using the edge computing node, construct the video stream protocol address corresponding to the network video recorder according to the transmission protocol, pull video stream data from the network video recorder according to the video stream protocol address, and decode and store the video stream data.
[0078] In this step, the device discovery system assembles the video stream protocol address according to the transmission protocol, and then the RTSP caching and persistence system pulls the video stream data from the network video recorder according to the video stream protocol address, decodes the video stream data, and performs local persistent storage of the decoded video stream data.
[0079] In one embodiment of this example, retrieving video stream data from a network video recorder according to the video stream protocol address and decoding and storing the video stream data includes: retrieving video stream data from the network video recorder according to the video stream protocol address and decoding the video stream data according to the real-time streaming protocol matched by the network video recorder; determining whether the video stream data has been successfully decoded, and if so, persistently storing the decoded video stream data locally.
[0080] Optionally, if the video stream data decoding fails, a decoding failure error message can be generated, or the video stream data can be re-decoded according to a preset fault tolerance mechanism. This embodiment does not impose any restrictions on this.
[0081] Step 260: Start the streaming service through the edge computing node, and in response to the video playback request triggered by the user, perform format conversion on the video stream data stored in the edge computing node.
[0082] In this embodiment, taking Android as an example, the video stream data retrieval, decoding, and streaming operations can be implemented using ffmpeg commands in conjunction with the libstreaming and libRtmp libraries. The persistent storage of the video stream data can be achieved using MediaRecorder.
[0083] Step 270: Play the converted video stream data in real time through the edge computing node.
[0084] In this embodiment, optionally, the streaming service can be started through the RTSP caching and persistence system. After the user triggers a video playback request, the real-time streaming media transmission system can play the streaming media in real time through the RTSP caching and persistence system. This operation can be implemented through Google Media 3.
[0085] The technical solution provided by this invention configures the attribute information of edge computing nodes through a node deployment system, deploys the configured edge computing nodes within a preset range around the user terminal location, encodes and uploads the collected video stream data to a network video recorder through a monitoring channel, stores the encoded video stream data through the network video recorder, polls the Internet Protocol address and port number of the monitoring channel through the edge computing nodes to identify network video recorders that meet the preset protocol requirements, constructs the video stream protocol address of the network video recorder, pulls video stream data from the network video recorder, decodes and stores the video stream data, and performs format conversion on the video stream data stored in the edge computing nodes in response to the user's video playback request, and plays the converted video stream data in real time. This technical approach enables video stream data to be transmitted to the user terminal more quickly, reduces hops in the transmission link, and lowers transmission latency. Furthermore, the intelligent caching and prefetching technology deployed on the edge computing nodes can cache and prefetch video stream data in advance according to user needs, reducing bandwidth requirements on the cloud server, improving bandwidth utilization, and enhancing the user's viewing experience of the video stream data.
[0086] Figure 3 This is a schematic diagram of a video data transmission device provided in an embodiment of the present invention. The device is applied in an electronic device, such as... Figure 3 As shown, the device includes: an encoding upload module 310, a protocol determination module 320, a decoding storage module 330, and a video playback module 340.
[0087] The encoding and uploading module 310 is used to encode and upload the collected video stream data to the network video recorder through at least one monitoring channel, and the network video recorder stores the encoded video stream data.
[0088] The protocol determination module 320 is used to determine the real-time streaming transmission protocol matched by the network video recorder through pre-deployed edge computing nodes, and construct the video stream protocol address corresponding to the network video recorder based on the transmission protocol.
[0089] The decoding and storage module 330 is used to pull video stream data from the network video recorder according to the video stream protocol address through the edge computing node, and to decode and store the video stream data.
[0090] The video playback module 340 is used to respond to a video playback request triggered by a user and play the video stream data stored in the edge computing node in real time.
[0091] The technical solution provided by this invention encodes and uploads collected video stream data to a network video recorder through at least one monitoring channel. The network video recorder stores the encoded video stream data. A pre-deployed edge computing node determines the real-time streaming protocol matched to the network video recorder and constructs a video stream protocol address corresponding to the network video recorder based on the protocol. The edge computing node retrieves video stream data from the network video recorder according to the video stream protocol address, decodes and stores the video stream data, and responds to a user-triggered video playback request by playing the video stream data stored in the edge computing node in real time. This technical approach can reduce the transmission latency of video stream data, improve transmission efficiency, and enhance the user's viewing experience.
[0092] Based on the above embodiments, the device further includes:
[0093] The node deployment module is used to configure the attribute information of edge computing nodes by developing a node deployment system, and to deploy the configured edge computing nodes within a preset range around the user terminal location.
[0094] The encoding upload module 310 includes:
[0095] The heartbeat detection unit is used to perform heartbeat detection on the network video recorder, determine whether the network video recorder is operating normally based on the detection result, and report the operating status of the network video recorder to the server based on the determination result.
[0096] Protocol determination module 320 includes:
[0097] The channel polling unit is used to poll the Internet Protocol address and port number corresponding to each monitoring channel through the edge computing node, identify network video recorders that meet the preset protocol requirements based on the polling results, and determine the real-time streaming protocol matched by the network video recorder based on the feature information of the network video recorder.
[0098] The decoding storage module 330 includes:
[0099] The video decoding unit is used to retrieve video stream data from the network video recorder according to the video stream protocol address, and to decode the video stream data according to the real-time streaming protocol matched by the network video recorder.
[0100] A persistent storage unit is used to determine whether the video stream data has been successfully decoded. If so, the decoded video stream data is stored locally.
[0101] The video playback module 340 includes:
[0102] The streaming unit is used to start a streaming service through the edge computing node, respond to a video playback request triggered by the user, convert the format of the video stream data stored in the edge computing node, and play the converted video stream data in real time through the edge computing node.
[0103] The above-described apparatus can execute the methods provided in all the foregoing embodiments of the present invention, and has the corresponding functional modules and beneficial effects for executing the above methods. Technical details not described in detail in the embodiments of the present invention can be found in the methods provided in all the foregoing embodiments of the present invention.
[0104] Figure 4 A schematic diagram of an electronic device 10, which can be used to implement embodiments of the present invention, is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0105] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) or a random access memory (RAM), communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded into the RAM 13 from the storage unit 18. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. Input / output (I / O) interfaces are also connected to the bus 14.
[0106] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0107] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processing (DSP) processors, and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as video data transmission methods.
[0108] In some embodiments, the video data transmission method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the video data transmission method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the video data transmission method by any other suitable means (e.g., by means of firmware).
[0109] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-chips (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0110] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0111] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, RAM, ROM, erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0112] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a cathode ray tube (CRT) or a liquid crystal display (LCD)) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0113] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0114] A computing system can include clients and servers. Clients and servers are generally geographically separated and typically interact via communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system. It addresses the shortcomings of traditional physical hosts and Virtual Private Servers (VPS) in terms of management difficulty and weak business scalability.
[0115] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0116] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method of video data transmission, characterized by, The method comprises the steps of: encoding and uploading the collected video stream data to a network video recorder through at least one monitoring channel, and storing the encoded video stream data through the network video recorder; determining a real-time streaming protocol matched by the network video recorder through a pre-deployed edge computing node, and constructing a video stream protocol address corresponding to the network video recorder according to the transmission protocol; pulling the video stream data from the network video recorder according to the video stream protocol address through the edge computing node, and decoding and storing the video stream data; in response to a video playback request triggered by a user, playing the video stream data stored in the edge computing node in real time.
2. The method of claim 1, wherein, The method comprises the steps of: polling the Internet protocol address and port number corresponding to each monitoring channel through the edge computing node; according to the polling result, identifying a network video recorder satisfying a preset protocol requirement, and determining a real-time streaming protocol matched by the network video recorder according to the characteristic information of the network video recorder.
3. The method of claim 1, wherein, The method comprises the steps of: pulling the video stream data from the network video recorder according to the video stream protocol address, and decoding the video stream data according to the real-time streaming protocol matched by the network video recorder; judging whether the video stream data is successfully decoded, and if so, performing local persistent storage on the decoded video stream data.
4. The method of claim 1, wherein, The method comprises the steps of: starting a push service through the edge computing node, and in response to a video playback request triggered by a user, performing format conversion on the video stream data stored in the edge computing node; playing the converted video stream data in real time through the edge computing node.
5. The method of claim 1, wherein, After the collected video stream data is encoded and uploaded to the network video recorder through at least one monitoring channel, the method further comprises the steps of: performing heartbeat detection on the network video recorder, and judging whether the running state of the network video recorder is normal according to the detection result; according to the judgment result, reporting the running state of the network video recorder to a server.
6. The method of claim 1, wherein, Before the collected video stream data is encoded and uploaded to the network video recorder through at least one monitoring channel, the method further comprises the steps of: configuring the attribute information corresponding to the edge computing node through a development node deployment system, and deploying the configured edge computing node within a preset range around the location of the user terminal.
7. A video data transmission apparatus characterized by comprising: The method comprises the steps of: an encoding upload module for encoding and uploading the collected video stream data to a network video recorder through at least one monitoring channel, and storing the encoded video stream data through the network video recorder; a protocol determination module for determining a real-time streaming protocol matched by the network video recorder through a pre-deployed edge computing node, and constructing a video stream protocol address corresponding to the network video recorder according to the transmission protocol; The decoding storage module is configured to pull video stream data from the network video recorder according to the video stream protocol address through the edge computing node, and decode and store the video stream data. The video playing module is configured to play the video stream data stored in the edge computing node in real time in response to a video playing request triggered by a user.
8. An electronic device, comprising: The electronic device comprises: at least one processor; and a memory connected with the at least one processor in communication; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the video data transmission method in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions for enabling the processor to implement the video data transmission method in any one of claims 1-6 when executed.
10. A computer program product, characterised in that, The computer program product comprises a computer program, and the computer program implements the video data transmission method according to any one of claims 1-6 when executed by the processor. The computer program product comprises a computer program, and the computer program implements the video data transmission method according to any one of claims 1-6 when executed by the processor.