Video generation method, device, electronic device and storage medium
By detecting whether the user account information meets the preset scene conditions and replacing the configuration information in the video template, the problem of low video generation efficiency in the existing technology is solved, and a video with user personalized characteristics is automatically generated in the preset scene. Improved video generation efficiency.
Patent Information
- Application Number
- CN202310087988.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-29
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-01-29
AI Technical Summary
Existing video generation methods require users to manually select materials, resulting in low video generation efficiency.
By detecting whether the user account information meets the preset scene conditions, obtaining the corresponding configuration information and video template, and replacing the configuration information with the preset position in the video template, a video with user personalized characteristics is automatically generated.
Reduce the time it takes users to select materials under preset scene conditions, and improve video generation efficiency and conversion rate.
Smart Images

Figure CN116132731B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to a video generation method, device, electronic device and storage medium. Background Art
[0002] In related technologies, users can create video works based on video templates. Video templates are a technology that can provide users with the ability to quickly publish video works. By using video templates, users only need to select a corresponding number of pictures or videos in the local album, without having to add music, special effects, transitions, and other editing operations to the works themselves, and they can get video works. However, this video generation method requires users to manually select materials, which takes a lot of time for users, resulting in low video generation efficiency. Summary of the invention
[0003] The present disclosure provides a video generation method, device, electronic device and storage medium to at least solve the problem of low video generation efficiency in related technologies. The technical solution of the present disclosure is as follows:
[0004] According to a first aspect of an embodiment of the present disclosure, a video generation method is provided, including:
[0005] When it is detected that the user account information meets the target preset scene condition, obtaining configuration information and a video template corresponding to the target preset scene condition; wherein the configuration information is used to indicate personalized configuration information of the user account information under the preset scene condition;
[0006] The configuration information is replaced at a preset position in the video template to generate a target video.
[0007] In a possible implementation, the method further includes:
[0008] Setting a preset scene; wherein the preset scene is one or more;
[0009] Configure the preset scene conditions corresponding to each of the preset scenes, and the configuration information corresponding to each of the preset scene conditions.
[0010] In a possible implementation, the configuration information is in a text format or a multimedia file format, and the multimedia file format includes at least one of a static image, a dynamic image, and a video file.
[0011] In a possible implementation manner, when the configuration information is in text format, replacing the configuration information to a preset position in the video template to generate a target video includes:
[0012] Acquire a material package corresponding to the video template; wherein the material package includes description data of replaceable materials in text format;
[0013] According to the description data of the replaceable material in the text format in the material package of the video template, the configuration information in the text format is drawn to obtain a replacement picture corresponding to the configuration information in the text format;
[0014] The replacement image is replaced to the preset position in the video template to generate a target video.
[0015] In a possible implementation manner, when the configuration information is in a multimedia file format, replacing the configuration information to a preset position in the video template to generate a target video includes:
[0016] Download configuration information in multimedia file format;
[0017] The configuration information of the multimedia file format is replaced at the preset position in the video template to generate a target video.
[0018] In a possible implementation manner, replacing the configuration information to a preset position in the video template to generate a target video includes:
[0019] Replacing the configuration information with a preset position in the video template to generate a preview video;
[0020] Check whether the user manual configuration mode is turned on;
[0021] In a case where the user manual configuration mode is not enabled, determining the preview video as the target video;
[0022] When the user manual configuration mode is turned on, outputting prompt information; the prompt information is used to prompt the user whether to perform manual configuration;
[0023] When a manual configuration instruction from a user is received, a target video is generated based on the preview video and the material information corresponding to the manual configuration instruction.
[0024] According to a second aspect of an embodiment of the present disclosure, there is provided a video generating device, including:
[0025] An acquisition module, configured to acquire configuration information and a video template corresponding to a target preset scene condition when detecting that the user account information satisfies the target preset scene condition; wherein the configuration information is used to indicate personalized configuration information of the user account information under the preset scene condition;
[0026] A replacement module is used to replace the configuration information to a preset position in the video template to generate a target video.
[0027] In a possible implementation, the device further includes:
[0028] A setting module, used to set a preset scene; wherein the preset scene is one or more;
[0029] The configuration module is used to configure the preset scene conditions corresponding to each of the preset scenes, and the configuration information corresponding to each of the preset scene conditions.
[0030] In a possible implementation, the configuration information is in a text format or a multimedia file format, and the multimedia file format includes at least one of a static image, a dynamic image, and a video file.
[0031] In a possible implementation manner, when the configuration information is in text format, the replacement module includes:
[0032] An acquisition unit, configured to acquire a material package corresponding to the video template; wherein the material package includes description data of replaceable materials in text format;
[0033] A drawing unit, configured to draw the configuration information in text format according to the description data of the replaceable material in text format in the material package of the video template, and obtain a replacement picture corresponding to the configuration information in text format;
[0034] The first replacement unit is used to replace the replacement picture to the preset position in the video template to generate a target video.
[0035] In a possible implementation manner, when the configuration information is in a multimedia file format, the replacement module includes:
[0036] A download unit, used for downloading configuration information in multimedia file format;
[0037] The second replacement unit is used to replace the configuration information of the multimedia file format to the preset position in the video template to generate a target video.
[0038] In a possible implementation, the replacement module includes:
[0039] A third replacing unit, used to replace the configuration information to a preset position in the video template to generate a preview video;
[0040] A detection unit, used to detect whether the user manual configuration mode has been turned on;
[0041] a determining unit, configured to determine the preview video as the target video when the user manual configuration mode is not enabled;
[0042] A prompt unit, used to output a prompt message when the user manual configuration mode is turned on; the prompt message is used to prompt the user whether to perform manual configuration;
[0043] The generating unit is used to generate a target video based on the preview video and the material information corresponding to the manual configuration instruction when receiving the manual configuration instruction from the user.
[0044] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0045] processor;
[0046] a memory for storing instructions executable by the processor;
[0047] The processor is configured to execute the instructions to implement the method as described in any one of the first aspects.
[0048] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute a method as described in any one of the first aspects.
[0049] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the method according to any one of the first aspects is implemented.
[0050] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0051] In the embodiment of the present disclosure, when it is detected that the user account information meets the target preset scene condition, the configuration information and video template corresponding to the target preset scene condition can be obtained; wherein the configuration information is used to indicate the personalized configuration information of the user account information under the preset scene condition; and then the configuration information is replaced to the preset position in the video template to generate the target video. In this way, a video with user personalized characteristics can be automatically generated under the preset scene condition. In this way, compared with the related art that all videos require users to manually select materials, it can reduce the time spent on user selection of materials to a certain extent, and improve the efficiency and conversion rate of video generation.
[0052] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0054] Figure 1 It is a flowchart of a video generation method shown in the related art.
[0055] Figure 2 The figure is a flowchart of a video generating method according to an exemplary embodiment.
[0056] Figure 3 The figure is a flowchart of another video generating method according to an exemplary embodiment.
[0057] Figure 4 It is a block diagram of a video generating device according to an exemplary embodiment.
[0058] Figure 5 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0059] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0060] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0061] As can be seen from the background technology, in the related art, users are required to manually select materials to generate video works. Figure 1In the related art, the process of using video templates to generate videos is usually as follows: 1. The designer designs the video template and produces a material package, which contains common video template configurations such as videos, pictures, music, various special effects, and descriptions of user-replaceable materials. 2. The electronic device client downloads the material package of the video template and parses it; for example, after the user selects a video template, the client will download the material package of the video template and parse various configuration information in the material package. 3. The user manually selects the replacement material. For the replaceable materials marked in the material package, the user can select videos or pictures in the local album as replacement materials. 4. The client completes the replacement of the specified content (i.e., replaceable materials) in the video template with the replacement material and generates a video work, that is, the parsed configuration information in the material package is combined with the local material selected by the user to generate the final video work, and the video work can be selected to be published. This video generation method requires users to manually select materials, which takes a lot of time for users, resulting in low video generation efficiency.
[0062] The video generation method, device, electronic device and storage medium provided by the embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
[0063] Figure 2 FIG. 1 is a flowchart of a video generation method according to an exemplary embodiment. The video generation method can be applied to electronic devices, such as mobile phones, tablet computers, and computers. Figure 2 As shown, the video generation method may include the following steps.
[0064] In step S201, when it is detected that the user account information meets the target preset scene condition, the configuration information and video template corresponding to the target preset scene condition are obtained.
[0065] Among them, the preset scene conditions may be trigger conditions corresponding to preset scenes, and may be trigger conditions corresponding to consumption scenes, social scenes, live broadcast scenes, etc., for example. Among them, the consumption scene conditions may be, for example, detecting that a user account completes a preset number of consumptions or a preset amount of consumption on a video platform with shopping functions (such as a Kuaishou application), and then it can be considered that the consumption scene conditions are met, wherein the preset number and the preset amount can be set by customization, and one or more values can be set, and each value can correspond to a consumption scene; the social scene conditions may be, for example, the number of fans reaches a preset number, the number of likes of a certain video work reaches a preset number, etc. Similarly, the preset number and the preset number can be set by customization, and can be set to one or more values, and each value can correspond to a social scene; the live broadcast scene conditions may be, for example, detecting that the number of viewers of the user account reaches a preset number, the number of shares reaches a preset number, etc. Similarly, the preset number and the preset number can be set by customization, and one or more values can be set, and each value can correspond to a live broadcast scene.
[0066] The configuration information can be used to indicate the personalized configuration information of the user account information under the preset scenario conditions, that is, the configuration information with the personalized features corresponding to the user account information. For example, if the preset scenario condition is a social scenario condition, and the social scenario condition is that the number of fans reaches 1000, the personalized configuration information can be '1000'.
[0067] In the disclosed embodiment, it is possible to detect in real time or periodically whether the user account information satisfies a preset scene condition (i.e., a target preset scene condition), and the target preset scene condition may be one or more of a plurality of preset scene conditions that are pre-set. If it is detected that the user account information satisfies the target preset scene condition, the configuration information and video template corresponding to the target preset scene condition may be obtained. It is understandable that, in order to save space on the electronic device side, the configuration information and video template corresponding to each preset scene condition may be stored in a cloud server, and the electronic device may obtain the required configuration information and video template from the cloud server; obtaining a video template may also be understood as obtaining a material package of a video template, which may include configurations such as videos, pictures, music, various special effects, etc. that are common to the video template, as well as description data of user-replaceable materials.
[0068] In step S202, the configuration information is replaced to a preset position in the video template to generate a target video.
[0069] In an embodiment of the present disclosure, after obtaining the configuration information and video template corresponding to the target preset scene condition, the configuration information corresponding to the target preset scene condition can be replaced to the corresponding position (i.e., the preset position) in the video target to generate a new video file, i.e., the target video. Exemplarily, the configuration information can be used as a replacement material, and the configuration information can be replaced to the preset position in the video template according to the description data of the user-replaceable material in the material package of the video target. It can be understood that the description data of the user-replaceable material can include a description of how to process the replacement material and what position (i.e., the preset position) to replace it.
[0070] In the embodiment of the present disclosure, when it is detected that the user account information meets the target preset scene condition, the configuration information and video template corresponding to the target preset scene condition can be obtained; wherein the configuration information is used to indicate the personalized configuration information of the user account information under the preset scene condition; and then the configuration information is replaced to the preset position in the video template to generate the target video. In this way, a video with user personalized characteristics can be automatically generated under the preset scene condition. In this way, compared with the related art that all videos require users to manually select materials, it can reduce the time spent on user selection of materials to a certain extent, and improve the efficiency and conversion rate of video generation.
[0071] In a possible implementation manner, before the video generation method provided in the embodiment of the present disclosure is executed, the following processing may also be included:
[0072] Set a preset scene; wherein the preset scene is one or more;
[0073] Configure the preset scene conditions corresponding to each preset scene, and the configuration information corresponding to each preset scene condition.
[0074] In an embodiment of the present disclosure, before the video generation method provided in the embodiment of the present disclosure is executed, a preset scene can be pre-set, and the preset scene can be multiple, for example, including the above-mentioned consumption scene, social scene, live broadcast scene, etc. Then, the preset scene conditions and corresponding configuration information corresponding to each preset scene can also be configured. Exemplarily, the consumption scene condition can be, for example, a user account completes a preset number of consumptions or a preset amount of consumption on a video platform with a shopping function (such as a Kuaishou application), and then it can be considered that the consumption scene condition is met, wherein the preset number and the preset amount are the corresponding configuration information, and its value can be set by customization, and one or more values can be set, and each value can correspond to a consumption scene; the social scene condition can be, for example, the number of fans reaches a preset number, the number of likes of a certain video work reaches a preset number, etc., and the preset number and the preset number are the corresponding configuration information, and its value can be set by customization, and can be set to one or more values, and each value can correspond to a social scene; the live broadcast scene condition can be, for example, the number of viewers of the user account reaches a preset number, the number of shares reaches a preset number, etc., and the preset number and the preset number are the corresponding configuration information, and its value can be set by customization, and one or more values can be set, and each value can correspond to a live broadcast scene. In this way, the scene conditions and their corresponding configuration information can be preset in advance to provide a data basis for the execution of the subsequent video generation method.
[0075] In a possible implementation, the configuration information may be in text format or multimedia file format. The text format may be in plain text format; the multimedia file format may include at least one of a static image, a dynamic image, and a video file, wherein the dynamic image may be, for example, at least one of a GIF (Graphics Interchange Format) dynamic image and a WebP format dynamic image, and the WebP format is an image file format that provides both lossy compression and lossless compression (reversible compression). In this way, configuration information in a variety of different formats may be supported, thereby improving the applicability of the video generation method.
[0076] In a further possible implementation, when the configuration information is in text format, the configuration information is replaced to a preset position in the video template in the above step, and a specific implementation method of generating the target video may be as follows:
[0077] Obtain a material package corresponding to the video template; wherein the material package includes description data of replaceable materials in text format;
[0078] According to the description data of the replaceable material in the text format in the material package of the video template, the configuration information in the text format is drawn to obtain the replacement image corresponding to the configuration information in the text format;
[0079] Replace the replacement image to the preset position in the video template to generate the target video.
[0080] In an embodiment of the present disclosure, if the format of the configuration file is text format, when replacing the configuration information to the preset position in the video template and generating the target video, the material package of the video template can be obtained first. The material package can include description data of replaceable materials in text format, and can also include video, pictures, music, various special effects and other configurations common to the video template. It can be understood that the material package can be pre-stored in the cloud for electronic devices to obtain; or it can also be stored on the electronic device side. After obtaining the material package of the video template, the material package can be parsed to obtain description data of replaceable materials in text format, and then the configuration information in text format can be drawn according to the description data of replaceable materials in text format to obtain the picture corresponding to the configuration information in text format, that is, the replacement picture. Afterwards, the replacement picture can be replaced to the preset position in the video template to obtain a new video work, that is, the target video. In this way, the replacement of the configuration information in text format can be achieved by drawing the configuration information in text format into a picture.
[0081] In a further possible implementation, when the configuration information is in a multimedia file format, the configuration information is replaced to a preset position in the video template in the above step, and a specific implementation method for generating a target video may be as follows:
[0082] Download configuration information in multimedia file format;
[0083] The configuration information of the multimedia file format is replaced to the preset position in the video template to generate the target video.
[0084] In an embodiment of the present disclosure, if the configuration file is in a multimedia file format, such as a static image, a dynamic image, a video file, etc., when replacing the configuration information at a preset position in a video template and generating a target video, the configuration file in the multimedia format can be downloaded, that is, the configuration information in the format of a static image, a dynamic image, a video file, etc. can be downloaded. Then, the configuration information in the multimedia file format can be directly replaced at the preset position in the video template to obtain the target video. In this way, the replacement of the configuration information in the multimedia file format can be achieved.
[0085] In some possible implementations, in the above steps, the configuration information is replaced to a preset position in the video template, and a specific implementation method for generating a target video may also be as follows:
[0086] Replace the configuration information to the preset position in the video template to generate a preview video;
[0087] Check whether the user manual configuration mode is turned on;
[0088] When the user manual configuration mode is not enabled, the preview video is determined as the target video;
[0089] When the user manual configuration mode is enabled, a prompt message is output; the prompt message is used to prompt the user whether to perform manual configuration;
[0090] When a manual configuration instruction from the user is received, a target video is generated based on the preview video and the material information corresponding to the manual configuration instruction.
[0091] The user manual configuration mode is used to indicate that the user can manually select a mode for replacing the material.
[0092] In the embodiment of the present disclosure, considering that the user may not be satisfied with the video work generated based on the corresponding personalized configuration information, it is also possible to choose whether to perform manual configuration. Exemplarily, the configuration information can be replaced to the preset position in the video template to generate a preview video, which can be viewed by the user on demand; it can also be detected whether the user manual configuration mode is currently turned on, and the user manual configuration mode can be configured by the background technician, or it can also be manually controlled by the user. If the user manual configuration mode is not turned on, it can be considered that the user does not need to adjust the preview video, and the preview video can be directly determined as the target video. On the contrary, if the user manual configuration mode is turned on, a prompt message can be output to prompt the user whether the preview video needs to be manually configured. If the user needs to manually configure the preview video, the electronic device can be operated so that the electronic device can receive the user's manual configuration instruction. In the case of receiving the user's manual configuration instruction, the electronic device can obtain the material information corresponding to the manual configuration instruction, which is the replacement material, for example, the replacement material can be selected from the album (scene frame dedicated album page), and then the replacement material can be replaced to the preset position in the preview video to obtain the target video. In this way, if the user manual configuration mode is not turned on, the entire process does not require user participation, and the video can be produced with one click, thereby improving the efficiency of video generation; if the user manual configuration mode is turned on, the video can also be edited according to user needs, thereby improving user satisfaction with the generated target video and improving user experience.
[0093] To make the video generation method provided by the embodiment of the present disclosure clearer, Figure 3 The video generation method provided by the embodiment of the present disclosure is described.
[0094] The video generation method provided by the embodiment of the present disclosure is to send the user personalized configuration information configured by the production and operation side to the server, and the electronic device parses and renders to generate the corresponding personalized replacement image to replace the preset position in the video template, so as to realize the personalized customization of the video work and obtain the target video. It can be understood that the electronic device can use the dynamic framework of the scene work, such as Figure 3 As shown, the dynamic framework of scene works can be used to design video templates and produce material packages, download and parse material packages of video templates, generate personalized configuration information based on material packages, issue personalized configuration information, parse personalized configuration information to generate replacement materials, users manually select replacement materials, generate video works, publish video works, etc. Among them, the process of generating personalized configuration information based on material packages, issuing personalized configuration information, parsing personalized configuration information to generate replacement materials, etc. is a unique process of the video generation method provided by the embodiment of the present disclosure, and the personalized configuration information can be configured as needed. In this way, efficient and customized video works can be provided to users. At the same time, since the personalized configuration information is configurable, the applicability of the video generation method can be improved in the embodiment of the present disclosure.
[0095] Among them, scene-based works refer to works with user personalized information based on specific business scenarios. Its characteristics are: when users trigger certain behaviors / reach certain conditions (i.e. preset scene conditions), guide users to post video works; produce and create based on video templates, and the templates contain personalized content; reuse the existing video production editing / video publishing main process. The dynamic framework of scene-based works refers to the dynamic production process. Different video templates can be configured with different personalized configuration information and correspond to different personalized configuration information to generate different personalized video works. The video template configuration is implemented by the cloud, and the whole process can be edited manually by the user. It is understandable that if you want to add one or several preset scenes, you don’t need to publish the electronic device client. You only need to design the relevant video templates in the cloud and call the specific interface to call the production process, and you can enter the production process to complete the editing and publishing of the works. In this way, you can quickly build a new personalized video work generation link through the background configuration. Among them, the specific interface can be called up through the internal interface of the client, through H5 (HTML5.0, Hypertext 5.0) or RN (React Native) through the relevant bridge. It is understandable that for the video editing page, it can display editing options such as [soundtrack], [cover], [text], [sticker], [clip], etc., and can also support the distribution of soundtracks, shielding of automatic music, support the distribution of label stickers (distribution of copy, client-generated label stickers), support video work drafts, etc.; for the video publishing page, it can display button controls such as [Post Moment] and [Next], the two controls can be configured independently, and it can also support adding new video works, default copy for publishing pages, and default reminders for friends to watch (such as @ friends, etc.). For video templates, it can support multiple definitions, such as 1080P, and support templates with any aspect ratio; for replacement materials within video templates, it can support text formats, multimedia file formats, etc., and can also support local files manually selected by users.
[0096] Based on the same inventive concept, the embodiment of the present disclosure also provides a video generating device, such as Figure 4 As shown, Figure 4 is a block diagram of a video generation device according to an exemplary embodiment. Figure 4 , the video generating device 400 may include:
[0097] The acquisition module 410 is used to acquire configuration information and a video template corresponding to the target preset scene condition when detecting that the user account information meets the target preset scene condition; wherein the configuration information is used to indicate the personalized configuration information of the user account information under the preset scene condition;
[0098] The replacement module 420 is used to replace the configuration information to a preset position in the video template to generate a target video.
[0099] In a possible implementation manner, the device 400 further includes:
[0100] A setting module, used to set a preset scene; wherein the preset scene is one or more;
[0101] The configuration module is used to configure the preset scene conditions corresponding to each of the preset scenes, and the configuration information corresponding to each of the preset scene conditions.
[0102] In a possible implementation, the configuration information is in a text format or a multimedia file format, and the multimedia file format includes at least one of a static image, a dynamic image, and a video file.
[0103] In a possible implementation manner, when the configuration information is in text format, the replacement module 420 includes:
[0104] An acquisition unit, configured to acquire a material package corresponding to the video template; wherein the material package includes description data of replaceable materials in text format;
[0105] A drawing unit, configured to draw the configuration information in text format according to the description data of the replaceable material in text format in the material package of the video template, and obtain a replacement picture corresponding to the configuration information in text format;
[0106] The first replacement unit is used to replace the replacement picture to the preset position in the video template to generate a target video.
[0107] In a possible implementation manner, when the configuration information is in a multimedia file format, the replacement module 420 includes:
[0108] A download unit, used for downloading configuration information in multimedia file format;
[0109] The second replacement unit is used to replace the configuration information of the multimedia file format to the preset position in the video template to generate a target video.
[0110] In a possible implementation, the replacement module 420 includes:
[0111] A third replacing unit, used to replace the configuration information to a preset position in the video template to generate a preview video;
[0112] A detection unit, used to detect whether the user manual configuration mode has been turned on;
[0113] a determining unit, configured to determine the preview video as the target video when the user manual configuration mode is not enabled;
[0114] A prompt unit, used to output a prompt message when the user manual configuration mode is turned on; the prompt message is used to prompt the user whether to perform manual configuration;
[0115] The generating unit is used to generate a target video based on the preview video and the material information corresponding to the manual configuration instruction when receiving the manual configuration instruction from the user.
[0116] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0117] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a computer-readable storage medium, and a computer program product.
[0118] Figure 5 A schematic block diagram of an example electronic device 500 that can be used to implement an embodiment of the present disclosure is shown. The electronic device 500 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0119] like Figure 5 As shown, the electronic device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0120] Multiple components in the electronic device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the electronic device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0121] The computing unit 501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 501 performs the various methods and processes described above, such as a video generation method. For example, in some embodiments, the video generation method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 500 via ROM 502 and / or communication unit 509. When the computer program is loaded into RAM 503 and executed by the computing unit 501, one or more steps of the video generation method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the video generation method in any other appropriate manner (e.g., by means of firmware).
[0122] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0123] The program code of the computer program product for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0124] In the context of the present disclosure, a computer-readable storage medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may be a machine-readable signal medium or a machine-readable storage medium. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a computer-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0125] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0126] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain network.
[0127] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.
[0128] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0129] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A video generation method, It is characterized in that include: When it is detected that the user account information meets the target preset scene condition, obtaining configuration information and a video template corresponding to the target preset scene condition; wherein the configuration information is used to indicate personalized configuration information of the user account information under the preset scene condition; The configuration information is replaced at a preset position in the video template to generate a target video.
2. The video generation method according to claim 1, It is characterized in that The method further comprises: Setting a preset scene; wherein the preset scene is one or more; Configure the preset scene conditions corresponding to each of the preset scenes, and the configuration information corresponding to each of the preset scene conditions.
3. The video generation method according to claim 1, It is characterized in that The configuration information is in a text format or a multimedia file format, and the multimedia file format includes at least one of a static picture, a dynamic picture, and a video file.
4. The video generation method according to claim 3, It is characterized in that In the case where the configuration information is in text format, replacing the configuration information to a preset position in the video template to generate a target video includes: Acquire a material package corresponding to the video template; wherein the material package includes description data of replaceable materials in text format; According to the description data of the replaceable material in the text format in the material package of the video template, the configuration information in the text format is drawn to obtain a replacement picture corresponding to the configuration information in the text format; The replacement image is replaced to the preset position in the video template to generate a target video.
5. The video generation method according to claim 3, It is characterized in that In the case where the configuration information is in a multimedia file format, replacing the configuration information to a preset position in the video template to generate a target video includes: Download configuration information in multimedia file format; The configuration information of the multimedia file format is replaced at the preset position in the video template to generate a target video.
6. The video generation method according to claim 1, It is characterized in that The step of replacing the configuration information to a preset position in the video template to generate a target video includes: Replacing the configuration information with a preset position in the video template to generate a preview video; Check whether the user manual configuration mode is turned on; In a case where the user manual configuration mode is not enabled, determining the preview video as the target video; When the user manual configuration mode is turned on, outputting prompt information; the prompt information is used to prompt the user whether to perform manual configuration; When a manual configuration instruction from a user is received, a target video is generated based on the preview video and the material information corresponding to the manual configuration instruction.
7. A video generating device, It is characterized in that include: An acquisition module, configured to acquire configuration information and a video template corresponding to a target preset scene condition when detecting that the user account information satisfies the target preset scene condition; wherein the configuration information is used to indicate personalized configuration information of the user account information under the preset scene condition; A replacement module is used to replace the configuration information to a preset position in the video template to generate a target video.
8. An electronic device, It is characterized in that include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the video generating method according to any one of claims 1 to 6. 9 . A computer-readable storage medium, when instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the video generating method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the video generating method according to any one of claims 1 to 6 is implemented.
