Resource generation method and device, electronic equipment and storage medium
By providing material selection and format selection controls on the work playback interface, users can select materials and output formats by themselves to generate multimedia resources, solving the problem of frequent screenshot operations and improving operation efficiency and creative experience.
Patent Information
- Application Number
- CN202510130357.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-05
- Publication Date
- 2025-03-11
AI Technical Summary
When using emoticons to communicate in social networks, users need to perform multiple screenshots to obtain images, resulting in high operation costs and low human-computer interaction efficiency.
Provides a resource generation method, by displaying the current image frame after pausing operation on the work playback interface, and displaying the material selection control and format selection control in response to user operations, supports users to select the material and output format by themselves, and generate multimedia resources.
It reduces the complexity and cost of user operations, improves the efficiency of human-computer interaction, allows users to generate extremely personalized multimedia resources, and supports material editing, enhancing users' creative experience.
Smart Images

Figure CN119597390A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of Internet technology, and in particular to a resource generation method, device, electronic device and storage medium. Background Art
[0002] With the development of Internet technology, using emoticons to communicate in social networks has become more and more popular. For example, you can use emoticons to post comments in the comment section or share emoticons directly with others.
[0003] During the playback of a work, users currently generally obtain one or more images by taking screenshots and use them as emoticon packages. Since users may need to perform multiple screenshot operations to obtain emoticon packages, there are problems such as high operating costs and low human-computer interaction efficiency. Summary of the invention
[0004] The present disclosure provides a resource generation method, device, electronic device and storage medium. The technical solution of the present disclosure is as follows: According to a first aspect of an embodiment of the present disclosure, there is provided a resource generation method, comprising: In response to a pause operation on the work, pausing the playing of the work, and displaying the first image frame currently played on the playing interface; In response to the first operation, a material selection control and a format selection control are displayed; the material selection control is used to instruct to select a material, wherein the material selection range includes the first image frame and a first candidate material extracted from the work; the format selection control is used to instruct to select a format from a plurality of output formats; In response to the material selection operation and the format selection operation, based on the editing operation on the selected material, the multimedia resource is displayed in the selected output format, and the multimedia resource includes the editing result of the selected material.
[0005] In some embodiments, the method further comprises: In response to the pause operation, a target function entry is displayed on the playback interface, wherein the target function entry is used to prompt resource creation; The method of displaying a material selection control and a format selection control in response to the first operation includes: In response to a triggering operation on the target function entry, displaying the material selection control and the format selection control; Or, in response to a preset gesture operation on the playback interface, the material selection control and the format selection control are displayed.
[0006] In some other embodiments, the first candidate material includes at least one of the following: The playing position of the image frame is before the first image frame; The playing position of the image frame is located after the first image frame; A video clip whose playing position is before the first image frame and whose length is less than a duration threshold; A video segment whose playback position is located after the first image frame and whose length is less than the duration threshold.
[0007] In some other embodiments, the method further comprises: In response to a triggering operation on the material selection control, displaying a material selection list and a first prompt information; The material selection list displays the first image frame and the first candidate material; the first prompt information is used to prompt the execution of the material selection operation and the material selection restriction.
[0008] In some other embodiments, the method further comprises: Displaying the first image frame and the first candidate material in the material selection list according to the playback order in the work; or, displaying the first image frame and the first candidate material in the material selection list in order of historical interaction times; Alternatively, the first image frame and the first candidate material are displayed in the material selection list in order of historical release times.
[0009] In some other embodiments, the method further comprises: Whenever a material in the material selection list is selected, thumbnails of the currently selected materials are displayed in the order in which they were selected, and the number of selected materials is increased.
[0010] In some other embodiments, the method further comprises: Whenever a material in the material selection list is selected, an editing control is displayed; in response to a triggering operation on the editing control, an editing interface is displayed; wherein the editing interface includes at least one editing option, and one of the editing options is used to indicate an editing method; Or, after the material selection is completed, a second prompt information is displayed, the second prompt information is used to prompt to edit the material; in response to the editing confirmation operation, the editing control is displayed; in response to the triggering operation of the editing control, the editing interface is displayed; Or, after completing the material selection and format selection, display the second prompt information; in response to the editing confirmation operation, display the editing control; in response to the triggering operation of the editing control, display the editing interface.
[0011] In some other embodiments, each time a material in the material selection list is selected, displaying an editing control includes: Whenever a material in the material selection list is selected, the editing control is displayed in a floating manner at the display position of the currently selected material in the material selection list; Or, whenever a material in the material selection list is selected, thumbnails of the currently selected materials are displayed in the order in which they are selected, and the editing control is displayed in a floating manner at the display position of the thumbnail.
[0012] In some other embodiments, during the material selection process, the method further includes: In response to the second operation, continue playing the work; In response to a second pause operation on the work, pausing the playing of the work, and displaying a second image frame currently being played on the playing interface; In response to the first operation, an updated material selection range is displayed; wherein the updated material selection range includes the second image frame and a second candidate material extracted from the work.
[0013] In some other embodiments, the method further comprises: Display the close control corresponding to each thumbnail; In response to a triggering operation on any close control, the thumbnail corresponding to the close control is canceled from being displayed, and the number of selected materials is reduced.
[0014] In some other embodiments, the method further comprises: In response to a triggering operation on the format selection control, displaying the plurality of output formats; Or, during the material selection process, in response to a third operation, the plurality of output formats are displayed.
[0015] In some other embodiments, the method further comprises: During the material selection process, if the number of selected materials meets the minimum number limit, a first control is displayed; wherein the first control is used to switch from the material selection process to the format selection process after being triggered; In response to the second operation, displaying the multiple output formats includes: In response to a triggering operation on the first control, the multiple output formats are displayed.
[0016] In some other embodiments, in response to the triggering operation on the first control, displaying the multiple output formats includes: In response to a triggering operation on the first control, determining a target output format matching the type of the selected material among the multiple output formats; Displays the target output format.
[0017] In some other embodiments, the multiple output formats include a static output format, wherein the static output format includes at least one typesetting style; The displaying of multimedia resources according to the selected output format includes: In response to the format selection operation, a target typesetting style under the static output format is selected, and the multimedia resource is displayed according to the target typesetting style.
[0018] In other embodiments, the plurality of output formats includes a dynamic output format; The displaying of multimedia resources according to the selected output format includes: In response to the dynamic output format being selected by the format selection operation, the multimedia resource is displayed according to the dynamic output format.
[0019] In some other embodiments, the method further comprises: Display at least one of a collection control, a save control, or a share control corresponding to the multimedia resource; The collection control is used to add the multimedia resource as an emoticon to the emoticon library of the first user account after being triggered; The save control is used to save the multimedia resource to a local resource library after being triggered; The sharing control is used to send the multimedia resource to the second user account after being triggered.
[0020] According to a second aspect of an embodiment of the present disclosure, there is provided a resource generation device, including: A playing module is configured to, in response to a pause operation on the work, pause the playing of the work and display the first image frame currently played on the playing interface; A first display module is configured to display a material selection control and a format selection control in response to a first operation; the material selection control is used to indicate material selection, wherein the material selection range includes the first image frame and a first candidate material extracted from the work; the format selection control is used to indicate format selection from multiple output formats; The second display module is configured to respond to the material selection operation and the format selection operation, and based on the editing operation of the selected material, display the multimedia resource in the selected output format, wherein the multimedia resource includes the editing result of the selected material.
[0021] In some embodiments, the apparatus further comprises: A third display module is configured to display a target function entrance on the playback interface in response to the pause operation, wherein the target function entrance is used to prompt resource creation; The first display module is configured to display the material selection control and the format selection control in response to a triggering operation on the target function entry.
[0022] In some other embodiments, the first display module is configured to display the material selection control and the format selection control in response to a preset gesture operation on the playback interface.
[0023] In some other embodiments, the first candidate material includes at least one of the following: The playing position of the image frame is before the first image frame; The playing position of the image frame is located after the first image frame; A video clip whose playing position is before the first image frame and whose length is less than a duration threshold; A video segment whose playback position is located after the first image frame and whose length is less than the duration threshold.
[0024] In some other embodiments, the device further comprises: The fourth display module is configured to display a material selection list and a first prompt information in response to a triggering operation on the material selection control; wherein the material selection list displays the first image frame and the first candidate material; and the first prompt information is used to prompt the execution of the material selection operation and the material selection restriction.
[0025] In some other embodiments, the fourth display module is further configured as: Displaying the first image frame and the first candidate material in the material selection list according to the playback order in the work; or, displaying the first image frame and the first candidate material in the material selection list in order of historical interaction times; Alternatively, the first image frame and the first candidate material are displayed in the material selection list in order of historical release times.
[0026] In some other embodiments, the fourth display module is further configured to display thumbnails of the currently selected materials in the order in which they were selected, and increase the number of selected materials, each time a material in the material selection list is selected.
[0027] In some other embodiments, the fourth display module is further configured as: Whenever a material in the material selection list is selected, an editing control is displayed; in response to a triggering operation on the editing control, an editing interface is displayed; wherein the editing interface includes at least one editing option, and one of the editing options is used to indicate an editing method; Or, after the material selection is completed, a second prompt information is displayed, the second prompt information is used to prompt to edit the material; in response to the editing confirmation operation, the editing control is displayed; in response to the triggering operation of the editing control, the editing interface is displayed; Or, after completing the material selection and format selection, display the second prompt information; in response to the editing confirmation operation, display the editing control; in response to the triggering operation of the editing control, display the editing interface.
[0028] In some other embodiments, the fourth display module is further configured as: Whenever a material in the material selection list is selected, the editing control is displayed in a floating manner at the display position of the currently selected material in the material selection list; Or, whenever a material in the material selection list is selected, thumbnails of the currently selected materials are displayed in the order in which they are selected, and the editing control is displayed in a floating manner at the display position of the thumbnail.
[0029] In some other embodiments, the playback module is further configured to, in response to a second operation during the material selection process, continue to play the work; in response to a second pause operation on the work, pause the playback of the work and display the second image frame currently played on the playback interface; The first display module is further configured to display an updated material selection range in response to the first operation; wherein the updated material selection range includes the second image frame and a second candidate material extracted from the work.
[0030] In some other embodiments, the fourth display module is further configured as: Display the close control corresponding to each thumbnail; In response to a triggering operation on any close control, the thumbnail corresponding to the close control is canceled from being displayed, and the number of selected materials is reduced.
[0031] In some other embodiments, the device further comprises: The fifth display module is configured to display the multiple output formats in response to a triggering operation on the format selection control; or, during the material selection process, display the multiple output formats in response to a third operation.
[0032] In some other embodiments, the device further comprises: A sixth display module is configured to display a first control during the material selection process if the number of selected materials meets the minimum number limit; wherein the first control is used to switch from the material selection process to the format selection process after being triggered; The fifth display module is configured to display the multiple output formats in response to a triggering operation on the first control.
[0033] In some other embodiments, the fifth display module is configured as: In response to a triggering operation on the first control, determining a target output format matching the type of the selected material among the multiple output formats; Displays the target output format.
[0034] In some other embodiments, the multiple output formats include a static output format, wherein the static output format includes at least one typesetting style; The second display module is configured to select a target typesetting style under the static output format in response to the format selection operation, and display the multimedia resource according to the target typesetting style.
[0035] In other embodiments, the plurality of output formats includes a dynamic output format; The second display module is configured to select the dynamic output format in response to the format selection operation, and display the multimedia resource according to the dynamic output format.
[0036] In some other embodiments, the device further comprises: a seventh display module, configured to display at least one of a collection control, a save control or a share control corresponding to the multimedia resource; The collection control is used to add the multimedia resource as an emoticon to the emoticon library of the first user account after being triggered; The save control is used to save the multimedia resource to a local resource library after being triggered; The sharing control is used to send the multimedia resource to the second user account after being triggered.
[0037] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, the electronic device comprising: one or more processors; A memory for storing program codes executable by the processor; The processor is configured to execute the program code to implement the above-mentioned resource generation method.
[0038] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When a program code in the computer-readable storage medium is executed by a processor of an electronic device, the electronic device is enabled to execute the above-mentioned resource generation method.
[0039] According to a fifth aspect of an embodiment of the present disclosure, there is provided a computer program product, including a computer program, which implements the above-mentioned resource generation method when executed by a processor of an electronic device.
[0040] The resource generation scheme provided by the embodiment of the present disclosure provides a new interactive method for users, supporting users to quickly create multimedia resources in the scene of work playback. In detail, after the work is paused, the user can call out the material selection control and the format selection control through one-step operation. Among them, the material selection control is used to indicate the material selection, that is, the scheme supports the user to select one or more materials by himself; the format selection control is used to indicate the format selection, that is, the scheme supports the user to select the output format by himself. In other words, the scheme realizes that in the process of generating multimedia resources, users can select materials and output formats according to personal needs, which can not only generate highly personalized multimedia resources, but also does not require users to perform manual screenshot operations, thereby reducing operating costs and improving human-computer interaction efficiency. In addition, since the material selection range is no longer limited to the first image frame corresponding to the paused playback position, the generated multimedia resources can include not only the first image frame, but also the candidate materials extracted from the work, enriching the content of the generated multimedia resources. In addition, the scheme also supports users to perform custom editing operations on the selected materials. This interactive method not only has low operating costs, but also makes it possible for users to create secondary works, and has high human-computer interaction efficiency.
[0041] 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
[0042] 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.
[0043] Figure 1 The diagram is a schematic diagram of an implementation environment of a resource generation method according to an exemplary embodiment.
[0044] Figure 2 The invention is a flowchart of a resource generation method according to an exemplary embodiment.
[0045] Figure 3 The figure is a flowchart of another resource generation method according to an exemplary embodiment.
[0046] Figure 4 is a schematic diagram of a first playing interface according to an exemplary embodiment.
[0047] Figure 5is a schematic diagram of a second playback interface according to an exemplary embodiment.
[0048] Figure 6 is a schematic diagram of a third playback interface according to an exemplary embodiment.
[0049] Figure 7 is a schematic diagram of a fourth playback interface according to an exemplary embodiment.
[0050] Figure 8 is a schematic diagram of a fifth playback interface according to an exemplary embodiment.
[0051] Fig. 9 is a schematic diagram of a sixth playback interface according to an exemplary embodiment.
[0052] Fig.10 is a schematic diagram of a seventh playback interface according to an exemplary embodiment.
[0053] Fig.11 The invention is a block diagram of a resource generating device according to an exemplary embodiment.
[0054] Fig.12 It is a block diagram of a terminal according to an exemplary embodiment. DETAILED DESCRIPTION
[0055] 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.
[0056] 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.
[0057] The information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this disclosure are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0058] Figure 1The diagram is a schematic diagram of an implementation environment of a resource generation method according to an exemplary embodiment.
[0059] See also Figure 1 , the implementation environment includes: a terminal 101 and a server 102. Among them, the terminal 101 is an electronic device used by the user. In the embodiment of the present disclosure, the terminal 101 is installed with a target application, and the terminal 101 implements the resource generation method provided by the embodiment of the present disclosure based on the target application. Exemplarily, the target application is an instant messaging application, such as a short video application, which is not limited in the present disclosure.
[0060] In some embodiments, the terminal 101 is a device such as a smart phone or a tablet computer. Figure 1 The terminal 101 is only used as a smartphone for illustration. In addition, those skilled in the art will appreciate that the number of the above terminals may be more or less. For example, the above terminals may be only a few, or the above devices may be dozens or hundreds, or more. The embodiments of the present disclosure do not limit the number and type of terminals.
[0061] In other embodiments, the server 102 provides background services for the target application. The server 102 may be an independent physical server, a server cluster or a distributed file system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.
[0062] In addition, the server 102 is connected to the terminal 101 via a wireless network or a wired network. In addition, the server involved in the embodiment of the present disclosure may also include other functional servers to provide more comprehensive and diversified services.
[0063] In other embodiments, the server 102 undertakes the main computing work and the terminal 101 undertakes the secondary computing work; or, the server 102 undertakes the secondary computing work and the terminal 101 undertakes the main computing work; or, the server 102 or the terminal 101 can each undertake the computing work independently.
[0064] The resource generation solution provided by the embodiment of the present disclosure is described in detail through the following embodiments.
[0065] Figure 2 is a flow chart of a resource generation method according to an exemplary embodiment. Figure 2 As shown, the resource generation method is applied to electronic devices, such as Figure 1In the terminal 101 shown in FIG.
[0066] In 201, in response to a pause operation on a work, the electronic device pauses playing the work and displays the first image frame currently being played on the play interface.
[0067] In the embodiment of the present disclosure, the electronic device plays the work on the playback interface. The work played can be a picture with background music, a text with background music, a video, etc., which is not limited in the present disclosure. As an example, the work played refers to a multimedia resource published by any user through the target application.
[0068] In addition, the pause operation of the work can be a click operation on the playback interface or a click operation on the pause control displayed on the playback interface, which is not limited in the present disclosure. As an example, the terminal plays the work in the target application, and accordingly, the playback interface is an interface provided by the target application.
[0069] In 202, in response to the first operation, the electronic device displays a material selection control and a format selection control; the material selection control is used to indicate material selection, wherein the material selection range includes the first image frame and the first candidate material extracted from the work; the format selection control is used to indicate format selection among multiple output formats.
[0070] In the embodiment of the present disclosure, the first operation may be a triggering operation of a specific function entrance on the playback interface, or a specific gesture operation performed on the playback interface, and the present disclosure does not limit this.
[0071] The first point to be explained is that the first candidate material extracted from the work can be either a frame-by-frame image or a video clip whose length is less than the duration threshold. As an example, the electronic device extracts the first candidate material from the work based on the playback position of the first image frame in the work. For example, multiple image frames whose playback positions are before the first image frame and multiple image frames whose playback positions are after the first image frame are extracted, and all the extracted image frames are used as the first candidate material.
[0072] The second point that needs to be explained is that the output format is used to specify the format of the output multimedia resources when the multimedia resources are output based on the material selection results. Among them, the multiple output formats include static output formats and dynamic output formats. In addition, each static output format usually includes at least one typesetting style, which is not limited in the present disclosure. As an example, static output formats include but are not limited to tiled images, folded images, etc., and dynamic output formats include but are not limited to animated images, such as GIF (Graphics Interchange Format) images. Among them, whether it is a tiled image or a folded image, its corresponding typesetting styles include multiple ones.
[0073] In 203, in response to the material selection operation and the format selection operation, the electronic device displays the multimedia resource in the selected output format based on the editing operation on the selected material, and the multimedia resource includes the editing result of the selected material.
[0074] In some embodiments, after completing the material selection and the output format selection, the electronic device directly displays the multimedia resource including the selected material according to the selected output format.
[0075] In other embodiments, in response to the user triggering the material selection control, the material selection process is entered, and the electronic device will display a material selection list for the user to select a material. Among them, the embodiments of the present disclosure support the user to perform custom editing operations on the selected material in various situations.
[0076] Scenario 1: Whenever a material in the material selection list is selected, the electronic device displays an editing control; in response to a triggering operation on the editing control, the electronic device further displays an editing interface, wherein the editing interface includes at least one editing option, and an editing option is used to indicate an editing method.
[0077] This situation means that every time a material is selected, the user is prompted to edit the material.
[0078] Scenario 2: After the material selection is completed, a second prompt message is displayed, and the second prompt message is used to prompt the material editing; in response to the editing confirmation operation, the editing control is displayed; in response to the triggering operation of the editing control, the editing interface is displayed.
[0079] This situation refers to prompting the user to edit the material after all the material selections are completed. For example, after the material selection is completed, in response to the triggering operation of the format selection control, the format selection process is not entered temporarily, but the user is prompted to edit the material first.
[0080] Scenario 3: after completing the material selection and format selection, display the second prompt information; in response to the editing confirmation operation, display the editing control; in response to the triggering operation of the editing control, display the editing interface.
[0081] This situation refers to the user being prompted to edit the material after completing the material selection and format selection.
[0082] As an example, the selected material is displayed sequentially on the editing interface according to the user's operation, and the user can customize the selected material through at least one editing option. Among them, the electronic device will also display at least one editing option on the editing interface in a manner that does not block the display of the material to be edited. In addition, these editing options can be displayed at the top, bottom or side of the editing interface, which is not limited by the present disclosure. In addition, the user can perform editing operations such as cropping, adding text or stickers, enhancing image quality, and beautifying the material displayed on the editing interface, which is not limited by the present disclosure. Finally, the electronic device will display the multimedia resources including the selected material in the selected output format based on the editing operations obtained on the editing interface.
[0083] In other embodiments, the electronic device will also prompt the user whether to collect, download or share the multimedia resource, thereby enabling the user to quickly complete the collection, download or sharing of the multimedia resource through a one-click operation.
[0084] In summary, the resource generation scheme provided by the embodiment of the present disclosure provides users with a new interactive method, supporting users to quickly create multimedia resources in the work playback scene. In detail, after the work is paused, the user can call out the material selection control and the format selection control in one step. Among them, the material selection control is used to indicate the material selection, that is, the scheme supports the user to select one or more materials by themselves; the format selection control is used to indicate the format selection, that is, the scheme supports the user to select the output format by themselves. In other words, the scheme realizes that in the process of generating multimedia resources, users can select materials and output formats according to personal needs, which can not only generate highly personalized multimedia resources, but also does not require users to perform manual screenshot operations, thereby reducing operating costs and improving human-computer interaction efficiency. In addition, since the material selection range is no longer limited to the first image frame corresponding to the paused playback position, the generated multimedia resources can include not only the first image frame, but also the first candidate material extracted from the work, enriching the content of the generated multimedia resources.
[0085] In addition, the disclosed embodiment also supports users to perform customized editing operations on selected materials. This interactive mode not only has low operating costs, but also makes secondary creation possible for users, and has high human-computer interaction efficiency. In addition, the material editing time is diverse and more adaptable. In addition, the types of editing options are rich, which enables users to perform diversified editing operations on the selected materials, and the human-computer interaction effect is good.
[0086] Above Figure 2 The following is only a basic process of the present disclosure. The solution provided by the present disclosure is further described based on a specific implementation method. Figure 3 is a flowchart of another resource generation method according to an exemplary embodiment. Figure 3 As shown, the resource generation method is applied to electronic devices, such as Figure 1 In the terminal 101 shown in FIG.
[0087] In 301, in response to a pause operation on a work, the electronic device pauses playing the work and displays the first image frame currently being played on the play interface.
[0088] In the disclosed embodiment, after the electronic device pauses playing a work, a pause mark will be displayed on the play interface to indicate that the work is currently in a paused state. Figure 4 , Figure 4 The following is a schematic diagram of a playback interface according to an exemplary embodiment, wherein the work is paused, and the first image frame currently played and a pause mark are displayed on the playback interface.
[0089] In 302, in response to the first operation, the electronic device displays a material selection control and a format selection control; the material selection control is used to indicate material selection, wherein the material selection range includes the first image frame and the first candidate material extracted from the work; the format selection control is used to indicate format selection among multiple output formats.
[0090] In some embodiments, taking the above first operation as a triggering operation of a specific function entry on the playback interface as an example, in response to the pause operation of the work, the electronic device will display a target function entry on the playback interface, wherein the target function entry is used to prompt resource creation. Figure 4 , Figure 4 The target function entry 1 is also displayed in the display to guide the user to create multimedia resources, such as emoticons. Accordingly, in response to the first operation, the electronic device displays a material selection control and a format selection control, including: in response to a trigger operation on the target function entry, the electronic device displays the material selection control and the format selection control. The trigger operation may be a click operation, which is not limited in the present disclosure.
[0091] Among them, after the work is paused, the user can quickly call out the material selection controls and format selection controls by triggering the target function entrance. This operation method allows the user to directly enter the material selection process and format selection process with one click, shortening the operation path, reducing operation costs, and thus improving the efficiency of human-computer interaction.
[0092] In other embodiments, taking the above-mentioned first operation as a specific gesture operation on the playback interface as an example, in response to the first operation, the electronic device displays a material selection control and a format selection control, including: in response to a preset gesture operation on the playback interface, the electronic device displays the material selection control and the format selection control.
[0093] Among them, the preset gesture operation can be set and changed as needed. For example, the target gesture operation is a default gesture operation initially, and the subsequent target gesture operation can be freely set by the user. As an example, the electronic device displays a gesture setting interface, wherein a plurality of gesture options are displayed on the gesture setting interface, and in response to the selection operation of any gesture option, the electronic device determines the gesture operation corresponding to the selected gesture option as the target gesture operation. Or, the terminal displays a gesture setting interface, and in response to the user's gesture operation on the gesture setting interface, the electronic device determines the gesture operation as the target gesture operation, which is not limited in the present disclosure.
[0094] In the disclosed embodiment, the material selection control and the format selection control can also be called out by performing a target gesture operation on the playback interface. This operation method allows the user to directly enter the material selection process and the format selection process through a gesture operation, shortening the operation path, reducing the operation cost, and thereby improving the efficiency of human-computer interaction.
[0095] As an example, Figure 5 is a schematic diagram of another playback interface according to an exemplary embodiment. Figure 5 , a half-screen page is displayed on the playback interface, and the half-screen page includes a material selection control 2 and a format selection control 3. In addition, the half-screen page also includes an effect preview window to facilitate the user to preview the generated multimedia resources. In addition, the half-screen page also displays a save control or a share control to prompt the user to save the generated multimedia resources or share the multimedia resources with others.
[0096] In other embodiments, taking the above-mentioned first operation as a specific gesture operation on the playback interface as an example, in response to the pause operation of the work, the electronic device will also display a first prompt message on the playback interface; wherein, the first prompt message is used to prompt the user to perform a preset gesture operation to enter the material selection process and the format selection process.
[0097] In some other embodiments, the first candidate material extracted from the work includes at least one of the following: The image frame whose playing position is before the first image frame; The playing position of the image frame is located after the first image frame; The video segment whose playing position is before the first image frame and whose length is less than the duration threshold; The video segment whose playback position is located after the first image frame and whose length is less than the duration threshold.
[0098] Several possible scenarios of the first candidate material are described below.
[0099] Case 1: Taking the first candidate material including only images as an example, the first candidate material may be M image frames whose playback positions are located before the first image frame, and N image frames whose playback positions are located after the first image frame. Wherein, M and N are both positive integers, and their values may be the same or different.
[0100] Scenario 2: Taking the first candidate material including images and video clips as an example, the first candidate material includes but is not limited to the following scenarios: Case 21: the playback position is located at M image frames before the first image frame, and the playback position is located at N video segments after the first image frame.
[0101] Case 22: the playback positions are the M image frames before the first image frame, and the playback positions are the image frames and video clips after the first image frame.
[0102] The total number of image frames and video clips after the above-mentioned playback position is N.
[0103] Case 23: the playback positions are located at M video clips before the first image frame, and the playback positions are located at N image frames after the first image frame.
[0104] Case 24: the M video segments whose playback positions are located before the first image frame, and the image frames and video segments whose playback positions are located after the first image frame.
[0105] Case 25: the image frames and video clips whose playback positions are before the first image frame, and the image frames and video clips whose playback positions are after the first image frame.
[0106] The total number of image frames and video clips before the above-mentioned playback position is M.
[0107] Case 26: the image frames and video clips whose playback positions are located before the first image frame, and the N image frames whose playback positions are located after the first image frame.
[0108] Case 27: the image frames and video segments whose playback positions are located before the first image frame, and the N video segments whose playback positions are located after the first image frame.
[0109] Scenario 3: Taking the example that the first candidate material includes only video clips, the first candidate material may be M video clips whose playback positions are located before the first image frame, and N video clips whose playback positions are located after the first image frame.
[0110] It should be noted that the lengths of different video clips may be the same or different, and the present disclosure does not limit this. It only needs to ensure that the length of each video clip is less than the duration threshold.
[0111] In the disclosed embodiment, since the material selection range is no longer limited to the first image frame corresponding to the paused playback position, the generated multimedia resources may include not only the first image frame, but also the first candidate material extracted from the work, wherein the first candidate material can be either an image frame extracted from the work based on the paused playback position, or a video clip extracted from the work based on the paused playback position. This not only realizes the rapid extraction of materials from the played works to produce multimedia resources based on the user's personal needs and reduces operating costs, but also expands the material selection range and significantly enriches the content of the generated multimedia resources.
[0112] In 303, in response to the triggering operation of the material selection control, the electronic device displays a material selection list, in which the first image frame and the first candidate material extracted from the work are displayed.
[0113] As an example, Figure 6 is a schematic diagram of another playback interface according to an exemplary embodiment. Figure 5 The trigger operation of the material selection control 2 shown in Figure 6 The material selection process shown in the figure. Figure 6 Materials 1 to 8 are shown. Those skilled in the art will appreciate that the number of materials included in the material selection list may be more or less than the number shown in the figure, and the present disclosure does not limit this. Assuming that the number of materials included in the material selection list is more than the number shown in the figure, the user can trigger Figure 6 View Control 4 shown in the figure to view more materials. In addition, View Control 4 Figure 6 In addition to executing the up and down viewing commands as shown, the left and right viewing commands can also be executed, and the present disclosure does not limit this.
[0114] In some embodiments, the present disclosure displays the first image frame and the first candidate material in the following manner: Method 1: Display the first image frame and the first candidate material in the material selection list according to the playback order in the work. For example, display the first image frame and the first candidate material in the material selection list according to the playback order from first to last in the work.
[0115] Method 2: Display the first image frame and the first candidate material in the material selection list in order of the number of historical interactions.
[0116] The historical interaction times include but are not limited to: historical like times, historical download times, historical share times or historical comment times, etc., which are not limited in the present disclosure. For example, the first image frame and the first candidate material are displayed in the material selection list in descending order of the historical interaction times.
[0117] Method 3: Display the first image frame and the first candidate material in the material selection list in order of historical release times.
[0118] The historical release times refer to the total number of times the first image frame and the first candidate material have been released in history. For example, the first image frame and the first candidate material are displayed in the material selection list in descending order of the historical release times.
[0119] In the disclosed embodiment, the electronic device displays the first image frame and the first candidate material in the order in which they are played in the work, so that the user can determine the order in which they are played based on the display order, which is conducive to user understanding, that is, improving the transparency of information. Displaying the first image frame and the first candidate material in the order of historical interaction times or release times facilitates users to quickly select materials and improves the efficiency of human-computer interaction.
[0120] In some other embodiments, during the material selection process, in addition to the material selection list, the electronic device also displays a first prompt message, wherein the first prompt message is used to prompt the execution of the material selection operation and the material selection restriction. As an example, the material selection restriction includes a material selection quantity restriction. Figure 6 The first prompt information may be “Please select 1-12 pictures or videos”, which is not limited in the present disclosure.
[0121] In summary, without leaving the playback interface, the disclosed embodiment also supports users to switch to the material selection process through one-click operation. When selecting materials, users can quickly complete material selection through the material selection list and the first prompt information displayed by the electronic device, which significantly improves the efficiency of human-computer interaction.
[0122] In other embodiments, each time a material in the material selection list is selected, the electronic device displays thumbnails of the currently selected materials in the order in which they were selected, and increases the number of selected materials. Figure 7 , Figure 7 is a schematic diagram of another playback interface according to an exemplary embodiment. Figure 7 In the , because the number of selected materials has reached 4, Figure 7 The number 4 is displayed in the image. Exemplarily, the number of selected materials is displayed around the first prompt information, such as after the first prompt information, which is not limited in the present disclosure. Figure 7 4 thumbnails are shown in the figure, wherein each thumbnail corresponds to a selected material, and the arrangement order of the 4 thumbnails is consistent with the selection order of the 4 materials. By displaying the number of selected materials and the thumbnails of the selected materials, the user can quickly understand the current material selection situation, which is convenient for the user to continue to select materials and view the selected materials, further improving the efficiency of human-computer interaction.
[0123] In other embodiments, during the material selection process, the electronic device will also display a close control for each thumbnail; in response to a trigger operation on any close control, the electronic device will cancel the display of the thumbnail corresponding to the close control and reduce the number of selected materials. Figure 7 , in addition to viewing control 4 and first control 5, Figure 7 The figure also shows a close control 6. For a functional description of the first control 5, please refer to the following text. Figure 3 If the corresponding close control is turned off, the electronic device will cancel the display of the thumbnail Figure 3 , and the number of selected items changes from 4 to 3. In addition, the abbreviation Figure 3 The corresponding selected material will be switched from the selected state to the unselected state. By closing the control, the disclosed embodiment supports the user to cancel the selection of a selected material with one key, further improving the efficiency of human-computer interaction.
[0124] In other embodiments, during the material selection process, the disclosed embodiments also support the user to perform custom editing operations on the selected material. For example, whenever a material in the material selection list is selected, the electronic device will display an editing control; in response to the triggering operation of the editing control, the electronic device will further display the editing interface of the currently selected material; wherein, the editing interface includes at least one editing option, and an editing option is used to indicate an editing method for the currently selected material. As an example, whenever a material in the material selection list is selected, the editing control is displayed in a floating manner at the display position of the currently selected material in the material selection list. For example, the editing control is displayed at the upper right corner or the lower right corner of the currently selected material, and the present disclosure does not limit this. As another example, whenever a material in the material selection list is selected, the electronic device displays the thumbnail of the currently selected material in the order selected, and the editing control is displayed in a floating manner at the display position of the thumbnail.
[0125] In summary, after selecting a material, the editing controls are synchronously displayed in a variety of ways, allowing users to quickly enter the editing process, shortening the operation path and further improving the efficiency of human-computer interaction.
[0126] In other embodiments, during the material selection process, the disclosed embodiments also support the user to perform multiple rounds of material selection, and then perform format selection after completing multiple rounds of material selection. See the following for details: In response to the second operation, the electronic device continues to play the work; next, in response to the pause operation on the work again, the electronic device pauses the play of the work and displays the second image frame currently played on the play interface; thereafter, in response to the first operation, the electronic device displays the updated material selection range. The updated material selection range includes the second image frame and the second candidate material extracted from the work.
[0127] Exemplarily, the second operation is Figure 4 The triggering operation of the pause mark shown in is not limited in the present disclosure. After the electronic device displays the updated material selection range, the user can start the next round of material selection. This solution that supports users to select multiple rounds of materials further expands the user's material selection space, not only can generate highly personalized multimedia resources, but also does not require users to perform manual screenshot operations, thereby reducing operating costs and improving human-computer interaction efficiency.
[0128] In 304 , in response to a triggering operation on the format selection control, the electronic device displays a plurality of output formats.
[0129] As an example, Figure 8 is a schematic diagram of another playback interface according to an exemplary embodiment. Figure 5 The trigger operation of the format selection control 3 shown in FIG. 1 is switched to Figure 8 The format selection process shown in the figure. Figure 8 Three output formats, namely, tiling, folding and GIF, are shown. Those skilled in the art will appreciate that the number of the above output formats may be more or less than that shown in the figure, and the present disclosure does not limit this.
[0130] See also Figure 8 , take the static output format of Tiled as an example, Figure 8 The possible layout styles in the output format of the tiled image are shown for users to choose. The number of layout styles of the tiled image can be more or less than that shown in the figure, and the present disclosure does not limit this. Fig. 9 , taking the static output format of folding as an example, Fig. 9 The possible layout styles in the output format of the folding diagram are shown for users to choose. The number of layout styles of the folding diagram can be more or less than that shown in the figure, and the present disclosure does not limit this. Fig.10 , take the dynamic output format of GIF as an example, Fig.10 The following shows the possible output styles under this output format.
[0131] It should be noted that, in addition to entering the format selection process by triggering the format selection control, the embodiment of the present disclosure also supports entering the format selection process by the method shown in the following step 305.
[0132] In 305 , during the material selection process, in response to a third operation, the electronic device displays a plurality of output formats.
[0133] In some embodiments, see Figure 6-7 In the material selection process, if the number of selected materials meets the minimum number limit, the electronic device will display the first control 5. The first control 5 is used to switch from the material selection process to the format selection process after being triggered. The meaning of displaying the first control 5 here is: if the number of selected materials meets the minimum number limit, the first control 5 will be Figure 6 The non-triggerable state (such as grayed-out state) shown is switched to Figure 7 The triggerable state shown. Accordingly, in response to the second operation, the electronic device displays multiple output formats, including: in response to the triggering operation of the first control, the electronic device displays multiple output formats.
[0134] In other embodiments, in response to the triggering operation of the first control, the electronic device determines a target output format that matches the type of the selected material from multiple output formats, and displays only the target output format. As an example, taking the output formats including tiled images, folded images, and GIF images as an example, assuming that the type of the selected material is a video clip, then the target output format only includes GIF images.
[0135] In summary, the solution supports multiple ways to switch to the format selection process. For example, the format selection process can be entered by triggering the format selection control. For another example, after the material selection is completed, you can switch to the format selection process with one click, which greatly facilitates the user to select the format, and the human-computer interaction is efficient. In addition, during the material selection process, the first control is only displayed when certain conditions are met, which can avoid the situation where the format selection process is mistakenly entered before the material selection is completed. In addition, during the format selection process, only the output format that matches the type of the selected material is displayed, which reduces the rendering pressure of the electronic device.
[0136] In 306 , in response to the material selection operation and the format selection operation, the electronic device displays the multimedia resource in the selected output format based on the editing operation on the selected material, and the multimedia resource includes the editing result of the selected material.
[0137] In the embodiment of the present disclosure, after completing the material selection and output format selection, the multimedia resources are displayed according to the selected output format, including but not limited to the following two situations: 3061. In response to the target layout style under the static output format being selected in the format selection operation, the multimedia resources including the selected material are displayed according to the target layout style.
[0138] See also Figure 8 , assuming that there are 4 selected materials, the selected static output format is tiled, and the user further selects Figure 8 Taking the fifth typesetting style shown in the figure as an example, the electronic device will display the following Figure 8 The preview image shown means that the electronic device will display the editing results of the 4 selected materials according to the fifth layout style under the tile image.
[0139] See also Fig. 9 , assuming that there are 4 selected materials, the selected static output format is a folded image, and the user further selects Fig. 9 Taking the second layout style shown in the figure as an example, the electronic device will display the following Fig. 9 The preview image shown means that the electronic device will display the editing results of the 4 selected materials according to the second layout style under the folded image.
[0140] 3062. In response to a dynamic output format being selected in the format selection operation, multimedia resources including the selected material are displayed according to the dynamic output format.
[0141] See also Fig.10 , taking the selected dynamic output format as GIF as an example, the electronic device will display the following Fig.10 The preview image shown means that the electronic device will display the selected material according to the GIF image.
[0142] In some embodiments, after completing the format selection, the user triggers Figure 8-10 The Next control shown in the Figure 5 The interface shown. Figure 5 In the effect preview window shown, users can preview the generated multimedia resources.
[0143] In other embodiments, the electronic device will also display at least one of a collection control, a save control, or a share control corresponding to the multimedia resource. The collection control is used to add the multimedia resource as an expression to the expression library of the first user account after being triggered; the save control is used to save the multimedia resource to the local resource library after being triggered; and the share control is used to send the multimedia resource to the second user account after being triggered.
[0144] In summary, the resource generation scheme provided by the embodiment of the present disclosure provides users with a new interactive method, supporting users to quickly create multimedia resources in the work playback scene. In detail, after the work is paused, the user can call out the material selection control and the format selection control in one step. Among them, the material selection control is used to indicate the material selection, that is, the scheme supports the user to select one or more materials by themselves; the format selection control is used to indicate the format selection, that is, the scheme supports the user to select the output format by themselves. In other words, the scheme realizes that in the process of generating multimedia resources, users can select materials and output formats according to personal needs, which can not only generate highly personalized multimedia resources, but also does not require users to perform manual screenshot operations, thereby reducing operating costs and improving human-computer interaction efficiency. In addition, since the material selection range is no longer limited to the first image frame corresponding to the paused playback position, the generated multimedia resources can include not only the first image frame, but also the first candidate material extracted from the work, enriching the content of the generated multimedia resources.
[0145] In addition, the generated multimedia resources can be either static or dynamic, enriching the types of generated multimedia resources. In addition, the generated multimedia resources also support users to collect, download or share with one click, further improving the efficiency of human-computer interaction.
[0146] Fig.11is a block diagram of a resource generation device according to an exemplary embodiment. Fig.11 , the device includes the following modules.
[0147] The playing module 1101 is configured to, in response to a pause operation on the work, pause the playing of the work and display the first image frame currently played on the playing interface; The first display module 1102 is configured to display a material selection control and a format selection control in response to a first operation; the material selection control is used to indicate material selection, wherein the material selection range includes the first image frame and a first candidate material extracted from the work; the format selection control is used to indicate format selection from multiple output formats; The second display module 1103 is configured to respond to the material selection operation and the format selection operation, and based on the editing operation on the selected material, display the multimedia resource in the selected output format, wherein the multimedia resource includes the editing result of the selected material.
[0148] In summary, the resource generation scheme provided by the embodiment of the present disclosure provides a new interactive method for users, supporting users to quickly create multimedia resources in the scene of work playback. In detail, after the work is paused, the user can call out the material selection control and the format selection control through one-step operation. Among them, the material selection control is used to indicate the material selection, that is, the scheme supports the user to select one or more materials by himself; the format selection control is used to indicate the format selection, that is, the scheme supports the user to select the output format by himself. In other words, the scheme realizes that in the process of generating multimedia resources, users can select materials and output formats according to personal needs, which can not only generate highly personalized multimedia resources, but also do not require users to perform manual screenshot operations, thereby reducing operating costs and improving human-computer interaction efficiency. In addition, since the material selection range is no longer limited to the first image frame corresponding to the paused playback position, the generated multimedia resources can include not only the first image frame, but also the first candidate material extracted from the work, enriching the content of the generated multimedia resources. In addition, the scheme also supports users to perform custom editing operations on the selected materials. This interactive method not only has low operating costs, but also makes it possible for users to create secondary works, and has high human-computer interaction efficiency.
[0149] In some embodiments, the apparatus further comprises: A third display module is configured to display a target function entrance on the playback interface in response to the pause operation, wherein the target function entrance is used to prompt resource creation; The first display module is configured to display the material selection control and the format selection control in response to a triggering operation on the target function entry.
[0150] In some other embodiments, the first display module is configured to display the material selection control and the format selection control in response to a preset gesture operation on the playback interface.
[0151] In some other embodiments, the first candidate material includes at least one of the following: The playing position of the image frame is before the first image frame; The playing position of the image frame is located after the first image frame; A video clip whose playing position is before the first image frame and whose length is less than a duration threshold; A video segment whose playback position is located after the first image frame and whose length is less than the duration threshold.
[0152] In some other embodiments, the device further comprises: The fourth display module is configured to display a material selection list and a first prompt information in response to a triggering operation on the material selection control; wherein the material selection list displays the first image frame and the first candidate material; and the first prompt information is used to prompt the execution of the material selection operation and the material selection restriction.
[0153] In some other embodiments, the fourth display module is further configured as: Displaying the first image frame and the first candidate material in the material selection list according to the playback order in the work; or, displaying the first image frame and the first candidate material in the material selection list in order of historical interaction times; Alternatively, the first image frame and the first candidate material are displayed in the material selection list in order of historical release times.
[0154] In some other embodiments, the fourth display module is further configured to display thumbnails of the currently selected materials in the order in which they were selected, and increase the number of selected materials, each time a material in the material selection list is selected.
[0155] In some other embodiments, the fourth display module is further configured as: Whenever a material in the material selection list is selected, an editing control is displayed; in response to a triggering operation on the editing control, an editing interface is displayed; wherein the editing interface includes at least one editing option, and one of the editing options is used to indicate an editing method; Or, after the material selection is completed, a second prompt information is displayed, the second prompt information is used to prompt to edit the material; in response to the editing confirmation operation, the editing control is displayed; in response to the triggering operation of the editing control, the editing interface is displayed; Or, after completing the material selection and format selection, display the second prompt information; in response to the editing confirmation operation, display the editing control; in response to the triggering operation of the editing control, display the editing interface.
[0156] In some other embodiments, the fourth display module is further configured as: Whenever a material in the material selection list is selected, the editing control is displayed in a floating manner at the display position of the currently selected material in the material selection list; Or, whenever a material in the material selection list is selected, thumbnails of the currently selected materials are displayed in the order in which they are selected, and the editing control is displayed in a floating manner at the display position of the thumbnail.
[0157] In some other embodiments, the playback module is further configured to, in response to a second operation during the material selection process, continue to play the work; in response to a second pause operation on the work, pause the playback of the work and display the second image frame currently played on the playback interface; The first display module is further configured to display an updated material selection range in response to the first operation; wherein the updated material selection range includes the second image frame and a second candidate material extracted from the work.
[0158] In some other embodiments, the fourth display module is further configured as: Display the close control corresponding to each thumbnail; In response to a triggering operation on any close control, the thumbnail corresponding to the close control is canceled from being displayed, and the number of selected materials is reduced.
[0159] In some other embodiments, the device further comprises: The fifth display module is configured to display the multiple output formats in response to a triggering operation on the format selection control; or, during the material selection process, display the multiple output formats in response to a third operation.
[0160] In some other embodiments, the device further comprises: A sixth display module is configured to display a first control during the material selection process if the number of selected materials meets the minimum number limit; wherein the first control is used to switch from the material selection process to the format selection process after being triggered; The fifth display module is configured to display the multiple output formats in response to a triggering operation on the first control.
[0161] In some other embodiments, the fifth display module is configured as: In response to a triggering operation on the first control, determining a target output format matching the type of the selected material among the multiple output formats; Displays the target output format.
[0162] In some other embodiments, the multiple output formats include a static output format, wherein the static output format includes at least one typesetting style; The second display module is configured to select a target typesetting style under the static output format in response to the format selection operation, and display the multimedia resource according to the target typesetting style.
[0163] In other embodiments, the plurality of output formats includes a dynamic output format; The second display module is configured to select the dynamic output format in response to the format selection operation, and display the multimedia resource according to the dynamic output format.
[0164] In some other embodiments, the device further comprises: a seventh display module, configured to display at least one of a collection control, a save control or a share control corresponding to the multimedia resource; The collection control is used to add the multimedia resource as an emoticon to the emoticon library of the first user account after being triggered; The save control is used to save the multimedia resource to a local resource library after being triggered; The sharing control is used to send the multimedia resource to the second user account after being triggered.
[0165] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present disclosure, which will not be described in detail here.
[0166] It should be noted that the resource generation device provided in the above embodiment only uses the division of the above functional units as an example when performing resource generation. In actual applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the electronic device is divided into different functional units to complete all or part of the functions described above. In addition, the resource generation device provided in the above embodiment and the resource generation method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0167] 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.
[0168] In some embodiments, an electronic device is further provided, the electronic device comprising: one or more processors; a memory for storing program code executable by the processor; The processor is configured to execute the program code to implement the resource generation method.
[0169] In which, in response to the electronic device being provided as a terminal, Fig.12 It is a block diagram of a terminal 1200 according to an exemplary embodiment.
[0170] Typically, the terminal 1200 includes: a processor 1201 and a memory 1202 .
[0171] The processor 1201 includes one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1201 is implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Alternatively, the processor 1201 includes a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state.
[0172] In some embodiments, the processor 1201 is integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1201 also includes an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0173] The memory 1202 includes one or more computer-readable storage media, which are non-transitory. The memory 1202 also includes a high-speed random access memory and a non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1202 is used to store at least one program code, and the at least one program code is used to be executed by the processor 1201 to implement the resource generation method provided in the method embodiment of the present disclosure.
[0174] In some embodiments, the terminal 1200 further includes: a peripheral device interface 1203 and at least one peripheral device. The processor 1201, the memory 1202 and the peripheral device interface 1203 are connected via a bus or a signal line. Each peripheral device is connected to the peripheral device interface 1203 via a bus, a signal line or a circuit board. The peripheral device includes: at least one of a radio frequency circuit 1204, a display screen 1205, a camera assembly 1206, an audio circuit 1207 and a power supply 1208.
[0175] The peripheral device interface 1203 is used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1201 and the memory 1202. In some embodiments, the processor 1201, the memory 1202, and the peripheral device interface 1203 are integrated on the same chip or circuit board; in other embodiments, any one or two of the processor 1201, the memory 1202, and the peripheral device interface 1203 are implemented on a separate chip or circuit board, which is not limited in the present disclosure.
[0176] The radio frequency circuit 1204 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1204 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1204 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. In some embodiments, the radio frequency circuit 1204 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 1204 communicates with other terminals through at least one wireless communication protocol. Wireless communication protocols include, but are not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1204 also includes circuits related to NFC (Near Field Communication), which is not limited in the present disclosure.
[0177] The display screen 1205 is used to display UI (User Interface). UI includes graphics, text, icons, videos and any combination thereof. In the case where the display screen 1205 is a touch display screen, the display screen 1205 also has the ability to collect touch signals on the surface or above the surface of the display screen 1205. The touch signal is input to the processor 1201 as a control signal for processing. At this time, the display screen 1205 is also used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1205 is one, which is set on the front panel of the terminal 1200; in other embodiments, the display screen 1205 is at least two, which are respectively set on different surfaces of the terminal 1200 or are folded; in other embodiments, the display screen 1205 is a flexible display screen, which is set on the curved surface or folded surface of the terminal 1200. Alternatively, the display screen 1205 is set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1205 is made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0178] The camera assembly 1206 is used to capture images or videos. In some embodiments, the camera assembly 1206 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal, and the rear camera is disposed on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In other embodiments, the camera assembly 1206 also includes a flash. The flash is a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which is used for light compensation at different color temperatures.
[0179] The audio circuit 1207 includes a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1201 for processing, or input them into the radio frequency circuit 1204 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there are multiple microphones, which are respectively arranged at different parts of the terminal 1200. Alternatively, the microphone is an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1201 or the radio frequency circuit 1204 into sound waves. The speaker is a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only can the electrical signal be converted into sound waves audible to humans, but also the electrical signal can be converted into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1207 also includes a headphone jack.
[0180] The power supply 1208 is used to power various components in the terminal 1200. The power supply 1208 is an alternating current, a direct current, a disposable battery, or a rechargeable battery. In the case where the power supply 1208 includes a rechargeable battery, the rechargeable battery is a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged through a wired line, and a wireless rechargeable battery is a battery that is charged through a wireless coil. The rechargeable battery is also used to support fast charging technology.
[0181] Those skilled in the art will understand that Fig.12 The structure shown in the figure does not constitute a limitation on the terminal 1200, and the terminal 1200 may include more or fewer components than those shown in the figure, or combine certain components, or adopt a different component arrangement.
[0182] In some embodiments, a computer-readable storage medium including instructions is also provided, such as a memory including instructions, and the instructions are executed by a processor of an electronic device to implement the resource generation method. In other embodiments, the computer-readable storage medium is a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0183] In some embodiments, a computer program product is also provided, including a computer program, which is executed by a processor of an electronic device to implement the above-mentioned resource generation method.
[0184] 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.
[0185] 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 resource generation method, characterized in that: The method comprises: In response to a pause operation on the work, pausing the playing of the work, and displaying the first image frame currently played on the playing interface; In response to the first operation, a material selection control and a format selection control are displayed; the material selection control is used to instruct to select a material, wherein the material selection range includes the first image frame and a first candidate material extracted from the work; the format selection control is used to instruct to select a format from a plurality of output formats; In response to the material selection operation and the format selection operation, based on the editing operation on the selected material, the multimedia resource is displayed in the selected output format, and the multimedia resource includes the editing result of the selected material.
2. The resource generation method according to claim 1, characterized in that: The method further comprises: In response to a triggering operation on the material selection control, displaying a material selection list and a first prompt information; The material selection list displays the first image frame and the first candidate material; the first prompt information is used to prompt the execution of the material selection operation and the material selection restriction.
3. The resource generation method according to claim 2, characterized in that: The method further comprises: Displaying the first image frame and the first candidate material in the material selection list according to the playback order in the work; or, displaying the first image frame and the first candidate material in the material selection list in order of historical interaction times; Alternatively, the first image frame and the first candidate material are displayed in the material selection list in order of historical release times.
4. The resource generation method according to claim 2, characterized in that: The method further comprises: Whenever a material in the material selection list is selected, an editing control is displayed; in response to a triggering operation on the editing control, an editing interface is displayed; wherein the editing interface includes at least one editing option, and one of the editing options is used to indicate an editing method; Or, after the material selection is completed, a second prompt information is displayed, the second prompt information is used to prompt to edit the material; in response to the editing confirmation operation, the editing control is displayed; in response to the triggering operation of the editing control, the editing interface is displayed; Or, after completing the material selection and format selection, display the second prompt information; in response to the editing confirmation operation, display the editing control; in response to the triggering operation of the editing control, display the editing interface.
5. The resource generation method according to claim 1, characterized in that: The first candidate material includes at least one of the following: The playing position of the image frame is before the first image frame; The playing position of the image frame is located after the first image frame; A video clip whose playing position is before the first image frame and whose length is less than a duration threshold; A video segment whose playback position is located after the first image frame and whose length is less than the duration threshold.
6. The resource generation method according to claim 1, characterized in that: During the material selection process, the method further includes: In response to the second operation, continue playing the work; In response to a second pause operation on the work, pausing the playing of the work, and displaying a second image frame currently being played on the playing interface; In response to the first operation, an updated material selection range is displayed; wherein the updated material selection range includes the second image frame and a second candidate material extracted from the work.
7. The resource generation method according to claim 2, characterized in that: The method further comprises: Whenever a material in the material selection list is selected, thumbnails of the currently selected materials are displayed in the order in which they were selected, and the number of selected materials is increased.
8. The resource generation method according to claim 4, characterized in that: Whenever a material in the material selection list is selected, an edit control is displayed, including: Whenever a material in the material selection list is selected, the editing control is displayed in a floating manner at the display position of the currently selected material in the material selection list; Or, whenever a material in the material selection list is selected, thumbnails of the currently selected materials are displayed in the order in which they are selected, and the editing control is displayed in a floating manner at the display position of the thumbnail.
9. The resource generation method according to claim 7, characterized in that: The method further comprises: Display the close control corresponding to each thumbnail; In response to a triggering operation on any close control, the thumbnail corresponding to the close control is canceled from being displayed, and the number of selected materials is reduced.
10. The resource generation method according to claim 1, characterized in that: The method further comprises: In response to a triggering operation on the format selection control, displaying the plurality of output formats; Or, during the material selection process, in response to a third operation, the plurality of output formats are displayed.
11. The resource generation method according to claim 10, characterized in that: The method further comprises: During the material selection process, if the number of selected materials meets the minimum number limit, a first control is displayed; wherein the first control is used to switch from the material selection process to the format selection process after being triggered; In response to the second operation, displaying the multiple output formats includes: In response to a triggering operation on the first control, the multiple output formats are displayed.
12. The resource generation method according to claim 11, characterized in that: The displaying of the plurality of output formats in response to the triggering operation on the first control comprises: In response to a triggering operation on the first control, determining a target output format matching the type of the selected material among the multiple output formats; Displays the target output format.
13. The resource generation method according to claim 1, characterized in that: The multiple output formats include a static output format, wherein the static output format includes at least one typesetting style; The displaying of multimedia resources according to the selected output format includes: In response to the format selection operation selecting a target typesetting style under the static output format, the multimedia resource is displayed according to the target typesetting style.
14. The resource generation method according to claim 1, characterized in that: The multiple output formats include a dynamic output format; and the displaying of multimedia resources according to the selected output format includes: In response to the dynamic output format being selected by the format selection operation, the multimedia resource is displayed according to the dynamic output format.
15. The resource generation method according to claim 1, characterized in that: The method further comprises: In response to the pause operation, a target function entry is displayed on the playback interface, wherein the target function entry is used to prompt resource creation; The method of displaying a material selection control and a format selection control in response to the first operation includes: In response to a triggering operation on the target function entry, displaying the material selection control and the format selection control; Or, in response to a preset gesture operation on the playback interface, the material selection control and the format selection control are displayed.
16. The resource generation method according to any one of claims 1 to 15, characterized in that: The method further comprises: Display at least one of a collection control, a save control, or a share control corresponding to the multimedia resource; The collection control is used to add the multimedia resource as an emoticon to the emoticon library of the first user account after being triggered; The save control is used to save the multimedia resource to a local resource library after being triggered; The sharing control is used to send the multimedia resource to the second user account after being triggered.
17. A resource generation device, characterized in that: The device comprises: A playing module is configured to pause the playing of the work in response to a pause operation on the work, and display the first image frame currently played on the playing interface; A first display module is configured to display a material selection control and a format selection control in response to a first operation; the material selection control is used to indicate material selection, wherein the material selection range includes the first image frame and a first candidate material extracted from the work; the format selection control is used to indicate format selection from multiple output formats; The second display module is configured to respond to the material selection operation and the format selection operation, and based on the editing operation of the selected material, display the multimedia resource in the selected output format, wherein the multimedia resource includes the editing result of the selected material.
18. An electronic device, characterized in that: The electronic device comprises: one or more processors; a memory for storing program code executable by the processor; The processor is configured to execute the program code to implement the resource generation method according to any one of claims 1 to 16.
19. 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 resource generation method according to any one of claims 1 to 16.
20. A computer program product, characterized in that The invention comprises a computer program, which implements the resource generation method according to any one of claims 1 to 16 when being executed by a processor of an electronic device.
Citation Information
Patent Citations
Customized expression image generation method and device
CN106658079A
Meme making method, device, electronic device and computer readable storage medium
CN108038892A
Animation file generating and playing method, device and system
CN108881997A
Image resource splicing method and equipment
CN111353936A
Spliced video cover generation method and device, equipment and storage medium
CN111369434A