Hongmon system-based distributed video processing method, terminal and readable medium

文档序号:1878544 发布日期:2021-11-23 浏览:23次 中文

阅读说明:本技术 基于鸿蒙系统的分布式视频处理方法、终端和可读介质 (Hongmon system-based distributed video processing method, terminal and readable medium ) 是由 颜专 于 2021-10-25 设计创作,主要内容包括:本发明涉及基于鸿蒙系统的分布式视频处理方法、终端和可读介质。一种基于鸿蒙系统的分布式视频处理方法,应用于视频处理终端,所述视频处理终端装载有鸿蒙系统,包括:获取视频源数据,并对所述视频源数据进行预处理得到多个预处理数据;获取通过对接组网的多个从处理终端的终端参数;基于每个所述从处理终端的终端参数以及视频处理终端的终端参数,将多个所述预处理数据分配到一个或多个所述从处理终端、以及所述视频处理终端;集合所有的编码子数据,生成编码数据。得到视频源数据后,对视频源数据进行预处理,得到多个预处理数据,进而得到对应的子编码数据,能够保证多个预处理数据同时由多个终端进行处理,编码速度提高。(The invention relates to a Hongmon system-based distributed video processing method, a terminal and a readable medium. A distributed video processing method based on Hongming system is applied to a video processing terminal, the video processing terminal is loaded with the Hongming system, and the method comprises the following steps: acquiring video source data, and preprocessing the video source data to obtain a plurality of preprocessed data; acquiring terminal parameters of a plurality of slave processing terminals which are connected and networked through docking; distributing a plurality of the pre-processing data to one or more of the slave processing terminals and the video processing terminal based on a terminal parameter of each of the slave processing terminals and a terminal parameter of the video processing terminal; all the encoded subdata are collected to generate encoded data. After the video source data are obtained, the video source data are preprocessed to obtain a plurality of preprocessed data, and then corresponding sub-coded data are obtained, so that the plurality of preprocessed data can be processed by a plurality of terminals at the same time, and the coding speed is improved.)

1. A Hongmon system-based distributed video processing method is applied to a video processing terminal, and the video processing terminal is loaded with a Hongmon system, and comprises the following steps:

acquiring video source data, and preprocessing the video source data to obtain a plurality of preprocessed data; the preprocessing data is obtained by preprocessing and cutting the video source data;

acquiring terminal parameters of a plurality of slave processing terminals which are connected and networked through docking; the terminal parameters comprise CPU frequency; the slave processing terminal is loaded with a Hongmon system;

distributing a plurality of the pre-processing data to one or more of the slave processing terminals and the video processing terminal based on a terminal parameter of each of the slave processing terminals and a terminal parameter of the video processing terminal; so that one or more slave processing terminals and the video processing terminal execute coding operation on the distributed preprocessed data and correspondingly generate coded sub-data;

all the encoded subdata are collected to generate encoded data.

2. The hongmeng system based distributed video processing method as recited in claim 1, wherein said pre-processed data comprises key frame data and predicted frame data;

the pretreatment comprises the following steps:

decomposing the video source data according to GOP to obtain a plurality of preprocessing groups;

and extracting the key frame and the prediction frame of each preprocessing group to respectively generate the key frame data and the prediction frame data.

3. The hongmeng system-based distributed video processing method according to claim 2, wherein said encoding operation performed on said key frame data specifically comprises:

decomposing the key frame to obtain a bit plane, and arranging the bit plane from low to high according to a hierarchy;

selecting a plurality of high-order bit planes to reconstruct to obtain a plaintext image;

and acquiring a pseudorandom key, and randomly scrambling the plaintext image to obtain key code subdata.

4. The method of claim 2, wherein the encoding performed on the prediction frame data specifically comprises:

and converting the prediction frame into prediction coding data through perceptual compression.

5. The hongmeng system based distributed video processing method according to claim 2, wherein said assigning specifically comprises:

respectively calculating the master frequency proportion of the CPU frequency of each slave processing terminal and each video processing terminal to the sum of the CPU frequencies of all the slave processing terminals and the video processing terminals in the current network;

generating corresponding distribution weight according to the dominant frequency proportion; and performing distribution operation according to the distribution weight.

6. The hongmeng system-based distributed video processing method as recited in claim 5, wherein said key frame data is mainly distributed to said slave processing terminals and video processing terminals having said CPU frequency greater than a predetermined frequency in the distribution process.

7. The hongmeng system based distributed video processing method according to claim 5, wherein when there is a disconnection from the processing terminal from the networking, the following steps are performed:

judging the task completion degree; the task completion degree is obtained according to the received coded subdata and the pre-processing data distributed by the slave processing terminal;

and determining unfinished preprocessed data according to the task completion degree and the received coded subdata, and redistributing according to the distribution weight.

8. A video processing terminal using the distributed video processing method of any one of claims 1 to 7, wherein the terminal is loaded with a hongmeng system, comprising:

the system comprises a preprocessing module, a data processing module and a data processing module, wherein the preprocessing module is used for acquiring video source data and preprocessing the video source data to obtain a plurality of preprocessed data; the preprocessing data is obtained by preprocessing and cutting the video source data;

the docking module is used for acquiring terminal parameters of a plurality of slave processing terminals which are networked through docking; the terminal parameters comprise CPU frequency; the slave processing terminal is loaded with a Hongmon system;

the encoding module is used for executing encoding operation on the distributed preprocessed data and correspondingly generating encoded subdata;

the processing module is respectively connected with the preprocessing module, the docking module and the coding module and is used for distributing a plurality of preprocessing data to one or a plurality of slave processing terminals and the video processing terminal based on the terminal parameter of each slave processing terminal and the terminal parameter of the video processing terminal; so that one or more slave processing terminals and the video processing terminal execute coding operation on the distributed preprocessed data and correspondingly generate coded sub-data; and all the encoded subdata is collected to generate encoded data.

9. A video processing terminal, comprising:

one or more memories storing computer programs;

one or more processors;

the computer program, when executed by one or more processors, implements the distributed video processing method of any of claims 1-7.

10. A computer-readable medium, in which a computer program is stored which, when executed by one or more processors, implements the distributed video processing method of any of claims 1-7.

Technical Field

The present invention relates to electronic devices, and more particularly, to a hongmeng system-based distributed video processing method, terminal, and readable medium.

Background

At present, video coding processing is mostly performed by using single equipment, targeted processing is performed by using a distributed processing system only when large-batch data needs to be processed simultaneously, but the video coding processing is generally realized by using background processing of a cloud or multiple servers, and a temporary component distributed video processing system cannot be realized by self-networking according to surrounding electronic equipment.

The Hongmon OS is a distributed operating system which is based on microkernels, faces to a 5G Internet of things and faces to a whole scene. The operation system is unified by a communication mobile phone, a computer, a panel, a television, industrial automation control, unmanned driving, vehicle equipment and intelligent wearing, is designed facing the next generation technology, and can be compatible with all Web applications of all android applications. A world with super virtual terminals interconnected is created, and people, equipment and scenes are organically connected together. The hongmeng system can realize contact interaction, and if the hongmeng system is applied to family distribution, the speed of video coding can be increased, namely, a user can realize video coding or large-batch video coding by depending on a cloud or a background server group.

The invention is based on Hongmon system, mainly provides a distributed processing system aiming at video processing, and can utilize terminal equipment which participates in networking near the Hongmon system to process video, thereby greatly improving the video processing speed.

Disclosure of Invention

In view of the foregoing disadvantages of the prior art, an object of the present invention is to provide a method for distributed video processing based on hong meng system, which enables an intelligent terminal loaded with hong meng system to allocate a task of video processing to a nearby terminal capable of participating in networking for processing during video processing, and is convenient and fast.

It is another object of the present invention to provide a video processing terminal.

It is a further object of the present invention to provide a computer readable medium.

In order to achieve the purpose, the invention adopts the following technical scheme:

on one hand, the invention provides a distributed video processing method based on Hongming system, which is applied to a video processing terminal, wherein the video processing terminal is loaded with the Hongming system, and the method comprises the following steps:

acquiring video source data, and preprocessing the video source data to obtain a plurality of preprocessed data; the preprocessing data is obtained by preprocessing and cutting the video source data;

acquiring terminal parameters of a plurality of slave processing terminals which are connected and networked through docking; the terminal parameters comprise CPU frequency; the slave processing terminal is loaded with a Hongmon system;

distributing a plurality of the pre-processing data to one or more of the slave processing terminals and the video processing terminal based on a terminal parameter of each of the slave processing terminals and a terminal parameter of the video processing terminal; so that one or more slave processing terminals and the video processing terminal execute coding operation on the distributed preprocessed data and correspondingly generate coded sub-data;

all the encoded subdata are collected to generate encoded data.

Further, in the Hongmon system-based distributed video processing method, the pre-processing data includes key frame data and prediction frame data;

the pretreatment comprises the following steps:

decomposing the video source data according to GOP to obtain a plurality of preprocessing groups;

and extracting the key frame and the prediction frame of each preprocessing group to respectively generate the key frame data and the prediction frame data.

Further, in the method for distributed video processing based on the hongmeng system, the encoding operation performed on the key frame data specifically includes:

decomposing the key frame to obtain a bit plane, and arranging the bit plane from low to high according to a hierarchy;

selecting a plurality of high-order bit planes to reconstruct to obtain a plaintext image;

and acquiring a pseudorandom key, and randomly scrambling the plaintext image to obtain key code subdata.

Further, in the method for distributed video processing based on the hongmeng system, the encoding operation performed on the prediction frame data specifically includes:

and converting the prediction frame into prediction coding data through perceptual compression.

Further, the distribution method of the distributed video processing based on the hongmeng system specifically includes:

respectively calculating the master frequency proportion of the CPU frequency of each slave processing terminal and each video processing terminal to the sum of the CPU frequencies of all the slave processing terminals and the video processing terminals in the current network;

generating corresponding distribution weight according to the dominant frequency proportion; and performing distribution operation according to the distribution weight.

Further, in the distributed video processing method based on the hongmeng system, in the distribution process, the key frame data are mainly distributed to the slave processing terminal and the video processing terminal, where the CPU frequency is greater than a predetermined frequency.

Further, the distributed video processing method based on the hongmeng system executes the following steps when a slave processing terminal is disconnected from the network:

judging the task completion degree; the task completion degree is obtained according to the received coded subdata and the pre-processing data distributed by the slave processing terminal;

and determining unfinished preprocessed data according to the task completion degree and the received coded subdata, and redistributing according to the distribution weight.

In another aspect, the present invention provides a video processing terminal using the distributed video processing method described in any one of the above, the terminal being equipped with a hongmeng system, comprising:

the system comprises a preprocessing module, a data processing module and a data processing module, wherein the preprocessing module is used for acquiring video source data and preprocessing the video source data to obtain a plurality of preprocessed data; the preprocessing data is obtained by preprocessing and cutting the video source data;

the docking module is used for acquiring terminal parameters of a plurality of slave processing terminals which are networked through docking; the terminal parameters comprise CPU frequency; the slave processing terminal is loaded with a Hongmon system;

the encoding module is used for executing encoding operation on the distributed preprocessed data and correspondingly generating encoded subdata;

the processing module is respectively connected with the preprocessing module, the docking module and the coding module and is used for distributing a plurality of preprocessing data to one or a plurality of slave processing terminals and the video processing terminal based on the terminal parameter of each slave processing terminal and the terminal parameter of the video processing terminal; so that one or more slave processing terminals and the video processing terminal execute coding operation on the distributed preprocessed data and correspondingly generate coded sub-data; and all the encoded subdata is collected to generate encoded data.

In another aspect, the present invention provides a video processing terminal, including:

one or more memories storing computer programs;

one or more processors;

the computer program, when executed by one or more processors, implements the distributed video processing method of any of the preceding.

In another aspect, the invention provides a computer readable medium storing a computer program which, when executed by one or more processors, implements a distributed video processing method as claimed in any one of the preceding claims.

Compared with the prior art, the distributed video processing method, the terminal and the readable medium based on the Hongmon system have the following beneficial effects:

by using the distributed video processing method based on the Hongmon system, provided by the invention, after video source data are obtained, the video source data are preprocessed to obtain a plurality of preprocessed data, then the preprocessed data are respectively subjected to coding operation in video processing and/or from a processing terminal to finally obtain corresponding sub-coded data, then all the sub-coded data are collected to generate coded data, the preprocessed data can be ensured to be processed by a plurality of terminals at the same time, and the coding speed is improved; moreover, as all terminals are provided with Hongmon systems, networking can be realized through touch interconnection, so that the application range is wider, the processing speed can be increased through a plurality of home equipment component distributed video processing systems, and the system is convenient and fast.

Drawings

FIG. 1 is a flow chart of a distributed video processing method provided by the present invention;

fig. 2 is a block diagram of a video processing terminal according to the present invention.

Detailed Description

In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

It is to be understood by those skilled in the art that the foregoing general description and the following detailed description are exemplary and explanatory of specific embodiments of the invention, and are not intended to limit the invention.

The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process or method that comprises a list of steps does not include only those steps, but may include other steps not expressly listed or inherent to such process or method. Also, without further limitation, one or more devices or subsystems, elements or structures or components beginning with "comprise. The appearances of the phrases "in one embodiment," "in another embodiment," and similar language throughout this specification may, but do not necessarily, all refer to the same embodiment.

Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

Referring to fig. 1, the present invention provides a distributed video processing method based on hong meng system, which is applied to a video processing terminal, and the video processing terminal is loaded with hong meng system. The video processing terminal is one of the distributed video processing systems as a main operating terminal, and plays a main role of central control, namely the video processing terminal adjusts and configures the normal operation and maintenance work of the distributed video processing system.

Further, the video processing terminal and the slave processing terminal allocation are not particularly limited, and any terminal in the distributed video processing system may be designated as the video processing terminal.

Furthermore, in the distributed video processing system, the first terminal receiving the video source data is determined as a video processing terminal, and the distributed video processing method provided by the invention is used for executing work. The method of receiving video source data is not limited, and those skilled in the art can determine the video processing terminal in the distributed video processing system according to actual requirements.

Furthermore, each terminal in the distributed video processing system is provided with a hongmeng system and has a function of close range or touch networking. The short-distance networking means that when two terminals approach each other, a networking function is realized within a preset distance range; touch networking refers to networking realized by touching two terminals. Of course, those skilled in the art can implement the basic functions of the short-distance networking and the taught touch networking according to the actual situation, and the invention is not limited thereto. Such as functional implementation of the basic touch interconnect using the hongmeng system.

Furthermore, each terminal implementing the distributed video processing system is provided with a hongmeng system, and the distributed video processing system is completed by touch networking and docking, wherein each terminal can be an intelligent terminal, a corresponding server type terminal or a household appliance. For example, in the distributed video processing system, each terminal is a server device, and each device uses the hongmeng system as an operating system, and then after any terminal receives video source data of a mobile terminal connected to the terminal, the video source data is used as a slave processing terminal in the video processing, and other terminals process the video source data by using the distributed video processing method provided by the present invention. For another example, the distributed video processing system is implemented by networking among home devices, the home devices include a television, a computer, a mobile phone, a router, a set-top box, an electric cooker, an air conditioner and the like, and a plurality of home devices are subjected to touch networking or close-range networking, wherein the devices capable of performing video processing work include the television, the computer, the mobile phone and the set-top box; after any household device obtains video source data, the household device serves as the video processing terminal, and other household devices serve as slave processing terminals.

Further, if the home devices participating in the networking do not have the corresponding encoding modules, the corresponding encoding modules are projected into the corresponding home devices based on the hongmeng system.

The distributed video processing method based on the Hongming system comprises the following steps:

acquiring video source data, and preprocessing the video source data to obtain a plurality of preprocessed data; the preprocessing data is obtained by preprocessing and cutting the video source data; generally, the VIDEO format of the VIDEO source data is not limited, and includes MPEG/MPG/DAT, AVI, MOV, ASF, WMV, naci, 3GP, REAL VIDEO, MKV, FLV, F4V, and RMVB, and certainly, for different VIDEO formats, a person skilled in the art may perform preprocessing according to the characteristics of the corresponding VIDEO format, so that the VIDEO source data is cut to form a plurality of the preprocessed data.

Acquiring terminal parameters of a plurality of slave processing terminals which are connected and networked through docking; the terminal parameters comprise CPU frequency; the slave processing terminal is loaded with a Hongmon system; the docking networking mode is not limited, and local area networking can be used, and the short-distance networking or touch networking can also be used. In this embodiment, the screen processing terminal and the slave processing terminal are both equipped with a hongmeng system, and then touch networking is preferentially used. The terminal parameters mainly comprise CPU frequency for displaying the working frequency of each terminal in the distributed video processing system, so that the distribution of the preprocessed data is more objective; of course, the terminal parameters may also include the type and name of the terminal, so that it is possible to more quickly identify whether the current identification can refer to video processing. For example, if the video processing terminal recognizes the rice cooker, the rice cooker is not used as the slave processing terminal. Of course, it is simple to allocate the CPU frequency, and terminals with the CPU frequency lower than a certain frequency value are not used as slave processing terminals.

Distributing a plurality of the pre-processing data to one or more of the slave processing terminals and the video processing terminal based on a terminal parameter of each of the slave processing terminals and a terminal parameter of the video processing terminal; so that one or more slave processing terminals and the video processing terminal execute coding operation on the distributed preprocessed data and correspondingly generate coded sub-data; specifically, one skilled in the art can select an appropriate encoding function or encoding algorithm to process the preprocessed data according to the video source data or the operating efficiency. Of course, in a distributed video processing system, one encoding algorithm or function is used for the same video source data.

All the encoded subdata are collected to generate encoded data.

By using the distributed video processing method based on the Hongmon system, provided by the invention, after video source data are obtained, the video source data are preprocessed to obtain a plurality of preprocessed data, then the preprocessed data are respectively subjected to coding operation in video processing and/or from a processing terminal to finally obtain corresponding sub-coded data, then all the sub-coded data are collected to generate coded data, the preprocessed data can be ensured to be processed by a plurality of terminals at the same time, and the coding speed is improved; moreover, as all terminals are provided with Hongmon systems, networking can be realized through touch interconnection, so that the application range is wider, the processing speed can be increased through a plurality of home equipment component distributed video processing systems, and the system is convenient and fast.

Further, as a preferred solution, in this embodiment, coded data is generated for the distributed video processing method, and a corresponding decoding method is used, where the decoding method is a reverse processing procedure of the coding method in data processing, and the difference is that: the decoding step may be performed by a single device or may be performed by a distributed system.

Further, as a preferred scheme, in this embodiment, the preprocessing data includes key frame data and prediction frame data;

the pretreatment comprises the following steps:

decomposing the video source data according to GOP to obtain a plurality of preprocessing groups; GOP (group of pictures) strategy affects coding quality, GOP means group of pictures, a GOP is a group of consecutive pictures. A GOP is a set of pictures in a video sequence that is used to aid random access. The first picture of the GOP must be an I frame (key frame), so that the GOP can be independently decoded without referring to other pictures; the GOP also contains P frames (predicted frames) that need to be decoded normally based on I frames. The generation of the preprocessing groups can be performed according to the GOP policy by those skilled in the art according to the actual needs, wherein each preprocessing group includes one or more GOPs.

And extracting the key frame and the prediction frame of each preprocessing group to respectively generate the key frame data and the prediction frame data. The method for extracting the key frame and the predicted frame may be determined by those skilled in the art according to actual requirements, and the present invention is not limited thereto.

Further, as a preferred solution, in this embodiment, the encoding operation performed on the key frame data specifically includes:

decomposing the key frame to obtain a bit plane, and arranging the bit plane from low to high according to a hierarchy; specifically, a pixel is a number consisting of bits (bits). The gray scale of each pixel is composed of 8 bits (bytes). Corresponding to an 8-bit image consisting of 8 1-bit planes. Each bit plane is a binary image obtained by processing with a threshold gray scale transformation function, and the 8 bit planes have a hierarchy level from low to high, and the higher the hierarchy level is, the more the original image information is contained.

Selecting a plurality of high-order bit planes to reconstruct to obtain a plaintext image; in this embodiment, the storage space can be reduced by using 4-6 bit planes at the higher level among the 8 bit planes for the middle.

And acquiring a pseudorandom key, and randomly scrambling the plaintext image to obtain key code subdata. Further, the pseudo-random key is obtained by a pseudo-random processing system known in the art, and the invention is not limited thereto. The random scrambling process is a known technical means in the field, and a person skilled in the art can randomly scramble the plaintext image by using a random scrambling algorithm according to actual requirements to obtain the key encoded subdata.

In a further embodiment, the same encoding operation procedure as the key frame data may be selected for the encoding operation of the predicted frame data, or other encoding operation procedures may also be used, which is not limited in the present invention.

Further, as a preferable scheme, in this embodiment, the encoding operation performed on the prediction frame data specifically includes:

and converting the prediction frame into prediction coding data through perceptual compression. Specifically, the perceptual compression uses the means known in the art, and those skilled in the art can select an appropriate perceptual compression technique to process the prediction frame into the prediction encoding data according to the actual situation.

In a further embodiment, the encoding operation for the key frame data may use the same encoding operation process as the predicted frame data, or may use other encoding operation processes, which is not limited in the present invention.

Further, as a preferred scheme, in this embodiment, the allocating specifically includes:

respectively calculating the master frequency proportion of the CPU frequency of each slave processing terminal and each video processing terminal to the sum of the CPU frequencies of all the slave processing terminals and the video processing terminals in the current network; for example, in a certain distributed video processing system, if the CPU frequencies of a plurality of terminals are 2.2GHz for the first terminal, 3.0GHz for the second terminal, and 2.8GHz for the third terminal, respectively, the sum of the CPU frequencies is 8GHz, where the main frequency ratio of the first terminal is 27.5%, the main frequency ratio of the second terminal is 37.5%, and the main frequency ratio of the third terminal is 35%.

Generating corresponding distribution weight according to the dominant frequency proportion; and performing distribution operation according to the distribution weight. The distribution weight is adjusted according to the main frequency proportion, and according to the above example, 27.5% of the plurality of preprocessed data can be distributed to the first terminal for processing, 37.5% of the plurality of preprocessed data can be distributed to the second terminal for processing, and 35% of the plurality of preprocessed data can be distributed to the third terminal for processing.

Further, as a preferable scheme, in the present embodiment, in the allocating process, the key frame data is mainly allocated to the slave processing terminal and the video processing terminal, where the CPU frequency is greater than a predetermined frequency. Specifically, the predetermined frequency is generally set to 2GHz-3GHz, and more preferably to 2.5GHz, so that it is ensured that processing for the key frame is stable, processing efficiency is ensured, and processing time is shortened.

In a further embodiment, the processing of the key frame may be performed entirely in the terminal with the maximum CPU frequency, and all the predicted frames are subjected to recalculation of the main frequency ratio according to the CPU frequencies of the remaining terminals, and then distributed. For example, in a distributed video processing system, if the CPU frequencies of a plurality of terminals are 2.2GHz for a first terminal, 3.0GHz for a second terminal, and 2.8GHz for a third terminal, respectively, the sum of the CPU frequencies is 8 GHz. If the second terminal is used as the processing device of the key frame (i.e. does not participate in the calculation of the main frequency proportion), the main frequency proportion of the first terminal is 44%, and the main frequency proportion of the third terminal is 56%.

Further, as a preferred solution, in this embodiment, when there is a network disconnection from the processing terminal, the following steps are performed:

judging the task completion degree; the task completion degree is obtained according to the received coded subdata and the pre-processing data distributed by the slave processing terminal; in this embodiment, the slave processing terminal only needs to generate one piece of encoded sub data and send the encoded sub data to the video processing terminal, so that the task completion degree can be calculated smoothly. Of course, if all the encoded sub-data are sent to the video processing terminal after all the received preprocessed data are processed by the slave processing terminal, the task completion degree is 0.

And determining unfinished preprocessed data according to the task completion degree and the received coded subdata, and redistributing according to the distribution weight. For example, in a certain distributed video processing system, if the CPU frequencies of a plurality of terminals are 2.2GHz for a first terminal, 3.0GHz for a second terminal, and 2.8GHz for a third terminal, respectively, the sum of the CPU frequencies is 8 GHz; 27.5% of the plurality of preprocessed data are allocated to terminal one for processing, 37.5% of the plurality of preprocessed data are allocated to terminal two for processing, and 35% of the plurality of preprocessed data are allocated to terminal three for processing. If the second terminal disconnects networking, the task completion degree is judged to be 50%, the rest 18.75% of the preprocessed data are obtained, and the weight is distributed and redistributed according to the dominant frequency proportion of the first terminal being 44% and the dominant frequency proportion of the third terminal being 56%.

Referring to fig. 2, the present invention further provides a video processing terminal using the distributed video processing method according to any of the foregoing embodiments, wherein the terminal is equipped with a hong meng system, including:

the system comprises a preprocessing module, a data processing module and a data processing module, wherein the preprocessing module is used for acquiring video source data and preprocessing the video source data to obtain a plurality of preprocessed data; the preprocessing data is obtained by preprocessing and cutting the video source data;

the docking module is used for acquiring terminal parameters of a plurality of slave processing terminals which are networked through docking; the terminal parameters comprise CPU frequency; the slave processing terminal is loaded with a Hongmon system;

the encoding module is used for executing encoding operation on the distributed preprocessed data and correspondingly generating encoded subdata;

the processing module is respectively connected with the preprocessing module, the docking module and the coding module and is used for distributing a plurality of preprocessing data to one or a plurality of slave processing terminals and the video processing terminal based on the terminal parameter of each slave processing terminal and the terminal parameter of the video processing terminal; so that one or more slave processing terminals and the video processing terminal execute coding operation on the distributed preprocessed data and correspondingly generate coded sub-data; and all the encoded subdata is collected to generate encoded data.

Further, as a preferred scheme, in this embodiment, the preprocessing data includes key frame data and prediction frame data;

the pre-processing performed by the pre-processing module comprises:

decomposing the video source data according to GOP to obtain a plurality of preprocessing groups;

and extracting the key frame and the prediction frame of each preprocessing group to respectively generate the key frame data and the prediction frame data.

Further, as a preferred solution, in this embodiment, the encoding operation performed by the encoding module for the key frame data specifically includes:

decomposing the key frame to obtain a bit plane, and arranging the bit plane from low to high according to a hierarchy;

selecting a plurality of high-order bit planes to reconstruct to obtain a plaintext image;

and acquiring a pseudorandom key, and randomly scrambling the plaintext image to obtain key code subdata.

Further, as a preferable scheme, in this embodiment, the encoding operation performed by the encoding module on the prediction frame data specifically includes:

and converting the prediction frame into prediction coding data through perceptual compression.

Further, as a preferred solution, in this embodiment, when the processing module executes the allocation operation, the processing module specifically includes:

respectively calculating the master frequency proportion of the CPU frequency of each slave processing terminal and each video processing terminal to the sum of the CPU frequencies of all the slave processing terminals and the video processing terminals in the current network;

generating corresponding distribution weight according to the dominant frequency proportion; and performing distribution operation according to the distribution weight.

Further, as a preferred solution, in this embodiment, when there is a network disconnection from the processing terminal, the processing module further executes the following steps:

judging the task completion degree; the task completion degree is obtained according to the received coded subdata and the pre-processing data distributed by the slave processing terminal;

and determining unfinished preprocessed data according to the task completion degree and the received coded subdata, and redistributing according to the distribution weight.

The present invention also provides a video processing terminal, comprising:

one or more memories storing computer programs;

one or more processors;

the computer program, when executed by one or more processors, implements the distributed video processing method of any of the preceding embodiments.

The invention also provides a computer readable medium storing a computer program which, when executed by one or more processors, implements the distributed video processing method of any of the preceding embodiments.

More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof.

It should be understood that equivalents and modifications of the technical solution and inventive concept thereof may occur to those skilled in the art, and all such modifications and alterations should fall within the scope of the appended claims.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:视频编码方法、装置、电子装置和存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类