CN114257868B - Video production method, device, equipment and storage medium - Google Patents
Video production method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN114257868B CN114257868B CN202111595355.6A CN202111595355A CN114257868B CN 114257868 B CN114257868 B CN 114257868B CN 202111595355 A CN202111595355 A CN 202111595355A CN 114257868 B CN114257868 B CN 114257868B
- Authority
- CN
- China
- Prior art keywords
- video
- layers
- frame number
- sub
- mirror
- 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
Links
- 238000004519 manufacturing process Methods 0.000 title claims abstract description 51
- 238000009877 rendering Methods 0.000 claims abstract description 80
- 238000000034 method Methods 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 12
- 230000000694 effects Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 4
- 238000009795 derivation Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 238000012804 iterative process Methods 0.000 description 1
- 230000001795 light effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44012—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving rendering scenes according to scene graphs, e.g. MPEG-4 scene graphs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
- H04N21/816—Monomedia components thereof involving special video data, e.g 3D video
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Image Generation (AREA)
Abstract
The application provides a video production method, a device, equipment and a storage medium, wherein a pre-rendered video is obtained by aiming at each sub-mirror to be produced, wherein the pre-rendered video is a video obtained by pre-rendering a group of pictures which do not need to be subjected to element replacement in the sub-mirrors and have a rendering frame number smaller than a preset frame number within a preset duration, each group of pictures comprises a plurality of layers, then according to the pre-rendered video, the sub-mirrors need to be subjected to the element replacement, and the sub-mirrors do not need to be subjected to the element replacement but have the rendering frame number larger than or equal to a frame number threshold, so as to obtain a target video corresponding to the sub-mirrors. According to the technical scheme, the video is directly generated on the image layer group which does not need element replacement and has the rendering frame number smaller than the preset frame number in the preset time length, so that the time of subsequent iteration is saved, the single iteration time can be shortened in a limited manufacturing period, the iteration version is increased, and the video quality is improved.
Description
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a video production method, apparatus, device, and storage medium.
Background
The video is a mainstream mode of propaganda means due to gorgeous special effects and high-strength visual impact, and when the video is produced, a demander cannot perfectly and accurately change the point to be propaganda into a plurality of sub-mirrors, so that a video is required to iterate from the beginning of production to the end of production, and in the production period, the faster the iteration speed, the more the versions are, the better the video quality is, so that the fast iterative production mode of the video is imperative.
In the prior art, after the video requirement is acquired, the existing special effect template is designed or searched, and then the template is directly changed, rendered and exported according to the requirement, and finally the video is generated by merging.
However, in the prior art, the pre-rendering step is not planned, so that in the iterative process, each rendering derivation needs to take a long time, so that the iterative speed is slowed down, the iterative version is reduced, and the video quality is reduced.
Disclosure of Invention
The embodiment of the application provides a video production method, a device, equipment and a storage medium, which are used for solving the problems of lower video quality and longer time consumption in the prior art.
In a first aspect, an embodiment of the present application provides a video production method, including:
For each sub-mirror to be manufactured, a pre-rendering video is obtained by pre-rendering a layer group which does not need element replacement in the sub-mirror and has a rendering frame number smaller than a preset frame number within a preset duration, wherein each layer group comprises a plurality of layers;
And according to the pre-rendered video, a plurality of layers of elements needing to be replaced in the sub-mirror, and a layer group of the sub-mirror which does not need to be replaced but has a rendered frame number greater than or equal to the frame number threshold value, performing video rendering to obtain a target video corresponding to the sub-mirror.
In one possible design of the first aspect, the acquiring the pre-rendered video includes:
Grouping a plurality of layers without replacing elements in the split mirrors to obtain a plurality of groups of layers;
Respectively carrying out preview treatment on each layer group, and obtaining the rendered frame number corresponding to each layer group after the preset time length;
determining at least one group of graph layer groups with the rendered frame number smaller than the frame number threshold value in the plurality of groups of graph layer groups as a pre-rendering object according to a preset frame number threshold value corresponding to the preset duration and the rendered frame number corresponding to each graph layer group;
And rendering the prerendered object to obtain the prerendered video.
In another possible design of the first aspect, the method further includes:
And merging the target videos corresponding to each sub-mirror to obtain the complete video after the manufacture.
In still another possible design of the first aspect, the video rendering is performed according to the pre-rendered video, the multiple layers of elements that need to be replaced in the sub-mirror, and the layer group of the sub-mirror that does not need to be replaced but has a rendered frame number greater than or equal to the frame number threshold, to obtain a target video corresponding to the sub-mirror, including:
replacing elements in a plurality of layers of the element to be replaced in the split mirror with target elements to obtain a plurality of layers after processing;
And importing the pre-rendered video, performing video rendering on the plurality of processed layers and the layer group which does not need to replace elements and has the rendered frame number larger than or equal to the frame number threshold in the sub-mirror, so as to obtain the target video corresponding to the sub-mirror.
Optionally, before grouping the multiple layers of the mirror that do not need to replace elements to obtain multiple groups of layer groups, the method further includes:
aiming at each sub-mirror, acquiring a newly designed layer and a loaded template layer to obtain all layers in the sub-mirror;
and determining a plurality of layers needing to replace elements and a plurality of layers needing not to replace elements from all layers of the split mirrors.
Optionally, the grouping the multiple layers of the mirror that do not need replacement elements to obtain multiple groups of layers of the mirror includes:
and dividing a plurality of layers without replacing elements in the split mirrors according to the number of preset layers to obtain the plurality of groups of layers.
In a second aspect, an embodiment of the present application provides a video production apparatus, including:
The device comprises a determining module, a processing module and a processing module, wherein the determining module is used for acquiring a pre-rendering video aiming at each sub-mirror to be manufactured, the pre-rendering video is obtained by pre-rendering a layer group which does not need element replacement in the sub-mirror and has a rendering frame number smaller than a preset frame number in a preset duration, and each layer group comprises a plurality of layers;
And the processing module is used for carrying out video rendering according to the pre-rendered video, a plurality of layers of elements needing to be replaced in the sub-mirror, and a layer group of elements needing not to be replaced in the sub-mirror, but the rendered frame number of which is larger than or equal to the frame number threshold value, so as to obtain a target video corresponding to the sub-mirror.
In one possible design of the second aspect, the determining module is specifically configured to:
Grouping a plurality of layers without replacing elements in the split mirrors to obtain a plurality of groups of layers;
Respectively carrying out preview treatment on each layer group, and obtaining the rendered frame number corresponding to each layer group after the preset time length;
determining at least one group of graph layer groups with the rendered frame number smaller than the frame number threshold value in the plurality of groups of graph layer groups as a pre-rendering object according to a preset frame number threshold value corresponding to the preset duration and the rendered frame number corresponding to each graph layer group;
And rendering the prerendered object to obtain the prerendered video.
In another possible design of the second aspect, the processing module is further configured to:
And merging the target videos corresponding to each sub-mirror to obtain the complete video after the manufacture.
In a further possible design of the second aspect, the processing module is specifically configured to:
replacing elements in a plurality of layers of the element to be replaced in the split mirror with target elements to obtain a plurality of layers after processing;
And importing the pre-rendered video, performing video rendering on the plurality of processed layers and the layer group which does not need to replace elements and has the rendered frame number larger than or equal to the frame number threshold in the sub-mirror, so as to obtain the target video corresponding to the sub-mirror.
Optionally, before grouping the multiple layers of the mirror that do not need to replace elements to obtain multiple groups of layers of the mirror, the processing module is further configured to:
aiming at each sub-mirror, acquiring a newly designed layer and a loaded template layer to obtain all layers in the sub-mirror;
and determining a plurality of layers needing to replace elements and a plurality of layers needing not to replace elements from all layers of the split mirrors.
Optionally, the processing module groups a plurality of layers of the mirror without replacing elements to obtain a plurality of groups of layers, which is specifically configured to:
and dividing a plurality of layers without replacing elements in the split mirrors according to the number of preset layers to obtain the plurality of groups of layers.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory;
The memory stores computer-executable instructions;
the processor executes the computer-executable instructions to cause the electronic device to perform the video production method as described in the first aspect and various possible designs described above.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, are configured to implement a video production method as described in the first aspect and in various possible designs.
In a fifth aspect, embodiments of the present application provide a computer program product comprising a computer program for implementing a video production method as described in the above first aspect and various possible designs when the computer program is executed by a processor.
According to the video production method, the device, the equipment and the storage medium, a pre-rendered video is obtained by aiming at each sub-mirror to be produced, wherein the pre-rendered video is obtained by pre-rendering a group of pictures which do not need to be subjected to element replacement in the sub-mirrors and have a rendering frame number smaller than a preset frame number within a preset duration, each group of pictures comprises a plurality of layers, and then according to the pre-rendered video, the sub-mirrors need to replace the plurality of layers of elements, and the sub-mirrors do not need to replace the elements but have the rendering frame number larger than or equal to a frame number threshold value, video rendering is carried out on the group of pictures, so that a target video corresponding to the sub-mirrors is obtained. According to the technical scheme, the video is directly generated on the image layer group which does not need element replacement and has the rendering frame number smaller than the preset frame number in the preset time length, so that the time of subsequent iteration is saved, the single iteration time can be shortened in a limited manufacturing period, the iteration version is increased, and the video quality is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic flow chart of a first embodiment of a video production method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a second embodiment of a video production method according to the embodiment of the present application;
fig. 3 is a schematic flow chart of a third embodiment of a video production method according to the embodiment of the present application;
Fig. 4 is a schematic structural diagram of a video production device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Specific embodiments of the present disclosure have been shown by way of the above drawings and will be described in more detail below. These drawings and the written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the disclosed concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
Before describing embodiments of the present application, the terminology and background of the application will be explained first:
Rendering: the method refers to a process of exporting the video from software into a playable file after the video is produced in the video production software.
Time axis: refers to the horizontal axis used to record video time in video production software.
Layer (c): in video production, a layer of elements, which are overlapped on a video time axis from top to bottom, may be characters, pictures, light effects and the like.
Split mirror (Storyboard): the feature board is various image media such as movies, animations, dramas, advertisements, music video tapes, etc., and before actual shooting or drawing, the composition of the images is described in a graphic manner, and continuous pictures are decomposed in units of one-time mirror operation, and the mirror operation manner, time length, contrast, special effects, etc. are marked.
The video is a mainstream mode of propaganda means such as society, enterprises, individuals and the like due to gorgeous special effects and high-strength visual impact, and when the video is manufactured, a demander cannot perfectly and accurately change the point to be propaganda into a plurality of sub-mirrors, so that a video is required to be manufactured from beginning to end, and in a manufacturing period, the more iterative speed is high, the more versions are, the better the video quality is, and the manufacturing mode of video quick iteration is imperative.
In the prior art, after the video requirement is acquired, the existing special effect template is designed or searched, and then the template is directly changed, rendered and exported according to the requirement, and finally the video is generated by merging.
However, the prior art scheme does not plan the pre-rendering step, specifically does not comprehensively consider whether to perform the pre-rendering step according to the overall working period, the requirement acquisition condition and the template performance consumption condition, so that in the iteration process, each rendering derivation needs to take a long time, the iteration speed is slowed down, the iteration version is reduced, and the video quality is reduced.
The technical conception process of the inventor aiming at the technical problems is as follows: in the prior art, in the process of making a video through multiple iterations, aiming at a sub-mirror to be made, whether a layer needing element replacement is not distinguished, but the subsequent processing such as direct change is performed by using a template, the data size is large during iteration, the time consumption is long, and the inventor considers that if the layer needing no element replacement is extracted in advance and only the layer needing element replacement is processed through iteration, the time cost is greatly reduced and the accuracy of making the video is improved.
The technical scheme of the application is described in detail through specific examples. It should be noted that the following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of a video production method according to an embodiment of the present application. As shown in fig. 1, the video production method may be implemented by:
And 11, acquiring a prerendered video for each sub-mirror to be manufactured.
The pre-rendered video is a video obtained by pre-rendering a layer group which does not need element replacement in a bisector and has a rendering frame number smaller than a preset frame number in a preset time period, and each layer group comprises a plurality of layers.
In this step, the configuration of the image is described in a graph before the actual shooting or drawing for various image media, the continuous image is decomposed in a unit of one-shot mirror, and the mirror-moving mode, the time length, the contrast, the special effect, and the like are marked as split mirrors, and the requirement can be split into a plurality of split mirrors, namely a plurality of split mirrors to be manufactured, according to the different requirements of the image media, namely the video.
Optionally, for each sub-mirror to be manufactured, a video obtained by pre-rendering a group of pictures with a number of frames smaller than a preset number of frames in a preset duration without element replacement in the sub-mirrors is called a pre-rendered video.
In one possible implementation, a plurality of layers without replacing elements in the split mirrors are grouped to obtain a plurality of groups of layers, each group of layers is subjected to preview processing respectively, the rendered frame number corresponding to each group of layers is obtained after a preset time length, then at least one group of layers with the rendered frame number smaller than the frame number threshold in the plurality of groups of layers is determined to be a pre-rendered object according to the frame number threshold corresponding to the preset time length and the rendered frame number corresponding to each group of layers, and finally the pre-rendered object is subjected to rendering processing to obtain a pre-rendered video.
And 12, according to the pre-rendered video, performing video rendering on a plurality of layers of which the elements need to be replaced in the sub-mirror, and on a layer group of which the number of rendered frames is greater than or equal to a frame number threshold value without replacing the elements in the sub-mirror, so as to obtain a target video corresponding to the sub-mirror.
In this step, for any of the sub-mirrors, the sub-mirror is processed, a pre-rendered video has been determined, other layers other than the layer group to which the pre-rendered video relates are hidden, then the pre-rendered video is rendered and output, after the output is completed, the output video is imported again into the video creation software as a new layer, and all the layers in the layer group to which the pre-rendered video relates are deleted.
Further, replacing elements in a plurality of layers of the element to be replaced in the split mirror with target elements to obtain a plurality of layers after processing, wherein the target elements are elements required in the production requirement of the video.
And then, importing the processed multiple layers, the prerendered video and the layer groups which do not need replacing elements in the sub-mirrors and have the rendered frame number larger than or equal to the frame number threshold value into video production software to form videos corresponding to the sub-mirrors, namely target videos.
In one possible implementation, elements in a plurality of layers of elements needing to be replaced in the sub-mirror are replaced with target elements, a plurality of layers after processing are obtained, pre-rendering videos are imported, the plurality of layers after processing, and the layer groups of the sub-mirror, which do not need to replace elements but have the number of rendered frames greater than or equal to a frame number threshold, are subjected to video rendering, so that target videos corresponding to the sub-mirror are obtained.
After the step, combining the target videos corresponding to each sub-mirror to obtain the complete video after the manufacture.
Optionally, connecting the target videos corresponding to the sub-mirrors according to the sequence of the sub-mirrors to form a complete video, which is called sub-mirror synthesis.
According to the video manufacturing method provided by the embodiment of the application, the pre-rendering video is obtained by pre-rendering the image groups which do not need to be subjected to element replacement in the sub-mirrors and have the rendering frame number smaller than the preset frame number in the preset time period, each image group comprises a plurality of image layers, and then according to the pre-rendering video, the image layers which need to be subjected to element replacement in the sub-mirrors and the image groups which do not need to be subjected to element replacement but have the rendering frame number larger than or equal to the frame number threshold value in the sub-mirrors are subjected to video rendering, so that the target video corresponding to the sub-mirrors is obtained. According to the technical scheme, the video is directly generated on the image layer group which does not need element replacement and has the rendering frame number smaller than the preset frame number in the preset time length, so that the time of subsequent iteration is saved, the single iteration time can be shortened in a limited manufacturing period, the iteration version is increased, and the video quality is improved.
On the basis of the above embodiment, fig. 2 is a schematic flow chart of a second embodiment of a video production method according to the embodiment of the present application. As shown in fig. 2, the above step 11 may be implemented by:
And step 21, grouping a plurality of layers without replacing elements in the split mirrors to obtain a plurality of groups of layers.
In this step, for any of the mirrors, according to the autonomous design (newly designed layers) or/and the existing template (loaded template layers), the number of all the layers of the mirror can be determined to be N, and among the layers, a plurality of layers that do not need to replace elements, for example, M, can be selected, and the M layers are grouped to obtain P groups of layers.
Therefore, before the step, a newly designed layer and a loaded template layer are acquired for each sub-mirror, so that all layers in the sub-mirror are obtained.
Further, a plurality of layers requiring replacement elements and a plurality of layers requiring no replacement elements are determined from all layers of the split mirrors.
Optionally, for a plurality of layers in the split mirror without replacing elements, dividing according to the number of preset layers to obtain a plurality of groups of layers.
Specifically, the M layers are divided into P groups of layers according to a preset layer number (e.g., every 5 layers are one layer).
As an example, the number N of all layers in the micromirror a is 120, where the number M of layers without replacing elements is 60, and the number P of layers is 60/5=12 groups if every 5 is one layer group.
And 22, respectively carrying out preview treatment on each layer group, and obtaining the rendered frame number corresponding to each layer group after a preset time length.
In this step, for each group of layers, preview processing is required to determine the rendered frame number corresponding to the group of layers after a preset duration.
Alternatively, as an example, table 1 is a rendered frame table under preview processing provided in an embodiment of the present application. As shown in fig. 1:
TABLE 1
Group number of drawing | 30S previewable frame number |
1 | 5 |
2 | 50 |
3 | 3 |
4 | 2 |
Specifically, after the preview process is performed on the layer group 1, the layer group 2, the layer group 3 and the layer group 4 respectively and the preset duration (taking 30 seconds as an example), it is known that the rendered frame number corresponding to the layer group 1 is 5 frames, the rendered frame number corresponding to the layer group 2 is 50 frames, the rendered frame number corresponding to the layer group 3 is 3 frames and the rendered frame number corresponding to the layer group 4 is 2 frames.
Step 23, determining at least one group of graph groups with the rendered frame number smaller than the frame number threshold value in the plurality of groups of graph groups as a pre-rendering object according to the frame number threshold value corresponding to the preset duration and the rendered frame number corresponding to each graph group.
In this step, after the preset duration, the number of rendered frames after the preset duration corresponding to the plurality of groups of layers without replacing elements is obtained, and the number of rendered frames is limited, so as to obtain the pre-rendered object.
Alternatively, as an example, following the example of table 1, and assuming that the threshold number of frames corresponding to the preset duration of 30 seconds is 20 frames, the pre-rendering object may be group 1, group 3, and group 4.
Specifically, the number of rendered frames corresponding to layer group 1 is 5 frames less than 20 frames, the number of rendered frames corresponding to layer group 2 is 50 frames greater than 20 frames, the number of rendered frames corresponding to layer group 3 is 3 frames less than 20 frames, and the number of rendered frames corresponding to layer group 4 is 2 frames less than 20 frames.
Optionally, the pre-rendering of the object, namely, the layer group with the rendered frame number smaller than the frame number threshold value after the preset duration in the plurality of layer groups is regarded as a large-load layer group.
The large-load image layer group only needs to be rendered once in the pre-rendering of the first iteration, and the large-load image layer group is used as a complete existing video to participate in rendering in the subsequent iteration, so that the time of the subsequent iteration is greatly reduced, the single iteration time can be shortened in a limited manufacturing period, the iteration version is increased, and the video quality is improved.
And step 24, rendering the prerendered object to obtain prerendered video.
In the step, rendering processing is carried out on the determined pre-rendering object so as to obtain pre-rendering video.
Optionally, as an example, following the above step example, rendering is performed on the layer group 1, the layer group 3, and the layer group 4 to obtain the pre-rendered video corresponding to the micromirror a.
According to the video production method provided by the embodiment of the application, a plurality of layers without replacing elements in the split mirrors are grouped to obtain a plurality of groups of layers, each group of layers is subjected to preview processing respectively, the rendered frame number corresponding to each group of layers is obtained after a preset time length, and then at least one group of layers with the rendered frame number smaller than the frame number threshold in the plurality of groups of layers is determined to be a pre-rendered object according to the frame number threshold corresponding to the preset time length and the rendered frame number corresponding to each group of layers, and then the pre-rendered object is subjected to rendering processing to obtain the pre-rendered video. The scheme provides a basis for the subsequent determination of the target video by grouping a plurality of layers without replacing elements.
On the basis of the above embodiments, fig. 3 is a schematic flow chart of a third embodiment of a video production method according to the present application. As shown in fig. 3, the above step 12 may be implemented by:
And step 31, replacing elements in the layers of the elements to be replaced in the split mirrors with target elements to obtain a plurality of processed layers.
In this step, in any of the sub mirrors, in addition to the layers without replacing elements given in the above embodiments, a plurality of layers with replacing elements are included, and the elements with replacing elements in the layers are replaced with target elements, and then a plurality of layers after processing are obtained.
In one possible implementation, the number of all layers of the split mirror is N, the number of layers of the multiple layers that do not require a replacement element is M, and the layers that do require a replacement element are N-M.
Further, the elements in the N-M layers are replaced by target elements, and then the processed N-M layers are obtained.
The target element is an element required in the video production requirement.
And step 32, importing the pre-rendered video, processing the plurality of layers, and performing video rendering on the layer group which does not need to replace elements in the sub-mirror and has the rendered frame number greater than or equal to the frame number threshold value to obtain a target video corresponding to the sub-mirror.
In this step, the group of layers that does not need to replace elements in the sub-mirror and that has been rendered with a frame number greater than or equal to the frame number threshold, the pre-rendered video determined in the above embodiment, and the processed multiple layers are imported, so as to obtain the target video corresponding to the sub-mirror.
Alternatively, as an example, next to the above example, a layer group that does not require a replacement element but has a rendered frame number greater than or equal to the frame number threshold may be layer group 2.
Further, a pre-rendered video (the video corresponding to the pre-rendered video of the layer group 1, the layer group 3 and the layer group 4) is imported, a plurality of layers (the layers after the element replacement of other layers) are processed, the layer group 2 is added to video production software, and the export function of the video production software is selected to obtain the video corresponding to the split mirror.
Alternatively, this process is referred to as rendering export.
According to the video production method provided by the embodiment of the application, the elements in the layers needing to be replaced in the sub-mirrors are replaced with target elements, so that the processed layers are obtained, the pre-rendering video is imported, the processed layers and the layer group which does not need to be replaced but has the number of frames larger than or equal to the frame number threshold in the sub-mirrors are subjected to video rendering, and the target video corresponding to the sub-mirrors is obtained.
On the basis of the above method embodiment, fig. 4 is a schematic structural diagram of a video production device according to an embodiment of the present application. As shown in fig. 4, the apparatus includes: a determination module 41 and a processing module 42.
The determining module 41 is configured to obtain, for each sub-mirror to be manufactured, a pre-rendered video, where the pre-rendered video is a video obtained by pre-rendering, in advance, groups of pictures in the sub-mirrors that do not need to be replaced with elements and have a rendering frame number within a preset duration that is less than a preset frame number, and each group of pictures includes multiple layers;
and the processing module 42 is configured to render the video according to the pre-rendered video, wherein the multiple layers of the element need to be replaced in the sub-mirror, and the layer group of the sub-mirror, which does not need to be replaced but has a rendered frame number greater than or equal to the frame number threshold, is used to obtain the target video corresponding to the sub-mirror.
In one possible design of the embodiment of the present application, the determining module 41 is specifically configured to:
Grouping a plurality of layers without replacing elements in the split mirrors to obtain a plurality of groups of layers;
Respectively carrying out preview treatment on each layer group, and obtaining the rendered frame number corresponding to each layer group after the preset time length;
determining at least one group of graph layer groups with the rendered frame number smaller than the frame number threshold value in the plurality of groups of graph layer groups as a pre-rendering object according to a preset frame number threshold value corresponding to the preset duration and the rendered frame number corresponding to each graph layer group;
And rendering the prerendered object to obtain the prerendered video.
In another possible design of the embodiment of the present application, the processing module 42 is further configured to:
And merging the target videos corresponding to each sub-mirror to obtain the complete video after the manufacture.
In yet another possible design of the embodiment of the present application, the processing module 42 is specifically configured to:
replacing elements in a plurality of layers of the element to be replaced in the split mirror with target elements to obtain a plurality of layers after processing;
And importing the pre-rendered video, performing video rendering on the plurality of processed layers and the layer group which does not need to replace elements and has the rendered frame number larger than or equal to the frame number threshold in the sub-mirror, so as to obtain the target video corresponding to the sub-mirror.
Optionally, before grouping the multiple layers of the mirror that do not need to replace elements to obtain multiple groups of layers, the processing module 42 is further configured to:
aiming at each sub-mirror, acquiring a newly designed layer and a loaded template layer to obtain all layers in the sub-mirror;
and determining a plurality of layers needing to replace elements and a plurality of layers needing not to replace elements from all layers of the split mirrors.
Optionally, the processing module 42 is configured to group multiple layers of the mirror that do not need to replace elements, to obtain multiple groups of layers of the mirror, and specifically is configured to:
and dividing a plurality of layers without replacing elements in the split mirrors according to the number of preset layers to obtain the plurality of groups of layers.
The video production device provided by the embodiment of the application can be used for executing the technical scheme corresponding to the video production method in the embodiment, and the implementation principle and the technical effect are similar, and are not repeated here.
It should be noted that, it should be understood that the division of the modules of the above apparatus is merely a division of a logic function, and may be fully or partially integrated into a physical entity or may be physically separated. And these modules may all be implemented in software in the form of calls by the processing element; or can be realized in hardware; the method can also be realized in a form of calling software by a processing element, and the method can be realized in a form of hardware by a part of modules. In addition, all or part of the modules can be integrated together or can be independently implemented. The processing element described herein may be an integrated circuit having signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in a software form.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 5, the electronic device may include: a processor 50, a memory 51, and computer program instructions stored on the memory 51 and executable on the processor 50.
The electronic equipment can be a mobile phone, a computer, a tablet, a computer and the like.
Processor 50 executes computer-executable instructions stored in memory 51, causing processor 50 to perform the aspects of the embodiments described above. The processor 50 may be a general-purpose processor including a central processing unit CPU, a network processor (network processor, NP), etc.; but may also be a digital signal processor DSP, an application specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.
The memory 51 is connected to the processor 50 via a system bus and communicates with each other, the memory 51 being adapted to store computer program instructions.
In one possible implementation, the electronic device may further include: a display for displaying video.
The system bus may be a peripheral component interconnect (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The system bus may be classified into an address bus, a data bus, a control bus, and the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The electronic device provided by the embodiment of the application can be used for executing the technical scheme corresponding to the video production method in the embodiment, and the implementation principle and the technical effect are similar, and are not repeated here.
The embodiment of the application also provides a chip for running the instruction, which is used for executing the technical scheme of the video manufacturing method in the embodiment.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores computer instructions, and when the computer instructions run on the electronic equipment, the electronic equipment is caused to execute the technical scheme of the video production method in the embodiment.
The embodiment of the application also provides a computer program product, which comprises a computer program, wherein the computer program is used for executing the technical scheme of the video production method in the embodiment when being executed by a processor.
The computer readable storage medium described above may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. A readable storage medium can be any available medium that can be accessed by a general purpose or special purpose electronic device.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (8)
1. A method of video production, comprising:
For each sub-mirror to be manufactured, a pre-rendering video is obtained by pre-rendering a layer group which does not need element replacement in the sub-mirror and has a rendering frame number smaller than a frame number threshold value within a preset duration, wherein each layer group comprises a plurality of layers;
According to the pre-rendered video, a plurality of layers of elements needing to be replaced in the sub-mirror, and a layer group of the sub-mirror which does not need to be replaced but has a rendered frame number greater than or equal to the frame number threshold value, performing video rendering to obtain a target video corresponding to the sub-mirror;
combining the target videos corresponding to each sub-mirror to obtain a complete video which is manufactured;
The obtaining the prerendered video includes:
Grouping a plurality of layers without replacing elements in the split mirrors to obtain a plurality of groups of layers;
Respectively carrying out preview treatment on each layer group, and obtaining the rendered frame number corresponding to each layer group after the preset time length;
determining at least one group of graph layer groups with the rendered frame number smaller than the frame number threshold value in the plurality of groups of graph layer groups as a pre-rendering object according to a preset frame number threshold value corresponding to the preset duration and the rendered frame number corresponding to each graph layer group;
And rendering the prerendered object to obtain the prerendered video.
2. The method according to claim 1, wherein the video rendering is performed according to the pre-rendered video, by a plurality of layers of elements that need to be replaced in the sub-mirror, and by a layer group of layers of elements that do not need to be replaced in the sub-mirror but have a rendered frame number greater than or equal to the frame number threshold, to obtain a target video corresponding to the sub-mirror, including:
replacing elements in a plurality of layers of the element to be replaced in the split mirror with target elements to obtain a plurality of layers after processing;
And importing the pre-rendered video, performing video rendering on the plurality of processed layers and the layer group which does not need to replace elements and has the rendered frame number larger than or equal to the frame number threshold in the sub-mirror, so as to obtain the target video corresponding to the sub-mirror.
3. The method of claim 2, wherein before grouping the plurality of layers in the mirror that do not require replacement elements to obtain a plurality of groups of layers, the method further comprises:
aiming at each sub-mirror, acquiring a newly designed layer and a loaded template layer to obtain all layers in the sub-mirror;
and determining a plurality of layers needing to replace elements and a plurality of layers needing not to replace elements from all layers of the split mirrors.
4. The method according to claim 2, wherein grouping the plurality of layers of the mirror that do not require replacement elements to obtain a plurality of groups of layers comprises:
and dividing a plurality of layers without replacing elements in the split mirrors according to the number of preset layers to obtain the plurality of groups of layers.
5. A video production apparatus, comprising:
the device comprises a determining module, a processing module and a processing module, wherein the determining module is used for acquiring a pre-rendering video aiming at each sub-mirror to be manufactured, wherein the pre-rendering video is obtained by pre-rendering a layer group which does not need element replacement in the sub-mirror and has a rendering frame number smaller than a frame number threshold value within a preset duration, and each layer group comprises a plurality of layers;
the processing module is used for carrying out video rendering according to the pre-rendered video, a plurality of layers of elements needing to be replaced in the sub-mirror, and a layer group of elements needing not to be replaced in the sub-mirror but having a rendered frame number greater than or equal to the frame number threshold value, so as to obtain a target video corresponding to the sub-mirror; combining the target videos corresponding to each sub-mirror to obtain a complete video which is manufactured;
the determining module is specifically configured to:
Grouping a plurality of layers without replacing elements in the split mirrors to obtain a plurality of groups of layers;
Respectively carrying out preview treatment on each layer group, and obtaining the rendered frame number corresponding to each layer group after the preset time length;
determining at least one group of graph layer groups with the rendered frame number smaller than the frame number threshold value in the plurality of groups of graph layer groups as a pre-rendering object according to a preset frame number threshold value corresponding to the preset duration and the rendered frame number corresponding to each graph layer group;
And rendering the prerendered object to obtain the prerendered video.
6. An electronic device, comprising: a processor, a memory and computer program instructions stored on the memory and executable on the processor, which processor when executing the computer program instructions implements the video production method according to any one of the preceding claims 1 to 4.
7. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the video production method of any one of the preceding claims 1 to 4.
8. A computer program product comprising a computer program for implementing the video production method according to any of the preceding claims 1 to 4 when executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111595355.6A CN114257868B (en) | 2021-12-23 | 2021-12-23 | Video production method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111595355.6A CN114257868B (en) | 2021-12-23 | 2021-12-23 | Video production method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114257868A CN114257868A (en) | 2022-03-29 |
CN114257868B true CN114257868B (en) | 2024-06-21 |
Family
ID=80794817
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111595355.6A Active CN114257868B (en) | 2021-12-23 | 2021-12-23 | Video production method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114257868B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115883818B (en) * | 2022-11-29 | 2023-09-19 | 北京优酷科技有限公司 | Video frame number automatic counting method and device, electronic equipment and storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103678631A (en) * | 2013-12-19 | 2014-03-26 | 华为技术有限公司 | Page rendering method and device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105049929A (en) * | 2015-08-11 | 2015-11-11 | 广东欧珀移动通信有限公司 | A video rendering method and device |
CN111724293B (en) * | 2019-03-22 | 2023-07-28 | 华为技术有限公司 | Image rendering method and device and electronic equipment |
EP3939248B1 (en) * | 2020-05-22 | 2023-09-27 | Google LLC | Re-timing objects in video via layered neural rendering |
CN112929728A (en) * | 2021-01-20 | 2021-06-08 | 北京奇艺世纪科技有限公司 | Video rendering method, device and system, electronic equipment and storage medium |
CN112860944B (en) * | 2021-02-05 | 2023-07-25 | 北京百度网讯科技有限公司 | Video rendering method, apparatus, device, storage medium, and computer program product |
-
2021
- 2021-12-23 CN CN202111595355.6A patent/CN114257868B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103678631A (en) * | 2013-12-19 | 2014-03-26 | 华为技术有限公司 | Page rendering method and device |
Also Published As
Publication number | Publication date |
---|---|
CN114257868A (en) | 2022-03-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10929720B2 (en) | Image processing method, image processing apparatus, and computer storage medium | |
US20200327079A1 (en) | Data processing method and device, dma controller, and computer readable storage medium | |
CN104794116A (en) | Layout method and device for elements in page | |
US11935214B2 (en) | Video content removal using flow-guided adaptive learning | |
CN114257868B (en) | Video production method, device, equipment and storage medium | |
CN104516828A (en) | Method and device for removing caching data | |
US9830731B2 (en) | Methods of a graphics-processing unit for tile-based rendering of a display area and graphics-processing apparatus | |
CN112738640A (en) | Method and device for determining subtitles of video stream and readable storage medium | |
CN107807807A (en) | The signal source Zoom method and system of display window | |
CN111476729A (en) | Target identification method and device | |
CN108280135B (en) | Method and device for realizing visualization of data structure and electronic equipment | |
CN107613046B (en) | Filter pipeline system, image data processing method and device and electronic equipment | |
CN115119014B (en) | Video processing method, training method and device for interpolation frame number model | |
CN111191161B (en) | Page display method, storage medium, electronic device and system | |
CN107977923B (en) | Image processing method, image processing device, electronic equipment and computer readable storage medium | |
CN112837256B (en) | Circuit system and detection method for Harris corner detection | |
CN110782389B (en) | Image data byte alignment method and terminal | |
CN111459711A (en) | Memory recovery method and system | |
CN115034351B (en) | Data processing method, convolutional neural network training method and device and FPGA | |
CN113722623B (en) | Data processing method, device, electronic equipment and storage medium | |
CN109299125A (en) | Database update method and device | |
CN112541435B (en) | Image processing method, device and storage medium | |
CN111831207B (en) | Data processing method, device and equipment thereof | |
US10643312B2 (en) | Smoothed image generating device, abnormality determining device, and smoothed image generating method | |
CN111708502A (en) | Screen adaptation method and device |
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 |