CN113691815B - 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
CN113691815B
CN113691815B CN202110871834.XA CN202110871834A CN113691815B CN 113691815 B CN113691815 B CN 113691815B CN 202110871834 A CN202110871834 A CN 202110871834A CN 113691815 B CN113691815 B CN 113691815B
Authority
CN
China
Prior art keywords
video data
processing device
slave
master
camera
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.)
Active
Application number
CN202110871834.XA
Other languages
Chinese (zh)
Other versions
CN113691815A (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

The application discloses a video data processing method, device and computer readable storage medium, the method comprising: the first master processing device determining 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 encoded data to obtain first target video data. By means of the mode, the decoding pressure of the main processing equipment can be split by the auxiliary processing equipment, and the main processing equipment can process video data of more cameras on the premise that the decoding capacity of the main processing equipment is not changed, so that the processing requirements of users on more camera pictures can be met.

Description

Video data processing method, device and computer readable storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a video data processing method, apparatus, and computer readable storage medium.
Background
In general, a complete monitoring system is composed of a front-end camera and a back-end network video recorder, the camera converts a captured optical signal into a digital signal for image display through a video coding technology and transmits the obtained video data to the network video recorder, and the network video recorder decodes and restores the video data for watching and playing back videos in real time.
The applicant of the application finds that the decoding capability of a network video recorder is limited in the long-term research and development process, and can only decode video data which does not exceed the upper limit of the decoding capability of the network video recorder 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 of the network video recorder, namely, the upper limit of the picture channels exists, a user cannot view pictures which exceed the upper limit number through a single device, and the requirement of the user for simultaneously viewing pictures corresponding to more cameras cannot be met.
Disclosure of Invention
The technical problem to be solved mainly by the application is to provide a video data processing method, equipment and a computer readable storage medium, which can realize the processing of video data of more cameras on the premise of not changing the decoding capability of processing equipment.
In order to solve the technical problems, one technical scheme adopted by the application is as follows: there is provided a video data processing method, the method comprising: the first master processing device determining 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 encoded data to obtain first target video data.
The first main processing device can support video data processing of a multi-picture channel; before receiving the first encoded data obtained by encoding the first target video data by the first slave processing device, the method further includes: transmitting setting information of the video data to the first slave processing device; the setting information of the video data comprises size representation information of a picture channel corresponding to at least one video 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 the position information of the picture channel corresponding to the at least one camera, and the first coding data is obtained by coding the first target video data corresponding to the at least one camera according to the position information of the picture channel.
Wherein prior to receiving first encoded data resulting from 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 free one of the multi-view channels.
The first main processing device is a second auxiliary processing device of the second main processing device; 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; encoding the second target video data to obtain second encoded data; the second encoded data is transmitted to a second host processing device.
Wherein determining at least one first slave processing device comprises: selecting at least one processing device from a plurality of processing devices which are positioned in the same local area network with the first main processing device as a first auxiliary 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 to serve 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, responding to a viewing instruction of a camera by a user, 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 technical problems, another technical scheme adopted by the application is as follows: there is provided a video data processing method, the method further comprising: the method comprises the steps that 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; encoding the first target video data to obtain first encoded data; the first encoded data is transmitted to a first master processing device of the first slave processing device.
The first main processing device can support video data processing of a multi-picture channel; before 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 size representation information of a picture channel corresponding to at least one camera 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.
The first main processing device can support video data processing of a multi-picture channel; before encoding the first target video data to obtain first encoded data, the method further comprises: receiving position information of a picture channel corresponding to at least one camera sent by first main processing equipment; encoding the first target video data to obtain first encoded data, including: and encoding the first target video data corresponding to the at least one camera according to the position information of the picture channel to obtain first encoded data.
Wherein the video data to be compressed is raw video data of 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, 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.
Wherein prior to compressing video data to be compressed of 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 a first master processing device, wherein the master-slave notification information is used for notifying a first slave processing device to serve as a slave processing device of the first master processing device; and a first slave processing device that marks itself as a first master processing device in response to the master-slave notification information.
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 technical problems, another technical scheme adopted by the application is as follows: there is provided a video data processing apparatus comprising a processor and a memory, the memory being for storing program data, the processor being for executing the program data to implement any of the above methods of executing a master being a first master processing apparatus and/or a method of executing a master being a first slave processing apparatus.
In order to solve the technical problems, another technical scheme adopted by the application is as follows: there is provided a computer readable storage medium for storing program data executable to implement a method of any of the above described execution bodies being a first master processing device and/or a method of the execution bodies being first slave processing devices.
In the above 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 encoded data sent by the camera to obtain the original video data, and compresses and recodes the original video data.
Drawings
FIG. 1 is a flow chart of an embodiment of a video data processing method of the present application;
FIG. 2 is a flow chart of another embodiment of a video data processing method of 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 flow chart of a further embodiment of a video data processing method of the present application;
FIG. 5 is a flow chart of another embodiment of a video data processing method of the present application;
FIG. 6 is a flow chart of another embodiment of a video data processing method of the present application;
FIG. 7 is a flow chart of another embodiment of a video data processing method of the present application;
FIG. 8 is a schematic diagram of a framework of one embodiment of a video data processing apparatus of the present application;
FIG. 9 is a schematic diagram of a framework of one embodiment of a computer-readable storage medium of the present application.
Detailed Description
In order to make the objects, technical solutions and effects of the present application clearer and more specific, the present application will be further described in detail below with reference to the accompanying drawings and examples.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship. Further, "a plurality" herein means two or more than two.
It is to be understood that the method of the present application may include any one of the following method embodiments as well as any non-conflicting combination of the following method embodiments.
It should be understood that in the embodiment of the present application, the video data processing method is performed by a video data processing device, which may also be simply referred to as a processing device, and specifically, the video data processing device may be any device that performs decoding processing on video data captured by a remote camera, and may be, but is not limited to, a network video recorder (Network Video Record, NVR).
Within a local area network, there may be several processing devices and several cameras, one processing device may be connected to some or all of the several cameras by means of a password. The camera in the embodiment of the present application may be, but not limited to, a network camera (Internet Protocol Camera, IPC), or may be simply referred to as a camera or a video camera. The camera can capture the optical signal and convert the optical signal into a digital signal which can be used for image display, so as to be used as original video data, and further, the original video data is encoded by adopting an encoding technology to obtain encoded data, and the camera can send the encoded data to the processing equipment. The processing device can acquire the coded data of the camera connected with the processing device and decode and restore the coded data to obtain the original video data, so that the purposes of some related post-processing of the original video data, such as providing users with real-time watching or playing back the video data, and the like, are realized. The decoding capability of the video data processing apparatus, i.e. the amount of data that is decoded simultaneously, is constant, so that the number of picture channels that it can display is limited by the decoding capability of the processing apparatus, with an upper limit.
Referring to fig. 1, fig. 1 is a flowchart illustrating an embodiment of a video data processing method according to 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 from the connected plurality of 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 master processing device receives first encoded data obtained by encoding first target video data by the first slave processing device.
It will be appreciated that the first slave processing device is connected to at least one camera, and the first slave processing device may receive third encoded data transmitted by the at least one camera to which it is connected and decode and restore the third encoded data, so that the first slave processing device may obtain the original video data. After the original video data is obtained, 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 send the first encoded data to the first master processing device.
Step S130: the first main processing device decodes the first encoded data to obtain first target video data.
In some embodiments, the first master processing apparatus may connect a plurality of slave processing apparatuses to obtain target video data for each slave processing apparatus, respectively, thereby obtaining video data of the first master processing apparatus by a camera associated with the slave processing apparatus.
In some embodiments, the first main processing device may be connected to at least one camera in addition to the several slave processing devices, and the first main processing device may directly receive the encoded data of the at least one camera, and decode and restore the encoded data to obtain the original video data of the camera. The at least one original video data obtained by the first main processing device and the plurality of target video data are video data of all cameras (including the cameras associated by the slave processing device and the cameras connected to the slave processing device) associated with the first main processing device.
In this 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 camera to obtain the original video data, and compresses and recodes the original video data. Compared with the traditional method that the first main processing equipment directly decodes the coded data sent by all cameras, in the above mode, the slave processing equipment is utilized to compress and recode the video data of the cameras and send the compressed coded data to the main processing equipment to decode the compressed coded data, compared with the method that the main processing equipment directly decodes the coded data sent by all cameras, the slave processing equipment compresses the video data of the cameras so as to reduce the decoding data quantity of the main processing equipment on the video data of the cameras, so that the decoding pressure of the main processing equipment is shared, the processing of the video data of more cameras by the main processing equipment can be realized under the condition that the decoding capacity of the main processing equipment is not changed, and therefore, the processing requirement of users on more camera pictures can be met at the same time. Referring to fig. 2, fig. 2 is a flowchart of another embodiment of a video data processing method according to the present application.
In this embodiment, the first main processing device is capable of supporting video data processing of a multi-frame channel, that is, capable of displaying frames captured by multiple cameras, and the video data processing method includes:
step S211: the first master processing device selects at least one processing device from among a plurality of processing devices located in the same local area network as the first master processing device as a first slave processing device.
It will be appreciated that in a local area network, there may be several processing devices and several cameras, and a processing device may be configured to turn on a channel expansion mode according to a user selection or setting, so that the processing device serves as a first main processing device, and execute the steps of the video data processing method in which the 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 preset by a user in accordance with viewing needs of the camera captured picture.
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 performed between the first master processing device and the first slave processing device. Specifically, the first master processing apparatus may add a first slave processing apparatus.
Step S212: the first master processing apparatus transmits master-slave notification information to the first slave processing apparatus, wherein the master-slave notification information is used for notifying the first slave processing apparatus as a slave processing apparatus of the first master processing apparatus.
In some embodiments, the master-slave notification information may include master-slave identifiers, i.e., a master identifier and a slave identifier, from which the first slave processing device may identify the first master processing device to which it is connected, and from which the first slave processing device may identify the first slave processing device to which it is connected. Specifically, after the first slave processing device receives the master-slave notification information, the slave identification mark itself can be used as a slave, the slave mode can be started, and meanwhile, the corresponding host can be determined by using the host identification and the host information can be set, so that the first slave processing device is used 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 one of the multi-view channels.
It will be appreciated that the first slave processing device may have a number of cameras associated therewith, wherein the number of cameras may all be directly connected to the first slave processing device, or may all be connected to the slave processing device of the first slave processing device, or may be connected to the first slave processing device in part and to the slave processing device of the first slave processing device in part. The information of the several cameras may include the IP address of the camera, etc.
The first master processing apparatus first needs to select a camera that needs to view a picture from among cameras associated with the first slave processing apparatus, to display the picture captured by the camera on a currently idle picture channel of the first master processing apparatus, and after determining that the camera that needs to view the picture, step S230 is performed.
It will be appreciated that the order of step S220 and step S212 may be reversed.
Step S230: the first master processing apparatus transmits setting information of the video data to the first slave processing apparatus.
It is understood that the first master processing apparatus may confirm setting information of the video data, which is used as a processing basis of the original video data by the first slave processing apparatus, in response to a user operation.
In some embodiments, the setting information of the video data includes size characterization information of a frame channel corresponding to at least one camera, i.e. size characterization information determining a frame corresponding to each camera. Specifically, the first main processing apparatus sets a division mode for determining the number of picture channels of the first main processing apparatus, such as a four-picture division mode, a nine-picture division mode, etc., in response to a user operation, so that the size of a picture channel can be determined using the resolution of the total display picture of the first main processing apparatus and the division mode determined by the user, so that the above-described information for determining the size (such as the division mode) or the determined size can be used as size characterizing information of the picture channel, and the size characterizing information of the above-described picture channel can be transmitted to the first sub processing apparatus as setting information of video data. The size representation information of the picture channel can be used as a basis for compressing the original video data by the first slave processing equipment to obtain first target video data.
Specifically, for example, the resolution of the total display screen of the first main processing device is 1920×1080, and the size characterization information of each screen in the corresponding four-screen division 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 equipment is associated with a plurality of cameras, the cameras are in one-to-one correspondence with the picture channels, and the first auxiliary processing equipment can determine the picture channel corresponding to the picture of each associated camera through the position information of the picture channel. The position information of the picture channel can be used as the basis for the first slave processing equipment to encode the first target video data to obtain first encoded data, so that the video picture obtained by the first master processing equipment is a picture which is zoomed by a picture captured by the camera and is positioned in a preset picture channel.
For example, in the four-frame splitting mode, four frame channels are shared, the first main processing device is connected with a camera, and the position information of the frame channels may be that the frame channel corresponding to the camera is the frame channel located at the upper right corner.
In some embodiments, the first slave processing device may further store the original video data by recording the original video picture after processing the original video data according to the setting information of the video data.
Step S240: the first master processing device receives first encoded data obtained by encoding first target video data by the first slave processing device.
Step S250: the first main processing device decodes the first encoded data to obtain first target video data.
For the specific description of step S240 and step S250, reference may be made to the above description about step S120 and step S130, which are not repeated here.
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 the display, or may record the first target video data so as to store the first target video data. Video data of cameras associated with the main processing equipment are respectively stored in the auxiliary processing equipment and the main processing equipment, the distributed storage mode improves the reliability and safety of video data storage, and compressed video data can be searched in the main processing equipment even if some data of the auxiliary processing equipment are lost.
It will be appreciated that step S260 is an optional step, and that 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 diagram illustrating a video data processing procedure 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, 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 method comprises the steps that two slave video recorders respectively acquire four original video data sent by three cameras connected with the slave video recorders, respectively compress the four corresponding original video data according to size representation information to respectively obtain target video data, and respectively encode the target video data according to position information of a picture channel to respectively obtain encoded data.
The method comprises the steps that a master video recorder receives encoded data sent by two slave video recorders respectively, the encoded data are decoded, target video data corresponding to the two slave video recorders are obtained respectively, video data corresponding to all cameras associated with the master video recorder are obtained, and video data of each camera corresponds to a picture channel one by one.
In this 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 camera to obtain the original video data, and compresses and recodes the original video data. Compared with the traditional mode that the first main processing equipment directly decodes the coded data sent by all cameras, in the mode, the slave processing equipment is utilized to compress and recode the video data of the cameras according to the requirement of the main processing equipment and send the compressed and coded data to the main processing equipment to decode the compressed and coded data, compared with the mode that the main processing equipment directly decodes the coded data sent by all cameras, the slave processing equipment compresses the video data of the cameras so as to reduce the decoding data quantity of the main processing equipment on the video data of the cameras, so that the decoding pressure of the main processing equipment is shared, and the processing of the main processing equipment on the video data of more cameras can be realized under the condition that the decoding capacity of the main processing equipment is not changed, thereby meeting the processing requirement of users on more camera pictures at the same time. Referring to fig. 4, fig. 4 is a flowchart illustrating a video data processing method according to another embodiment of the present application.
It will be appreciated that any device may be used as a master or slave, and that the foregoing embodiments include a first master and a first slave, where the first master is used as the master and the first slave is used as the slave.
On the basis of the foregoing embodiment, the first master processing apparatus may also be a slave processing apparatus, and the second master processing apparatus, which is a master processing apparatus, may be correspondingly connected to the first master processing apparatus, and the second master processing apparatus may also be connected to other slave processing apparatuses other than the first master processing apparatus. Specifically, the video data processing method may further include:
step S410: and the first main processing equipment compresses the first target video data corresponding to the at least one first auxiliary processing equipment to obtain second target video data.
Specifically, the first main processing device may also receive master-slave notification information and setting information of video data sent by the second main processing device, where the setting information of the video data includes size characterization information of a picture channel and position information of the picture channel, and compress the first target video data according to the size characterization information of the picture channel to obtain the second target video data.
Step S420: the first main processing device 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 host processing device transmits the second encoded data to the second host processing device.
Further, the second master processing apparatus may be connected to the third master processing apparatus as a slave processing apparatus, and the third master processing apparatus may be connected to a slave processing apparatus other than the second master processing apparatus. A master processing apparatus and a plurality of slave processing apparatuses connected thereto may be referred to as a master-slave processing apparatus hierarchy, and the slave processing apparatuses may compress and encode video data according to setting information of the video data transmitted from the master processing apparatus, and transmit the processed video data to the master processing apparatus, so that the master processing apparatus may obtain video data of a plurality of cameras associated with the slave processing apparatus. The number of levels of the master-slave processing apparatus is not limited, but as the number of levels of the master-slave processing apparatus increases, the display of the screen of the master processing apparatus gradually generates a screen delay.
By the above method, the main processing device can further process video data of more cameras, and in some embodiments, the processing device is a network video recorder.
It will be appreciated that the master-slave relationship of the processing devices may 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 the first main processing device, the idle processing device is used for processing the video data, and idle computing resources are fully utilized, for example, pictures captured by cameras associated with other processing devices are displayed. In addition, in some cases, old equipment or low-end equipment with poor performance exists in a local area network, and scheduling strategies can be directly optimized in a software upgrading mode, so that the old equipment or low-end equipment is utilized, and hardware cost is saved.
Referring to fig. 5, fig. 5 is a flowchart illustrating another embodiment of a video data processing method according to 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 master processing device and serves as a slave processing device of the first master processing device. The video data to be compressed may comprise several video data, all of which are raw video data of the camera connected to the first slave processing device.
In some embodiments, the first slave processing device is connected to 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 to at least one camera. The video data to be compressed may also be all video data transmitted from the slave processing device to which the first slave processing device is connected, or one part may be original video data of the camera to which the first slave processing device is connected, and the other part may be video data transmitted from the slave processing device to which the first slave processing device is connected.
Specifically, taking the example that all video data to be compressed are sent by a slave processing device connected to a 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 send the second encoded data to the first slave processing device. The first slave processing device can acquire a plurality of second coded data sent by a plurality of second slave processing devices, and decode the second coded data to obtain a plurality of second target video data serving as video data to be compressed.
In some embodiments, the first slave processing device may be associated with a plurality of cameras, and the first slave processing device compresses the video data to be compressed of each associated camera, thereby obtaining 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.
The specific description of step S510 and step S520 may refer to the above description about the processing procedure of the video data by the first slave processing device, and will not be repeated here.
In the above embodiment, the first main processing device is connected to at least one slave processing device, the at least one slave processing device decodes and restores the encoded data sent by the video camera to obtain the original video data, and compresses and recodes the original video data. Referring to fig. 6, fig. 6 is a flowchart illustrating another embodiment of a video data processing method according to the present application. The video data processing method may further include:
Step S610: the first slave processing device receives the master-slave notification information sent by the first master processing device, and marks itself as a 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 to serve as a slave processing device of the first master processing device. The related description of the master-slave notification information may refer to the specific description in the foregoing embodiments, and will not be described herein.
Step S620: the first slave processing device receives size characterization information of a picture channel corresponding to at least one camera and position information of the picture channel corresponding to at least one camera, which are sent by the first master processing device.
The size characterization information of the frame channel may be information for determining the frame size (such as a segmentation mode) or the determined frame size.
In some embodiments, the first slave processing device may determine the picture size in accordance with the received segmentation pattern and the resolution of the total display picture of the first master processing device. Step S630: the first slave processing device compresses the video data to be compressed based on the size characterization information to obtain first target video data.
After determining the picture size, the first slave processing device 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 equipment 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 sends the first encoded data to first master processing equipment of the first slave processing equipment.
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, and specifically may 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 the first slave processing device obtains the first encoded data, the slave identifier and the first encoded data can be transmitted in an associated manner, so that the first master processing device can 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.
Referring to fig. 3 in combination, the video data processing process is further taken as an example. The method comprises the steps that firstly, picture sizes of four groups of video data to be compressed, which are associated with a slave video recorder, are determined according to size characterization information, the four groups of video data to be compressed, which are associated with the slave video recorder, are compressed until the picture sizes are consistent with the determined picture sizes, target video data are obtained, and then, the target video data are encoded according to received picture channel position information to obtain encoded data, so that the four groups of pictures associated with the slave video recorder are located in picture channels preset by first main processing equipment, and therefore, the target video data of eight pictures corresponding to three cameras connected with the slave video recorder can be obtained after the encoded data of the two slave video recorders are decoded by the master video recorder, and the target video data correspond to picture channels determined by the master processing equipment one by one.
Step S650: the first slave processing device displays and/or saves the video data to be compressed.
It will be appreciated that step S650 is an optional step, and that not performing step S650 does not affect the processing of the video data.
In the above embodiment, the first main processing device is connected to at least one slave processing device, the at least one slave processing device decodes and restores the encoded data sent by the video camera to obtain the original video data, and compresses and recodes the original video data. Referring to fig. 7, fig. 7 is a flowchart illustrating another embodiment of a video data processing method according to the present application. In the same local area network, any processing device can be connected with the camera to directly acquire the original video data of the camera, and in this embodiment, the first main processing device is connected with the camera as an example. The first main processing device may add any camera that is in the same local area network as it to process the video data of that 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 view instruction to a camera.
It will be appreciated that the first main processing device first needs to add the camera before receiving the third encoded data of the camera, so as to connect with the camera, and then performs step S720 to obtain the original video data.
Step S720: the first main processing equipment receives third encoded data of the camera, and decodes the third encoded data to obtain 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 so as to meet the requirement of a user for viewing the picture captured by the specific camera, and can record the original video data so as to store the original video data.
In the above embodiment, the master processing device may suspend processing of data sent from the slave processing device, directly process video data of the connected camera, and then directly display a picture captured by any camera, so as to meet a requirement of a user on processing video data of any connected camera on the processing device, and improve flexibility of use of the processing device.
Referring to fig. 8, fig. 8 is a schematic diagram of a frame of an embodiment of a video data processing apparatus according to 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 having processing capabilities, such as a computer, tablet, cell phone, network video recorder, or the like.
The memory 82 is used for storing acquired information, program data executed by the processor 81, and data during processing by the processor 81. E.g., target video data, encoded data, etc. Wherein the memory 82 comprises a non-volatile storage portion for storing the program data described above.
The processor 81 controls the operation of the video data processing device 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 with 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 is operative to execute instructions to implement the steps of any of the method embodiments described above by invoking program data stored in the memory 82.
In some embodiments, the video data processing apparatus 80 further includes a man-machine interaction circuit 83, the memory 82 and the man-machine interaction circuit 83 are respectively coupled to the processor 81, specifically, each component 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 configured to receive a user operation instruction.
In the above embodiment, the first main processing device is connected to at least one slave processing device, the at least one slave processing device decodes and restores the encoded data sent by the video camera to obtain the original video data, and compresses and recodes the original video data. Referring to fig. 9, fig. 9 is a schematic 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 program data 91 executable by a processor, and the program data 91 can be executed to implement any of the above methods.
The computer readable storage medium 90 may be a medium such as a usb (universal serial bus), a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, which may store program data, or may be a server storing the program data, and the server may send the stored program data to another device for execution, or may also self-execute 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 main processing device is connected to at least one slave processing device, the at least one slave processing device decodes and restores the encoded data sent by the video camera to obtain the original video data, and compresses and recodes the original video data. The foregoing description is only exemplary embodiments of the present application and is not intended to limit the scope of the present application, and all equivalent structures or equivalent processes using the descriptions and the drawings of the present application, or direct or indirect application in other related technical fields are included in the scope of the present application.

Claims (11)

1. A method of video data processing, the method comprising:
the method comprises the steps that a first main processing device determines a plurality of first auxiliary processing devices, wherein the first main processing device, the first auxiliary processing device and the second main processing device can support video data processing of a multi-picture channel, and the first main processing device is a second auxiliary processing device of the second main processing device;
transmitting setting information of video data to the 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;
decoding the first encoded data to obtain the first target video data;
compressing the first target video data corresponding to the plurality of first slave processing devices to obtain second target video data;
encoding the second target video data to obtain second encoded data;
transmitting the second encoded data to the second main processing device to increase the number of picture channels supported by the second main processing device;
The setting information of the video data comprises size representation information of a picture channel corresponding to the at least one camera, and the first 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 coding data is obtained by coding the first target video data corresponding to the at least one camera according to the position information of the picture channel.
2. The method of claim 1, 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;
the at least one camera is selected from the number of cameras to add to a currently idle one of the multi-picture channels.
3. The method of claim 1, wherein the determining a plurality of first slave processing devices comprises:
selecting a plurality of processing devices from a plurality of processing devices which are positioned in the same local area network with 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 to serve as a slave processing device of the first master processing device;
and/or, after said decoding the first encoded data to obtain the first target video data, the method further comprises:
and displaying and/or storing the first target video data.
4. 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, responding to a viewing instruction of a user on a camera, stopping decoding the first coded data, receiving third coded data of the camera, and decoding the third coded data to obtain the original video data of the camera.
5. A method of video data processing, the method further comprising:
a first slave processing device receives setting information of video data sent by a first master processing device, wherein the first master processing device, the first slave processing device and a second slave processing device can support video data processing of a multi-picture channel, the first slave processing device is one of a plurality of first slave processing devices determined by the first master processing device, and the first slave processing device is used as a second master processing device of the second slave 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;
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;
the video data to be compressed is second target video data obtained by decoding second encoded data by the second slave processing equipment, wherein the second target video data is obtained by compressing original video data of a plurality of cameras connected with the second slave processing equipment by the second slave processing equipment;
the setting information of the video data comprises size representation information of a picture channel corresponding to the at least one video camera, and the first target video data is obtained by compressing the video data to be compressed 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 coding data is obtained by coding the first target video data corresponding to the at least one camera according to the position information of the picture channel.
6. The method of claim 5, wherein receiving the setting information of the video data transmitted by the first main processing device comprises:
receiving size representation information of a picture channel corresponding to the at least one camera, which is sent by the first main processing equipment;
the compressing the video data to be compressed of at least one camera associated with the first slave processing device to obtain first target video data comprises the following steps:
and compressing the video data to be compressed based on the size representation information to obtain first target video data.
7. The method of claim 5, wherein receiving the setting information of the video data transmitted by the first main processing device comprises:
receiving position information of a picture channel corresponding to the at least one camera, which is sent by the first main processing equipment;
the encoding the first target video data to obtain first encoded data includes:
and encoding the first target video data corresponding to the at least one camera according to the position information of the picture channel to obtain first encoded data.
8. The method of claim 5, wherein prior to compressing video data to be compressed of the 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 the first master processing device, wherein the master-slave notification information is used for notifying the first slave processing device to serve as a slave processing device of the first master processing device;
and marking itself as the first slave processing device of the first master processing device in response to the master-slave notification information.
9. The method of claim 5, 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.
10. A video data processing device, characterized in that it comprises a processor and a memory for storing a program, the processor being adapted to execute the program to implement the method according to any of claims 1-4 and/or the method according to any of claims 5-9.
11. A computer readable storage medium for storing a program executable by a processor for implementing the method of any one of claims 1-9.
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 CN113691815A (en) 2021-11-23
CN113691815B true 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)

Families Citing this family (1)

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

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7907665B2 (en) * 2003-03-14 2011-03-15 Lsi Corporation Multi-channel video compression system
TW200837606A (en) * 2007-03-08 2008-09-16 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
CN104427228B (en) * 2013-08-22 2017-09-08 展讯通信(上海)有限公司 Cooperate camera system and its image pickup method
CN108306965B (en) * 2018-01-31 2021-02-02 上海小蚁科技有限公司 Data processing method and device for camera, storage medium and camera
CN112601096B (en) * 2020-12-02 2023-11-14 深圳力维智联技术有限公司 Video decoding method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
CN113691815A (en) 2021-11-23

Similar Documents

Publication Publication Date Title
JP5326234B2 (en) Image transmitting apparatus, image transmitting method, and image transmitting system
WO2021147702A1 (en) Video processing method and apparatus
WO2015144084A1 (en) Video synchronous playback method, apparatus, and system
CN111917988A (en) Remote camera application method, system and medium of cloud mobile phone
US20110273570A1 (en) Control device, camera, method and computer program storage device
WO2018024231A1 (en) Method and apparatus for interconnecting spliced wall and mobile intelligent terminal
US9344678B2 (en) Information processing apparatus, information processing method and computer-readable storage medium
CN112714320B (en) Decoding method, decoding device and computer readable storage medium
CN113992883B (en) Video conference processing method, processing device, conference system, and storage medium
CN113691815B (en) Video data processing method, device and computer readable storage medium
US20110273579A1 (en) Control device, camera system and program
US11284094B2 (en) Image capturing device, distribution system, distribution method, and recording medium
CN106664432B (en) Multimedia information playing method and system, acquisition equipment and standardized server
US10771747B2 (en) Imaging apparatus and imaging system
CN114095660B (en) Image display method and device, storage medium and electronic equipment
WO2023029252A1 (en) Multi-viewpoint video data processing method, device, and storage medium
CN111107316B (en) Image display method, device and system
CN112269886B (en) Shared image acquisition method, window sharing method and shared image acquisition device
US11706524B2 (en) Intermediary terminal, communication system, and intermediation control method
US20120281066A1 (en) Information processing device and information processing method
CN112954421A (en) Screen projection method, device, system and equipment
CN112948046A (en) Screen capturing method, device, equipment and storage medium
CN113141480A (en) Screen recording method, device, equipment and storage medium
CN112291470A (en) Method and device for controlling camera
KR101652095B1 (en) Realtime remote monitoring and playing system using digital video recoder, and method thereof

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