Movatterモバイル変換


[0]ホーム

URL:


CN110582020B - Video generation method and device, electronic equipment and storage medium - Google Patents

Video generation method and device, electronic equipment and storage medium
Download PDF

Info

Publication number
CN110582020B
CN110582020BCN201910828474.8ACN201910828474ACN110582020BCN 110582020 BCN110582020 BCN 110582020BCN 201910828474 ACN201910828474 ACN 201910828474ACN 110582020 BCN110582020 BCN 110582020B
Authority
CN
China
Prior art keywords
information
expression image
magic expression
designated
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910828474.8A
Other languages
Chinese (zh)
Other versions
CN110582020A (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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co LtdfiledCriticalBeijing Dajia Internet Information Technology Co Ltd
Priority to CN201910828474.8ApriorityCriticalpatent/CN110582020B/en
Publication of CN110582020ApublicationCriticalpatent/CN110582020A/en
Application grantedgrantedCritical
Publication of CN110582020BpublicationCriticalpatent/CN110582020B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The disclosure relates to a video generation method, a video generation device, electronic equipment and a storage medium, and relates to the technical field of computers. The method includes the steps that a configuration file corresponding to a designated magic expression image is obtained, when the type identifier of the designated magic expression image is a record magic expression identifier, an input box is displayed according to an input configuration item, when designated information filled in the input box is detected, preset initial information in the designated magic expression image is modified according to the designated information, a target magic expression image is obtained, the target magic expression image is added to a recorded video, and a target video is generated. Even if different users select the same appointed magic expression image, the appointed information filled in the input box is usually different, the target magic expression image obtained by modifying the initial information through the appointed information is also different, and the target magic expression image is added into the recorded video, so that the recorded target video is different from videos recorded by other users, and the video recording effect is improved.

Description

Video generation method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a video generation method and apparatus, an electronic device, and a storage medium.
Background
With the continuous development of mobile terminal technology, most mobile terminals have a video recording function, in order to improve the interest of a user in recording videos, a plurality of short video Applications (APPs) can add magic expression images, and the magic expression images are used for adding a certain special effect to the recorded videos.
At present, when a user wants to add magic expression images to a recorded video during video recording, the user downloads designed magic expression images from a server, selects a designated magic expression image from the magic expression images, and directly applies the designated magic expression image to the currently recorded video.
However, because the number of the magic expression images in the server is limited, it is easy for different users to record videos by using the same magic expression image, so that the finally recorded videos are easy to be similar to those of other users, and the recording effect is poor.
Disclosure of Invention
The present disclosure provides a video generation method, an apparatus, an electronic device, and a storage medium, so as to at least solve a problem in the related art that a recording effect is not good due to different users using the same magic expression image for video recording. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a video generation method, including:
when a selection instruction of a designated magic expression image is received, acquiring a configuration file corresponding to the designated magic expression image, wherein the configuration file comprises a type identifier and an input configuration item;
when the type identifier of the designated magic expression image is a record magic expression identifier, displaying an input box according to the input configuration item;
when the specified information filled in the input box is detected, modifying the preset initial information in the specified magic expression image according to the specified information to obtain a target magic expression image; the specified information is used for representing data content needing to be modified in the specified magic expression image;
and adding the target magic expression image to the recorded video to generate a target video.
Optionally, before the step of modifying the initial information preset in the designated magic expression image according to the designated information when the designated information filled in the input box is detected, to obtain the target magic expression image, the method further includes:
and receiving the specified information filled in the input box by the user.
Optionally, before the step of modifying the initial information preset in the designated magic expression image according to the designated information when the designated information filled in the input box is detected, to obtain the target magic expression image, the method further includes:
acquiring specified information from an application program operated by the mobile terminal;
and filling the specified information into the input box.
Optionally, when detecting the specified information filled in the input box, modifying the initial information preset in the specified magic expression image according to the specified information to obtain a target magic expression image, including:
and when the specified information filled in the input box is detected, replacing the preset initial information in the specified magic expression image with the specified information to obtain a target magic expression image.
Optionally, when detecting the specified information filled in the input box, modifying the initial information preset in the specified magic expression image according to the specified information to obtain a target magic expression image, including:
when the specified information filled in the input box is detected, calculating according to the specified information to obtain target information;
and replacing the initial information preset in the designated magic expression image with the target information to obtain a target magic expression image.
Optionally, after the step of adding the target magic expression image to the recorded video and generating the target video, the method further includes:
uploading the specified information to a server;
when a selection instruction of the designated magic expression image is received again, the designated information is called from the server;
and revising the preset initial information in the appointed magic expression image according to the appointed information, and adding the revised appointed magic expression image to the recorded video.
According to a second aspect of the embodiments of the present disclosure, there is provided a video generating apparatus including:
the system comprises a configuration file acquisition module, a configuration file processing module and a configuration file processing module, wherein the configuration file acquisition module is configured to acquire a configuration file corresponding to a specified magic expression image when a selection instruction of the specified magic expression image is received, and the configuration file comprises a type identifier and an input configuration item;
the input box display module is configured to display an input box according to the input configuration item when the type identifier of the specified magic expression image is a record magic expression identifier;
the initial information first modification module is configured to modify the preset initial information in the designated magic expression image according to the designated information to obtain a target magic expression image when the designated information filled in the input box is detected; the specified information is used for representing data content needing to be modified in the specified magic expression image;
and the target video generation module is configured to add the target magic expression image to the recorded video to generate a target video.
Optionally, the apparatus further comprises:
a designated information receiving module configured to receive the designated information filled in the input box by the user.
Optionally, the apparatus further comprises:
the system comprises a specified information acquisition module, a display module and a display module, wherein the specified information acquisition module is configured to acquire specified information from an application program operated by the mobile terminal;
a designation information padding module configured to pad the designation information into the input box.
Optionally, the initial information first modifying module includes:
and the specified information replacing submodule is configured to replace preset initial information in the specified magic expression image by using the specified information to obtain a target magic expression image when the specified information filled in the input box is detected.
Optionally, the initial information first modifying module includes:
the target information calculation submodule is configured to calculate target information according to the specified information when the specified information filled in the input box is detected;
and the target information replacing submodule is configured to replace the initial information preset in the designated magic expression image by using the target information to obtain a target magic expression image.
Optionally, the apparatus further comprises:
a designated information uploading module configured to upload the designated information to a server;
a designated information calling module configured to call the designated information from the server when a selection instruction for the designated magic expression image is received again;
and the initial information second modification module is configured to modify the preset initial information in the designated magic expression image again according to the designated information, and add the modified designated magic expression image to the recorded video.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the video generation method described above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium having instructions that, when executed by a processor of an electronic device, enable the electronic device to perform the above-described video generation method.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product, wherein instructions of the computer program product, when executed by a processor of an electronic device, enable the electronic device to perform the above-mentioned video generation method.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
when a selection instruction of the designated magic expression image is received, a configuration file corresponding to the designated magic expression image is obtained, the configuration file comprises a type identifier and an input configuration item, when the type identifier of the designated magic expression image is a recorded magic expression identifier, an input frame is displayed according to the input configuration item, when designated information filled in the input frame is detected, initial information preset in the designated magic expression image is modified according to the designated information to obtain a target magic expression image, the designated information is used for representing data content needing to be modified in the designated magic expression image, the target magic expression image is added to a recorded video, and a target video is generated. After a user selects a designated magic expression image, judging whether the designated magic expression image is a recorded magic expression image, when the designated magic expression image is the recorded magic expression image, displaying an input frame to input designated information, and modifying initial information in the designated magic expression image through the designated information to obtain a target magic expression image.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
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 and are not to be construed as limiting the disclosure.
FIG. 1 is a flow diagram illustrating a video generation method in accordance with an exemplary embodiment;
FIG. 2 is a schematic diagram of a video recording interface shown in accordance with an exemplary embodiment;
FIG. 3 is a schematic diagram illustrating a magic expression function key click in accordance with an exemplary embodiment;
FIG. 4 is a diagram illustrating a display input box in accordance with an exemplary embodiment;
FIG. 5 is a schematic diagram illustrating the addition of a target magic expression image to a recorded video according to an exemplary embodiment;
FIG. 6 is a flow diagram illustrating another video generation method in accordance with an exemplary embodiment;
FIG. 7 is a flow diagram illustrating yet another video generation method in accordance with an exemplary embodiment;
FIG. 8 is a block diagram illustrating a video generation apparatus in accordance with an exemplary embodiment;
fig. 9 is a block diagram illustrating another video generation apparatus according to an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. 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.
Fig. 1 is a flow diagram illustrating a video generation method according to an exemplary embodiment, which may include the steps of, as shown in fig. 1:
in step S101, when a selection instruction for a designated magic expression image is received, a configuration file corresponding to the designated magic expression image is obtained, where the configuration file includes a type identifier and an input configuration item.
In daily life, a user can record videos by using a mobile terminal with a camera, open a video APP in the mobile terminal, and enter a video recording interface, as shown in fig. 2, anarea 21 of the video recording interface is a preview area for displaying a picture currently acquired by the camera, and the video recording interface is further provided with other function keys, such as a magicexpression function key 22, a videorecording function key 23, and amusic function key 24.
After the magicexpression function key 22 is clicked, as shown in fig. 3, the downloaded magic expression image and the magic expression image recommended to the user in the mobile terminal may be displayed, themagic expression image 31 and themagic expression image 32 in fig. 3 represent the downloaded magic expression image in the mobile terminal, the magic expression image 33 in fig. 3 represents the magic expression image recommended to the user, the magic expression image 33 may be determined to be the magic expression image recommended to the user through theidentifier 331 in the magic expression image 33, and after the magic expression image 33 is clicked, the magic expression image 33 may be downloaded from the server to the mobile terminal.
It should be noted that, when downloading the magic expression images from the server, what is actually downloaded is a magic expression material package, and the magic expression material package includes the magic expression images and the configuration files corresponding to the magic expression images.
The user checks the magic expression images required by the user from the displayed magic expression images, clicks the selected magic expression images as the designated magic expression images, at the moment, the mobile terminal can receive a selection instruction of the designated magic expression images from the user, and then obtains configuration files corresponding to the designated magic expression images, wherein the configuration files comprise type identifications and input configuration items.
The type identifier is used for distinguishing the type of the designated magic expression image and determining whether the designated magic expression image is a recorded magic expression image or a non-recorded magic expression image; the input configuration items are used to determine the information to be filled in the input box.
The type identifier can be represented by a field, thefield 1 represents that the specified magic expression image is a recorded magic expression image, and the field 0 represents that the specified magic expression image is a non-recorded magic expression image.
For example, when the user clicks themagic expression image 31 in fig. 3, themagic expression image 31 is used as a designated magic expression image, and a profile corresponding to the designatedmagic expression image 31 is acquired.
In step S102, when the type identifier of the designated magic expression image is a record-like magic expression identifier, displaying an input box according to the input configuration item.
After the configuration file corresponding to the designated magic expression image is obtained, the configuration file is analyzed to obtain the type identifier and the input configuration item in the configuration file, the field corresponding to the type identifier is read, and whether the type identifier of the designated magic expression image is the recorded magic expression identifier or not is determined, namely whether the designated magic expression image is the recorded magic expression image or not is determined.
And when the type identifier of the designated magic expression image is the record magic expression identifier, reading an input configuration item in the configuration file, displaying an input box on a display interface of the mobile terminal according to the input configuration item, wherein the type of information to be filled in the input box is determined according to the input configuration item.
For example, themagic expression image 31 in fig. 3 is used as a designated magic expression image, the type identifier in the configuration file corresponding to the designatedmagic expression image 31 is obtained, the field corresponding to the type identifier isfield 1, the type identifier of the designatedmagic expression image 31 is determined to be a record magic expression identifier, and according to the input configuration item in the configuration file corresponding to the designatedmagic expression image 31, as shown in fig. 4, aninput box 41 is displayed on thepreview area 21 of the mobile terminal, and theinput box 41 is mainly used for editing baby information, which may specifically include information such as name and birthday.
In step S103, when the specified information filled in the input box is detected, modifying the preset initial information in the specified magic expression image according to the specified information to obtain a target magic expression image; the specified information is used for representing data content needing to be modified in the specified magic expression image.
After the input frame is displayed on the display interface of the mobile terminal, corresponding specified information can be filled in the input frame, and when the specified information filled in the input frame is detected, initial information preset in the specified magic expression image is modified according to the specified information to obtain the target magic expression image.
The difference between the target magic expression image and the designated magic expression image is that the target magic expression image contains the designated information filled in the input box, and the designated magic expression image does not contain the designated information filled in the input box and contains the preset initial information.
The specified information filled in the input box can be information filled by a user, or information in an application program operated by the mobile terminal can be automatically called and automatically filled in the input box; the designated information is used for representing data content needing to be modified in the designated magic expression image, and specifically comprises information such as date, geographic position, weather and text.
For example, as shown in fig. 4, the information filled in the name input field by the user is "leather", the information filled in the birthday input field is "2019-05-16", and after the user clicks and determines that the information is filled in the input box, the mobile terminal can detect the specified information filled in the input box, wherein the specified information includes "leather" and "2019-05-16"; the method comprises the steps that initial information preset in a magic expression image is designated as 'baby name', 'baby age' and 'constellation baby', the current time is 2019-07-25, the age of the baby at the current time is calculated to be 71 days according to the birthday 2019-05-16 of the baby, meanwhile, the constellation of the baby is calculated to be a golden ox seat according to the birthday of the baby, besides, the information of the baby such as the zodiac and the like can also be calculated, and the calculated information of the age, the constellation, the zodiac and the like is used as target information; respectively modifying initial information 'baby name', 'baby age' and 'constellation baby' preset in the designated magic expression image 31 according to the designated information 'leather' and '2019-05-16', namely replacing the initial information 'baby name' preset in the designated magic expression image 31 with the designated information 'leather', replacing the initial information 'baby age' preset in the designated magic expression image 31 with target information '71' calculated according to the designated information '2019-05-16', and replacing the initial information 'constellation baby' preset in the designated magic expression image 31 with target information 'golden ox seat' calculated according to the designated information '2019-05-16', so as to obtain the target magic expression image.
In step S104, the target magic expression image is added to the recorded video to generate a target video.
After the target magic expression image is obtained, the target magic expression image is rendered on a preview interface of the mobile terminal, when a user clicks a videorecording function key 23, the mobile terminal receives a video recording instruction, when the video recording instruction is received, the target magic expression image is added to the recorded video, and when the video recording function key is clicked again, the video recording is finished, and the target video is generated.
Specifically, the target magic expression image may be rendered according to a preset rule, where the preset rule includes one or more of a display position of the target magic expression image in a display interface of the mobile terminal, and a font, a color, and a size that are required to be set by information in the target magic expression image.
For example, the target magic expression image is rendered, and as shown in fig. 5, the targetmagic expression image 51 is displayed on thepreview interface 21 of the mobile terminal, the information in the targetmagic expression image 51 includes the designated information filled in theinput box 41, that is, the name "skin" of the baby, and the target information calculated according to the designated information filled in theinput box 41, that is, the age and the constellation of the baby calculated according to the birthday "2019-05-16" of the baby, the age of the baby is calculated to be 71 days, the constellation of the baby is a golden ox seat, and when a video recording instruction is received, the targetmagic expression image 51 is added to the recorded video to generate the target video.
Certainly, after step S101, when the type identifier of the designated magic expression image is the non-recorded magic expression identifier, that is, when the designated magic expression image is the non-recorded magic expression image, the designated magic expression image is directly rendered on the preview interface of the mobile terminal, and the user clicks the videorecording function button 23, and then the designated magic expression image is added to the recorded video.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
after a user selects a designated magic expression image, judging whether the designated magic expression image is a recorded magic expression image, when the designated magic expression image is the recorded magic expression image, displaying an input frame to input designated information, and modifying initial information in the designated magic expression image through the designated information to obtain a target magic expression image.
Fig. 6 is a flow diagram illustrating another video generation method according to an example embodiment, which may include the steps of, as shown in fig. 6:
in step S601, when a selection instruction for a designated magic expression image is received, a configuration file corresponding to the designated magic expression image is obtained, where the configuration file includes a type identifier and an input configuration item.
This step is similar to the above step S101 in principle, and is not described herein again.
In step S602, when the type identifier of the designated magic expression image is a record-like magic expression identifier, displaying an input box according to the input configuration item.
This step is similar to the above step S102 in principle, and is not described herein again.
In step S603, the specification information filled in the input box by the user is received.
After the input box is displayed on the display interface of the mobile terminal, the user can fill in the input box with the designated information, and then the mobile terminal receives the designated information filled in the input box by the user.
As shown in fig. 4, designation information "2019-05-16" filled in the birthday input field in theinput box 41 by the user is received.
In step S604, when the specified information filled in the input box is detected, target information is calculated according to the specified information.
And when the specified information filled in the input box is detected, calculating to obtain target information according to the specified information. The designated information is birthday, and the calculated target information comprises information such as age, zodiac and constellation.
For example, if the age of the baby is calculated to be 71 days according to the designation information "2019-05-16" filled in the birthday input field in theinput box 41 by the user and the current time 2019-07-25, and the constellation of the baby is calculated to be the golden ox seat according to the designation information "2019-05-16", the target information calculated according to the designation information "2019-05-16" includes "71 days" and "golden ox seat".
In step S605, the target information is used to replace the initial information preset in the designated magic expression image, so as to obtain a target magic expression image.
And after the target information is obtained through calculation, replacing the initial information preset in the designated magic expression image with the target information to obtain the target magic expression image.
For example, the initial information preset in the designated magic expression image includes "baby age" and "baby constellation", the initial information "baby age" preset in the designated magic expression image is replaced with the target information "71 days", and the initial information "baby constellation" preset in the designated magic expression image is replaced with the target information "golden ox seat", so as to obtain the target magic expression image.
In step S606, the target magic expression image is added to the recorded video, and a target video is generated.
This step is similar to the above step S104 in principle, and is not described herein again.
In step S607, the specification information is uploaded to the server.
And after the target magic expression image is added to the recorded video to generate a target video, uploading the specified information filled in the input box to a server.
For example, the designation information "2019-05-16" filled in the birthday input field in theinput box 41 by the user is uploaded to the server.
In step S608, when the selection instruction for the designated magic expression image is received again, the designated information is called from the server.
After a certain period of time, the user clicks the designated magic expression image again, the mobile terminal receives the selection instruction of the designated magic expression image again, then the uploaded designated information is directly called from the server, the type of the designated magic expression image does not need to be judged again, an input box does not need to be displayed again to prompt the user to fill in the designated information, and the operation steps are simplified.
For example, when the user clicks the designatedmagic expression image 31 again, the uploaded designated information, i.e., the baby's birthday "2019-05-16", is called from the server.
In step S609, the initial information preset in the designated magic expression image is modified again according to the designation information, and the newly modified designated magic expression image is added to the recorded video.
After the appointed information is called from the server, the preset initial information in the appointed magic expression image is directly modified again according to the appointed information, and the re-modified appointed magic expression image is added to the recorded video.
It should be noted that, the step of directly modifying the initial information preset in the designated magic expression image again according to the designated information means that the designated information is directly used to replace the initial information preset in the designated magic expression image, or the step of obtaining target information through calculation according to the designated information and then replacing the initial information preset in the designated magic expression image with the target information.
For example, the current time is 2019-07-26, the specified information is called, namely the birthday of the baby is called "2019-05-16", the target information is obtained through calculation according to the current time and the birthday of the baby, namely the age of the baby at the current time is 72 days, the target information is used for replacing the initial information preset in the specified magic expression image to obtain the target magic expression image, namely the target information "72 days" is used for replacing the initial information "baby age" preset in the specified magic expression image.
It should be noted that, after step S606, the specifying information may also be directly stored in the mobile terminal, and when the selection instruction for the specified magic expression image is received again, the specifying information is obtained from the mobile terminal, then the initial information preset in the specified magic expression image is modified again according to the specifying information, and the re-modified specified magic expression image is added to the recorded video.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
after selecting the appointed magic expression image, a user firstly judges whether the appointed magic expression image is a recorded magic expression image, when the appointed magic expression image is the recorded magic expression image, the input box is displayed to prompt the user to fill in the appointed information, then the target information is obtained through calculation according to the appointed information, the target information is used for replacing the initial information preset in the appointed magic expression image to obtain the target magic expression image, even if different users select the same appointed magic expression image, the appointed information filled in the input box by the user is usually different, the calculated target information is also different, therefore, the target magic expression image obtained by replacing the initial information preset in the appointed magic expression image with the target information is also different, the target magic expression image is added in the recorded video, and the finally recorded target video is different from the videos recorded by other users, the video recording effect is improved; in addition, after the target video is generated, the designated information is uploaded to the server, when the user selects the designated magic expression image again, the uploaded designated information is called, the initial information preset in the designated magic expression image is modified again according to the designated information, the re-modified designated magic expression image is added to the recorded video, the type of the designated magic expression image does not need to be judged again, an input box does not need to be displayed again to prompt the user to fill in the designated information, and the operation steps are simplified.
Fig. 7 is a flow chart illustrating yet another video generation method according to an exemplary embodiment, which may include the steps of, as shown in fig. 7:
in step S701, when a selection instruction for a designated magic expression image is received, a configuration file corresponding to the designated magic expression image is obtained, where the configuration file includes a type identifier and an input configuration item.
This step is similar to the above step S101 in principle, and is not described herein again.
In step S702, when the type identifier of the designated magic expression image is a record-like magic expression identifier, displaying an input box according to the input configuration item.
This step is similar to the above step S102 in principle, and is not described herein again.
In step S703, the specification information is acquired from the application program run by the mobile terminal.
The mobile terminal runs a plurality of application programs, and after the display interface of the mobile terminal displays the input frame, the specified information is obtained from the application programs run by the mobile terminal.
For example, the weather information of the current time may be acquired from a weather application program run by the mobile terminal, where the acquired weather information is "cloudy" and the "cloudy" is used as the specific information.
In step S704, the input box is filled with the designation information.
And automatically filling the specified information into the input box after the specified information is acquired from the application program operated by the mobile terminal.
In step S705, when the specified information filled in the input box is detected, the specified information is used to replace the initial information preset in the specified magic expression image, so as to obtain a target magic expression image.
And when the specified information filled in the input box is detected, directly replacing the preset initial information in the specified magic expression image by using the specified information to obtain the target magic expression image.
For example, the initial information preset in the designated magic expression image is "sunny day", and the initial information preset in the designated magic expression image is directly replaced by the designated information "sunny day", so that the target magic expression image is obtained.
In step S706, the target magic expression image is added to the recorded video, and a target video is generated.
This step is similar to the above step S104 in principle, and is not described herein again.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
after selecting the designated magic expression image, a user firstly judges whether the designated magic expression image is a recorded magic expression image, when the designated magic expression image is the recorded magic expression image, an input frame is displayed, designated information is obtained from an application program operated by the mobile terminal, the designated information is filled into the input frame, and then the designated information is used for replacing initial information preset in the designated magic expression image to obtain a target magic expression image, even if different users select the same designated magic expression image, the designated information obtained from the application program operated by the mobile terminal is usually different, so that the target magic expression image obtained by replacing the initial information in the designated magic expression image by the designated information is also different, and the target magic expression image is added into the recorded video, so that the finally recorded target video is different from videos recorded by other users, the video recording effect is improved; in addition, specified information in the application program operated by the mobile terminal is directly called to be input and filled into the input box, so that the operation steps of a user are reduced.
Fig. 8 is a block diagram illustrating a video generation apparatus according to an example embodiment. Referring to fig. 8, the video generation apparatus 800 includes: a configuration file acquisition module 801, an input box display module 802, an initial information first modification module 803 and a target video generation module 804.
The configuration file acquisition module 801 is configured to acquire a configuration file corresponding to a designated magic expression image when a selection instruction of the designated magic expression image is received, wherein the configuration file includes a type identifier and an input configuration item;
an input box display module 802, configured to display an input box according to the input configuration item when the type identifier of the designated magic expression image is a record-like magic expression identifier;
an initial information first modification module 803, configured to modify, when the specified information filled in the input box is detected, the preset initial information in the specified magic expression image according to the specified information, so as to obtain a target magic expression image; the specified information is used for representing data content needing to be modified in the specified magic expression image;
and the target video generation module 804 is configured to add the target magic expression image to the recorded video to generate a target video.
Fig. 9 is a block diagram illustrating another video generation apparatus according to an example embodiment. On the basis of fig. 8, the video generating apparatus 800 further includes:
a designation information receiving module 805 configured to receive designation information filled in the input box by a user.
In an optional implementation, the video generating apparatus 800 further includes:
a designation information acquisition module 806 configured to acquire designation information from an application program run by the mobile terminal;
a designation information padding module 807 configured to pad the designation information into the input box.
In an optional implementation manner, the initial information first modification module 803 includes:
and the designation information replacement submodule 8031 is configured to, when the designation information filled in the input box is detected, replace the initial information preset in the designated magic expression image with the designation information to obtain a target magic expression image.
In an optional implementation manner, the initial information first modification module 803 includes:
a target information calculation submodule 8032, configured to, when the specified information filled in the input box is detected, calculate target information according to the specified information;
and the target information replacing submodule 8033 is configured to replace the preset initial information in the designated magic expression image with the target information to obtain a target magic expression image.
In an optional implementation, the video generating apparatus 800 further includes:
a designation information upload module 808 configured to upload the designation information into a server;
a designated information retrieval module 809 configured to retrieve the designated information from the server when a retrieval instruction for the designated magic expression image is received again;
and the initial information second modification module 810 is configured to modify the preset initial information in the designated magic expression image again according to the designated information, and add the modified designated magic expression image to the recorded video.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
after a user selects a designated magic expression image, judging whether the designated magic expression image is a recorded magic expression image, when the designated magic expression image is the recorded magic expression image, displaying an input frame to input designated information, and modifying initial information in the designated magic expression image through the designated information to obtain a target magic expression image.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
In an exemplary embodiment, there is also provided an electronic device, a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the above instructions to implement the above video generation method.
In an exemplary embodiment, there is also provided a storage medium comprising instructions, such as a memory comprising instructions, executable by a processor of an electronic device to perform the video generation method described above. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided, in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the video generation method described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
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 (14)

CN201910828474.8A2019-09-032019-09-03Video generation method and device, electronic equipment and storage mediumActiveCN110582020B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910828474.8ACN110582020B (en)2019-09-032019-09-03Video generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910828474.8ACN110582020B (en)2019-09-032019-09-03Video generation method and device, electronic equipment and storage medium

Publications (2)

Publication NumberPublication Date
CN110582020A CN110582020A (en)2019-12-17
CN110582020Btrue CN110582020B (en)2022-03-01

Family

ID=68812681

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910828474.8AActiveCN110582020B (en)2019-09-032019-09-03Video generation method and device, electronic equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN110582020B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112363661B (en)*2020-11-112022-08-26北京达佳互联信息技术有限公司Magic expression data processing method and device and electronic equipment
CN114531553B (en)*2022-02-112024-02-09北京字跳网络技术有限公司 Methods, devices, electronic equipment and storage media for generating special effects videos

Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105117207A (en)*2015-07-272015-12-02小米科技有限责任公司Album creating method and apparatus
CN106095881A (en)*2016-06-072016-11-09惠州Tcl移动通信有限公司Method, system and the mobile terminal of a kind of display photos corresponding information
CN106791893A (en)*2016-11-142017-05-31北京小米移动软件有限公司Net cast method and device
CN108038892A (en)*2017-11-282018-05-15北京川上科技有限公司Expression, which packs, makees method, apparatus, electronic equipment and computer-readable recording medium
CN109859102A (en)*2019-02-012019-06-07北京达佳互联信息技术有限公司Special display effect method, apparatus, terminal and storage medium
CN109903359A (en)*2019-03-152019-06-18广州市百果园网络科技有限公司A kind of display methods of particle, device, mobile terminal and storage medium
CN110019885A (en)*2017-08-012019-07-16北京搜狗科技发展有限公司A kind of expression data recommended method and device

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CA2202106C (en)*1997-04-082002-09-17Mgi Software Corp.A non-timeline, non-linear digital multimedia composition method and system
CN101179471B (en)*2007-05-312011-07-27腾讯科技(深圳)有限公司Method and apparatus for implementing user personalized dynamic expression picture with characters
US8930463B2 (en)*2007-07-092015-01-06Yahoo! Inc.Super-emoticons
WO2014068573A1 (en)*2012-10-312014-05-08Aniways Advertising Solutions Ltd.Custom emoticon generation
US10334300B2 (en)*2014-12-042019-06-25Cynny SpaSystems and methods to present content
US9805269B2 (en)*2015-11-202017-10-31Adobe Systems IncorporatedTechniques for enhancing content memorability of user generated video content
CN107679497B (en)*2017-10-112023-06-27山东新睿信息科技有限公司Video face mapping special effect processing method and generating system
CN107992246A (en)*2017-12-222018-05-04珠海格力电器股份有限公司Video editing method and device and intelligent terminal
CN108769562B (en)*2018-06-292021-03-26广州酷狗计算机科技有限公司Method and device for generating special effect video
CN108924622B (en)*2018-07-242022-04-22腾讯科技(深圳)有限公司Video processing method and device, storage medium and electronic device
CN109543172B (en)*2018-11-302023-06-02努比亚技术有限公司Editing object regulation and control method, equipment and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105117207A (en)*2015-07-272015-12-02小米科技有限责任公司Album creating method and apparatus
CN106095881A (en)*2016-06-072016-11-09惠州Tcl移动通信有限公司Method, system and the mobile terminal of a kind of display photos corresponding information
CN106791893A (en)*2016-11-142017-05-31北京小米移动软件有限公司Net cast method and device
CN110019885A (en)*2017-08-012019-07-16北京搜狗科技发展有限公司A kind of expression data recommended method and device
CN108038892A (en)*2017-11-282018-05-15北京川上科技有限公司Expression, which packs, makees method, apparatus, electronic equipment and computer-readable recording medium
CN109859102A (en)*2019-02-012019-06-07北京达佳互联信息技术有限公司Special display effect method, apparatus, terminal and storage medium
CN109903359A (en)*2019-03-152019-06-18广州市百果园网络科技有限公司A kind of display methods of particle, device, mobile terminal and storage medium

Also Published As

Publication numberPublication date
CN110582020A (en)2019-12-17

Similar Documents

PublicationPublication DateTitle
CN111105819B (en)Clipping template recommendation method and device, electronic equipment and storage medium
US8270815B2 (en)Online video and audio editing
EP3962067A1 (en)Method and device for adding lyrics to short video
EP2315111B1 (en)Method and apparatus for browsing media content and executing functions related to media content
US20120159329A1 (en)System for creating anchors for media content
CN102843511A (en)Image-related handling support system, information processing apparatus, and image-related handling support method
CN109446199B (en)Cell data processing method and device
CN112016023B (en)Service processing method, device, terminal and storage medium
CN110582020B (en)Video generation method and device, electronic equipment and storage medium
US20240249457A1 (en)System and method to generating video by text
US20150189352A1 (en)Systems and methods for variable video production, distribution and presentation
CN112749327B (en) Content push method and device
US20240406517A1 (en)Video generation method and apparatus, computer device, and storage medium
CN114185465A (en)Information processing method, information processing apparatus, storage medium, and electronic device
CN114244896A (en)Message pushing method and device, electronic equipment and storage medium
CN110476162A (en)Use the action message of navigation memonic symbol control display
JP2022541698A (en) Video material creation method and device, electronic device, computer-readable storage medium, and computer program
EP3944242A1 (en)A system and method to customizing video
CN113518187B (en)Video editing method and device
CN112631587A (en)Interface prototype design method, interface prototype operation method and storage medium
CN104113676B (en)Display control unit and its control method
CN110096392B (en)Method and device for outputting information
CN117311795A (en)APP visual development method and device and electronic equipment
US20140250055A1 (en)Systems and Methods for Associating Metadata With Media Using Metadata Placeholders
CN110557414B (en)Method, device and equipment for downloading service scene

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp