Video data decoding method, system and storage medium
Automatically deploying transcoding containers and Docker images through the video transcoding service control platform, solving the problem of large-scale video transcoding workload caused by different protocols of the monitoring device, and achieving efficient video transcoding and live address management, making it convenient for video playback on the web.
Patent Information
- Application Number
- CN202111133951.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-27
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2041-09-27
AI Technical Summary
The existing monitoring equipment uses different streaming protocols to cause video transcoding to be large and inefficient, and the rtsp video stream cannot be played directly on the web page, so the transcoding scheme needs to be manually selected.
The video transcoding service control platform calls the Docker Rest Api to deploy the transcoding container, automatically sets the live broadcast address for each data stream, and uses Docker images to transcoding to reduce manual intervention and improve transcoding efficiency.
It realizes automated video transcoding, reduces workload, improves transcoding efficiency, facilitates direct playback of videos on the web page, and provides convenient live address management for post-management.
Smart Images

Figure CN113873279B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of video processing technology, and in particular to a video data decoding method, system and storage medium. Background Art
[0002] At present, most monitoring equipment, including surveillance cameras, body cameras, etc., use rtmp or rtsp streaming media protocols to transmit video streams. rtsp video streams cannot be played directly on web pages. Since Adobe has given up support for flash, major browsers cannot directly play rtmp video streams. Therefore, if you want to watch surveillance videos directly on the web page, you need to convert the relevant video streams into video streams based on the http protocol.
[0003] Different monitoring devices from different manufacturers use different streaming protocols. Some use rtmp protocol, some use rtsp protocol. Even in the same enterprise, there are multiple monitoring devices using different streaming protocols. Different transcoding solutions need to be implemented for different monitoring devices. Manual selection of the corresponding transcoding solution is labor-intensive and inefficient. Summary of the invention
[0004] The main purpose of the present invention is to provide a video data decoding method, system and storage medium, aiming to reduce the workload of multiple video transcoding and improve video conversion efficiency.
[0005] To achieve the above object, the present invention provides a video data decoding method, which comprises the following steps:
[0006] The camera monitoring service obtains video data sent by at least one camera and sends it to the video transcoding service control platform;
[0007] The video transcoding service control platform calls the Docker Rest Api according to the video data to perform a transcoding container deployment operation so that each data stream corresponds to a live broadcast address;
[0008] The video transcoding service control platform saves the deployment record corresponding to the deployment operation.
[0009] Optionally, the step of the camera monitoring service acquiring video data sent by at least one camera and sending the video data to the video transcoding service control platform includes:
[0010] The camera monitoring service obtains the code stream address information of the video data;
[0011] If the code stream address information is not empty, the video data is sent to the video transcoding service control platform.
[0012] Optionally, after the step of the camera monitoring service acquiring the code stream address information of the video data, the video data decoding method further includes:
[0013] If the code stream address information is empty, the video data sent by multiple cameras are re-acquired.
[0014] Optionally, the video data decoding method further includes:
[0015] The video live broadcast platform docking service receives the video viewing instruction;
[0016] The video live broadcast platform docking service obtains the corresponding live broadcast address according to the video viewing instruction;
[0017] The video live broadcast platform docking service obtains corresponding video data from the video transcoding service control platform according to the live broadcast address.
[0018] Optionally, the video viewing instruction includes a data stream name, and the step of the video live broadcast platform docking service acquiring a corresponding live broadcast address according to the video viewing instruction includes:
[0019] The video live broadcast platform docking service obtains the corresponding data stream name according to the video viewing instruction;
[0020] The video live broadcast platform docking service obtains the corresponding live broadcast address according to the data stream name.
[0021] Optionally, the video viewing instruction further includes a camera name, and the step of the video live broadcast platform docking service acquiring corresponding video data according to the live broadcast address includes:
[0022] The video live broadcast platform docking service obtains corresponding video data according to the live broadcast address and the camera name.
[0023] Optionally, the step of the video live broadcast platform docking service obtaining a corresponding live broadcast address according to the data stream name further includes:
[0024] The video live broadcast platform docking service obtains the video transcoding service address from the service registration center according to the data stream name;
[0025] The video live broadcast platform docking service obtains the corresponding live broadcast address according to the video transcoding service address.
[0026] Optionally, the video data decoding method further includes:
[0027] Receive live broadcast address modification instructions;
[0028] The live broadcast address corresponding to the corresponding data stream is replaced according to the live broadcast address modification instruction.
[0029] In addition, to achieve the above-mentioned purpose, the present invention also provides a video data decoding system, which includes: a camera monitoring service, the video transcoding service control platform and a computer program. When the computer program is executed by the camera monitoring service and the video transcoding service control platform, the steps of the video data decoding method described above are implemented.
[0030] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a video data decoding program is stored, and when the video data decoding program is executed by a processor, the steps of the video data decoding method described above are implemented.
[0031] A video data decoding method, system and storage medium proposed in an embodiment of the present invention, wherein a camera monitoring service obtains video data sent by at least one camera and sends it to a video transcoding service control platform; the video transcoding service control platform calls the Docker Rest Api to perform a transcoding container deployment operation according to the video data, so that each data stream corresponds to a live broadcast address; the video transcoding service control platform saves the deployment record corresponding to the deployment operation. The present invention sends the obtained video data to the video transcoding control platform, which sets up a Docker service. After receiving videos of different protocols, the corresponding docker image can be selected to perform corresponding transcoding on the video data, thereby eliminating the need for manual selection, reducing the workload and improving transcoding efficiency; and each video is managed by setting a live broadcast address for each data stream, so that other terminals can watch according to the live broadcast address, which is convenient for later management. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a schematic diagram of the system structure of the hardware operating environment involved in the embodiment of the present invention;
[0033] Figure 2 FIG. 4 is a flow chart of a first embodiment of a video data decoding method according to the present invention.
[0034] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0035] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0036] like Figure 1 As shown, Figure 1 It is a schematic diagram of the system structure of the hardware operating environment involved in the embodiment of the present invention.
[0037] The video data decoding program of the embodiment of the present invention can be applied to terminals with data processing functions such as smart TVs, smart phones, tablet computers, and computers.
[0038] like Figure 1 As shown, the terminal may include: a processor 1001, such as a CPU, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to realize the connection and communication between these components. The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0039] Optionally, the terminal may also include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a Wi-Fi module, and the like. Among them, sensors include light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen according to the brightness of the ambient light, and the proximity sensor may turn off the display screen and / or backlight when the mobile terminal is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; of course, the mobile terminal may also be configured with other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which will not be repeated here.
[0040] Those skilled in the art will understand that Figure 1 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0041] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system and a video data decoding program.
[0042] Based on the above hardware structure, various embodiments of the method of the present invention are proposed.
[0043] Reference Figure 2 , Figure 2 1 is a flow chart of a first embodiment of a video data decoding method according to the present invention. The video data decoding method comprises:
[0044] Step S100, the camera monitoring service obtains video data sent by at least one camera and sends it to the video transcoding service control platform;
[0045] Step S110, the video transcoding service control platform calls the Docker Rest Api according to the video data to perform a transcoding container deployment operation so that each data stream corresponds to a live broadcast address;
[0046] Step S120: the video transcoding service control platform saves a deployment record corresponding to the deployment operation.
[0047] This embodiment is applied to a video processing system, which may include: a camera monitoring service, a video transcoding service control platform, the camera monitoring service may run in a camera monitoring server, the camera monitoring service may be indirectly connected to multiple cameras through a camera device management platform or directly connected to multiple cameras, and is used to obtain the camera data of the camera through the camera device management platform, or directly obtain the camera data of the camera from the camera. Since there are generally multiple camera data, and each camera may use different communication protocols, that is, different communication protocols are used to transmit video data to the camera monitoring service.
[0048] First, install the docker service on the transcoding server in the video transcoding service control platform. You can create multiple docker images, and each docker image can be used to transcode video data of a communication protocol (streaming protocol). When adding cameras that use different communication protocols (streaming protocols) to transmit video data, you only need to use a new docker image, and the docker service can select the corresponding docker image to achieve transcoding.
[0049] During the implementation process, after the camera monitoring service monitors the camera's video data, it sends the video data to the video transcoding service control platform. The video transcoding service control platform calls the DockerRest Api according to the video data to perform the transcoding container deployment operation, that is, calls the corresponding docker service through the Docker Rest Api to transcode the video data. In order to facilitate the subsequent viewing of the video, the video data is preferably transcoded into streaming media data that can be transmitted in http format. In addition, in this embodiment, the live broadcast address is managed in the form of each data stream, that is, a data stream can only have one live broadcast address, and each live broadcast address can correspond to a data stream per unit time recorded by a camera, where the unit time can be 1 hour, 1 day, etc., which is set according to the actual situation. After the video data is transcoded, the corresponding deployment log (i.e., deployment record) is saved.
[0050] The embodiment of the present invention proposes a method, device and storage medium for decoding video data. The camera monitoring service obtains video data sent by at least one camera and sends it to a video transcoding service control platform. The video transcoding service control platform calls the Docker Rest Api to perform a transcoding container deployment operation according to the video data, so that each data stream corresponds to a live broadcast address. The video transcoding service control platform saves the deployment record corresponding to the deployment operation. The present invention sends the obtained video data to the video transcoding control platform. The video transcoding control platform sets up a Docker service. After receiving videos of different protocols, the corresponding docker image can be selected to perform corresponding transcoding on the video data. A live broadcast address is set for each data stream to manage each video, so that other terminals can watch according to the live broadcast address, which is convenient for later management.
[0051] Furthermore, for ease of use, and based on the fact that one data stream corresponds to one live broadcast address, the video processing method further includes:
[0052] Receive live broadcast address modification instructions;
[0053] The live broadcast address corresponding to the corresponding data stream is replaced according to the live broadcast address modification instruction.
[0054] Technicians or users can modify the live broadcast address by performing corresponding operations through data equipment to generate corresponding live broadcast address modification instructions. The video transcoding service control platform can replace the old live broadcast address in the original data stream with the new live broadcast address in the instruction according to the modification instruction.
[0055] Furthermore, in order to save the same resources, based on the above embodiment, the step of the camera monitoring service acquiring the video data sent by at least one camera and sending it to the video transcoding service control platform includes:
[0056] The camera monitoring service obtains the code stream address information of the video data;
[0057] If the code stream address information is not empty, the video data is sent to the video transcoding service control platform.
[0058] In this embodiment, after the camera monitoring service obtains the video data, it first processes the video data and obtains the code stream address information of the video data. The code stream address information indicates whether the camera is turned on. If the code stream address information is not empty, it means that the camera is turned on and video data is being transmitted. At this time, the camera monitoring service sends the video data to the video transcoding service control platform. If the code stream address information is empty, it means that the camera is not turned on and no video data is being transmitted. At this time, no transmission is initiated. In this way, this embodiment can control the online and offline of the transcoding service and save server hardware resources.
[0059] Further, based on the above embodiment, in this embodiment, the video data decoding method further includes:
[0060] The video live broadcast platform docking service receives the video viewing instruction;
[0061] The video live broadcast platform docking service obtains the corresponding live broadcast address according to the video viewing instruction;
[0062] The video live broadcast platform docking service obtains corresponding video data from the video transcoding service control platform according to the live broadcast address.
[0063] Furthermore, in order to facilitate users to view the content captured by the camera, the present embodiment adopts a video live broadcast platform to open an interface for viewing. The video live broadcast platform is a real-time live video streaming technology. The video live broadcast platform service can run in a separate server or in a video transcoding service control platform.
[0064] The user can use the video live broadcast platform service to send a video viewing request to the video transcoding service control platform through a mobile terminal or PC. The video live broadcast platform service obtains the corresponding live broadcast address according to the video viewing request, and then obtains the corresponding video data from the video transcoding service control platform according to the live broadcast address. Specifically, the video viewing instruction includes at least one of the data stream name and the camera name:
[0065] When the video viewing instruction includes a data stream name, the step of the video live broadcast platform docking service acquiring the corresponding live broadcast address according to the video viewing instruction includes:
[0066] The video live broadcast platform docking service obtains the corresponding data stream name according to the video viewing instruction;
[0067] The video live broadcast platform docking service obtains the corresponding live broadcast address according to the data stream name.
[0068] When the video viewing instruction includes a camera name, the step of the video live broadcast platform docking service acquiring corresponding video data according to the live broadcast address includes:
[0069] The video live broadcast platform docking service obtains corresponding video data according to the live broadcast address and the camera name.
[0070] When the video data corresponding to the live broadcast address corresponds to video data of multiple cameras, the video viewing instruction includes a data stream name and a camera name. At this time, the video live broadcast platform docking service obtains the corresponding data stream name according to the video viewing instruction, and obtains the corresponding video data at the address corresponding to the camera name and the data stream name.
[0071] Furthermore, in order to improve security, a service registration center is also provided in this embodiment. The service registration center performs security authentication on newly added devices, and before other devices communicate with the video transcoding service control platform, they first obtain the communication address of the video transcoding service control platform from the service registration center, so as to communicate normally with the video transcoding service control platform based on the communication address, thereby avoiding other devices directly attacking the video transcoding service control platform.
[0072] Specifically, the step of obtaining the corresponding live broadcast address according to the data stream name by the video live broadcast platform docking service also includes:
[0073] The video live broadcast platform docking service obtains the video transcoding service address from the service registration center according to the data stream name;
[0074] The video live broadcast platform docking service obtains the corresponding live broadcast address according to the video transcoding service address.
[0075] Similarly, before the camera monitoring service communicates with the video transcoding service control platform, it first finds the video transcoding service address from the service registration center, and then sends the video data according to the video transcoding service address.
[0076] In addition, an embodiment of the present invention also provides a video data decoding system, which includes: a camera monitoring service, the video transcoding service control platform and a computer program. When the computer program is executed by the camera monitoring service and the video transcoding service control platform, the steps of the video data decoding method described in any of the above embodiments are implemented.
[0077] The steps of the video data decoding system of the present invention are basically the same as those of the above-mentioned video data decoding method, and will not be described in detail here.
[0078] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a video data decoding program is stored. When the video data decoding program is executed by a processor, the steps of the video data decoding method described in any of the above embodiments are implemented.
[0079] The steps of the video data decoding method of the present invention are basically the same as those of the above-mentioned video data decoding method, and will not be described in detail here.
[0080] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0081] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0082] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0083] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A video data decoding method, characterized in that: The video data decoding method comprises the following steps: The camera monitoring service obtains video data sent by at least one camera and sends it to the video transcoding service control platform. The transcoding server in the video transcoding service control platform installs the docker service and creates multiple docker images. Each docker image corresponds to the transcoding of video data of a communication protocol. The video transcoding service control platform calls the Docker Rest Api according to the video data to perform a transcoding container deployment operation so that each data stream corresponds to a live broadcast address; The video transcoding service control platform saves the deployment record corresponding to the deployment operation; The video transcoding control platform sets up a Docker service. After receiving videos of different protocols, it selects the corresponding Docker image to transcode the video data accordingly. Transcode the video data into streaming media data transmitted in HTTP format. Manage the live broadcast address in the form of each data stream. A data stream can only have one live broadcast address. Each live broadcast address corresponds to a data stream recorded by a camera per unit time, where the unit time is 1 hour or 1 day. Set it according to the actual situation. After transcoding the video data, save the corresponding deployment log. A service registration center is set up, which performs security authentication on newly added devices, and before other devices communicate with the video transcoding service control platform, they first obtain the communication address of the video transcoding service control platform from the service registration center, so as to communicate normally with the video transcoding service control platform based on the communication address; The steps of the camera monitoring service acquiring video data sent by at least one camera and sending the video data to the video transcoding service control platform include: The camera monitoring service obtains the code stream address information of the video data; If the code stream address information is not empty, sending the video data to the video transcoding service control platform; After the step of the camera monitoring service acquiring the code stream address information of the video data, the video data decoding method further includes: If the code stream address information is empty, re-acquire the video data sent by multiple cameras; The video data decoding method further includes: The video live broadcast platform docking service receives the video viewing instruction; The video live broadcast platform docking service obtains the corresponding live broadcast address according to the video viewing instruction; The video live broadcast platform docking service obtains corresponding video data from the video transcoding service control platform according to the live broadcast address; The video viewing instruction includes a data stream name, and the step of the video live broadcast platform docking service acquiring a corresponding live broadcast address according to the video viewing instruction includes: The video live broadcast platform docking service obtains the corresponding data stream name according to the video viewing instruction; The video live broadcast platform docking service obtains the corresponding live broadcast address according to the data stream name; The video viewing instruction also includes a camera name, and the step of the video live platform docking service obtaining corresponding video data according to the live broadcast address includes: The video live broadcast platform docking service obtains corresponding video data according to the live broadcast address and the camera name; The step of obtaining the corresponding live broadcast address according to the data stream name by the video live broadcast platform docking service also includes: The video live broadcast platform docking service obtains the video transcoding service address from the service registration center according to the data stream name; The video live broadcast platform docking service obtains the corresponding live broadcast address according to the video transcoding service address; Before the camera monitoring service communicates with the video transcoding service control platform, it first finds the video transcoding service address from the service registration center, and then sends the video data according to the video transcoding service address.
2. The video data decoding method according to claim 1, characterized in that: The video data decoding method further includes: Receive live broadcast address modification instructions; The live broadcast address corresponding to the corresponding data stream is replaced according to the live broadcast address modification instruction.
3. A video data decoding system, characterized in that: The video data decoding system comprises: a camera monitoring service, the video transcoding service control platform and a computer program. When the computer program is executed by the camera monitoring service and the video transcoding service control platform, the steps of the video data decoding method as described in any one of claims 1 to 2 are implemented.
4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a video data decoding program, and when the video data decoding program is executed by a processor, the steps of the video data decoding method according to any one of claims 1 to 2 are implemented.
Citation Information
Patent Citations
Distributed storage system deployed on the basis of container technology and storage method thereof
CN107797767A
A document transcoding method based on Docker images
CN109002504A
WebRTC media gateway based on Docker container technology and an interworking method thereof
CN109257344A
Web-based video monitoring method and device, storage medium, server and system
CN110446010A
Video transcoding scheduling method and system based on containerized deployment
CN111506390A
