Media content generation method and device, equipment, medium and program product
By providing material import and generation controls on the music creation client, users can select materials and generate audio, solving the problem of high creation threshold in the existing technology and achieving lower difficulty and rich interaction media content creation.
Patent Information
- Application Number
- CN202411847450.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-13
- Publication Date
- 2025-03-21
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing music creation clients require users to understand various music styles and accurately describe their expectations for music, resulting in a high threshold for creation.
By displaying material import controls and generating controls on the client, users can select target materials (such as pictures or videos) and generate target audio, and ultimately create target media content.
It reduces the difficulty of creating media content and enriches creative interaction methods, allowing users to generate media content through videos or multiple pictures.
Smart Images

Figure CN119668456A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to computer technology, and more particularly to a method, apparatus, device, medium, and program product for generating media content. Background Art
[0002] With the promotion of computer technology in the field of content creation, the application of content creation clients that generate media content based on prompt texts is becoming more and more widespread. For example, content creation clients include music creation clients, etc.
[0003] Currently, music can be generated by inputting text and music style into the music creation client. However, this music generation method requires users to understand various music styles and be able to accurately describe their expectations for music, which requires users to have high musical literacy and has a high threshold for creation. Summary of the invention
[0004] The embodiments of the present disclosure provide a media content generation method, apparatus, device, medium, and program product, which can optimize the media content generation scheme and reduce the difficulty of media content creation.
[0005] In a first aspect, an embodiment of the present disclosure provides a method for generating media content, including:
[0006] Display material import controls and generation controls on the first page;
[0007] In response to an interactive operation on the material import control, displaying a second page, wherein the second page includes candidate materials;
[0008] In response to a selection operation on the candidate material, determining a target material, and displaying the target material on the first page;
[0009] In response to an interactive operation on the generating control, a target audio is generated according to the target material, and a target media content is generated according to the target audio and the target material.
[0010] In a second aspect, an embodiment of the present disclosure further provides a media content generating device, the device comprising:
[0011] A first page display module, used to display material import controls and generation controls on the first page;
[0012] A second page display module, configured to display a second page in response to an interactive operation on the material import control, wherein the second page includes candidate materials;
[0013] a material display module, configured to determine a target material in response to a selection operation on the candidate material, and display the target material on the first page;
[0014] The media content generation module is used to generate target audio according to the target material in response to an interactive operation on the generation control, and generate target media content according to the target audio and the target material.
[0015] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:
[0016] one or more processors;
[0017] a storage device for storing one or more programs,
[0018] When the one or more programs are executed by the one or more processors, the one or more processors implement the media content generating method as described in any embodiment of the present disclosure.
[0019] In a fourth aspect, an embodiment of the present disclosure further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the media content generation method as described in any embodiment of the present disclosure.
[0020] In a fifth aspect, an embodiment of the present disclosure further provides a computer program product, including a computer program, which, when executed by a processor, implements the media content generation method as described in any embodiment of the present disclosure.
[0021] The disclosed embodiment provides a method for generating media content, which displays a material import control and a generation control on a first page, and displays a second page in response to an interactive operation on the material import control, wherein the second page includes candidate materials. In response to a selection operation on the candidate material, a target material is determined, and the target material is displayed on the first page. The target material includes a target picture set and / or a target video. In response to an interactive operation on the generation control, a target audio is generated according to the target material, and a target media content is generated according to the target audio and the target material. The technical solution of the disclosed embodiment generates a target audio through the target material, generates a target media content according to the target audio and the target material, and realizes the generation of target media content through videos or multiple pictures, which effectively enriches the interactive mode of media content creation and reduces the difficulty of media content creation. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0023] Figure 1A flowchart of a method for generating media content provided by an embodiment of the present disclosure;
[0024] Figure 2 A schematic diagram of a first page provided by an embodiment of the present disclosure;
[0025] Figure 3 A schematic diagram of a second page provided by an embodiment of the present disclosure;
[0026] Figure 4 A schematic diagram of another second page provided by an embodiment of the present disclosure;
[0027] Figure 5a A flowchart of an audio generation method provided by an embodiment of the present disclosure;
[0028] Figure 5b A flowchart of another audio generation method provided by an embodiment of the present disclosure;
[0029] Figure 6 A flowchart of another media content generation method provided by an embodiment of the present disclosure;
[0030] Figure 7 A flowchart of a preview method provided by an embodiment of the present disclosure;
[0031] Figure 8 A schematic diagram of a display method of a preview window provided in an embodiment of the present disclosure;
[0032] Fig. 9 A schematic diagram of the structure of a media content generating device provided by an embodiment of the present disclosure;
[0033] Fig.10 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0034] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0035] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0036] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0037] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0038] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0039] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0040] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0041] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0042] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0043] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0044] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0045] Figure 1 The present invention provides a flow chart of a method for generating media content provided by an embodiment of the present invention. The present invention is applicable to the situation of media content creation, for example, it can be applicable to the scene of song creation. The method can be executed by a media content generation device, which can be implemented in the form of software and / or hardware, and optionally, by an electronic device, which can be a mobile terminal, a PC or a server, etc.
[0046] like Figure 1 As shown, the method includes:
[0047] S110. Displaying a material import control and a generation control on the first page.
[0048] Among them, the first page represents an interactive page of the media content creation function. The media content may include songs and / or song videos, etc. For example, the first page includes a material import control and a generation control. Optionally, the first page also includes at least one of a text input control, a recommended text area, and a type option. The material import control is used to trigger a material import event. The material import event represents an event of selecting a target material to import into the first page. The generation control is used to trigger a media content generation event. The media content generation event represents an event of generating media content based on the target material. The text input control is used to input a text description related to the media content. Accordingly, the media content is generated according to the text description and the image description corresponding to the target material. The recommended text area is used to display the recommended text. In response to the selection operation for the recommended text, the selected recommended text is displayed at the position corresponding to the text input control. The type option is used to determine whether the generated media content has lyrics. The model for generating the target audio can be determined according to the option information corresponding to the type option, and the first audio with lyrics or the second audio without lyrics is generated according to the determined model.
[0049] Figure 2 A schematic diagram of a first page provided by an embodiment of the present disclosure. Figure 2 As shown, a material import control 220 is displayed at a corresponding position of the text input control 210 of the first page 200 , and a generation control 230 is displayed below the text input control 210 .
[0050] Optionally, a material import control may be displayed between the text input control and the generation control on the first page.
[0051] In the disclosed embodiment, the creation control is displayed in the fourth page, and in response to the interactive operation on the creation control, the first page is displayed, and the first page includes a material import control and a generation control, etc.
[0052] Optionally, the version of the music creation client can be updated so that the music creation client can generate media content based on the target material. During the first cold start after the version update, the target text is displayed at the position corresponding to the creation control in the fourth page.
[0053] Optionally, if it is detected that the number of consecutive song switching exceeds a preset threshold, the target copy is displayed at the position corresponding to the creation control in the fourth page.
[0054] The target text is used to prompt the newly added target material to generate a song. If the display time of the target text exceeds the preset time threshold, the target text is hidden. Alternatively, in response to an interactive operation at any position in the fourth page, the target text is hidden.
[0055] S120: In response to an interactive operation on the material import control, display a second page, where the second page includes candidate materials.
[0056] In the disclosed embodiment, the second page may be a display page for pictures and / or videos. The pictures may include photographed photos and / or downloaded pictures. For example, the second page includes an album page. The second page may include an album page consisting of pictures and videos acquired within a set time period. The second page includes a first tab page, a second tab page, and a third tab page. The first tab page includes pictures and videos. The second tab page includes pictures. The third tab page includes videos.
[0057] Exemplarily, in response to an interactive operation on a material import control, a second page is displayed, wherein the material selection page includes candidate images and / or candidate videos. Optionally, in response to an interactive operation on a page switching control in the second page, the candidate images and / or candidate videos in the second page are updated. The page switching control includes at least two candidate albums. The interactive operation on the page switching control may include an album switching operation.
[0058] In some embodiments, after displaying the second page, the method further includes:
[0059] In response to a sliding operation in the second page, the acquisition time of the candidate material is displayed on the second page. In response to a sliding operation on the acquisition time, the candidate material corresponding to the acquisition time in the second page is slid.
[0060] Among them, the sliding operation in the second page represents the up and down sliding operation of holding down the candidate material in the second page. In response to the sliding operation in the second page, the acquisition time of the held candidate material is displayed on the second page. If the up and down sliding operation of holding down the acquisition time in the second page is detected, the candidate material is moved as a whole along the direction corresponding to the up and down sliding operation according to the acquisition time. For example, taking the acquisition time as the starting point, the pictures and / or videos acquired on the same day are moved up or down as a whole. By moving the candidate data material as a whole, it is possible to change the position of multiple rows of pictures and / or videos in the album page with one sliding operation, thereby improving the efficiency of material sliding.
[0061] In some other embodiments, after displaying the second page, the method further includes: in response to a sliding operation in the second page, sliding the candidate materials in the second page.
[0062] S130: In response to a selection operation on the candidate material, determine a target material, and display the target material on the first page.
[0063] The target material represents the candidate material selected in the second page. The target material includes a target picture set and / or a target video. The target picture set includes a plurality of target pictures. If the candidate material is selected, the candidate material in the second page is switched to a selected state, and a thumbnail of the target material is displayed in a target window on the second page. The target window can be displayed at the bottom, middle, top or side of the second page.
[0064] Exemplarily, in response to a selection operation on the candidate material, the target material is displayed in a target window in the second page. In response to a confirmation operation on the target material, the first page is displayed, and the target material is displayed in a corresponding position of the material import control in the first page.
[0065] Figure 3 A schematic diagram of a second page provided by an embodiment of the present disclosure. Figure 3 As shown, the target window 310 is displayed at the bottom of the second page 300. The target window 310 includes a reduced-size video cover image 320 of the target video and a confirmation control 330. In response to the interactive operation on the confirmation control 330, the first page 340 is displayed. The reduced-size video cover image 320 of the target video is displayed at the corresponding position of the material import control 350 in the first page 340.
[0066] Figure 4 FIG. 1 is a schematic diagram of another second page provided by an embodiment of the present disclosure. Figure 4As shown, the target window 410 is displayed at the bottom of the second page 400. The target window 410 includes a thumbnail 420 of a target picture in the target picture collection and a confirmation control 430. In response to the interactive operation on the confirmation control 430, the first page 440 is displayed. The thumbnail 420 of the target picture in the target picture collection is displayed at the corresponding position of the material import control 450 in the first page 440.
[0067] In response to the selection operation for the candidate material, a target window is displayed at the bottom of the second page, and the target window includes the target material and a confirmation control. In response to the interactive operation for the confirmation control, the target material is displayed at the corresponding position of the material import control in the first page. In order to reduce the occupation of the screen display space by the target window, a thumbnail of the target material can be displayed in the target window to facilitate previewing or editing of the target material so that the target material meets the expectations of media content generation. If the interactive operation of the confirmation control is detected, it means that the target material meets the expectations of media content generation, and the target material is displayed in the first page to intuitively display the material required to generate the song.
[0068] In some embodiments, after displaying the target material in the target window in the second page in response to the selection operation on the candidate material, the method further includes:
[0069] In response to an interactive operation on the target video, a material preview page is displayed, and the material preview page includes a video frame sequence of the target video. In response to a cropping operation on the video frame sequence, a cropped target video is determined. In response to a confirmation operation on the cropped target video, the cropped target video is displayed at a corresponding position of the material import control in the first page. By cropping the target video on the material preview page, quick editing of the song duration can be achieved.
[0070] For example, click on the target video at the bottom of the second page, display the material preview page, play the target video through the material preview page, and display the video frame sequence of the target video at the bottom of the material preview page. Among them, the playback progress of the target video corresponds to the position of the timeline in the video frame sequence. The video clipping duration is determined according to the position of the timeline. In response to the adjustment operation on the timeline, the video clipping duration is determined according to the position of the timeline, and the target video is cropped according to the video clipping duration to obtain the cropped target video. The bottom of the material preview page also includes a completion control and a cancel control. In response to the interactive operation on the completion control, the cropped target video is displayed at the corresponding position of the material import control on the first page. In response to the interactive operation on the cancel control, the cropping operation on the target video is abandoned.
[0071] In some other embodiments, after displaying the target material in the target window in the second page in response to the selection operation on the candidate material, the method further includes:
[0072] In response to an interactive operation on a target image in a target image set, a material preview page is displayed, the material preview page includes the target image set, wherein the target images in the target image set are arranged in sequence. In response to an editing operation on the target image set, the target image set in the material preview page is updated, wherein the editing operation includes at least one of image shifting, image deletion, and image addition. In response to a confirmation operation on the updated target image set, the updated target image set is displayed at a corresponding position of the material import control in the first page. After selecting the target image, the target image is previewed through the material preview page to realize an intuitive display of the target image. Through the editing operation in the material preview page, the selected target image can be shifted, deleted, or a new target image can be added without returning to the second page for operation, thereby simplifying the interactive process.
[0073] For example, click on the target image at the bottom of the second page to display the material preview page. Display the preview image of the target image through the material preview page, and display the target image in the target image set at the bottom of the material preview page. Wherein, the preview image represents the target image whose image size exceeds the set threshold. In response to the deletion operation of the target image at the bottom of the material preview page, delete the corresponding target image in the target image set. In response to the shift operation of the target image at the bottom of the material preview page, adjust the position of the corresponding target image in the target image set. In response to the add operation of the target image set at the bottom of the material preview page, insert a new target image into the target image set. A confirmation control is also included at the bottom of the material preview page. In response to the interactive operation of the confirmation control, the updated target image set is displayed at the corresponding position of the material import control in the first page.
[0074] Optionally, the material selection page further includes a shooting control. In response to an interactive operation of the shooting control, a shooting page is displayed. In response to a shooting operation in the shooting page, a target material is acquired.
[0075] S140: In response to an interactive operation on the generation control, generate target audio according to the target material, and generate target media content according to the target audio and the target material.
[0076] The target audio is generated based on the image description information corresponding to the target material. The target audio may be audio data containing lyrics or audio data without lyrics. The target media content may represent a song video. The song video may include a video with music or a card point video.
[0077] Exemplarily, in response to an interactive operation on the generation control, generating a target audio according to the target material, and generating a target media content according to the target audio and the target material, includes:
[0078] In response to the interactive operation on the generation control, the target audio is generated according to the target material and target prompt information, wherein the target prompt information includes prompt information associated with the generation of media content. The target prompt information can be input by the user or preset.
[0079] In some embodiments, generating the target audio according to the target material and the target prompt information includes:
[0080] A target video frame in the target video is obtained, and image description information is determined according to the target video frame. The target audio is generated according to the image description information and target prompt information.
[0081] The target video frame is a part of the video frame in the target video. The target video frame in the target video can be obtained by video frame extraction. The video frame extraction method can be random frame extraction or frame extraction at a preset interval. The image description information of the target video frame can be generated by a visual language model. The target video frame is obtained by performing video frame extraction processing on the target video, and the image description information is obtained by understanding the target video frame through a visual language model, which can reduce the computing power occupation. The image description information corresponding to the video frame can be text information obtained by semantically understanding the image content of the video frame. Then, the image description information is input into the media content generation model as prompt information, and the target audio is generated by the media content generation model according to the image description information and the target prompt information. The duration of the target audio is associated with the duration of the target video. For example, the deviation between the duration of the target audio and the duration of the target video is less than a set threshold. If the target prompt information includes the duration of the song, the duration of the target audio is determined according to the duration of the song in the target prompt information.
[0082] Optionally, the image description information of the target image in the target image set may be generated by a visual language model, and then the target audio may be generated according to the image description information and the target prompt information corresponding to the target image by a media content generation model.
[0083] For example, in response to an interactive operation on the generating control, image description information is generated according to a target image in the target image set, and target audio is generated according to the image description information corresponding to the target image. The image description information corresponding to the target image may be text information obtained by semantically understanding the image content of the target image. The duration of the target audio is determined according to the song duration in the target prompt information.
[0084] In the disclosed embodiment, the target media content is generated according to the target audio and the target material, including: generating the target media content according to the target audio and the image information of the target video, since the duration of the target audio is consistent with the duration of the target media content. If the target prompt information does not include the duration of the song, the duration of the target media content is associated with the duration of the target video. If the target prompt information includes the duration of the song, the duration of the target media content is determined according to the target prompt information.
[0085] By separating the audio information and image information of the target video and combining the image information and the target audio to form the target media content, the generated target audio is used as the soundtrack for the target video.
[0086] Optionally, generating target media content according to the target audio and target material includes:
[0087] The corresponding relationship between the target picture and the target audio is determined according to the beat information and the re-beat information of the target audio, and the target media content is generated according to the target audio, the target picture set and the corresponding relationship.
[0088] The correspondence between the target image and the target audio includes a card point strategy for the target image. For example, the card point strategy includes a correspondence between the beat of the target audio and the target image. The target image may be replaced every N beats of the target audio, and the images may be played in a loop in the order of the images.
[0089] Optionally, the first page further includes a type option; in response to an interactive operation on the type option, option information corresponding to the type option is determined. The type option is used to select the generation of audio with lyrics or pure music. The option information of the type option represents the value of the type option. The option information is associated with the media content generation model. If the option information represents the generation of audio with lyrics, the song generation model is used to generate the target audio. If the option information represents the generation of pure music, the pure media content generation model is used to generate the target audio.
[0090] The method of generating target audio according to the target material in response to an interactive operation on the generating control includes: generating the target audio according to the target material and option information in response to an interactive operation on the generating control, the target audio including a first audio or a second audio, wherein the first audio contains lyrics and the second audio does not contain lyrics.
[0091] Figure 5a Flow chart of an audio generation method provided by an embodiment of the present disclosure. Figure 5aAs shown, the target picture set 510 belongs to the pre-trained visual language model 530. The visual language model 530 is used to generate image description information based on the target pictures in the target picture set 510. The image description information is input into the pre-trained song generation model 550 or the pure media content generation model 560, and the song generation model 550 or the pure media content generation model 560 generates a target audio 570 based on the image description information. The card point strategy of the target picture is determined according to the beat information and re-beat information of the target audio, and the target media content 580 is generated according to the target audio 570, the target picture set 510 and the card point strategy.
[0092] Figure 5b Flow chart of another audio generation method provided by the embodiment of the present disclosure. Figure 5b As shown, the target video 520 is subjected to video frame extraction to obtain a target video frame 540, and the target video frame 540 is input into a pre-trained visual language model 530. Image description information is generated based on the target video frame 540 through the visual language model 530. The image description information is input into a pre-trained song generation model 550 or a pure media content generation model 560, and a target audio 570 is generated based on the image description information through the song generation model 550 or the pure media content generation model block 560. The image information of the target video 520 is obtained, and the target media content 580 is generated according to the image information and the target audio 570.
[0093] The technical solution of the embodiment of the present disclosure displays a material import control and a generation control on a first page, and displays a second page in response to an interactive operation on the material import control, wherein the second page includes candidate materials. In response to a selection operation on the candidate material, a target material is determined, and the target material is displayed on the first page. The target material includes a target picture set and / or a target video. In response to an interactive operation on the generation control, a target audio is generated according to the target material, and a target media content is generated according to the target audio and the target material. The technical solution of the embodiment of the present disclosure generates a target audio through the target material, and generates a target media content according to the target audio and the target material, thereby realizing the generation of media content through videos or multiple pictures, effectively enriching the interactive mode of media content creation, and reducing the difficulty of media content creation.
[0094] Figure 6 This is a flow chart of another media content generation method provided by an embodiment of the present disclosure. Based on the above embodiments, the embodiment of the present disclosure additionally defines a media content preview method.
[0095] like Figure 6 As shown, the method includes:
[0096] S610: Display a material import control and a generation control on the first page.
[0097] S620: In response to an interactive operation on the material import control, display a second page, where the second page includes candidate materials.
[0098] S630: In response to a selection operation on the candidate material, determine a target material, and display the target material on the first page.
[0099] S640: In response to an interactive operation on the generation control, generate target audio according to the target material, and generate target media content according to the target audio and the target material.
[0100] Exemplarily, if an interactive operation of a generation control in the first page is detected, the target material is input into the media content generation model, and a plurality of target audios are generated according to the target material through the media content generation model.
[0101] Alternatively, a text description related to the media content input in the text input control is obtained. If an interactive operation of the generation control in the first page is detected, the target material and the text description related to the media content are input into the media content generation model, and multiple target audios are generated according to the target material and the text description related to the media content through the media content generation model. Multiple target media contents are generated according to the multiple target audios and the target material.
[0102] S650: Play the selected target media content and a preview video of the target media content on the third page.
[0103] The playback progress of the preview video is associated with the playback progress of the target media content. The third page is used to preview the target media content. The song cover images corresponding to the multiple target media contents can be displayed in the setting area of the third page. In response to the sliding operation in the setting area, the position of the song cover image is adjusted. For example, a left sliding operation in the setting area moves the multiple target media contents to the left as a whole. A right sliding operation in the setting area moves the multiple target media contents to the right as a whole.
[0104] After generating the target media content, you can jump to the third page. The target media content corresponding to the first song cover image in the setting area is played on the third page. The target media content can have lyrics or not. The target media content in the playing state can be switched according to the selection operation on the song cover image. For the target media content with lyrics, the lyrics are scrolled and displayed on the third page. For the target media content without lyrics, the preset copy is displayed on the third page.
[0105] Exemplarily, a preview window is displayed in the third page, and a preview video of the selected target media content is played in the preview window, wherein the video information of the preview window is associated with the selected target media content, and the video information includes video content, playback progress, and playback status. For example, a preview video of the target media content currently being played is displayed in the preview window. The preview video can be a video with soundtrack or a card point video. The playback progress of the preview video is consistent with the target media content. While the target media content is being played in the third page, the preview video of the target media content is also played in the preview window. In this way, it is possible to listen to the song while watching the preview video, which improves the preview efficiency and facilitates quick identification of whether the target media content matches the target video.
[0106] Optionally, in response to an interactive operation on the preview window, a material preview page is displayed, and a full-screen preview effect of the preview video is displayed through the material preview page.
[0107] Figure 7 A flowchart of a preview method provided by an embodiment of the present disclosure. Figure 7 As shown, the lyrics 710 of the target media content are scrolled and played on the third page 700. The third page 700 also includes a preview window 720 and a setting area 730. The preview window 720 is used to play the preview video of the selected target media content. The setting area 730 is used to display the song cover image of the target media content. The song cover image of the selected target media content in the setting area 730 is in a selected state. In response to the interactive operation on the preview window 720, the material preview page 740 is displayed. The preview video is displayed in full screen on the material preview page 740.
[0108] Optionally, in response to an interactive operation on the preview window, the preview window is converted from a first form to a second form, wherein the first form represents a preview form of the preview video and the second form represents a hidden form of the preview video. In response to an interactive operation on the preview window in the second form, the preview window is restored from the second form to the first form.
[0109] Figure 8 A schematic diagram of a preview window display method provided by an embodiment of the present disclosure. Figure 8 As shown, a preview window 810 is displayed on the third page 800. If the preview window 810 is slid to the right, the preview window 810 in the first form gradually shrinks until it reaches the right edge of the third page 800, and is attached to the right edge, presenting the second form of the preview window 810. Then, the preview window 810 in the second form is slid to the left to restore the preview window 810 from the second form to the first form. Alternatively, the preview window 810 in the second form is clicked to restore the preview window 810 from the second form to the first form.
[0110] Optionally, a publishing control is displayed in a third page or a panoramic preview page of a preview window. In response to an interactive operation on the publishing control, a publishing page is displayed. The publishing page includes an editing control. The editing control is used to trigger an editing event of lyrics and / or resolution of the target video.
[0111] In some embodiments, in response to the interactive operation of the editing control, a material preview page is displayed, and the material preview page includes lyrics and a song cover image of the target video. In response to the drag operation on the lyrics, the order of the lyrics of the target media content can be adjusted. And / or, in response to the resolution adjustment operation on the song cover image of the target video, the resolution of the target media content can be updated.
[0112] In some other embodiments, in response to the interactive operation of the editing control, a material preview page is displayed, and the material preview page includes lyrics and thumbnails of the target image. In response to the drag operation on the lyrics, the order of the lyrics of the target media content can be adjusted. And / or, in response to the resolution adjustment operation on the thumbnail of the target image, the resolution of the target media content can be updated.
[0113] It should be noted that if the target media content is a pure music video, the material preview page displays the target text and the song cover image of the target video. Alternatively, if the target media content is a pure music card video, the material preview page displays the target text and the thumbnail of the target image.
[0114] In response to a confirmation operation in the material preview page, a publishing page is displayed, and the target media content is published through the publishing page.
[0115] The technical solution of the disclosed embodiment plays the selected target media content and a preview video of the target media content on a third page after the target media content is generated according to the target audio and the target material, thereby optimizing the media content preview method and improving the preview efficiency.
[0116] Fig. 9 This is a schematic diagram of the structure of a media content generation device provided by an embodiment of the present disclosure. The device can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, a PC or a server. Fig. 9 As shown, the device includes: a first page display module 910, a second page display module 920, a material display module 930 and a media content generation module 940.
[0117] A first page display module 910, used to display a material import control and a generation control on a first page;
[0118] A second page display module 920, configured to display a second page in response to an interactive operation on the material import control, wherein the second page includes candidate materials;
[0119] A material display module 930, configured to determine a target material in response to a selection operation on the candidate material, and display the target material on the first page;
[0120] The media content generation module 940 is used to generate target audio according to the target material and generate target media content according to the target audio and the target material in response to the interactive operation on the generation control.
[0121] Optionally, the material display module 930 is specifically used for:
[0122] In response to a selection operation on the candidate material, displaying the target material in a target window in the second page;
[0123] In response to a confirmation operation on the target material, the first page is displayed, and the target material is displayed at a corresponding position of the material import control in the first page.
[0124] Optionally, the media content generation module 940 is specifically used for:
[0125] In response to an interactive operation on the generation control, the target audio is generated according to the target material and target prompt information, wherein the target prompt information includes prompt information associated with media content generation.
[0126] Further, generating the target audio according to the target material and the target prompt information includes:
[0127] Acquire a target video frame in the target video, and determine image description information according to the target video frame;
[0128] The target audio is generated according to the image description information and the target prompt information.
[0129] Optionally, the media content generation module 940 is further configured to:
[0130] Target media content is generated according to the target audio and the image information of the target video, wherein the duration of the target media content is associated with the duration of the target video.
[0131] Optionally, the media content generation module 940 is further configured to:
[0132] Determining a correspondence between the target image and the target audio according to the beat information and the re-beat information of the target audio;
[0133] The target media content is generated according to the target audio, the target picture set, and the corresponding relationship.
[0134] Optionally, the first page further includes a type option;
[0135] In response to an interactive operation on the type option, determining option information corresponding to the type option;
[0136] The step of generating target audio according to the target material in response to the interactive operation on the generating control comprises:
[0137] In response to an interactive operation on the generation control, the target audio is generated according to the target material and option information, and the target audio includes a first audio or a second audio, wherein the first audio contains lyrics and the second audio does not contain lyrics.
[0138] Optionally, the device further comprises:
[0139] The preview module is used to play the selected target media content and a preview video of the target media content on a third page after generating the target media content according to the target audio and the target material.
[0140] Further, playing the preview video of the selected target media content on the third page includes:
[0141] A preview window is displayed in the third page, and a preview video of the selected target media content is played in the preview window, wherein video information of the preview window is associated with the selected target media content, and the video information includes video content, playback progress and playback status.
[0142] Optionally, it also includes:
[0143] In response to an interactive operation on the preview window, converting the preview window from a first state to a second state, wherein the first state represents a preview state of the preview video, and the second state represents a hidden state of the preview video;
[0144] In response to an interactive operation on the preview window in the second form, the preview window is restored from the second form to the first form.
[0145] The media content generation device provided in the embodiments of the present disclosure can execute the media content generation method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0146] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
[0147] Fig.10 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Fig.10 , which shows an electronic device (eg, Fig.10 The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.10 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0148] like Fig.10 As shown, the electronic device 1000 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the electronic device 1000 are also stored. The processing device 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An edit / output (I / O) interface 1005 is also connected to the bus 1004.
[0149] Typically, the following devices may be connected to the I / O interface 1005: an input device 1006 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1007 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1008 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the electronic device 1000 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.10 The electronic device 1000 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0150] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 1009, or installed from a storage device 1008, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0151] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0152] The electronic device provided in the embodiment of the present disclosure and the media content generation method provided in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0153] The embodiments of the present disclosure provide a computer storage medium on which a computer program is stored. When the program is executed by a processor, the media content generation method provided by the above embodiments is implemented.
[0154] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0155] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0156] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0157] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:
[0158] Display material import controls and generation controls on the first page;
[0159] In response to an interactive operation on the material import control, displaying a second page, wherein the second page includes candidate materials;
[0160] In response to a selection operation on the candidate material, a target material is determined, and the target material is displayed on the first page, wherein the target material includes a target picture set and / or a target video;
[0161] In response to an interactive operation on the generating control, a target audio is generated according to the target material, and a target media content is generated according to the target audio and the target material.
[0162] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0163] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0164] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.
[0165] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0166] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0167] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0168] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0169] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A method for generating media content, characterized in that: include: Display material import controls and generation controls on the first page; In response to an interactive operation on the material import control, displaying a second page, wherein the second page includes candidate materials; In response to a selection operation on the candidate material, a target material is determined, and the target material is displayed on the first page, wherein the target material includes a target picture set and / or a target video; In response to an interactive operation on the generating control, a target audio is generated according to the target material, and a target media content is generated according to the target audio and the target material.
2. The method according to claim 1, characterized in that The step of determining a target material in response to a selection operation on the candidate material, and displaying the target material on the first page includes: In response to a selection operation on the candidate material, displaying the target material in a target window in the second page; In response to a confirmation operation on the target material, the first page is displayed, and the target material is displayed at a corresponding position of the material import control in the first page.
3. The method according to claim 1, characterized in that The step of generating target audio according to the target material in response to the interactive operation on the generating control comprises: In response to an interactive operation on the generation control, the target audio is generated according to the target material and target prompt information, wherein the target prompt information includes prompt information associated with media content generation.
4. The method according to claim 3, characterized in that The generating the target audio according to the target material and the target prompt information includes: Acquire a target video frame in the target video, and determine image description information according to the target video frame; The target audio is generated according to the image description information and the target prompt information.
5. The method according to claim 1, characterized in that The generating target media content according to the target audio and the target material comprises: Target media content is generated according to the target audio and the image information of the target video, wherein the duration of the target media content is associated with the duration of the target video.
6. The method according to claim 1, characterized in that The generating target media content according to the target audio and the target material comprises: Determining a correspondence between the target image and the target audio according to the beat information and the re-beat information of the target audio; The target media content is generated according to the target audio, the target picture set, and the corresponding relationship.
7. The method according to any one of claims 1 to 6, characterized in that: The first page also includes a type option; In response to an interactive operation on the type option, determining option information corresponding to the type option; The step of generating target audio according to the target material in response to the interactive operation on the generating control comprises: In response to an interactive operation on the generation control, the target audio is generated according to the target material and option information, and the target audio includes a first audio or a second audio, wherein the first audio contains lyrics and the second audio does not contain lyrics.
8. The method according to claim 1, characterized in that After generating the target media content according to the target audio and the target material, the method further includes: The selected target media content and a preview video of the target media content are played on the third page.
9. The method according to claim 8, characterized in that Playing a preview video of the selected target media content on the third page includes: A preview window is displayed in the third page, and a preview video of the selected target media content is played in the preview window, wherein video information of the preview window is associated with the selected target media content, and the video information includes video content, playback progress and playback status.
10. The method according to claim 9, characterized in that Also includes: In response to an interactive operation on the preview window, converting the preview window from a first state to a second state, wherein the first state represents a preview state of the preview video, and the second state represents a hidden state of the preview video; In response to an interactive operation on the preview window in the second form, the preview window is restored from the second form to the first form.
11. A media content generating device, characterized in that: include: A first page display module, used to display material import controls and generation controls on the first page; A second page display module, configured to display a second page in response to an interactive operation on the material import control, wherein the second page includes candidate materials; a material display module, configured to determine a target material in response to a selection operation on the candidate material, and display the target material on the first page; The media content generation module is used to generate target audio according to the target material in response to an interactive operation on the generation control, and generate target media content according to the target audio and the target material.
12. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the media content generating method as described in any one of claims 1-10.
13. A storage medium containing computer executable instructions, characterized in that: When the computer executable instructions are executed by a computer processor, they are used to perform the media content generation method according to any one of claims 1 to 10.
14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the media content generation method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Media information display method and device, storage medium and electronic device
CN108334540A
Page display method and device and computer storage medium
CN112558824A
Video generation method and device, storage medium and electronic equipment
CN112929746A
Background music acquisition method and related product
CN113496243A
Music generation method and device, equipment, storage medium and program
CN115881064A
Cited By
Media content generation method and device, electronic equipment and storage medium
CN120499162A
Task generation method, storage medium, electronic equipment and program product
CN121541949A