CN113691815A - Video data processing method, device and computer readable storage medium - Google Patents

Video data processing method, device and computer readable storage medium Download PDF

Info

Publication number
CN113691815A
CN113691815A CN202110871834.XA CN202110871834A CN113691815A CN 113691815 A CN113691815 A CN 113691815A CN 202110871834 A CN202110871834 A CN 202110871834A CN 113691815 A CN113691815 A CN 113691815A
Authority
CN
China
Prior art keywords
processing device
video data
slave
data
master
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110871834.XA
Other languages
Chinese (zh)
Other versions
CN113691815B (en
Inventor
戴宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202110871834.XA priority Critical patent/CN113691815B/en
Publication of CN113691815A publication Critical patent/CN113691815A/en
Application granted granted Critical
Publication of CN113691815B publication Critical patent/CN113691815B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/423Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
    • H04N19/426Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements using memory downsizing methods
    • H04N19/428Recompression, e.g. by spatial or temporal decimation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression

Abstract

The application discloses a video data processing method, a device and a computer readable storage medium, wherein the method comprises the following steps: the first master processing device determines at least one first slave processing device; receiving first coded data obtained by coding first target video data by a first slave processing device, wherein the first target video data is obtained by compressing original video data of at least one camera connected with the first slave processing device; and decoding the first coded data to obtain first target video data. By means of the mode, the processing method and the processing device can utilize the decoding pressure of the slave processing device to share the main processing device, and on the premise that the decoding capacity of the main processing device is not changed, the main processing device can process the video data of more cameras, so that the processing requirements of a user on more camera pictures can be met.

Description

Video data processing method, device and computer readable storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a video data processing method, device, and computer-readable storage medium.
Background
Generally, a complete set of monitoring system is composed of a front-end camera and a rear-end network video recorder, the camera converts captured optical signals into digital signals for image display through a video coding technology and transmits acquired video data to the network video recorder, and the network video recorder decodes and restores the video data for real-time video watching and playback.
The applicant of the application finds that the decoding capability of one network video recorder has an upper limit in the long-term research and development process, and only video data which does not exceed the upper limit of the decoding capability can be decoded at the same time, so that the number of picture channels which can be displayed at the same time is limited by the decoding capability, namely, one picture channel upper limit exists, a user cannot check the pictures which exceed the upper limit number through a single device, and the requirement of the user on checking the pictures corresponding to a plurality of cameras at the same time cannot be met.
Disclosure of Invention
The technical problem mainly solved by the present application is to provide a video data processing method, device and computer readable storage medium, which can realize processing of video data of more cameras on the premise of not changing the decoding capability of the processing device.
In order to solve the technical problem, the application adopts a technical scheme that: there is provided a video data processing method, the method comprising: the first master processing device determines at least one first slave processing device; receiving first coded data obtained by coding first target video data by a first slave processing device, wherein the first target video data is obtained by compressing original video data of at least one camera connected with the first slave processing device; and decoding the first coded data to obtain first target video data.
Wherein the first main processing device is capable of supporting video data processing of multiple picture channels; before receiving first encoded data obtained by encoding first target video data by a first slave processing device, the method further comprises: transmitting setting information of video data to the first slave processing apparatus; the setting information of the video data comprises size representation information of a picture channel corresponding to at least one camera, and the target video data is obtained by compressing original video data based on the size representation information; and/or the setting information of the video data comprises position information of a picture channel corresponding to at least one camera, and the first coded data is obtained by coding first target video data corresponding to at least one camera according to the position information of the picture channel.
Wherein, before receiving first encoded data obtained by encoding first target video data by a first slave processing device, the method further comprises: receiving information of a number of cameras associated with a first slave processing device; at least one camera is selected from the plurality of cameras to add to a currently idle picture channel of the plurality of picture channels.
The first main processing equipment is second slave processing equipment of the second main processing equipment; after decoding the first encoded data to obtain the first target video data, the method further comprises: compressing first target video data corresponding to at least one first slave processing device to obtain second target video data; coding the second target video data to obtain second coded data; the second encoded data is transmitted to a second main processing device.
Wherein determining at least one first slave processing device comprises: selecting at least one processing device from a plurality of processing devices located in the same local area network as the first master processing device as a first slave processing device; sending master-slave notification information to the first slave processing device, wherein the master-slave notification information is used for notifying the first slave processing device as a slave processing device of the first master processing device; and/or after decoding the first encoded data to obtain the first target video data, the method further comprises: the first target video data is displayed and/or saved.
The first master processing device and the first slave processing device are network video recorders; and/or, the method further comprises: in the process of decoding the first coded data, in response to a viewing instruction of a user to a camera, stopping decoding the first coded data, receiving third coded data of the camera, and decoding the third coded data to obtain original video data of the camera.
In order to solve the above technical problem, another technical solution adopted by the present application is: there is provided a video data processing method, the method further comprising: the first slave processing equipment compresses video data to be compressed of at least one camera associated with the first slave processing equipment to obtain first target video data; coding the first target video data to obtain first coded data; the first encoded data is transmitted to a first master processing device of a first slave processing device.
Wherein the first main processing device is capable of supporting video data processing of multiple picture channels; before compressing video data to be compressed of at least one camera associated with the first slave processing device, resulting in first target video data, the method further comprises: receiving size representation information of a picture channel corresponding to at least one camera, which is sent by first main processing equipment; compressing video data to be compressed of at least one camera associated with a first slave processing device to obtain first target video data, comprising: and compressing the video data to be compressed based on the size representation information to obtain first target video data.
Wherein the first main processing device is capable of supporting video data processing of multiple picture channels; before encoding the first target video data to obtain the first encoded data, the method further includes: receiving position information of a picture channel corresponding to at least one camera, which is sent by first main processing equipment; encoding first target video data to obtain first encoded data, including: and coding first target video data corresponding to at least one camera according to the position information of the picture channel to obtain first coded data.
The video data to be compressed is original video data of at least one camera connected with the first slave processing equipment; or the video data to be compressed is second target video data obtained by decoding second coded data by a second slave processing device, wherein the second target video data is obtained by compressing original video data of at least one camera connected with the second slave processing device by the second slave processing device, and the first slave processing device is used as a second master processing device of the second slave processing device.
Before compressing video data to be compressed of at least one camera associated with the first slave processing device to obtain first target video data, the method further comprises: receiving master-slave notification information sent by a first master processing device, wherein the master-slave notification information is used for notifying the first slave processing device as a slave processing device of the first master processing device; in response to the master-slave notification information, marking itself as a first slave processing device to the first master processing device.
The first master processing device and the first slave processing device are network video recorders; and/or, the method further comprises: and displaying and/or storing the video data to be compressed.
In order to solve the above technical problem, another technical solution adopted by the present application is: there is provided a video data processing apparatus comprising a processor and a memory, the memory being arranged to store program data, the processor being arranged to execute the program data to implement any of the above methods in which the execution subject is a first master processing apparatus and/or in which the execution subject is a first slave processing apparatus.
In order to solve the above technical problem, another technical solution adopted by the present application is: there is provided a computer readable storage medium for storing program data, the program data being executable to implement any of the above methods for executing a subject as a first master processing device and/or executing a subject as a first slave processing device.
In the scheme, the first main processing device is connected with at least one slave processing device, the at least one slave processing device decodes and restores the coded data sent by the camera to obtain original video data, and the original video data is compressed and re-encoded, in the mode, the slave processing device compresses and re-encodes the video data of the camera and sends the compressed and encoded data to the main processing device for decoding, compared with the mode that the main processing device directly decodes the coded data sent by all the cameras, the slave processing device compresses the video data of the camera to reduce the decoding data amount of the video data of the camera by the main processing device, so the decoding pressure of the main processing device is shared, and the processing of the video data of more cameras by the main processing device can be realized under the condition that the decoding capacity of the main processing device is not changed, therefore, the processing requirement of the user on more camera pictures at the same time can be met.
Drawings
FIG. 1 is a schematic flow chart diagram illustrating an embodiment of a video data processing method according to the present application;
FIG. 2 is a schematic flow chart diagram illustrating another embodiment of a video data processing method according to the present application;
FIG. 3 is a schematic diagram of a video data processing process of the video data processing method in an application scenario;
FIG. 4 is a schematic flow chart diagram illustrating a video data processing method according to still another embodiment of the present application;
FIG. 5 is a schematic flow chart diagram illustrating a video data processing method according to another embodiment of the present application;
FIG. 6 is a schematic flow chart diagram illustrating a video data processing method according to another embodiment of the present application;
FIG. 7 is a schematic flow chart diagram illustrating a video data processing method according to another embodiment of the present application;
FIG. 8 is a block diagram of an embodiment of a video data processing apparatus according to the present application;
FIG. 9 is a block diagram of an embodiment of a computer-readable storage medium of the present application.
Detailed Description
In order to make the purpose, technical solution and effect of the present application clearer and clearer, the present application is further described in detail below with reference to the accompanying drawings and examples.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship. Further, the term "plurality" herein means two or more than two.
It is understood that the methods of the present application can include any of the method embodiments described below as well as any non-conflicting combinations of the method embodiments described below.
It can be understood that, in the embodiment of the present application, the Video data processing method is executed by a Video data processing device, which may also be referred to as a processing device for short, specifically, the Video data processing device may be any device that decodes Video data captured by a far-end camera, and may be, but is not limited to, a Network Video Recorder (NVR).
Within a local area network, there may be several processing devices and several cameras, and a processing device may be connected to some or all of the several cameras through a password. The Camera in the embodiment of the present application may be, but not limited to, a web Camera (Internet Protocol Camera, IPC), and may also be referred to as a Camera or a video Camera for short. The camera can capture an optical signal, convert the optical signal into a digital signal which can be used for image display to serve as original video data, encode the original video data by adopting an encoding technology to obtain encoded data, and transmit the encoded data to the processing equipment. The processing device can acquire the encoded data of the camera connected with the processing device, and decode and restore the encoded data to obtain the original video data, thereby realizing some related post-processing of the original video data, for example, providing the user with the purposes of watching or playing back the video data in real time. The decoding capability of a video data processing device, i.e. the amount of data decoded simultaneously, is constant, so the number of picture channels that can be displayed by the video data processing device is limited by the decoding capability of the processing device, and there is an upper limit.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a video data processing method according to an embodiment of the present application. The video data processing method comprises the following steps:
step S110: the first master processing device determines at least one first slave processing device.
The first master processing device and the first slave processing device may be video data processing devices, the first master processing device is connected with a plurality of processing devices, the first master processing device determines at least one of the plurality of connected processing devices as a first slave processing device, and the first slave processing device is connected with at least one camera, so that the first master processing device can obtain video data collected by the camera connected with the first slave processing device.
Step S120: the first main processing device receives first coded data obtained by coding the first target video data by the first slave processing device.
It can be understood that the first slave processing device is connected with at least one camera, and the first slave processing device can receive the third coded data sent by the at least one camera connected with the first slave processing device and decode and restore the third coded data, so that the first slave processing device can obtain the original video data. After obtaining the original video data, the first slave processing device may compress the original video data to obtain first target video data, encode the first target video data to obtain first encoded data, and transmit the first encoded data to the first master processing device.
Step S130: the first main processing device decodes the first coded data to obtain first target video data.
In some embodiments, the first master processing device may connect to a plurality of slave processing devices to obtain target video data for each slave processing device separately, thereby obtaining video data for the first master processing device through the slave processing device associated camera.
In some embodiments, the first master processing device may be connected to at least one camera in addition to the plurality of slave processing devices, and the first master processing device may directly receive encoded data of the at least one camera, decode and restore the encoded data to obtain original video data of the camera. Therefore, the at least one original video data and the plurality of target video data obtained by the first main processing device are the video data of all the cameras (including the camera associated with the slave processing device and the camera connected with the slave processing device) associated with the first main processing device.
In this embodiment, the first master processing device is connected to the at least one slave processing device, and the at least one slave processing device decodes and restores encoded data sent by the camera to obtain original video data, and compresses and re-encodes the original video data. Compared with the conventional method that the first main processing device directly decodes the coded data sent by all the cameras, in the above manner, the slave processing device compresses and re-encodes the video data of the cameras and sends the compressed and encoded data to the main processing device, and compared with the method that the main processing device directly decodes the coded data sent by all the cameras, the slave processing device compresses the video data of the cameras to reduce the decoding data amount of the video data of the cameras by the main processing device, so that the decoding pressure of the main processing device is shared, therefore, under the condition of not changing the decoding capacity of the main processing device, the main processing device can process the video data of more cameras, thereby meeting the processing requirement of users on more camera pictures at the same time, in some embodiments, the processing device is a network video recorder, the mode can realize the picture channel expansion of the network video recorder. Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a video data processing method according to another embodiment of the present application.
In this embodiment, the first main processing device is capable of supporting video data processing of multiple picture channels, that is, capable of displaying pictures captured by multiple cameras, and the video data processing method includes:
step S211: the first main processing device selects at least one processing device from a plurality of processing devices located in the same local area network as the first main processing device as a first slave processing device.
It is understood that, within a local area network, there may be a plurality of processing devices and a plurality of cameras, and a processing device may turn on the channel expansion mode according to a user selection or setting, so that the processing device acts as a first main processing device to execute a step of the video data processing method whose main body is the first main processing device.
In some embodiments, the first slave processing device selected by the first master processing device may be user preset depending on viewing needs of the camera captured view.
After the first slave processing device is selected, the first master processing device connects the first slave processing device with the first slave processing device, and then data interaction can be carried out between the first master processing device and the first slave processing device. In particular, the first master processing device may add a first slave processing device.
Step S212: the first master processing device sends master-slave notification information to the first slave processing device, wherein the master-slave notification information is used for notifying the first slave processing device as a slave processing device of the first master processing device.
In some embodiments, the master-slave notification information may include master-slave identities, that is, a master identity and a slave identity, and the first slave processing device may identify the first master processing device connected thereto according to the master-slave identity, and the first master processing device may identify the first slave processing device connected thereto according to the slave identity. Specifically, after receiving the master-slave notification information, the first slave processing device may start the slave mode by using the slave identification flag itself as a slave, and may determine its corresponding master by using the master identification and set master information, so that the first slave processing device serves as a slave processing device of the first master processing device.
It is understood that step S110 may be implemented by step S211 and step S212.
Step S220: the first master processing device receives information of a number of cameras associated with the first slave processing device, and selects at least one camera from the number of cameras to add to a currently idle picture channel of the plurality of picture channels.
It is to be understood that the first slave processing device may have associated therewith several cameras, wherein the several cameras may all be directly connected with the first slave processing device, or may all be connected with a slave processing device of the first slave processing device, or may be partly connected with the first slave processing device and partly connected with a slave processing device of the first slave processing device. The information of the plurality of cameras may include IP addresses of the cameras, and the like.
The first master processing device first needs to select a camera needing to view pictures from the cameras associated with the first slave processing device, so as to display the pictures captured by the camera on a currently idle picture channel of the first master processing device, and after determining the camera needing to view the pictures, step S230 is executed.
It is understood that the order of step S220 and step S212 may be reversed.
Step S230: the first master processing device transmits setting information of the video data to the first slave processing device.
It is to be understood that the first master processing apparatus may confirm setting information of video data for use as a processing basis of the first slave processing apparatus for the original video data in response to a user operation.
In some embodiments, the setting information of the video data includes size characterizing information of a picture channel corresponding to at least one camera, i.e., size characterizing information for determining a picture corresponding to each camera. Specifically, the first master processing apparatus sets a division mode for determining the number of picture channels of the first master processing apparatus in response to a user operation, for example, a four-picture division mode, a nine-picture division mode, or the like, so that the size of the picture channel can be determined using the resolution of the total display picture of the first master processing apparatus and the division mode determined by the user, so that the above-mentioned information for determining the size (such as the division mode) or the determined size can be transmitted to the first slave processing apparatus as the size representation information of the picture channel and as the setting information of the video data. The size representation information of the picture channel can be used as a basis for the first slave processing device to compress the original video data to obtain the first target video data.
For example, the resolution of the total display picture of the first main processing device is 1920 × 1080, and the size characterizing information of each picture in the corresponding four-picture splitting mode is 960 × 540.
In some embodiments, the setting information of the video data includes position information of a picture channel corresponding to the camera. The first main processing device is associated with a plurality of cameras, the cameras and the picture channels are in one-to-one correspondence, and the first auxiliary processing device can determine the picture channel corresponding to the picture of each camera associated with the first auxiliary processing device through the position information of the picture channels. Therefore, the position information of the picture channel can be used as a basis for the first slave processing equipment to encode the first target video data to obtain the first encoded data, so that the video picture obtained by the first master processing equipment is a picture which is obtained by zooming the picture captured by the camera and is positioned in the preset picture channel.
Specifically, for example, in the four-picture splitting mode, there are four picture channels, the first main processing device is connected to a camera, and the position information of the picture channel may be that the picture channel corresponding to the camera is a picture channel located at the upper right corner.
In some embodiments, after the first slave processing device processes the original video data according to the setting information of the video data, the first slave processing device may further save the original video data by recording the original video picture.
Step S240: the first main processing device receives first coded data obtained by coding the first target video data by the first slave processing device.
Step S250: the first main processing device decodes the first coded data to obtain first target video data.
For the detailed description of step S240 and step S250, reference may be made to the related description of step S120 and step S130, which is not described herein again.
Step S260: the first main processing device displays and/or saves the first target video data.
The first main processing device may display the first target video data on a display, or record the first target video data to store the first target video data. The video data of the camera associated with the main processing equipment are respectively stored in the slave processing equipment and the main processing equipment, the reliability and the safety of video data storage are improved by a distributed storage mode, and even if the data of some slave processing equipment is lost, the compressed video data can be searched in the main processing equipment.
It is to be understood that step S260 is an optional step, and not performing step S260 does not affect the processing of the video data.
Referring to fig. 2 and fig. 3 in combination, fig. 3 is a schematic view of a video data processing process of the video data processing method in an application scenario.
Fig. 3 shows a device in a local area network, which includes a processing device and a camera, where the camera is a camera, the processing device is a network video recorder, and specifically, the first master processing device is a master video recorder, and the first slave processing device is a slave video recorder.
The local area network comprises a master video recorder and two slave video recorders, wherein the two slave video recorders are respectively connected with three cameras. The two slave video recorders respectively acquire four original video data which are sent by three cameras connected with the two slave video recorders, respectively compress the four corresponding original video data according to the size representation information to respectively obtain target video data, and respectively encode the target video data according to the position information of the picture channel to respectively obtain encoded data.
And the main video recorder receives the coded data respectively sent by the two slave video recorders, decodes the coded data to respectively obtain target video data corresponding to the two slave video recorders, namely the video data corresponding to all the video cameras associated with the main video recorder, and the video data of each video camera corresponds to the picture channels one by one.
In this embodiment, the first master processing device is connected to the at least one slave processing device, and the at least one slave processing device decodes and restores encoded data sent by the camera to obtain original video data, and compresses and re-encodes the original video data. Compared with the traditional mode that the first main processing device directly decodes the coded data sent by all the cameras, in the mode, the slave processing device compresses and re-encodes the video data of the cameras according to the requirements of the main processing device and sends the compressed and encoded data to the main processing device to decode the compressed and encoded data, compared with the mode that the main processing device directly decodes the coded data sent by all the cameras, the slave processing device compresses the video data of the cameras to reduce the decoding data amount of the video data of the cameras by the main processing device, so that the decoding pressure of the main processing device is shared, the main processing device can process the video data of more cameras under the condition that the decoding capacity of the main processing device is not changed, and the processing requirement of a user for more camera pictures at the same time can be met. Referring to fig. 4, fig. 4 is a schematic flowchart illustrating a video data processing method according to still another embodiment of the present application.
It is understood that any device may be a master processing device or a slave processing device, and the foregoing embodiments include a first master processing device and a first slave processing device, where the first master processing device serves as a master processing device and the first slave processing device serves as a slave processing device.
In addition to the foregoing embodiments, the first main processing device may also be a slave processing device, and a second main processing device, which is the main processing device, may be correspondingly connected to the first main processing device, and the second main processing device may also be connected to a slave processing device other than the first main processing device. Specifically, the video data processing method may further include:
step S410: the first main processing device compresses first target video data corresponding to at least one first slave processing device to obtain second target video data.
Specifically, the first main processing device may also receive the master-slave notification information and the setting information of the video data sent by the second main processing device, where the setting information of the video data includes size representation information of a picture channel and position information of the picture channel, and compress the first target video data according to the size representation information of the picture channel to obtain the second target video data.
Step S420: and the first main processing equipment encodes the second target video data to obtain second encoded data.
Specifically, the first main processing device encodes the second target video data according to the position information of the picture channel to obtain second encoded data.
Step S430: the first main processing device transmits the second encoded data to the second main processing device.
Further, the second main processing device may be connected to a third main processing device as a slave processing device, and the third main processing device may be connected to a slave processing device other than the second main processing device. One master processing device and several slave processing devices connected thereto may be referred to as a master-slave processing device hierarchy, and the slave processing devices may compress and encode video data according to setting information of the video data transmitted by the master processing device, and transmit the processed video data to the master processing device, so that the master processing device may obtain video data of several cameras associated with the slave processing devices. The number of hierarchies of the master and slave processing apparatuses is not limited, but as the number of hierarchies of the master and slave processing apparatuses increases, a screen delay is gradually generated in the screen display of the master processing apparatus.
Through the mode, the main processing equipment can further process the video data of more cameras, in some embodiments, the processing equipment is the network video recorder, the mode can further improve the expansion quantity of the image channels, and the quantity of images displayed by the network video recorder at the same time can be further improved.
It will be appreciated that the master-slave relationship of the processing devices can be changed by software settings, allowing flexible use of the devices in a local area network. And the idle processing device can be used as a first main processing device, the idle device is used for processing the video data, and idle computing resources are fully utilized, such as pictures captured by cameras associated with other processing devices. In addition, in some cases, some old devices or low-end devices with poor performance exist in a local area network, and the old devices or the low-end devices can be directly optimized in a scheduling strategy in a software upgrading mode and utilized, so that the hardware cost is saved.
Referring to fig. 5, fig. 5 is a schematic flowchart illustrating a video data processing method according to another embodiment of the present application. The video data processing method may further include:
step S510: the first slave processing device compresses video data to be compressed of at least one camera associated with the first slave processing device to obtain first target video data.
The first slave processing device is connected with the first main processing device and serves as a slave processing device of the first main processing device. The video data to be compressed may include a plurality of video data, and the video data to be compressed is all the original video data of the camera connected to the first slave processing device.
In some embodiments, the first slave processing device is connected with a plurality of second slave processing devices, the plurality of second slave processing devices being slave processing devices of the first slave processing device, the plurality of second slave processing devices being respectively connected with at least one camera. The video data to be compressed may also be all the video data transmitted from the processing device to which the first slave processing device is connected, or a part of the video data is the original video data of the camera to which the first slave processing device is connected, and another part of the video data is the video data transmitted from the processing device to which the first slave processing device is connected.
Specifically, taking the example that all the video data to be compressed are transmitted from the processing device connected to the first slave processing device, a second slave processing device may acquire original video data of at least one camera connected to the second slave processing device, compress the original video data to obtain second target video data, encode the second target video data to obtain second encoded data, and transmit the second encoded data to the first slave processing device. The first slave processing device may obtain a plurality of second encoded data sent by a plurality of second slave processing devices, and decode the second encoded data to obtain a plurality of second target video data as video data to be compressed.
In some embodiments, a plurality of cameras may be associated with a first slave processing device, the first slave processing device compresses video data to be compressed of each associated camera to obtain first target video data, and after obtaining the first target video data, the first slave processing device activates an encoding module for encoding the first target video data.
Step S520: the first slave processing device encodes the first target video data to obtain first encoded data.
Step S530: the first slave processing device transmits the first encoded data to a first master processing device of the first slave processing device.
For the specific description of step S510 and step S520, reference may be made to the above-mentioned related description about the processing procedure of the video data by the first slave processing device, and details are not repeated here.
In the above embodiment, the first master processing device is connected to at least one slave processing device, and the at least one slave processing device decodes and restores the encoded data sent by the cameras to obtain the original video data, compresses and re-encodes the original video data, in comparison with the conventional method in which the first master processing device directly decodes the encoded data sent by all the cameras, in the above manner, the slave processing device compresses and re-encodes the video data of the cameras according to the requirements of the master processing device and sends the compressed and encoded data to the master processing device to decode the compressed and encoded data, and the slave processing device compresses the video data of the cameras compared with the method in which the master processing device directly decodes the encoded data sent by all the cameras, so as to reduce the amount of the decoded data of the video data of the cameras by the master processing device, and share the decoding pressure of the master processing device, therefore, under the condition of not changing the decoding capability of the main processing equipment, the main processing equipment can process the video data of more cameras, and the processing requirements of users on more camera pictures at the same time can be met. Referring to fig. 6, fig. 6 is a schematic flowchart illustrating a video data processing method according to another embodiment of the present application. The video data processing method may further include:
step S610: the first slave processing device receives master-slave notification information sent by the first master processing device, and marks the first slave processing device as the first slave processing device of the first master processing device in response to the master-slave notification information.
The master-slave notification information is used for notifying the first slave processing device as a slave processing device of the first master processing device. For the description of the master-slave notification information, reference may be made to the detailed description in the foregoing embodiments, which is not described herein again.
Step S620: the first slave processing equipment receives the size representation information of the picture channel corresponding to the at least one camera and the position information of the picture channel corresponding to the at least one camera, which are sent by the first master processing equipment.
The size characterizing information of the picture channel may be information for determining the picture size (e.g. the segmentation mode) or the determined picture size, among others.
In some embodiments, the first slave processing device may determine the picture size in dependence on the received split mode and the resolution of the total displayed picture of the first master processing device. Step S630: and the first slave processing equipment compresses the video data to be compressed based on the size representation information to obtain first target video data.
After the picture size is determined, the first slave processing equipment compresses the video data to be compressed until the picture size is consistent with the determined picture size, and then the first target video data is obtained.
Step S640: the first slave processing device encodes first target video data corresponding to at least one camera according to the position information of the picture channel to obtain first encoded data, and the first encoded data is sent to a first master processing device of the first slave processing device.
The first slave processing device may specifically encode the first target video data corresponding to at least one camera according to the position information of the picture channel, and may specifically include arranging pictures corresponding to each first target video data according to the position information of the picture channel, and encoding the first target video data. After obtaining the first encoded data, the first slave processing device may associate the slave identifier with the first encoded data to transmit, so that the first master processing device may determine the source of the first encoded data according to the slave identifier.
It is understood that step S510 may be implemented by step S630, and step S520 may be implemented by step S640.
Please refer to fig. 3, which illustrates the video data processing process. The two slave video recorders determine picture sizes according to size representation information, respectively compress four groups of video data to be compressed associated with the slave video recorders to the extent that the picture sizes are consistent with the determined picture sizes, respectively obtain target video data, then respectively encode the target video data according to received picture channel position information to obtain encoded data, so that the four groups of pictures associated with the slave video recorders are located in picture channels preset by first main processing equipment, the master video recorder can obtain target video data of eight pictures corresponding to three cameras connected with the slave video recorders after decoding the encoded data of the two slave video recorders, and the target video data correspond to the picture channels determined by the main processing equipment one to one.
Step S650: the first slave processing device displays and/or saves the video data to be compressed.
It is understood that step S650 is an optional step, and not performing step S650 does not affect the processing of the video data.
In the above embodiment, the first master processing device is connected to the at least one slave processing device, and the at least one slave processing device decodes and restores the encoded data sent by the cameras to obtain the original video data, compresses and re-encodes the original video data, in comparison with the conventional method in which the first master processing device directly decodes the encoded data sent by all the cameras, in the above manner, the slave processing device compresses and re-encodes the video data of the cameras and sends the compressed encoded data to the master processing device for decoding, and in comparison with the method in which the master processing device directly decodes the encoded data sent by all the cameras, the slave processing device compresses the video data of the cameras to reduce the amount of the decoded data of the video data of the cameras by the master processing device, so the decoding pressure of the master processing device is shared, and therefore, without changing the decoding capability of the master processing device, the processing of the video data of more cameras by the main processing equipment can be realized, so that the processing requirements of users on more camera pictures at the same time can be met. Referring to fig. 7, fig. 7 is a flowchart illustrating a video data processing method according to another embodiment of the present application. In the same local area network, any processing device may be connected to the camera to directly obtain the original video data of the camera, and in this embodiment, the first main processing device is connected to the camera as an example. The first main processing device can add any camera in the same local area network with the first main processing device to process the video data of the camera. On the basis of the foregoing embodiment, the video data processing method may further include:
step S710: the first main processing device stops decoding the first encoded data in response to a user's instruction to view a camera.
It is understood that the first main processing device first needs to add the camera to connect with the camera before receiving the third encoded data of the camera, and then performs step S720 to obtain the original video data.
Step S720: and the first main processing equipment receives the third coded data of the camera and decodes the third coded data to obtain the original video data of the camera.
After the original video data is obtained, the first main processing device can display the original video data on a display to meet the requirement of a user for viewing the picture captured by a specific camera, and can record the original video data so as to store the original video data.
In the above embodiment, the main processing device may suspend processing of data sent by the slave processing device, directly process video data of the camera connected thereto, and then directly display a picture captured by any camera, so as to meet a requirement of a user on the processing device for processing the video data of the camera connected at will, and improve flexibility of use of the processing device.
Referring to fig. 8, fig. 8 is a block diagram of a video data processing apparatus according to an embodiment of the present application.
In the present embodiment, the video data processing apparatus 80 includes a processor 81 and a memory 82, and the memory 82 is connected to the processor 81. The video data processing device 80 may be any device with processing capabilities, such as a computer, a tablet computer, a cell phone, a network video recorder, and the like.
The memory 82 is used for storing the acquired information, program data executed by the processor 81, and data during processing by the processor 81. Such as target video data, encoded data, etc. The memory 82 includes a nonvolatile storage portion for storing the program data.
The processor 81 controls the operation of the video data Processing apparatus 80, and the processor 81 may also be referred to as a CPU (Central Processing Unit). The processor 81 may be an integrated circuit chip having signal processing capabilities. Processor 81 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. In addition, the processor 81 may be commonly implemented by a plurality of circuit-forming chips.
The processor 81 executes instructions to carry out the steps of any of the above-described method embodiments by calling program data stored in the memory 82.
In some embodiments, the video data processing apparatus 80 further includes a human-computer interaction circuit 83, and the memory 82 and the human-computer interaction circuit 83 are respectively coupled to the processor 81, and specifically, the respective components of the video data processing apparatus 80 may be coupled together through a bus, or the processor 81 of the video data processing apparatus 80 is respectively connected to other components one by one.
The man-machine interaction circuit 83 is used for receiving user operation instructions.
In the above embodiment, the first master processing device is connected to the at least one slave processing device, and the at least one slave processing device decodes and restores the encoded data sent by the cameras to obtain the original video data, compresses and re-encodes the original video data, in comparison with the conventional method in which the first master processing device directly decodes the encoded data sent by all the cameras, in the above manner, the slave processing device compresses and re-encodes the video data of the cameras and sends the compressed encoded data to the master processing device for decoding, and in comparison with the method in which the master processing device directly decodes the encoded data sent by all the cameras, the slave processing device compresses the video data of the cameras to reduce the amount of the decoded data of the video data of the cameras by the master processing device, so the decoding pressure of the master processing device is shared, and therefore, without changing the decoding capability of the master processing device, the processing of the video data of more cameras by the main processing equipment can be realized, so that the processing requirements of users on more camera pictures at the same time can be met. Referring to fig. 9, fig. 9 is a block diagram illustrating an embodiment of a computer-readable storage medium according to the present application.
In this embodiment, the computer readable storage medium 90 stores processor executable program data 91, and the program data 91 can be executed to implement any of the methods described above.
The computer-readable storage medium 90 may be a medium that can store program data, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, or may be a server that stores the program data, and the server may send the stored program data to another device for operation, or may self-operate the stored program data 91.
In some implementations, the computer-readable storage medium 90 may also be a memory as shown in FIG. 8.
In the above embodiment, the first master processing device is connected to the at least one slave processing device, and the at least one slave processing device decodes and restores the encoded data sent by the cameras to obtain the original video data, compresses and re-encodes the original video data, in comparison with the conventional method in which the first master processing device directly decodes the encoded data sent by all the cameras, in the above manner, the slave processing device compresses and re-encodes the video data of the cameras and sends the compressed encoded data to the master processing device for decoding, and in comparison with the method in which the master processing device directly decodes the encoded data sent by all the cameras, the slave processing device compresses the video data of the cameras to reduce the amount of the decoded data of the video data of the cameras by the master processing device, so the decoding pressure of the master processing device is shared, and therefore, without changing the decoding capability of the master processing device, the processing of the video data of more cameras by the main processing equipment can be realized, so that the processing requirements of users on more camera pictures at the same time can be met. The above description is only an example of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are intended to be included within the scope of the present application.

Claims (14)

1. A method of video data processing, the method comprising:
the first master processing device determines at least one first slave processing device;
receiving first coded data obtained by coding first target video data by the first slave processing equipment, wherein the first target video data is obtained by compressing original video data of at least one camera connected with the first slave processing equipment;
and decoding the first coded data to obtain the first target video data.
2. The method of claim 1, wherein the first host processing device is capable of supporting video data processing for a multi-picture channel; prior to the receiving first encoded data resulting from the first slave processing device encoding first target video data, the method further comprises:
transmitting setting information of video data to the first slave processing apparatus;
the setting information of the video data comprises size representation information of a picture channel corresponding to the at least one camera, and the target video data is obtained by compressing the original video data based on the size representation information; and/or the setting information of the video data comprises position information of a picture channel corresponding to the at least one camera, and the first encoded data is obtained by encoding the first target video data corresponding to the at least one camera according to the position information of the picture channel.
3. The method of claim 2, wherein prior to said receiving first encoded data resulting from said first slave processing device encoding first target video data, said method further comprises:
receiving information of a number of cameras associated with the first slave processing device;
selecting the at least one camera from the plurality of cameras for addition to a currently idle picture channel of the multiple picture channels.
4. The method of claim 1, wherein the first master processing device is a second slave processing device to a second master processing device; after the decoding the first encoded data to obtain the first target video data, the method further includes:
compressing first target video data corresponding to the at least one first slave processing device to obtain second target video data;
encoding the second target video data to obtain second encoded data;
and sending the second coded data to the second main processing equipment.
5. The method of claim 1, wherein determining at least one first slave processing device comprises:
selecting at least one processing device from a plurality of processing devices located in the same local area network as the first master processing device as the first slave processing device;
sending master-slave notification information to the first slave processing device, wherein the master-slave notification information is used for notifying the first slave processing device as a slave processing device of the first master processing device;
and/or after the decoding of the first encoded data to obtain the first target video data, the method further includes:
and displaying and/or storing the first target video data.
6. The method of claim 1, wherein the first master processing device and the first slave processing device are network video recorders;
and/or, the method further comprises:
and in the process of decoding the first coded data, in response to a viewing instruction of a user to the camera, stopping decoding the first coded data, receiving third coded data of the camera, and decoding the third coded data to obtain original video data of the camera.
7. A method of video data processing, the method further comprising:
the method comprises the steps that a first slave processing device compresses video data to be compressed of at least one camera associated with the first slave processing device to obtain first target video data;
encoding the first target video data to obtain first encoded data;
transmitting the first encoded data to the first master processing device of the first slave processing device.
8. The method of claim 7, wherein the first host processing device is capable of supporting video data processing for a multi-picture channel; before the compressing the video data to be compressed of the at least one camera associated with the first slave processing device to obtain the first target video data, the method further includes:
receiving size representation information of a picture channel corresponding to the at least one camera, which is sent by the first main processing device;
compressing video data to be compressed of at least one camera associated with the first slave processing device to obtain first target video data, including:
and compressing the video data to be compressed based on the size representation information to obtain first target video data.
9. The method of claim 7, wherein the first host processing device is capable of supporting video data processing for a multi-picture channel; before the encoding the first target video data to obtain first encoded data, the method further includes:
receiving the position information of the picture channel corresponding to the at least one camera, which is sent by the first main processing device;
the encoding the first target video data to obtain first encoded data includes:
and coding the first target video data corresponding to the at least one camera according to the position information of the picture channel to obtain first coded data.
10. The method according to claim 7, characterized in that the video data to be compressed are raw video data of the at least one camera connected to the first slave processing device;
or the video data to be compressed is second target video data obtained by decoding second encoded data by a second slave processing device, where the second target video data is obtained by compressing original video data of the at least one camera connected to the second slave processing device by the second slave processing device, and the first slave processing device is used as a second master processing device of the second slave processing device.
11. The method of claim 7, wherein prior to said compressing the video data to be compressed of the at least one camera associated with the first slave processing device to obtain the first target video data, the method further comprises:
receiving master-slave notification information sent by the first master processing device, wherein the master-slave notification information is used for notifying the first slave processing device as a slave processing device of the first master processing device;
in response to the master-slave notification information, marking itself as the first slave processing device to the first master processing device.
12. The method of claim 7, wherein the first master processing device and the first slave processing device are network video recorders;
and/or, the method further comprises:
and displaying and/or storing the video data to be compressed.
13. Video data processing device, characterized in that the video data processing device comprises a processor and a memory for storing program data, the processor being adapted to execute the program data for implementing the method of any of claims 1-6, and/or the method of any of claims 7-12.
14. A computer-readable storage medium for storing program data, the program data executable for implementing the method of any one of claims 1-12.
CN202110871834.XA 2021-07-30 2021-07-30 Video data processing method, device and computer readable storage medium Active CN113691815B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110871834.XA CN113691815B (en) 2021-07-30 2021-07-30 Video data processing method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110871834.XA CN113691815B (en) 2021-07-30 2021-07-30 Video data processing method, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113691815A true CN113691815A (en) 2021-11-23
CN113691815B CN113691815B (en) 2023-04-25

Family

ID=78578415

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110871834.XA Active CN113691815B (en) 2021-07-30 2021-07-30 Video data processing method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113691815B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113938632A (en) * 2021-12-08 2022-01-14 深圳小湃科技有限公司 Network video recorder cascade method, video recorder and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040179600A1 (en) * 2003-03-14 2004-09-16 Lsi Logic Corporation Multi-channel video compression system
US20080218593A1 (en) * 2007-03-08 2008-09-11 Genesys Logic, Inc. Multi-streaming web camera controlling system and controlling methodology of the same
CN102172028A (en) * 2009-07-31 2011-08-31 松下电器产业株式会社 Video data processing device and video data processing system
CN102572368A (en) * 2010-12-16 2012-07-11 中兴通讯股份有限公司 Processing method and system of distributed video and multipoint control unit
CN104427228A (en) * 2013-08-22 2015-03-18 展讯通信(上海)有限公司 Collaborative shooting system and shooting method thereof
CN108306965A (en) * 2018-01-31 2018-07-20 上海小蚁科技有限公司 The data processing method and device of camera, storage medium, camera
CN112601096A (en) * 2020-12-02 2021-04-02 深圳力维智联技术有限公司 Video decoding method, device, equipment and readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040179600A1 (en) * 2003-03-14 2004-09-16 Lsi Logic Corporation Multi-channel video compression system
US20080218593A1 (en) * 2007-03-08 2008-09-11 Genesys Logic, Inc. Multi-streaming web camera controlling system and controlling methodology of the same
CN102172028A (en) * 2009-07-31 2011-08-31 松下电器产业株式会社 Video data processing device and video data processing system
CN102572368A (en) * 2010-12-16 2012-07-11 中兴通讯股份有限公司 Processing method and system of distributed video and multipoint control unit
CN104427228A (en) * 2013-08-22 2015-03-18 展讯通信(上海)有限公司 Collaborative shooting system and shooting method thereof
CN108306965A (en) * 2018-01-31 2018-07-20 上海小蚁科技有限公司 The data processing method and device of camera, storage medium, camera
CN112601096A (en) * 2020-12-02 2021-04-02 深圳力维智联技术有限公司 Video decoding method, device, equipment and readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113938632A (en) * 2021-12-08 2022-01-14 深圳小湃科技有限公司 Network video recorder cascade method, video recorder and storage medium
CN113938632B (en) * 2021-12-08 2023-09-22 深圳小湃科技有限公司 Network video recorder cascading method, video recorder and storage medium

Also Published As

Publication number Publication date
CN113691815B (en) 2023-04-25

Similar Documents

Publication Publication Date Title
US20220038724A1 (en) Video stream decoding method and apparatus, terminal device, and storage medium
CN111917988B (en) Remote camera application method, system and medium of cloud mobile phone
US10924783B2 (en) Video coding method, system and server
US20230144483A1 (en) Method for encoding video data, device, and storage medium
CN112714320B (en) Decoding method, decoding device and computer readable storage medium
WO2022257699A1 (en) Image picture display method and apparatus, device, storage medium and program product
CN111614967B (en) Live virtual image broadcasting method and device, electronic equipment and storage medium
CN111866457B (en) Monitoring image processing method, electronic device, storage medium and system
CN111787398A (en) Video compression method, device, equipment and storage device
US9596435B2 (en) Distribution control apparatus, distribution control method, and computer program product
CN113691815B (en) Video data processing method, device and computer readable storage medium
CN111263097A (en) Media data transmission method and related equipment
CN106664432B (en) Multimedia information playing method and system, acquisition equipment and standardized server
CN114095660B (en) Image display method and device, storage medium and electronic equipment
WO2018003685A1 (en) Image compressing method, image reconstructing method, image compressing device, image reconstructing device, image compressing program product, and image reconstructing program product
US11284094B2 (en) Image capturing device, distribution system, distribution method, and recording medium
CN112269886B (en) Shared image acquisition method, window sharing method and shared image acquisition device
CN112422907B (en) Image processing method, device and system
CN113141480A (en) Screen recording method, device, equipment and storage medium
CN113630575B (en) Method, system and storage medium for displaying images of multi-person online video conference
CN112948046A (en) Screen capturing method, device, equipment and storage medium
CN110798700B (en) Video processing method, video processing device, storage medium and electronic equipment
CN111107316B (en) Image display method, device and system
CN112954421A (en) Screen projection method, device, system and equipment
CN112954483B (en) Data transmission method, system and non-volatile storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant