Multimedia resource generation method, device, electronic device and readable storage medium
By obtaining multimedia resources and displaying format configuration prompt information, and updating the format format of the multimedia resource in response to user requests, the problem that the format format of the multimedia resource in the prior art cannot be changed is solved, and the user experience is improved.
Patent Information
- Application Number
- CN202210272276.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-18
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2042-03-18
AI Technical Summary
The format of multimedia resources in the prior art cannot be changed, resulting in poor user experience.
By obtaining multimedia resources and displaying format configuration prompt information, determining the target configuration template in response to user requests, filling the multimedia resources into the template to update the format format, and realizing changes in format format.
It solves the problem that the format of multimedia resources cannot be changed and improves the user experience.
Smart Images

Figure CN115243100B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing, and in particular to a method, device, electronic device and readable storage medium for generating multimedia resources. Background Art
[0002] With the development of science and technology, more and more users like to shoot multimedia resources, such as videos and pictures, and upload them to the network platform for more users to watch. However, the frame format of the multimedia resources shot or uploaded currently depends on the shooting method and cannot be changed, resulting in poor user experience. Summary of the invention
[0003] The present disclosure provides a multimedia resource generation method, device, electronic device and readable storage medium to at least solve the problem that the picture format of multimedia resources cannot be changed in the traditional solution and improve the user experience. The technical solution of the present disclosure is as follows.
[0004] According to a first aspect of an embodiment of the present disclosure, a method for generating multimedia resources is provided, including:
[0005] Acquire a multimedia resource, and display the multimedia resource and frame format configuration prompt information for the multimedia resource; the multimedia resource includes a frame in a first format.
[0006] In response to a configuration request triggered by the frame format configuration prompt information, a target configuration template of a second format is determined.
[0007] Fill the multimedia resources into the preset module in the target configuration template.
[0008] Based on the configuration information in the target configuration template, the frames in the multimedia resource are updated to a second format to obtain a target multimedia resource.
[0009] Optionally, the method further includes:
[0010] In response to a modification operation triggered on the configuration information, modified configuration information is determined.
[0011] The updating of the frame in the multimedia resource to the second format based on the configuration information in the target configuration template to obtain the target multimedia resource includes:
[0012] Based on the modified configuration information, the frames in the multimedia resource are updated to a second format to obtain a target multimedia resource.
[0013] Optionally, before responding to a modification operation triggered on the configuration information, the method further includes:
[0014] Display configuration information modification prompt information, where the configuration information modification prompt information is used to indicate that the configuration information is to be modified.
[0015] Optionally, the configuration request includes a user identifier, and the method further includes:
[0016] It is determined whether the user identifier of the user corresponding to the target configuration template includes the user identifier.
[0017] The display configuration information modification prompt information includes:
[0018] If the user identifier of the user corresponding to the target configuration template does not include the user identifier, configuration information modification prompt information is displayed.
[0019] Optionally, the configuration information includes text; the text includes at least one of main title text, subtitle text, and subtitles.
[0020] Optionally, the modification operation includes at least one of a text content modification operation, a text style modification operation, and a text position modification operation.
[0021] Optionally, the displaying of the frame format configuration prompt information for the multimedia resource includes:
[0022] Displaying the frame format configuration prompt information for the multimedia resource within a preset time period.
[0023] Optionally, the method further includes:
[0024] In response to a triggering operation other than the frame format configuration prompt information within the preset time period, the display of the frame format configuration prompt information is stopped.
[0025] Optionally, after filling the multimedia resources into the preset module in the target configuration template, the method further includes:
[0026] Based on the multimedia resources, Gaussian blur processing is performed on the background images of other modules in the target configuration template except the preset module.
[0027] According to a second aspect of an embodiment of the present disclosure, there is provided a multimedia resource generating device, including:
[0028] The first display module is configured to obtain multimedia resources and display the multimedia resources and frame format configuration prompt information for the multimedia resources; the multimedia resources include frames in a first format.
[0029] The first determination module is configured to determine a target configuration template of a second format in response to a configuration request triggered by the frame format configuration prompt information.
[0030] A configuration module is configured to fill the multimedia resources into a preset module in the target configuration template.
[0031] The generating module is configured to update the frames in the multimedia resource to a second format based on the configuration information in the target configuration template to obtain the target multimedia resource.
[0032] Optionally, the device further comprises:
[0033] The second determining module is configured to determine the modified configuration information in response to a modification operation triggered on the configuration information.
[0034] The generating module is specifically configured to update the frames in the multimedia resource to a second format based on the modified configuration information to obtain a target multimedia resource.
[0035] Optionally, the device further comprises:
[0036] The second display module is configured to display configuration information modification prompt information, where the configuration information modification prompt information is used to indicate that the configuration information is to be modified.
[0037] Optionally, the configuration request includes a user identifier, and the device further includes:
[0038] The judgment module is configured to judge whether the user identifier corresponding to the target configuration template includes the user identifier.
[0039] The second display module is configured to display configuration information modification prompt information when the result of the judgment module is no.
[0040] Optionally, the first display module is specifically configured to acquire multimedia resources, display the multimedia resources, and display frame format configuration prompt information for the multimedia resources within a preset time period; the multimedia resources include frames in a first format.
[0041] Optionally, the device further comprises:
[0042] The processing module is configured to perform Gaussian blur processing on the background images of other modules in the target configuration template except the preset module based on the multimedia resources.
[0043] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0044] processor.
[0045] A memory for storing instructions executable by the processor.
[0046] The processor is configured to execute the instructions to implement the multimedia resource generation method described in the first aspect.
[0047] 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 the multimedia resource generation method described in the first aspect.
[0048] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, comprising computer instructions, which, when executed by a processor, implement the multimedia resource generation method described in the first aspect.
[0049] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0050] A multimedia resource with a frame format of a first format is obtained, and the multimedia resource and frame format configuration prompt information for the multimedia resource are displayed to indicate that the frame format of the multimedia resource is to be configured. Afterwards, in response to a configuration request triggered by the frame format configuration prompt information, a target configuration template of a second format can be determined. The second format can be the target frame format of the multimedia resource. The multimedia resource is filled into a preset module in the target configuration template, and based on the configuration information in the target configuration template, the frame in the multimedia resource is updated to the second format to obtain the target multimedia resource. By using the above-mentioned target configuration template, the frame format of the multimedia resource can be changed from the initial first format to the second format, i.e., the target frame format, which solves the problem that the frame format of the multimedia resource cannot be changed in the traditional solution and improves the user experience.
[0051] 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
[0052] 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.
[0053] Figure 1 The figure is a flowchart of a multimedia resource generating method according to an exemplary embodiment.
[0054] Figure 2-1 The present invention is a schematic diagram showing a multimedia resource and prompt information of a frame format configuration for the multimedia resource according to an exemplary embodiment.
[0055] Figure 2-2The figure is a schematic diagram of configuration information in a configuration template according to an exemplary embodiment.
[0056] Figure 2-3 The present invention is a schematic diagram showing configuration information modification prompt information according to an exemplary embodiment.
[0057] Figure 2-4 The figure is a schematic diagram showing a method of modifying configuration information according to an exemplary embodiment.
[0058] Figure 3 The figure is a flowchart of a method for generating multimedia resources according to another exemplary embodiment.
[0059] Figure 4 The figure is a schematic diagram of the structure of a multimedia resource generating device according to an exemplary embodiment.
[0060] Figure 5 The diagram is a schematic structural diagram of an electronic device according to an exemplary embodiment.
[0061] 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.
[0062] 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.
[0063] The technical solution disclosed in the present invention is applicable to the generation scenario of multimedia resources. With the development of science and technology, more and more users like to shoot multimedia resources, such as videos, pictures, etc., and upload them to the network platform for more users to watch. However, the frame format of the multimedia resources shot or uploaded currently depends on the shooting method and cannot be changed, resulting in poor user experience.
[0064] In order to solve the above technical problems, the inventors proposed the technical solution of the present disclosure after a series of thinking and experiments, and provided a multimedia resource generation method, including obtaining multimedia resources, and displaying the multimedia resources and frame format configuration prompt information for the multimedia resources; the multimedia resources include frames in a first format; in response to a configuration request triggered by the frame format configuration prompt information, determining a target configuration template in a second format; filling the multimedia resources into a preset module in the target configuration template; based on the configuration information in the target configuration template, updating the frame in the multimedia resource to the second format to obtain the target multimedia resource.
[0065] In the technical solution disclosed in the present invention, a multimedia resource with a frame format of a first format can be obtained, and the multimedia resource and frame format configuration prompt information for the multimedia resource can be displayed to indicate the configuration of the frame format of the multimedia resource. Afterwards, in response to a configuration request triggered by the frame format configuration prompt information, a target configuration template of a second format can be determined. The second format can be the target frame format of the multimedia resource. The multimedia resource is filled into a preset module in the target configuration template, and based on the configuration information in the target configuration template, the frame in the multimedia resource is updated to the second format to obtain the target multimedia resource. By using the above-mentioned target configuration template, the frame format of the multimedia resource can be changed from the initial first format to the second format, i.e., the target frame format, which solves the problem that the frame format of the multimedia resource cannot be changed in the traditional solution and improves the user experience.
[0066] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0067] Figure 1 The flowchart of a multimedia resource generation method according to an exemplary embodiment is shown. The method may include the following steps.
[0068] In step S11, multimedia resources are acquired, and the multimedia resources and prompt information for the frame format configuration of the multimedia resources are displayed.
[0069] The multimedia resource includes a frame in a first format.
[0070] In this embodiment, the multimedia resource generation method can be applied to a user terminal. The user terminal can be configured in a user device, such as a mobile phone, a tablet computer, a smart watch, a computer device, or other intelligent terminal devices. The user terminal can obtain multimedia resources. Among them, the multimedia resources may include videos, pictures, and the like.
[0071] Specifically, there are multiple ways to obtain multimedia resources. Taking the multimedia resource as a video as an example, as an optional implementation method, a video can be generated in response to a user-triggered shooting operation on the video. For example, a virtual button for video shooting can be provided in the user interface, and a video is generated in response to a user triggering operation on the virtual button. As another optional implementation method, an uploaded video can be obtained in response to a user-triggered upload operation on the video. The video can be stored in a media file database of the user device. Taking the user device as a mobile phone as an example, the video can be stored in a disk. A virtual button for video upload can be provided in the user interface, and in response to a user triggering operation on the virtual button, the uploaded video stored in the media file database of the user device is obtained. In actual applications, there can be other implementation methods for obtaining multimedia resources, which are not specifically limited.
[0072] After acquiring the above multimedia resources, the frame format of the multimedia resources can be determined. The frame format of the multimedia resources can refer to the proportional relationship of the frame edges of the multimedia resources, such as the ratio between the width and height of the multimedia resources, which can be called the aspect ratio, and can include 16:9, 9:16, 4:3, 3:4 and other formats. Optionally, the frame with an aspect ratio greater than the value 1 can be called a horizontal screen frame, and the frame with an aspect ratio less than the value 1 can be called a vertical screen frame. At this time, the frame format of the multimedia resources can include a horizontal screen format and a vertical screen format, without specific limitation. In practical applications, the frame format of multimedia resources usually depends on the shooting method. For example, taking the user device as a mobile phone and the multimedia resource as a video as an example, the video shot when the mobile phone is in horizontal screen has a frame format of a horizontal screen format, and the video shot when the mobile phone is in vertical screen has a frame format of a vertical screen format, etc. Therefore, after the multimedia resource is generated, its frame format is usually fixed, and the frame format can be directly determined.
[0073] Furthermore, the multimedia resource can be displayed, and the frame format configuration prompt information for the multimedia resource can be displayed. The frame format configuration prompt information can be used to indicate the configuration of the frame format of the multimedia resource, such as modifying the frame format, etc. For ease of description, the frame format of the multimedia resource determined above can be referred to as the first format. Specifically, the above multimedia resources and frame format configuration prompt information can be displayed in the user terminal interface. The frame format configuration prompt information can be displayed at any position of the interface, such as the upper left corner, lower left corner, lower right corner, etc. The frame format configuration prompt information can include a variety of implementation methods, such as frame format configuration prompt text, frame format configuration prompt button, etc., which can be set according to the actual application scenario without specific limitation. For ease of understanding, Figure 2-1 is a schematic diagram showing a multimedia resource and a prompt information for configuring a frame format of the multimedia resource according to an exemplary embodiment. Figure 2-1 As shown, the interface displays multimedia resource M and frame format configuration prompt information N1. The frame format of the multimedia resource M is a horizontal screen format. The frame format configuration prompt information N1 is located in the lower left corner of the interface and is implemented as a frame format configuration prompt text. The prompt text is "One-click to vertical screen,...", etc., to prompt the user to configure the frame format of the multimedia resource M, such as changing the horizontal screen format of the multimedia resource M to a vertical screen format.
[0074] Optionally, the multimedia resource generation method can also be applied to the server. The server can establish a communication connection with the client, obtain the multimedia resource, and send the frame format configuration prompt information for the multimedia resource to the client so that the client can display it.
[0075] Optionally, the display time of the above-mentioned picture format configuration prompt information can be preset, which can be called a preset time period, and the picture format configuration prompt information is displayed within the preset time period. The preset time period can be set according to the actual application scenario, such as 5s, 10s, etc., without limitation. Within the preset time period, if a user's operation triggered by the picture format configuration prompt information is responded to, such as a click operation, which can include a single click, a double click, etc., without limitation, it can be indicated that the user has a need to configure the picture format of the multimedia resource, and subsequent picture format configuration processing can be performed. If no response is received to the user's operation triggered by the picture format configuration prompt information, it can be indicated that the user has no need to configure the picture format of the multimedia resource, and there is no need to perform subsequent picture format configuration processing at this time, and after the preset time ends, the picture format configuration prompt information is stopped from being displayed.
[0076] Optionally, if within the preset time period, a user trigger operation other than the frame format configuration prompt information is responded to, the display of the frame format configuration prompt information may also be stopped. Figure 2-1 As shown, the trigger operation for other than the frame format configuration prompt information can be a trigger operation for other positions in the interface except the position where the frame format configuration prompt information is located, such as clicking the position where the multimedia resource M is located in the interface, the black position below the multimedia resource M, etc., or a trigger operation for other information except the frame format configuration prompt information, such as clicking the "text" information, "soundtrack" information, etc. below the interface, and can also include other trigger operations without limitation. At this time, it can be indicated that the user has no need to configure the frame format of the multimedia resource, and there is no need to perform subsequent frame format configuration processing, and the display of the frame format configuration prompt information can be stopped.
[0077] In step S12, in response to a configuration request triggered by the frame format configuration prompt information, a target configuration template of the second format is determined.
[0078] The configuration template may include configuration information, which may include text, pictures, etc. The configuration information may be set at a preset position in the configuration template.
[0079] Optionally, the configuration information may include text; the text may include at least one of main title text, subtitle text, and subtitles. Figure 2-2 is a schematic diagram showing configuration information in a configuration template according to an exemplary embodiment. Figure 2-2 As shown, the configuration template includes main title text, subtitle text and subtitles, and the main title text is set in the upper middle position of the configuration template, the subtitle text is set below the main title text position in the configuration template, and the subtitles are set in the lower middle position of the configuration template.
[0080] The target configuration template of the second format may refer to the target configuration template having the second format. For ease of description, the target format of the multimedia resource may be referred to as the second format, and the second format is different from the first format. For example, when the first format is a horizontal screen format, the second format may be a vertical screen format; when the first format is a 9:16 aspect ratio, the second format may be a 16:9 aspect ratio, etc.
[0081] In actual applications, multiple configuration templates for different frame formats can be pre-set, such as a configuration template for a horizontal screen format, a configuration template for a vertical screen format, a configuration template with an aspect ratio of 16:9, a configuration template with an aspect ratio of 9:16, etc., and the multiple configuration templates can be stored so that when responding to a configuration request triggered by frame format configuration prompt information, the configuration request can include a second format, and a target configuration template of the second format is determined from the stored multiple configuration templates.
[0082] Specifically, the configuration request may be generated in response to an operation triggered by the user in response to the prompt information for configuring the frame format, such as a click operation, which may include a single click, a double click, etc., without limitation.
[0083] Optionally, in response to an operation triggered by a user in response to prompt information on the frame format configuration, a selection list containing multiple different frame formats may be displayed in the interface; based on a selection operation triggered by the user on any one of the multiple frame formats, the selected frame format is determined to be the target frame format, i.e., the second format, and a configuration request containing the second format is generated.
[0084] Optionally, in response to an operation triggered by the user in response to the frame format configuration prompt information, a frame format input box and an input keyboard may be displayed in the interface, and based on the input operation triggered by the user in the input box, the input frame format is determined to be the second format, and a configuration request containing the second format is generated.
[0085] There may be other optional implementations for generating the above configuration request, which may be set according to actual application scenarios without limitation.
[0086] In step S13, the multimedia resources are filled into the preset modules in the target configuration template.
[0087] According to the determined target configuration template, multimedia resources can be filled into the preset module in the target configuration template. The configuration template can be pre-set with a module for adding multimedia resources to be configured. The frame format of the module can be consistent with the frame format of the multimedia resources to be configured, and the module can be set at any position in the configuration template, such as the middle position, the upper middle position, etc. Optionally, the module can be set at other positions in the configuration module except the position where the configuration information is located, to avoid mutual obstruction between the multimedia resources and the configuration information after the multimedia resources are filled in. Figure 2-2 As shown, if the configuration template is a target configuration template, the main title text is set in the upper middle position of the target configuration template, and the subtitle text is set below the main title text. Below the position of the subtitle text is the position of the preset module, and the frame format of the preset module is a horizontal screen format, which is consistent with the frame format of the multimedia resources to be configured. The multimedia resources to be configured are filled in the preset module, and subtitles are set below the preset module.
[0088] In step S14, based on the configuration information in the target configuration template, the frames in the multimedia resource are updated to the second format to obtain the target multimedia resource.
[0089] After the multimedia resources are filled into the preset module in the target configuration template, the frame of the multimedia resources can be updated to the second format based on the configuration information in the target configuration template to obtain the target multimedia resources in the second format. Specifically, the target multimedia resources consistent with the frame format of the target configuration template can be generated based on the configuration information and multimedia resources in the target configuration template, and the target multimedia resources include not only the initial multimedia resources but also the configuration information, and the frame of the target multimedia resources is in the second format.
[0090] In this embodiment, a multimedia resource with a frame format of a first format can be obtained, and the multimedia resource and frame format configuration prompt information for the multimedia resource can be displayed to indicate the configuration of the frame format of the multimedia resource. Afterwards, in response to a configuration request triggered by the frame format configuration prompt information, a target configuration template of a second format can be determined. The second format can be the target frame format of the multimedia resource. The multimedia resource is filled into a preset module in the target configuration template, and based on the configuration information in the target configuration template, the frame in the multimedia resource is updated to the second format to obtain the target multimedia resource. By using the above-mentioned target configuration template, the frame format of the multimedia resource can be changed from the initial first format to the second format, i.e., the target frame format, which solves the problem that the frame format of the multimedia resource cannot be changed in the traditional solution and improves the user experience.
[0091] In practical applications, in order to improve the generation effect of the target multimedia resources, in the above method, after the multimedia resources are filled into the preset module in the target configuration template, the method may further include:
[0092] Based on multimedia resources, the background images of modules other than the preset modules in the target configuration template are Gaussian blurred.
[0093] Among them, based on the background of the multimedia resource, the background images of other modules in the target configuration template except the preset module where the multimedia resource is located can be Gaussian blurred to make the background of other modules similar to the background of the multimedia resource. Optionally, based on the background color of the multimedia resource, the background images of other modules can be Gaussian blurred to make the background color of other modules similar to the background color of the multimedia resource. Optionally, based on the background pattern of the multimedia resource, the background images of other modules can be Gaussian blurred to make the background pattern of other modules similar to the background pattern of the multimedia resource. Figure 2-2As shown, if the configuration template is a target configuration template, the background color of the multimedia resource M is gray. In the target configuration template, except for the preset module where the multimedia resource M is located, the background images of the locations of other modules are processed by Gaussian blur, and the background color is changed to be similar to gray, thereby improving the background coordination of the target multimedia resource, facilitating user viewing, and improving user experience.
[0094] The specific implementation process of Gaussian blur processing can refer to the implementation process in the traditional solution, which will not be repeated here.
[0095] In practical applications, in order to improve the flexibility of multimedia resource configuration and further improve user experience, the configuration information in the above-mentioned target configuration template can also be modified. Among them, the pre-set configuration templates may include configuration templates whose partial configuration information cannot be modified, and may also include configuration templates whose partial configuration information can be modified. Optionally, in the above method, in response to a configuration request triggered by the frame format configuration prompt information, a configuration template of the second format can be determined from the configuration templates whose partial configuration information can be modified.
[0096] Combination Figure 2-1 As shown, the frame format configuration prompt information may include a "Go and Try" button. In response to the user's click operation on the button, it can be determined that the user has a need to modify the configuration information. At this time, the configuration template of the second format can be determined from the configuration templates whose partial configuration information can be modified. Optionally, if in response to the user's click operation on the "One-key Film Output" button below the frame format configuration prompt information, it can be determined that the user has no need to modify the configuration information. At this time, the configuration template of the second format can be determined from the configuration templates whose partial configuration information cannot be modified, and the configuration is performed directly using the preset configuration information.
[0097] The modification of configuration information is described below: In response to a modification operation triggered on the configuration information, the modified configuration information is determined.
[0098] Taking the configuration information including text as an example, the modification operation may include at least one of a text content modification operation, a text style modification operation, and a text position modification operation.
[0099] When modifying the text content, in response to a user's triggering operation on the configuration text, such as a click operation, a text input box and an input keyboard may be displayed in the interface, and based on the input operation triggered by the user in the input box, the input text content is determined, and the initial text content in the target configuration template is changed to the input text content. For example, the initial main title text in the target configuration template may be "Main Title", and the main title text input by the user may be "My Multimedia Resources", then the main title text in the target configuration template may be changed from "Main Title" to "My Multimedia Resources". Figure 2-4FIG. 1 is a schematic diagram showing a method of modifying configuration information according to an exemplary embodiment. Figure 2-4 As shown, an input box (not shown in the figure) and an input keyboard N are displayed below the location of the multimedia resource M in the interface for user input operations.
[0100] When modifying the text style, in response to the user's trigger operation on the configuration text, such as a click operation, a text style selection list containing multiple text styles can be displayed in the interface. Among them, the text style may include font style, font size style, color style, etc., without limitation. Based on at least one text style selected by the user from multiple text styles, it can be determined that the selected at least one text style is the target text style, and the initial text style in the target configuration template is changed to the target text style. For example, the text style of the initial subtitle in the target configuration template can be "Kaiti, Gray, No. 12", and the text style selected by the user can be "Songti, Black, No. 14", then the text style of the subtitle in the target configuration template can be changed from "Kaiti, Gray, No. 12" to "Songti, Black, No. 14".
[0101] When modifying the text position, in response to a user's trigger operation on the configuration text, such as a click operation, a moving box and a moving icon for the configuration text can be displayed in the interface. Based on the user's trigger operation on the moving icon, such as a click operation, the moving box can be moved by long pressing and clicking. Optionally, the moving box can be moved to any position in the interface following the user's hand movements. Optionally, a selection list containing multiple positions can also be displayed for the user to select, which will not be described in detail.
[0102] Optionally, the above-mentioned text input box and input keyboard, text style selection list, move box and move icon can be displayed together in the interface to allow the user to make corresponding modifications. Figure 2-4 As shown, the interface displays an input box (not shown in the figure) and an input keyboard N, a text style selection list O, a move box (not shown in the figure) and a move icon P, so that the user can make corresponding modifications.
[0103] The above modification operation may also have other optional implementation methods, which can be set according to actual application scenarios without limitation.
[0104] Furthermore, based on the configuration information in the target configuration template, the method of updating the frame in the multimedia resource to the second format to obtain the target multimedia resource may include:
[0105] Based on the modified configuration information, the frames in the multimedia resource are updated to the second format to obtain the target multimedia resource.
[0106] After modifying the configuration information in the target configuration template, a target multimedia resource consistent with the frame format of the target configuration template can be generated based on the modified configuration information and multimedia resources. At this time, the frame of the target multimedia resource is the second format, and the target multimedia resource includes not only the initial multimedia resource but also the modified configuration information, which will not be repeated here.
[0107] By modifying the configuration information in the target configuration template, the flexibility of multimedia resource configuration is improved, and the user experience is further improved.
[0108] To facilitate operation implementation, optionally, before responding to the modification operation triggered on the configuration information, the method may further include:
[0109] Display configuration information modification prompt information, which can be used to indicate that the configuration information is to be modified.
[0110] Among them, the configuration information modification prompt information can be displayed at any position of the interface. Since the target configuration template may include multiple configuration information, and they are located in different positions, such as the main title text in the upper middle position, the subtitles in the lower middle position, etc., in order to improve the display effect, the configuration information modification prompt information for the configuration information can be displayed at a position close to the location of each configuration information. The configuration information modification prompt information can include a variety of implementation methods, such as configuration information modification prompt text, configuration information modification prompt button, etc., which can be set according to the actual application scenario without specific limitation. For ease of understanding, Figure 2-3 is a schematic diagram showing configuration information modification prompt information according to an exemplary embodiment. Figure 2-3 As shown, the interface displays multimedia resources M and configuration information modification prompt information N2, N3 and N4. Among them, configuration information modification prompt information N2 is modification prompt information for the main title text, located at a position close to the right of the main title text, configuration information modification prompt information N3 is modification prompt information for the subtitle text, located at a position close to the right of the subtitle text, and configuration information modification prompt information N4 is modification prompt information for subtitles, located at a position close to the right of the subtitles. And configuration information modification prompt information N2, N3 and N4 are all implemented as configuration information modification prompt text, the prompt text of configuration information modification prompt information N2 and N3 is "click to modify text", and the prompt text of configuration information modification prompt information N4 is "automatically generate subtitles for you, click to modify".
[0111] By displaying configuration information modification prompt information, users can be prompted, which makes it easier for users to clearly understand the modification operation, thereby improving the feasibility of the modification operation.
[0112] Optionally, the configuration information modification prompt information may be displayed when the user first uses the target configuration template, so it can be determined whether the user first uses the target configuration template. The configuration request may include a user identifier, and the method may further include:
[0113] It is determined whether the user identifier is included in the user identifier of the user corresponding to the target configuration template.
[0114] The method of displaying configuration information modification prompt information may include:
[0115] If the user ID of the user corresponding to the target configuration template does not include the user ID, configuration information modification prompt information is displayed.
[0116] The user identification of the user who has used the target configuration template can be stored, so that when responding to the above configuration request, the user identification included in the configuration request can be compared with the stored user identification. If there is no user identification consistent with the user identification in the stored user identification, that is, the user identification is not included in the stored user identification, it can be indicated that the user has not used the target configuration template before and is using the target configuration template for the first time, and the configuration information modification prompt information can be displayed in the interface.
[0117] If there is a user identifier consistent with the user identifier in the stored user identifiers, that is, the stored user identifiers include the user identifier, it can be indicated that the user has used the target configuration template before and is not using the target configuration template for the first time. The user is familiar with the above-mentioned modification operation and there is no need to display the configuration information modification prompt information.
[0118] By judging whether it is the first time for the user to use the target configuration template, and only displaying the configuration information modification prompt information when it is used for the first time, it is convenient for the user to clearly understand the modification operation, and the flexibility of displaying the configuration information modification prompt information is improved.
[0119] Figure 3 The flowchart of a multimedia resource generation method according to an exemplary embodiment is shown. The method may include the following steps.
[0120] In step S31, multimedia resources are acquired, displayed, and frame format configuration prompt information for the multimedia resources is displayed within a preset time period.
[0121] The multimedia resource includes a frame in a first format.
[0122] In step S32, in response to the configuration request triggered by the frame format configuration prompt information, a target configuration template of the second format is determined.
[0123] The configuration request includes a user identifier.
[0124] In step S33, the multimedia resources are filled into the preset modules in the target configuration template.
[0125] In step S34, it is determined whether the user identifier of the user corresponding to the target configuration template includes the user identifier; if the determination result is no, the operation of step S35 is executed; if the determination result is yes, the operation of step S36 is executed.
[0126] In step S35, configuration information modification prompt information in the target configuration template is displayed, and the configuration information modification prompt information is used to indicate that the configuration information is to be modified.
[0127] In step S36, in response to the modification operation triggered on the configuration information, the modified configuration information is determined.
[0128] In step S37, based on the modified configuration information, the frames in the multimedia resource are updated to the second format to obtain the target multimedia resource.
[0129] In this embodiment, the specific implementation process of the above steps S31 to S37 can refer to Figure 1 The implementation process of each step in the illustrated embodiment will not be described in detail again.
[0130] Figure 4 The structure diagram of a multimedia resource generation device according to an exemplary embodiment is shown in FIG. The device may include the following modules.
[0131] The first display module 401 may be configured to obtain multimedia resources, and display the multimedia resources and frame format configuration prompt information for the multimedia resources; the multimedia resources include frames in a first format.
[0132] The first determination module 402 may be configured to determine a target configuration template of the second format in response to a configuration request triggered by the frame format configuration prompt information.
[0133] The configuration module 403 may be configured to fill the multimedia resources into a preset module in the target configuration template.
[0134] The generating module 404 may be configured to update the frames in the multimedia resource to a second format based on the configuration information in the target configuration template to obtain the target multimedia resource.
[0135] In this embodiment, the multimedia resource generation device can implement Figure 1The multimedia resource generation method shown can obtain a multimedia resource whose frame format is a first format, and display the multimedia resource and frame format configuration prompt information for the multimedia resource, which is used to indicate the configuration of the frame format of the multimedia resource. Afterwards, in response to a configuration request triggered by the frame format configuration prompt information, a target configuration template of a second format can be determined. The second format can be the target frame format of the multimedia resource. The multimedia resource is filled into a preset module in the target configuration template, and based on the configuration information in the target configuration template, the frame in the multimedia resource is updated to the second format to obtain the target multimedia resource. By using the above-mentioned target configuration template, the frame format of the multimedia resource can be changed from the initial first format to the second format, i.e., the target frame format, which solves the problem that the frame format of the multimedia resource cannot be changed in the traditional solution and improves the user experience.
[0136] In some embodiments, the apparatus may further include:
[0137] The second determining module may be configured to determine the modified configuration information in response to a modification operation triggered on the configuration information.
[0138] The generating module 404 may be specifically configured to update the frames in the multimedia resource to the second format based on the modified configuration information to obtain the target multimedia resource.
[0139] In some embodiments, the apparatus may further include:
[0140] The second display module may be configured to display configuration information modification prompt information, and the configuration information modification prompt information may be used to indicate modification of the configuration information.
[0141] In some embodiments, the configuration request may include a user identifier, and the apparatus may further include:
[0142] The judgment module may be configured to judge whether the user identifier of the user corresponding to the target configuration template includes the user identifier.
[0143] The second display module may be configured to display configuration information modification prompt information when the module result is negative.
[0144] In some embodiments, the first display module may be specifically configured to obtain multimedia resources, display the multimedia resources, and display frame format configuration prompt information for the multimedia resources within a preset time period; the multimedia resources include frames in a first format.
[0145] In some embodiments, the apparatus may further include:
[0146] The processing module may be configured to perform Gaussian blur processing on the background images of other modules in the target configuration template except the preset module based on the multimedia resources.
[0147] 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.
[0148] Figure 5 It is a block diagram of an electronic device according to an exemplary embodiment, which may include a processor 501 and a memory 502 for storing instructions executable by the processor.
[0149] The processor 501 may be configured to execute instructions to implement Figure 1 or Figure 3 A multimedia resource generating method according to any one of the embodiments.
[0150] The processor 501 may include one or more processors to execute computer instructions to complete all or part of the steps in the above method. Of course, the processor may also be implemented as one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0151] The memory 502 can be configured to store various types of data to support operations at the terminal. The memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0152] Of course, the electronic device may also include other components, such as input / output interfaces, communication components, etc.
[0153] The input / output interface provides an interface between the processing component and the peripheral interface module, which may be an output device, an input device, etc.
[0154] The communication component is configured to facilitate, among other things, wired or wireless communications between the electronic device and other devices.
[0155] Among them, the electronic device can be a physical device or an elastic computing host provided by a cloud computing platform, etc. In this case, the computing device can refer to a cloud server, and the above-mentioned processor, memory, etc. can be basic server resources rented or purchased from the cloud computing platform.
[0156] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory including instructions, and the above instructions can be executed by a processor of an electronic device to perform the above method. Optionally, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0157] In an exemplary embodiment, a computer program product is also provided, comprising a computer program, which, when executed by a processor, implements Figure 1 or Figure 3 A multimedia resource generation method according to any of the embodiments shown.
[0158] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0159] It should be understood that the present disclosure is not limited to the exact structures that have been 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
1. A method for generating multimedia resources, characterized in that: include: Acquire multimedia resources, and display the multimedia resources and frame format configuration prompt information for the multimedia resources; The multimedia resource includes a frame in a first format; The frame format refers to the proportional relationship of the frame edges; In response to a configuration request triggered by the frame format configuration prompt information, determining a target configuration template of a second format, the target configuration template being preset, the configuration request including the second format; the second format being different from the first format; Filling the multimedia resource into a preset module in the target configuration template, wherein the frame format of the preset module is consistent with the frame format of the multimedia resource; Based on the configuration information in the target configuration template, updating the frames in the multimedia resource to a second format to obtain a target multimedia resource; The position of the configuration information in the target configuration template is different from the position of the preset module in the target configuration template.
2. The method according to claim 1, characterized in that The method further comprises: In response to a modification operation triggered on the configuration information, determining modified configuration information; The updating of the frame in the multimedia resource to the second format based on the configuration information in the target configuration template to obtain the target multimedia resource includes: Based on the modified configuration information, the frames in the multimedia resource are updated to a second format to obtain a target multimedia resource.
3. The method according to claim 2, characterized in that Before responding to the modification operation triggered on the configuration information, the method further includes: Display configuration information modification prompt information, where the configuration information modification prompt information is used to indicate that the configuration information is to be modified.
4. The method according to claim 3, characterized in that The configuration request includes a user identifier, and the method further includes: Determining whether the user identifier corresponding to the target configuration template includes the user identifier; The display configuration information modification prompt information includes: If the user identifier of the user corresponding to the target configuration template does not include the user identifier, configuration information modification prompt information is displayed.
5. The method according to claim 2, characterized in that: The configuration information includes text; the text includes at least one of main title text, subtitle text, and subtitles.
6. The method according to claim 5, characterized in that The modification operation includes at least one of a text content modification operation, a text style modification operation, and a text position modification operation.
7. The method according to claim 1, characterized in that The display of the frame format configuration prompt information for the multimedia resource includes: Displaying the frame format configuration prompt information for the multimedia resource within a preset time period.
8. The method according to claim 7, characterized in that The method further comprises: In response to a triggering operation other than the frame format configuration prompt information within the preset time period, the display of the frame format configuration prompt information is stopped.
9. The method according to claim 1, characterized in that: After filling the multimedia resources into the preset module in the target configuration template, the method further includes: Based on the multimedia resources, Gaussian blur processing is performed on the background images of other modules in the target configuration template except the preset module.
10. A multimedia resource generating device, characterized in that: include: A first display module is configured to obtain multimedia resources and display the multimedia resources and frame format configuration prompt information for the multimedia resources; The multimedia resource includes a frame in a first format; The frame format refers to the proportional relationship of the frame edges; A first determination module is configured to determine a target configuration template of a second format in response to a configuration request triggered by the frame format configuration prompt information, the target configuration template being preset, the configuration request including the second format; the second format is different from the first format; A configuration module, configured to fill the multimedia resource into a preset module in the target configuration template, wherein the frame format of the preset module is consistent with the frame format of the multimedia resource; A generating module, configured to update the frames in the multimedia resource to a second format based on the configuration information in the target configuration template, so as to obtain a target multimedia resource; The position of the configuration information in the target configuration template is different from the position of the preset module in the target configuration template.
11. The device according to claim 10, characterized in that The device also includes: A second determining module is configured to determine the modified configuration information in response to a modification operation triggered on the configuration information; The generating module is specifically configured to update the frames in the multimedia resource to a second format based on the modified configuration information to obtain a target multimedia resource.
12. The device according to claim 11, characterized in that The device also includes: The second display module is configured to display configuration information modification prompt information, where the configuration information modification prompt information is used to indicate that the configuration information is to be modified.
13. The device according to claim 12, characterized in that The configuration request includes a user identifier, and the device further includes: A judgment module configured to judge whether the user identifier corresponding to the target configuration template includes the user identifier; The second display module is configured to display configuration information modification prompt information when the result of the judgment module is no.
14. The device according to claim 10, characterized in that The first display module is specifically configured to obtain multimedia resources, display the multimedia resources, and display frame format configuration prompt information for the multimedia resources within a preset time period; the multimedia resources include frames in a first format.
15. The device according to claim 10, characterized in that The device also includes: The processing module is configured to perform Gaussian blur processing on the background images of other modules in the target configuration template except the preset module based on the multimedia resources.
16. An electronic device, 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 multimedia resource generation method as claimed in any one of claims 1 to 9.
17. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the multimedia resource generating method according to any one of claims 1 to 9.
