Method for generating video, and electronic device and readable storage medium thereof
AssigneeBeijing Dajia Internet Information Technoioey Co., Ltd
InventorsTiejun Chen, Hao Yang
Life of this patent
Estimating the term…
Abstract
A method for generating a video can include: acquiring a profile of a video template, the profile being configured to describe one or more reference materials of the video template and an animated special effect corresponding to each of the one or more reference materials; acquiring the one or more reference materials based on the profile; acquiring a target material; acquiring at least one replaced reference material by replacing at least one of the one or more reference materials with the target material; and generating a target video with the animated special effect by rendering the one or more replaced reference material based on the profile.
Claims16
A method for generating a video, comprising:
- acquiring a profile of a video template, the profile being configured to describe one or more reference materials of the video template and an animated special effect corresponding to each of the one or more reference materials;
- acquiring the one or more reference materials based on the profile;
- displaying names of the respective animated special effects corresponding to each of the one or more reference materials;
- acquiring a target material;
- acquiring at least one replaced reference material by replacing at least one of the one or more reference materials with the target material;
- and
- generating a target video with the animated special effect by rendering the replaced reference material based on the profile,
- wherein the animated special effect corresponding to the replaced reference material is consistent with the animated special effect corresponding to the reference material before being replaced, and the animated special effect refers to transformation processes and display effects of the one or more reference materials,
- wherein the profile describes each of one or more reference materials by code data or a path, the code data is configured to describe pattern composed of one or more graphics included in the reference material, and the path is configured to describe addresses of image and video included in the reference material, the code data is further configured to describe the animated special effect corresponding to the reference material, the code data or the path configured to describe the reference material is stored corresponding to the code data configured to describe the animated special effect of the reference material.
An electronic device comprising:
- a processor;
- and
- a memory configured to store at least one instruction executable by the processor,
- wherein the at least one instruction, when executed by the processor, causes the processor to perform a method comprising:
- acquiring a profile of a video template, the profile being configured to describe one or more reference materials of the video template and an animated special effect corresponding to each of the one or more reference materials;
- acquiring the one or more reference materials based on the profile;
- displaying names of the respective animated special effects corresponding to each of the one or more reference materials;
- acquiring a target material;
- acquiring at least one replaced reference material by replacing at least one of the one or more reference materials with the target material;
- and
- rendering the replaced reference material based on the profile to generate a target video with the animated special effect,
- wherein the animated special effect corresponding to the replaced reference material is consistent with the animated special effect corresponding to the reference material before being replaced, and the animated special effect refers to transformation processes and display effects of the one or more reference materials,
- wherein the profile describes each of one or more reference materials by code data or a path, the code data is configured to describe pattern composed of one or more graphics included in the reference material, and the path is configured to describe addresses of image and video included in the reference material, the code data is further configured to describe the animated special effect corresponding to the reference material, the code data or the path configured to describe the reference material is stored corresponding to the code data configured to describe the animated special effect of the reference material.
A non-transitory storage medium storing at least one instruction therein, wherein the at least one instruction, when executed by a processor of an electronic device, causes the processor to perform a method comprising:
- acquiring a profile of a video template, the profile being configured to describe one or more reference materials of the video template and an animated special effect corresponding to each of the one or more reference materials;
- acquiring the one or more reference materials based on the profile;
- displaying names of the respective animated special effects corresponding to each of the one or more reference materials;
- acquiring a target material;
- acquiring at least one replaced reference material by replacing at least one of the one or more reference materials with the target material;
- and
- rendering the replaced reference material according to the profile to generate a target video with the animated special effect, wherein the animated special effect corresponding to the replaced reference material is consistent with the animated special effect corresponding to the reference material before being replaced, and the animated special effect refers to transformation processes and display effects of the one or more reference materials,
- wherein the profile describes each of one or more reference materials by code data or a path, the code data is configured to describe pattern composed of one or more graphics included in the reference material, and the path is configured to describe addresses of image and video included in the reference material, the code data is further configured to describe the animated special effect corresponding to the reference material, the code data or the path configured to describe the reference material is stored corresponding to the code data configured to describe the animated special effect of the reference material.
Dependencies are inferred from the claim text.