Disclosure of Invention
The invention mainly aims to provide a video data decoding method, a video data decoding system and a storage medium, and aims to reduce a plurality of video transcoding workload and improve video conversion efficiency.
To achieve the above object, the present invention provides a video data decoding method, comprising the steps of:
the camera monitoring service acquires video data sent by at least one camera and sends the video data to a video transcoding service control platform;
the video transcoding service control platform calls a Docker Rest Api to execute transcoding container deployment operation according to the video data, so that each data stream corresponds to a direct broadcast address;
And the video transcoding service control platform stores a deployment record corresponding to the deployment operation.
Optionally, the step of the camera monitoring service obtaining video data sent by at least one camera and sending the video data to the video transcoding service control platform includes:
the camera monitoring service obtains code stream address information of the video data;
And if the code stream address information is not null, transmitting the video data to a video transcoding service control platform.
Optionally, after the step of obtaining the stream address information of the video data by the camera monitoring service, the video data decoding method further includes:
and if the code stream address information is empty, acquiring the video data sent by the cameras again.
Optionally, the video data decoding method further includes:
Receiving a video viewing instruction by the video live broadcast platform docking service;
the video live broadcast platform docking service obtains a corresponding live broadcast address according to the video viewing instruction;
And the video live broadcast platform docking service acquires corresponding video data from the video transcoding service control platform according to the live broadcast address.
Optionally, the video viewing instruction includes a data stream name, and the step of the video live platform docking service obtaining the corresponding live address according to the video viewing instruction includes:
The video live broadcast platform docking service obtains a corresponding data stream name according to the video viewing instruction;
And the video live broadcast platform docking service obtains a corresponding live broadcast address according to the data stream name.
Optionally, the video viewing instruction further includes a camera name, and the step of obtaining, by the video live broadcast platform docking service, corresponding video data according to the live broadcast address includes:
And the video live broadcast platform docking service acquires corresponding video data according to the live broadcast address and the camera name.
Optionally, the step of obtaining, by the video live platform docking service, a corresponding live address according to the data stream name further includes:
The video live broadcast platform docking service acquires a video transcoding service address from a service registration center according to the data stream name;
And the video live broadcast platform docking service acquires a corresponding live broadcast address according to the video transcoding service address.
Optionally, the video data decoding method further includes:
receiving a live address modification instruction;
and replacing the live address corresponding to the corresponding data stream according to the live address modification instruction.
In addition, in order to achieve the aim, the invention also provides a video data decoding system, which comprises a camera monitoring service, the video transcoding service control platform and a computer program, wherein the computer program realizes the steps of the video data decoding method when being executed by the camera monitoring service and the video transcoding service control platform.
In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a video data decoding program which, when executed by a processor, implements the steps of the video data decoding method as described above.
The video data decoding method, the video data decoding system and the storage medium provided by the embodiment of the invention are characterized in that a camera monitoring service acquires video data sent by at least one camera and sends the video data to a video transcoding service control platform, the video transcoding service control platform calls a dock Api to execute transcoding container deployment operation according to the video data so that each data stream corresponds to a direct broadcast address, and the video transcoding service control platform stores deployment records corresponding to the deployment operation. The video transcoding control platform is provided with the Docker service, and after videos of different protocols are received, the video data can be transcoded correspondingly by selecting the corresponding Docker mirror image, so that manual selection is not needed, the workload is reduced, the transcoding efficiency is improved, each video is managed by setting one live address for each data stream, other terminals can watch according to the live addresses, and later management is facilitated.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic system architecture diagram of a hardware running environment according to an embodiment of the present invention.
The video data decoding program provided by the embodiment of the invention can be applied to terminals with data processing functions such as intelligent televisions, intelligent mobile phones, tablet computers and computers.
As shown in fig. 1, the terminal may include a processor 1001, such as a CPU, memory 1005, and a communication bus 1002. Wherein the communication bus 1002 is used to enable connected 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 optionally be a storage device separate from the processor 1001 described above.
Optionally, the terminal may also include a camera, RF (Radio Frequency) circuitry, sensors, audio circuitry, wi-Fi modules, and the like. Among other sensors, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal moves to the ear. The gravity acceleration sensor can detect the acceleration in all directions (generally three axes), can detect the gravity and the direction when the mobile terminal is stationary, can be used for identifying the gesture of the mobile terminal (such as transverse and vertical screen switching, related games, magnetometer gesture calibration), vibration identification related functions (such as pedometer and knocking), and the like, and of course, the mobile terminal can be further provided with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor and the like, and the description thereof is omitted herein.
It will be appreciated by those skilled in the art that the terminal structure shown in fig. 1 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system and a video data decoding program may be included in a memory 1005, which is one type of computer storage medium.
According to the above hardware structure, various embodiments of the method of the present invention are presented.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a video data decoding method according to the present invention, where the video data decoding method includes:
Step S100, a camera monitoring service acquires video data sent by at least one camera and sends the video data to a video transcoding service control platform;
Step S110, the video transcoding service control platform calls a Docker Rest Api to execute transcoding container deployment operation according to the video data so that each data stream corresponds to a direct broadcast address;
step S120, the video transcoding service control platform stores a deployment record corresponding to the deployment operation.
The video processing system comprises a camera monitoring service and a video transcoding service control platform, wherein the camera monitoring service can be operated in a camera monitoring server, and the camera monitoring service can be indirectly connected with a plurality of cameras or directly connected with the cameras through a camera equipment management platform and is used for acquiring camera data of the cameras through the camera equipment management platform or directly acquiring camera data of the cameras from the cameras. Because the cameras generally have a plurality of data, and each camera may adopt different communication protocols, that is, different communication protocols are adopted to transmit video data to the camera monitoring service.
Firstly, installing a docker service on a transcoding server in a video transcoding service control platform, and making a plurality of docker images, wherein each docker image can correspondingly realize transcoding of video data of one communication protocol (streaming media protocol), when a camera for transmitting the video data by adopting different communication protocols (streaming media protocols) is added, only the corresponding new docker image is needed, and the docker service can select the corresponding docker image to realize transcoding.
In the implementation process, after monitoring the shooting data of the camera, the camera monitoring service sends the video data to the video transcoding service control platform, and the video transcoding service control platform calls the Docker Rest Api according to the video data to execute transcoding container deployment operation, that is, the Docker Rest Api calls the corresponding Docker service to transcode the video data, so that the subsequent video is conveniently checked, and preferably the video data is transcoded into streaming media data which can be transmitted in an http format. In this embodiment, the live addresses are managed according to each data stream, that is, one data stream can only have one live address, and each live address can correspond to a data stream recorded by a camera in a unit time, where the unit time can be 1 hour, 1 day, and the like, and the live addresses are set according to the actual implementation. After transcoding the video data, a corresponding deployment log (i.e., deployment record) is saved.
The video data decoding method, the video data decoding device and the storage medium provided by the embodiment of the invention are characterized in that a camera monitoring service acquires video data sent by at least one camera and sends the video data to a video transcoding service control platform, the video transcoding service control platform calls a dock Api to execute transcoding container deployment operation according to the video data so that each data stream corresponds to a direct broadcast address, and the video transcoding service control platform stores deployment records corresponding to the deployment operation. The video transcoding control platform is provided with the Docker service, after videos of different protocols are received, the video data can be transcoded correspondingly by selecting the corresponding Docker mirror image, each data stream is used for managing each video by setting a live address, other terminals can watch according to the live addresses conveniently, and later management is facilitated.
Further, for convenience of use, and based on a live address corresponding to a data stream, the video processing method further includes:
receiving a live address modification instruction;
and replacing the live address corresponding to the corresponding data stream according to the live address modification instruction.
A technician or a user can modify the live address through the live address, and the corresponding operation is performed through the data equipment to produce a corresponding live address modification instruction, and the video transcoding service control platform can replace the new live address in the instruction by the old live address in the original data stream according to the modification instruction.
Further, in order to save the same resources, based on the above embodiment, the step of the camera monitoring service obtaining the video data sent by at least one camera and sending the video data to the video transcoding service control platform includes:
the camera monitoring service obtains code stream address information of the video data;
And if the code stream address information is not null, transmitting the video data to a video transcoding service control platform.
In this embodiment, after video data is acquired by the camera monitoring service, the video data is processed first, the code stream address information of the video data is acquired, the code stream address information indicates whether the camera is turned on, if the code stream address information is not null, it is indicated that the camera is turned on, there is video data to be 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 null, it is indicated that the camera is not turned on, no video data is transmitted, and at this time, no transmission is initiated. The sample embodiment can control the on-line and off-line of the transcoding service, and save the hardware resources of the server.
Further, based on the above embodiment, in this embodiment, the video data decoding method further includes:
Receiving a video viewing instruction by the video live broadcast platform docking service;
the video live broadcast platform docking service obtains a corresponding live broadcast address according to the video viewing instruction;
And the video live broadcast platform docking service acquires corresponding video data from the video transcoding service control platform according to the live broadcast address.
Further, in order to facilitate the user to view the shooting content of the camera, in this embodiment, a video live broadcast platform is used to view the external disclosure interface, and the video live broadcast platform is a live broadcast video streaming technology in real time.
The user can send a video viewing request to a video transcoding service control platform by using a video live broadcast platform service through a mobile terminal or a PC (personal computer) terminal, the video live broadcast platform service obtains a corresponding live broadcast address according to the video viewing request, and then obtains 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 a data stream name and a camera name:
when the video viewing instruction includes a data stream name, 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 a corresponding data stream name according to the video viewing instruction;
And the video live broadcast platform docking service obtains a corresponding live broadcast address according to the data stream name.
When the video viewing instruction includes a camera name, the step of obtaining corresponding video data by the video live broadcast platform docking service according to the live broadcast address includes:
And the video live broadcast platform docking service acquires corresponding video data according to the live broadcast address and the camera name.
When video data corresponding to the live broadcast address corresponds to video data of a plurality of cameras, the video viewing instruction comprises a data stream name and a camera name, and at the moment, 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 in the address corresponding to the camera name and the data stream name.
Further, in order to improve security, in this embodiment, a service registry is further provided, where the service registry performs security authentication on the newly added device, and before other devices need to communicate with the video transcoding service control platform, a communication address of the video transcoding service control platform is obtained from the service registry, so that normal communication is performed with the video transcoding service control platform based on the communication address, and a situation that other devices directly attack the video transcoding service control platform is avoided.
Specifically, the step of obtaining, by the video live broadcast platform docking service, a corresponding live broadcast address according to the data stream name further includes:
The video live broadcast platform docking service acquires a video transcoding service address from a service registration center according to the data stream name;
And the video live broadcast platform docking service acquires a corresponding live broadcast address according to the video transcoding service address.
Similarly, before the camera monitoring service is to communicate with the video transcoding service control platform, the video transcoding service address is found from the service registry, and then the video data is sent according to the video transcoding service address.
In addition, the embodiment of the invention also provides a video data decoding system, which comprises a camera monitoring service, the video transcoding service control platform and a computer program, wherein the computer program realizes the steps of the video data decoding method according to any one of the embodiments when being executed by the camera monitoring service and the video transcoding service control platform.
The steps of the video data decoding system of the present invention are substantially the same as those of the video data decoding method described above, and will not be described in detail herein.
In addition, an embodiment of the present invention further provides a computer readable storage medium, where a video data decoding program is stored, where the video data decoding program, when executed by a processor, implements the steps of the video data decoding method according to any one of the embodiments above.
The steps of the video data decoding method of the present invention are substantially the same as those of the video data decoding method described above, and will not be described in detail herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.