CN114257868A - Video production method, device, equipment and storage medium - Google Patents

Video production method, device, equipment and storage medium Download PDF

Info

Publication number
CN114257868A
CN114257868A CN202111595355.6A CN202111595355A CN114257868A CN 114257868 A CN114257868 A CN 114257868A CN 202111595355 A CN202111595355 A CN 202111595355A CN 114257868 A CN114257868 A CN 114257868A
Authority
CN
China
Prior art keywords
video
rendering
frame number
layers
partial 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.)
Granted
Application number
CN202111595355.6A
Other languages
Chinese (zh)
Other versions
CN114257868B (en
Inventor
蔡森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202111595355.6A priority Critical patent/CN114257868B/en
Publication of CN114257868A publication Critical patent/CN114257868A/en
Application granted granted Critical
Publication of CN114257868B publication Critical patent/CN114257868B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing 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/44012Processing 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/816Monomedia 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, in the method, a pre-rendering video is obtained by aiming at each partial mirror to be produced, the pre-rendering video is a video obtained by pre-rendering a layer group which does not need element replacement in the partial mirror and has a rendering frame number smaller than a preset frame number in a preset time length, each layer group comprises a plurality of layers, and then according to the pre-rendering video, the layers of the elements need to be replaced in the partial mirror, and the layer group which does not need the replacement elements but has the rendering frame number larger than or equal to a frame number threshold value in the partial mirror is subjected to video rendering to obtain a target video corresponding to the partial mirror. According to the technical scheme, the video is directly generated for the layer group which does not need element replacement and has the rendering frame number smaller than the preset frame number in the preset duration, so that the time of subsequent iteration is saved, the single iteration time can be shortened, the iteration version can be increased, and the video quality can be improved in the limited manufacturing period.

Description

Video production method, device, equipment and storage medium
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 becomes a mainstream mode of propaganda means gradually due to gorgeous special effects and high-strength visual impact force, and during video production, a demander often cannot perfectly and accurately change points needing propaganda into separate mirrors one by one, so that one video is produced from the beginning to the end, a plurality of versions are often required to be iterated, and in a production period, the iteration speed is higher, the versions are more, the video quality is better, and the production mode of video quick iteration is imperative.
In the prior art, after video requirements are obtained, existing special effect templates are designed or searched, and the video is directly changed, rendered and exported on the templates according to the requirements and finally combined to generate the video.
However, in the prior art, the pre-rendering step is not planned, so that in the iteration process, a long time is required for rendering derivation each time, thereby slowing down the iteration speed, further reducing the iteration version and lowering the video quality.
Disclosure of Invention
The embodiment of the application provides a video production method, a video production device, video production equipment and a storage medium, which are used for solving the problems that the quality of produced videos is low and the time consumption is long in the prior art.
In a first aspect, an embodiment of the present application provides a video production method, including:
aiming at each partial mirror to be manufactured, a pre-rendering video is obtained, wherein the pre-rendering video is a video obtained by pre-rendering a layer group which does not need element replacement and has a rendering frame number smaller than a preset frame number within a preset time length in the partial mirror in advance, and each layer group comprises a plurality of layers;
and according to the pre-rendered video, the plurality of layers of the elements which need to be replaced in the partial mirror and the layer group which does not need to replace the elements but has the rendered frame number greater than or equal to the frame number threshold value in the partial mirror, performing video rendering to obtain a target video corresponding to the partial mirror.
In a possible design of the first aspect, the obtaining of the pre-rendered video includes:
grouping a plurality of image layers without replacing elements in the partial mirror to obtain a plurality of groups of image layer groups;
previewing each layer group, and acquiring the rendered frame number corresponding to each layer group after the preset time length;
determining at least one group of image layer groups of which the rendered frame number is smaller than the frame number threshold value in the multiple groups of image layer groups as pre-rendering objects according to the frame number threshold value corresponding to the preset duration and the rendered frame number corresponding to each image layer group;
and rendering the pre-rendering object to obtain the pre-rendering 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 a complete video after the manufacturing.
In yet another possible design of the first aspect, the performing, according to the pre-rendered video, video rendering on a plurality of layers in the partial mirror that need replacing elements and a layer group in the partial mirror that does not need replacing elements but has a rendered frame number greater than or equal to the frame number threshold to obtain a target video corresponding to the partial mirror includes:
replacing elements in the multiple layers of the elements needing to be replaced in the partial mirror with target elements to obtain multiple processed layers;
and importing the pre-rendered video, the processed layers and the layer group which does not need to replace elements but has rendered frame number greater than or equal to the frame number threshold in the split mirror to perform video rendering, so as to obtain the target video corresponding to the split mirror.
Optionally, before grouping the plurality of image layers without replacing elements in the partial mirror to obtain a plurality of groups of image layer groups, the method further includes:
aiming at each partial mirror, acquiring a newly designed layer and a loaded template layer to obtain all layers in the partial mirror;
and determining a plurality of layers which need replacing elements and a plurality of layers which do not need replacing elements from all the layers of the partial mirror.
Optionally, the grouping a plurality of image layers without replacing elements in the partial mirror to obtain a plurality of groups of image layer groups includes:
and aiming at a plurality of layers without replacing elements in the split mirror, dividing according to a preset number of layers to obtain a plurality of groups of image layers.
In a second aspect, an embodiment of the present application provides a video production apparatus, including:
the device comprises a determining module, a pre-rendering module and a processing module, wherein the determining module is used for acquiring a pre-rendering video for each partial mirror to be manufactured, the pre-rendering video is a video obtained by pre-rendering a layer group which does not need element replacement and has a rendering frame number smaller than a preset frame number in a preset time length in the partial mirror, 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, the plurality of layers needing replacing elements in the split mirror and the layer group which does not need replacing elements but has rendered frame number greater than or equal to the frame number threshold value in the split mirror to obtain a target video corresponding to the split mirror.
In a possible design of the second aspect, the determining module is specifically configured to:
grouping a plurality of image layers without replacing elements in the partial mirror to obtain a plurality of groups of image layer groups;
previewing each layer group, and acquiring the rendered frame number corresponding to each layer group after the preset time length;
determining at least one group of image layer groups of which the rendered frame number is smaller than the frame number threshold value in the multiple groups of image layer groups as pre-rendering objects according to the frame number threshold value corresponding to the preset duration and the rendered frame number corresponding to each image layer group;
and rendering the pre-rendering object to obtain the pre-rendering 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 a complete video after the manufacturing.
In yet another possible design of the second aspect, the processing module is specifically configured to:
replacing elements in the multiple layers of the elements needing to be replaced in the partial mirror with target elements to obtain multiple processed layers;
and importing the pre-rendered video, the processed layers and the layer group which does not need to replace elements but has rendered frame number greater than or equal to the frame number threshold in the split mirror to perform video rendering, so as to obtain the target video corresponding to the split mirror.
Optionally, before grouping the plurality of layers without replacing elements in the partial mirror to obtain a plurality of groups of layer groups, the processing module is further configured to:
aiming at each partial mirror, acquiring a newly designed layer and a loaded template layer to obtain all layers in the partial mirror;
and determining a plurality of layers which need replacing elements and a plurality of layers which do not need replacing elements from all the layers of the partial mirror.
Optionally, the processing module groups a plurality of layers in the partial mirror that do not need to replace elements to obtain a plurality of groups of layer groups, and is specifically configured to:
and aiming at a plurality of layers without replacing elements in the split mirror, dividing according to a preset number of layers to obtain a plurality of groups of image 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 a video production method as described in the first aspect and various possible designs above.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the computer-readable storage medium is configured to implement the video production method as described in the first aspect and various possible designs.
In a fifth aspect, embodiments of the present application provide a computer program product comprising a computer program that, when executed by a processor, is configured to implement a video production method as described in the first aspect and various possible designs.
According to the video manufacturing method, the video manufacturing device, the video manufacturing equipment and the storage medium, a pre-rendering video is obtained by aiming at each partial mirror to be manufactured, the pre-rendering video is a video obtained by pre-rendering a layer group which does not need element replacement and has a rendering frame number smaller than a preset frame number within a preset time length in the partial mirror, each layer group comprises a plurality of layers, then according to the pre-rendering video, the layers of elements need to be replaced in the partial mirror, and the layer group which does not need the replacement of the elements but has the rendering frame number larger than or equal to a frame number threshold value in the partial mirror is subjected to video rendering, and a target video corresponding to the partial mirror is obtained. According to the technical scheme, the video is directly generated for the layer group which does not need element replacement and has the rendering frame number smaller than the preset frame number in the preset duration, so that the time of subsequent iteration is saved, the single iteration time can be shortened, the iteration version can be increased, and the video quality can be improved in the limited manufacturing period.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic flowchart of a video production method according to a first embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a second embodiment of a video production method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a third embodiment of a video production method according to the present application;
fig. 4 is a schematic structural diagram of a video production apparatus 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.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Before introducing the embodiments of the present application, the terms and background of the present application are explained first:
rendering: the method refers to a process of exporting a video from software into a playable file after finishing video production in video production software.
Time axis: refers to the horizontal axis used in video production software to record video time.
Layer drawing: in video production, a layer of elements, such as characters, pictures, lighting effects and the like, are superposed on a video time axis from top to bottom.
Partial mirror (Storyboard): the storyboard is a picture medium of various images such as movies, animation, drama, advertisement, and video tapes, and the composition of the images is illustrated in a graph form before actual shooting or drawing, and continuous pictures are decomposed in units of one moving mirror, and the moving mirror mode, time length, dialogue, special effect, etc. are marked.
The video becomes a mainstream mode of propaganda means of society, enterprises, individuals and the like gradually due to gorgeous special effects and high-strength visual impact force, and during video production, a demander cannot perfectly and accurately change points needing propaganda into separate mirrors, so that one video from the beginning to the end of production often needs to iterate a plurality of versions, and within a production period, the higher the iteration speed is, the more the versions are, the better the video quality is, and the production mode of video quick iteration is imperative.
In the prior art, after video requirements are obtained, existing special effect templates are designed or searched, and the video is directly changed, rendered and exported on the templates according to the requirements and finally combined to generate the video.
However, in the prior art, the pre-rendering step is not planned, and specifically, whether the pre-rendering step is performed or not is not considered comprehensively according to the overall work cycle, the demand acquisition condition and the template performance consumption condition, so that in the iteration process, each rendering derivation needs to take a long time, thereby slowing down the iteration speed, further reducing the iteration version and lowering the video quality.
In order to solve the technical problems, the technical conception process of the inventor is as follows: in the prior art, in the process of video production through multiple iterations, whether a layer which needs element replacement is distinguished or not is not distinguished for a sub-mirror to be produced, but follow-up processing such as modification is directly performed by using a template, so that the data volume is large during iteration, the time consumption is long, and the inventor thinks that if the layer which does not need element replacement is extracted in advance and only the layer which needs element replacement is iterated, the time cost is greatly reduced and the accuracy of video production is improved.
The technical solution of the present application will be described in detail by specific examples. It should be noted that the following specific 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 flowchart of a video production method according to a first embodiment of the present application. As shown in fig. 1, the video production method can be implemented by the following steps:
and step 11, acquiring a pre-rendered video for each partial mirror to be manufactured.
The pre-rendering video is a video obtained by pre-rendering a layer group which does not need element replacement in the split mirror and has a rendering frame number smaller than a preset frame number in a preset time length, and each layer group comprises a plurality of layers.
In this step, before actual shooting or drawing, the composition of the image is described in a graph manner for various image media, and the continuous pictures are decomposed in a unit of one-time mirror moving, and the mirror moving manner, the time length, the contrast, the special effect and the like are labeled as the split mirrors.
Optionally, for each partial mirror to be manufactured, a video obtained by performing pre-rendering on a layer group, in which element replacement is not required and the number of rendering frames in the partial mirror is less than the preset number of frames in a preset time period, is called a pre-rendering video.
In a possible implementation, a plurality of image layers without replacing elements in a split mirror are grouped to obtain a plurality of image layer groups, each image layer group is previewed, a rendered frame number corresponding to each image layer group is obtained after a preset time length is obtained, then at least one image layer group with the rendered frame number smaller than a frame number threshold in the plurality of image layer groups is determined as a pre-rendered object according to the frame number threshold corresponding to the preset time length and the rendered frame number corresponding to each image layer group, and finally the pre-rendered object is rendered to obtain a pre-rendered video.
And step 12, according to the pre-rendered video, carrying out video rendering on a plurality of layers in the split mirror which need replacing elements and a layer group in the split mirror which does not need replacing elements but has a rendered frame number greater than or equal to a frame number threshold value to obtain a target video corresponding to the split mirror.
In this step, for any partial mirror, the partial mirror is processed, a pre-rendered video is determined, other layers except for a 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 into video production software again to serve as a new layer, and all layers in the layer group to which the pre-rendered video relates are deleted.
Further, replacing elements in the multiple image layers of which the elements need to be replaced in the partial mirror with target elements to obtain multiple processed image layers, wherein the target elements are elements needed in the video production requirement.
And then, importing the processed multiple layers, the pre-rendered video and the layer group which does not need the replacement element but has the rendered frame number greater than or equal to the frame number threshold value in the split mirror into video manufacturing software to form a video corresponding to the split mirror, namely a target video.
In a possible implementation, elements in a plurality of layers in which the elements need to be replaced in the split mirror are replaced by target elements to obtain a plurality of processed layers, a pre-rendered video is imported, the plurality of processed layers and a layer group in the split mirror, which does not need the replacement elements but has a rendered frame number greater than or equal to a frame number threshold, are subjected to video rendering to obtain a target video corresponding to the split mirror.
After the step, merging the target videos corresponding to each partial mirror to obtain a complete video finished by production.
Optionally, the target videos corresponding to the respective mirrors are connected according to the sequence of the respective mirrors to form a complete video, and this process is called as mirror synthesis.
According to the video manufacturing method provided by the embodiment of the application, a pre-rendering video is obtained by aiming at each partial mirror to be manufactured, the pre-rendering video is a video obtained by pre-rendering a layer group which does not need element replacement in the partial mirror in advance and has a rendering frame number smaller than a preset frame number in a preset time length, each layer group comprises a plurality of layers, then according to the pre-rendering video, the plurality of layers of elements need to be replaced in the partial mirror, and the layer group which does not need the replacement elements in the partial mirror but has the rendering frame number larger than or equal to a frame number threshold value is subjected to video rendering, and a target video corresponding to the partial mirror is obtained. According to the technical scheme, the video is directly generated for the layer group which does not need element replacement and has the rendering frame number smaller than the preset frame number in the preset duration, so that the time of subsequent iteration is saved, the single iteration time can be shortened, the iteration version can be increased, and the video quality can be improved in the limited manufacturing period.
On the basis of the foregoing embodiments, fig. 2 is a schematic flow chart of a second embodiment of a video production method according to the present application. As shown in fig. 2, the step 11 can be implemented by:
and step 21, grouping a plurality of image layers without replacing elements in the partial mirror to obtain a plurality of groups of image layer groups.
In this step, for any partial mirror, in the partial mirror, according to an autonomous design (newly designed layer) or/and an existing template (loaded template layer), it may be determined that the number of all layers of the partial mirror is N, and in these layers, a plurality of layers that do not need a replacement element are selected, for example, the number is M, and the M layers are grouped to obtain a P-group layer group.
Therefore, before the step, it is also necessary to obtain a newly designed layer and a loaded template layer for each partial mirror to obtain all layers in the partial mirror.
Further, a plurality of layers which need replacing elements and a plurality of layers which do not need replacing elements are determined from all layers of the split mirror.
Optionally, for a plurality of layers in the partial mirror that do not need to replace elements, the layers are divided according to a preset number of layers to obtain a plurality of groups of layer groups.
Specifically, the M layers are divided into P groups of layer groups according to a preset number of layers (for example, every 5 layers are a layer group).
As an example, the number N of all layers in the partial mirror a is 120, where the number M of layers without replacement elements is 60, and every 5 layers is a graph layer group, then the number P of layer groups is 60/5 — 12 groups.
And step 22, performing preview processing on each layer group respectively, and acquiring the rendered frame number corresponding to each layer group after a preset time length.
In this step, for each layer group, a preview process needs to be performed separately to determine the number of rendered frames corresponding to the layer group after a preset time length.
Optionally, as an example, table 1 is a rendered frame number table under preview processing provided in the embodiment of the present application. As shown in fig. 1:
TABLE 1
Picture layer group number 30s Preview frame number
1 5
2 50
3 3
4 2
Specifically, preview processing is performed on the layer group 1, the layer group 2, the layer group 3, and the layer group 4, and after a preset time length (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.
And step 23, determining at least one group of image layer groups with the rendered frame number smaller than the frame number threshold in the multiple groups of image layer groups as pre-rendering objects according to the frame number threshold corresponding to the preset duration and the rendered frame number corresponding to each image layer group.
In this step, after the preset duration, the rendered frame number after the preset duration corresponding to the multiple graph layer groups without replacing elements is obtained, and the rendered frame number is limited to obtain the pre-rendered object.
Optionally, as an example, in the example shown in table 1, the frame number threshold corresponding to the preset time duration of 30 seconds is set to be 20 frames, and the pre-rendering object may be layer group 1, layer group 3, and layer group 4.
Specifically, the rendered frame number corresponding to fig. layer group 1 is 5 frames smaller than 20 frames, the rendered frame number corresponding to layer group 2 is 50 frames larger than 20 frames, the rendered frame number corresponding to layer group 3 is 3 frames smaller than 20 frames, and the rendered frame number corresponding to fig. layer group 4 is 2 frames smaller than 20 frames.
Optionally, the object is prerendered, that is, the layer group of which the rendered frame number is smaller than the frame number threshold after the preset time length in the multiple groups of layer groups is regarded as a large load layer group.
The large-load graph layer group is only required to be rendered once in the pre-rendering of the first iteration, and the large-load graph 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 can be greatly reduced, the single iteration time can be shortened, the iteration version can be increased, and the video quality can be improved in a limited manufacturing period.
And 24, rendering the pre-rendering object to obtain a pre-rendering video.
In this step, rendering processing is performed on the determined pre-rendering object to obtain a pre-rendering video.
Optionally, as an example, in the step example, the layer group 1, the layer group 3, and the layer group 4 are rendered to obtain a pre-rendered video corresponding to the partial mirror a.
The video production method provided by the embodiment of the application performs grouping on a plurality of image layers without replacing elements in a split mirror to obtain a plurality of groups of image layer groups, performs preview processing on each image layer group respectively, acquires a rendered frame number corresponding to each image layer group after preset time length, determines at least one group of image layer groups with the rendered frame number smaller than a frame number threshold value in the plurality of groups of image layer groups as a pre-rendered object according to the frame number threshold value corresponding to the preset time length and the rendered frame number corresponding to each image layer group, and further performs rendering processing on the pre-rendered object to obtain a pre-rendered video. According to the scheme, the multiple layers without replacing elements are grouped, so that a basis is provided for subsequently determining the target video.
On the basis of the foregoing 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 step 12 can be implemented by:
and step 31, replacing elements in the multiple layers of the element to be replaced in the partial mirror with target elements to obtain multiple processed layers.
In this step, in any partial mirror, in addition to the layers that do not need to be replaced as given in the above embodiment, a plurality of layers that need to be replaced are included, the elements that need to be replaced in these layers are replaced with the target elements, and then a plurality of processed layers are obtained.
In a possible implementation, the number of all layers of the partial mirror is N, and the number of the plurality of layers that do not need the replacement element is M, and then the layer that needs the replacement element is N-M.
Further, replacing the elements in the N-M layers with target elements, and then obtaining the processed N-M layers.
Wherein the target element is an element required in the production requirement of the video.
And step 32, importing the pre-rendered video, performing video rendering on the plurality of layers after processing and the layer group which does not need to replace elements but has rendered frame number greater than or equal to the frame number threshold in the split mirror, and obtaining a target video corresponding to the split mirror.
In this step, after the layer group, which does not need to replace elements in the split mirror but has a rendered 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, the target video corresponding to the split mirror is obtained.
Optionally, as an example, in the above example, the layer group that does not need to replace the element but has the rendered frame number greater than or equal to the frame number threshold may be layer group 2.
Further, a pre-rendered video (a video obtained by pre-rendering corresponding to the image layer group 1, the image layer group 3, and the image layer group 4), a plurality of processed image layers (image layers after element replacement for other image layers), and an image layer group 2 to video production software are imported, and an export function of the video production software is selected to obtain a video corresponding to the split mirror.
Alternatively, this process is referred to as rendering derivation.
According to the video manufacturing method provided by the embodiment of the application, elements in the multiple layers of the split mirror, which need to replace the elements, are replaced by target elements to obtain the processed multiple layers, then the pre-rendered video is introduced, the processed multiple layers and the layer group, which does not need to replace the elements but has the rendered frame number greater than or equal to the frame number threshold value, are subjected to video rendering to obtain the target video corresponding to the split mirror.
Based on the above method embodiment, fig. 4 is a schematic structural diagram of a video production apparatus 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.
A determining module 41, configured to obtain a pre-rendered video for each partial mirror to be manufactured, where the pre-rendered video is a video obtained by pre-rendering a layer group, which does not need element replacement and has a rendering frame number smaller than a preset frame number within a preset time length, in the partial mirror in advance, and each layer group includes multiple layers;
and the processing module 42 is configured to perform video rendering according to the pre-rendered video, the plurality of layers in the split mirror that need replacing elements, and the layer group in the split mirror that does not need replacing elements but has a rendered frame number greater than or equal to the frame number threshold, so as to obtain a target video corresponding to the split mirror.
In a possible design of the embodiment of the present application, the determining module 41 is specifically configured to:
grouping a plurality of image layers without replacing elements in the partial mirror to obtain a plurality of groups of image layer groups;
previewing each layer group, and acquiring the rendered frame number corresponding to each layer group after the preset time length;
determining at least one group of image layer groups of which the rendered frame number is smaller than the frame number threshold value in the multiple groups of image layer groups as pre-rendering objects according to the frame number threshold value corresponding to the preset duration and the rendered frame number corresponding to each image layer group;
and rendering the pre-rendering object to obtain the pre-rendering 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 a complete video after the manufacturing.
In yet another possible design of the embodiment of the present application, the processing module 42 is specifically configured to:
replacing elements in the multiple layers of the elements needing to be replaced in the partial mirror with target elements to obtain multiple processed layers;
and importing the pre-rendered video, the processed layers and the layer group which does not need to replace elements but has rendered frame number greater than or equal to the frame number threshold in the split mirror to perform video rendering, so as to obtain the target video corresponding to the split mirror.
Optionally, before grouping the plurality of image layers without replacing elements in the partial mirror to obtain a plurality of groups of image layer groups, the processing module 42 is further configured to:
aiming at each partial mirror, acquiring a newly designed layer and a loaded template layer to obtain all layers in the partial mirror;
and determining a plurality of layers which need replacing elements and a plurality of layers which do not need replacing elements from all the layers of the partial mirror.
Optionally, the processing module 42 groups a plurality of layers in the partial mirror that do not need to replace an element to obtain a plurality of groups of layer groups, and is specifically configured to:
and aiming at a plurality of layers without replacing elements in the split mirror, dividing according to a preset number of layers to obtain a plurality of groups of image layers.
The video production device provided in the embodiment of the present application can be used to execute the technical solutions corresponding to the video production methods in the above embodiments, and the implementation principles and technical effects thereof are similar and will not be described herein again.
It should be noted that the division of the modules of the above apparatus is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And these modules can be realized in the form of software called by processing element; or may be implemented entirely in hardware; and part of the modules can be realized in the form of calling software by the processing element, and part of the modules can be realized in the form of hardware. In addition, all or part of the modules can be integrated together or can be independently realized. 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 the form of software.
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 device can be a mobile phone, a computer, a tablet, a computer and the like.
The processor 50 executes computer-executable instructions stored by the memory 51, causing the processor 50 to perform the scheme in the above-described embodiments. The processor 50 may be a general-purpose processor including a central processing unit CPU, a Network Processor (NP), and the like; but also a digital signal processor DSP, an application specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic device, discrete gate or transistor logic, discrete hardware components.
The memory 51 is connected to the processor 50 via a system bus and communicates with each other, and the memory 51 is used for storing 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 (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The system bus may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The electronic device provided in the embodiment of the present application can be used to execute the technical solution corresponding to the video production method in the above embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
The embodiment of the application further provides a chip for running the instruction, and the chip is used for executing the technical scheme of the video production method in the embodiment.
An embodiment of the present application further provides a computer-readable storage medium, where a computer instruction is stored in the computer-readable storage medium, and when the computer instruction runs on an electronic device, the electronic device is enabled to execute the technical solution of the video production method in the foregoing embodiment.
The embodiment of the present application further provides a computer program product, which includes a computer program, and the computer program is used for executing the technical solution of the video production method in the foregoing embodiment when being executed by a processor.
The computer-readable storage medium described above may be implemented by any type of volatile or non-volatile memory device or combination thereof, 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. Readable storage media can be any available media that can be accessed by a general purpose or special purpose electronic device.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method of video production, comprising:
aiming at each partial mirror to be manufactured, a pre-rendering video is obtained, wherein the pre-rendering video is a video obtained by pre-rendering a layer group which does not need element replacement and has a rendering frame number smaller than a preset frame number within a preset time length in the partial mirror in advance, and each layer group comprises a plurality of layers;
and according to the pre-rendered video, the plurality of layers of the elements which need to be replaced in the partial mirror and the layer group which does not need to replace the elements but has the rendered frame number greater than or equal to the frame number threshold value in the partial mirror, performing video rendering to obtain a target video corresponding to the partial mirror.
2. The method of claim 1, wherein obtaining the pre-rendered video comprises:
grouping a plurality of image layers without replacing elements in the partial mirror to obtain a plurality of groups of image layer groups;
previewing each layer group, and acquiring the rendered frame number corresponding to each layer group after the preset time length;
determining at least one group of image layer groups of which the rendered frame number is smaller than the frame number threshold value in the multiple groups of image layer groups as pre-rendering objects according to the frame number threshold value corresponding to the preset duration and the rendered frame number corresponding to each image layer group;
and rendering the pre-rendering object to obtain the pre-rendering video.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and merging the target videos corresponding to each sub-mirror to obtain a complete video after the manufacturing.
4. The method according to claim 1 or 2, wherein the performing video rendering according to the pre-rendered video, the plurality of layers in the partial mirror that need replacing elements, and the layer group in the partial mirror that does not need replacing elements but has a rendered frame number greater than or equal to the frame number threshold to obtain the target video corresponding to the partial mirror comprises:
replacing elements in the multiple layers of the elements needing to be replaced in the partial mirror with target elements to obtain multiple processed layers;
and importing the pre-rendered video, the processed layers and the layer group which does not need to replace elements but has rendered frame number greater than or equal to the frame number threshold in the split mirror to perform video rendering, so as to obtain the target video corresponding to the split mirror.
5. The method according to claim 2, wherein before the grouping the plurality of layers without replacing elements in the partial mirror, the method further comprises:
aiming at each partial mirror, acquiring a newly designed layer and a loaded template layer to obtain all layers in the partial mirror;
and determining a plurality of layers which need replacing elements and a plurality of layers which do not need replacing elements from all the layers of the partial mirror.
6. The method according to claim 2, wherein the grouping the plurality of layers without replacing elements in the partial mirror to obtain a plurality of groups of layer groups comprises:
and aiming at a plurality of layers without replacing elements in the split mirror, dividing according to a preset number of layers to obtain a plurality of groups of image layers.
7. A video production apparatus, comprising:
the device comprises a determining module, a pre-rendering module and a processing module, wherein the determining module is used for acquiring a pre-rendering video for each partial mirror to be manufactured, the pre-rendering video is a video obtained by pre-rendering a layer group which does not need element replacement and has a rendering frame number smaller than a preset frame number in a preset time length in the partial mirror, 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, the plurality of layers needing replacing elements in the split mirror and the layer group which does not need replacing elements but has rendered frame number greater than or equal to the frame number threshold value in the split mirror to obtain a target video corresponding to the split mirror.
8. An electronic device, comprising: a processor, a memory, and computer program instructions stored on the memory and executable on the processor, the processor when executing the computer program instructions implementing the video production method of any of claims 1 to 6.
9. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, are configured to implement the video production method of any one of claims 1 to 6.
10. A computer program product comprising a computer program which, when executed by a processor, is adapted to carry out a video production method according to any one of claims 1 to 6.
CN202111595355.6A 2021-12-23 2021-12-23 Video production method, device, equipment and storage medium Active CN114257868B (en)

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 true CN114257868A (en) 2022-03-29
CN114257868B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115883818A (en) * 2022-11-29 2023-03-31 北京优酷科技有限公司 Automatic statistical method and device for video frame number, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678631A (en) * 2013-12-19 2014-03-26 华为技术有限公司 Page rendering method and device
CN105049929A (en) * 2015-08-11 2015-11-11 广东欧珀移动通信有限公司 Method and device for video rendering
WO2020192417A1 (en) * 2019-03-22 2020-10-01 华为技术有限公司 Image rendering method and apparatus, electronic device
CN112860944A (en) * 2021-02-05 2021-05-28 北京百度网讯科技有限公司 Video rendering method, device, equipment, storage medium and computer program product
CN112929728A (en) * 2021-01-20 2021-06-08 北京奇艺世纪科技有限公司 Video rendering method, device and system, electronic equipment and storage medium
WO2021236104A1 (en) * 2020-05-22 2021-11-25 Google Llc Re-timing objects in video via layered neural rendering

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678631A (en) * 2013-12-19 2014-03-26 华为技术有限公司 Page rendering method and device
CN105049929A (en) * 2015-08-11 2015-11-11 广东欧珀移动通信有限公司 Method and device for video rendering
WO2020192417A1 (en) * 2019-03-22 2020-10-01 华为技术有限公司 Image rendering method and apparatus, electronic device
WO2021236104A1 (en) * 2020-05-22 2021-11-25 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
CN112860944A (en) * 2021-02-05 2021-05-28 北京百度网讯科技有限公司 Video rendering method, device, equipment, storage medium and computer program product

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115883818A (en) * 2022-11-29 2023-03-31 北京优酷科技有限公司 Automatic statistical method and device for video frame number, electronic equipment and storage medium
CN115883818B (en) * 2022-11-29 2023-09-19 北京优酷科技有限公司 Video frame number automatic counting method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114257868B (en) 2024-06-21

Similar Documents

Publication Publication Date Title
US20200034667A1 (en) Image processing method, image processing apparatus, and computer storage medium
CN104572668B (en) Method and apparatus based on multiple pattern file generated Merge Styles files
CN105630507A (en) Method and device for drawing WebView control interface
CN104090753A (en) Video rendering system of mobile terminal
CN114257868A (en) Video production method, device, equipment and storage medium
CN111784564A (en) Automatic cutout method and system
US20180349058A1 (en) Buffer-based update of state data
CN111787240B (en) Video generation method, apparatus and computer readable storage medium
CN110019932A (en) The method and device of data processing
CN113014957B (en) Video shot segmentation method and device, medium and computer equipment
CN108280135B (en) Method and device for realizing visualization of data structure and electronic equipment
CN113938750A (en) Video processing method and device, electronic equipment and storage medium
CN116600156A (en) Video content recommendation method, device, computer equipment and storage medium
CN110782389B (en) Image data byte alignment method and terminal
CN106651998B (en) Animation playing speed adjusting method and device based on Canvas
CN111599449B (en) Automatic playing method, device and equipment of electronic image and storage medium
CN114332928A (en) Image segmentation method and device, electronic equipment and storage medium
CN113794846A (en) Video cloud clipping method and device and cloud clipping server
CN114596241A (en) Image and video processing method, device and equipment and storage medium
US20150379691A1 (en) Multi-grid method and apparatus using v cycle
CN116823933A (en) Film and television creative file generation method and device, electronic equipment and storage medium
CN111614912A (en) Video generation method, device, equipment and storage medium
CN111459711A (en) Memory recovery method and system
CN115119014B (en) Video processing method, training method and device for interpolation frame number model
CN106709803B (en) Payment service monitoring processing 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