Media content distribution method, device, equipment, storage medium and computer program
The method and device improve media content distribution by allowing personalized capture and creative editing of images and audio, enhancing user interaction and experience through flexible media content generation and distribution.
Patent Information
- Application Number
- JP2025540038
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-26
- Filing Date
- 2024-04-24
- Publication Date
- 2026-01-21
Smart Images

Figure 2026502281000001_ABST
Abstract
Description
[Technical Field]
[0001] This application claims priority to a Chinese patent application filed on April 26, 2023, bearing application number 202310464604.0 and entitled "Media Content Distribution Method, Apparatus, Device and Storage Medium," the entire contents of which are incorporated herein by reference.
[0002] TECHNICAL FIELD Embodiments of the present disclosure relate to the field of computer technology, and in particular to a media content distribution method, apparatus, device, and storage medium. [Background technology]
[0003] With the continuous development of Internet technology, users can browse various multimedia contents through the Internet and share their own creations with each other in the form of distributing media contents such as videos or pictures among different users. Summary of the Invention [Problem to be solved by the invention]
[0004] The embodiments of the present disclosure provide a media content distribution method, apparatus, storage medium, and device that can optimize conventional media content distribution schemes. [Means for solving the problem]
[0005] According to a first aspect, an embodiment of the present disclosure provides a media content distribution method, the method comprising: acquiring a target image captured in a target capture mode in response to a capture operation on a media content acquisition interface, the target image including a cover image and a video recorded between a first time before a trigger time of the capture operation and a second time after the trigger time; determining target audio corresponding to the target image; generating targeted media content based on the target image and the target audio; and in response to a distribution operation of the targeted media content, distributing the targeted media content as a media piece in the application program.
[0006] According to a second aspect, an embodiment of the present disclosure further provides a media content distribution device, the device including an application program including: a target image acquisition module for acquiring a target image captured in a target capture mode in response to a capture operation on the media content acquisition interface, the target image including a cover image and a video recorded between a first time before a trigger time of the capture operation and a second time after the trigger time; an audio determination module for determining target audio corresponding to the target image; a media content generation module for generating targeted media content based on the target image and the target audio; and a media content delivery module for delivering the targeted media content as a media piece in the application program in response to a delivery operation of the targeted media content.
[0007] According to a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising: one or more processors; a storage device for storing one or more programs; The one or more programs, when executed by the one or more processors, cause the one or more processors to implement a media content distribution method according to an embodiment of the present disclosure.
[0008] According to a fourth aspect, an embodiment of the present disclosure further provides a storage medium including computer-executable instructions, the computer-executable instructions being used to perform a media content distribution method according to an embodiment of the present disclosure when executed by a computer processor. [Effects of the Invention]
[0009] A media content distribution solution according to an embodiment of the present disclosure includes, in response to a shooting operation on a media content acquisition interface, obtaining a target image captured in a target shooting mode, where the target image includes a cover image and a video recorded between a first time before a trigger time of the shooting operation and a second time after the trigger time; determining target audio corresponding to the target image; generating target media content based on the target image and the target audio; and, in response to a distribution operation of the target media content, distributing the target media content as a media work in an application program. [Brief explanation of the drawings]
[0010] These and other features, advantages, and aspects of the embodiments of the present disclosure will become more apparent when reference is made to the following detailed description in conjunction with the drawings. Throughout the drawings, the same or similar symbols represent the same or similar elements. It should be understood that the drawings are schematic and that elements and components are not necessarily drawn to scale. [Figure 1] 1 is a flowchart of a media content distribution method according to an embodiment of the present disclosure. [Figure 2] FIG. 1 is a schematic diagram of a recorded video generation process according to an embodiment of the present disclosure. [Figure 3] 1 is a flowchart of a media content distribution method according to an embodiment of the present disclosure. [Figure 4] FIG. 1 is a schematic diagram of interface interactions according to an embodiment of the present disclosure. [Figure 5]1 is a structural schematic diagram of a media content distribution device according to an embodiment of the present disclosure; [Figure 6] 1 is a structural schematic diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE INVENTION
[0011] The following describes in more detail the embodiments of the present disclosure with reference to the drawings. Although the drawings show several embodiments of the present disclosure, it should be understood that the present disclosure may be realized in various forms and should not be construed as being limited to the embodiments described herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are used for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.
[0012] It should be understood that the steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel, and that method embodiments may include additional steps and / or omit the performance of steps shown, and the scope of the present disclosure is not limited in this respect.
[0013] As used herein, the term "comprises" and variations thereof are open inclusive, i.e., "including, but not limited to." The term "based on" means "based at least in part on." The term "in one embodiment" means "at least one embodiment," the term "in another embodiment" means "at least one other embodiment," and the term "in some embodiments" means "at least some embodiments." Relevant definitions of other terms are provided below.
[0014] It should be noted that the concepts of "first", "second", etc. mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not intended to limit the order or interdependence of functions performed by these devices, modules or units.
[0015] It should be noted that the modifications "one" and "multiple" referred to in this disclosure are general rather than limiting and should be understood as "one or more" unless the context clearly indicates otherwise, as would be understood by a person skilled in the art.
[0016] The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only and do not limit the scope of these messages or information.
[0017] As can be understood, before using any of the technical solutions disclosed in each embodiment of the present disclosure, the user should be notified of the type, scope of use, and usage scenarios of the personal information related to the present disclosure in an appropriate manner in accordance with relevant laws and regulations, and the user's permission should be obtained.
[0018] For example, in response to receiving a user's spontaneous request, prompt information may be sent to the user to clearly prompt the user, and the operation requested to be performed may require obtaining and using the user's personal information, allowing the user to autonomously choose whether to provide personal information to software or hardware, such as an electronic device, application program, server, or storage medium, that performs the operation of the technical solution of the present disclosure according to the prompt information.
[0019] As an optional but non-limiting implementation method, the method of sending prompt information to the user in response to receiving the user's voluntary request may be, for example, a pop-up window, or the prompt information may be presented in text form in the pop-up window, and the pop-up window may include a selection control for the user to select "agree" or "disagree" to providing personal information to the electronic device.
[0020] It is to be understood that the above notification and user permission acquisition process is merely a general outline and does not constitute a limitation on the implementation of the present disclosure, and other methods that comply with relevant laws and regulations may also be used in the implementation of the present disclosure.
[0021] It is to be understood that the data related to the technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of applicable laws, regulations and related provisions.
[0022] FIG. 1 is a flowchart of a media content distribution method according to an embodiment of the present disclosure, which is applied to the case of media content distribution. The method may be performed by a media content distribution device, which may be implemented in the form of software and / or hardware, or alternatively, may be implemented by an electronic device, which may be a mobile terminal such as a mobile phone, a smart watch, a tablet PC, or a personal digital assistant, or may be a device such as a personal computer (PC) terminal or a server.
[0023] As shown in FIG. 1, the method includes:
[0024] Step 101: In response to a shooting operation on a media content acquisition interface, obtain a target image shot in a target shooting mode, where the target image includes a cover image and a recorded video from a first time before a trigger time of the shooting operation to a second time after the trigger time.
[0025] For example, a target shooting mode may be added to an application program, which has a media content distribution function and is not limited to a specific type. The target shooting mode supports a user in taking a target image. For example, a switch control corresponding to the target shooting mode may be added to a media content acquisition interface of the application program, allowing a user to select whether to turn the target shooting mode on or off by triggering the switch control. After the user triggers the switch control, prompt information such as text may be displayed to indicate that the target shooting mode is currently on or off. The media content acquisition interface may be an interface for acquiring media content in the application program, and a user may input a shooting operation corresponding to the target shooting mode into the media content acquisition interface.
[0026] For example, the target image includes a recorded video and a cover image. A shooting operation may be understood as an operation that triggers a shooting of a target image in the target shooting mode. The shooting operation is not limited to a specific triggering method, and may be, for example, clicking a shooting control, inputting a gesture to trigger the shooting operation, or completing an action to trigger the shooting operation. In the target shooting mode, video data may be recorded and cached in real time. After the shooting operation is triggered, video recording continues, and the recorded video is determined based on video data from a first time before the trigger time of the shooting operation to a second time after the trigger time. Here, the time length between the first time and the trigger time may be a first time length, and the time length between the second time and the trigger time may be a second time length. Optionally, at least one of the first time length and the second time length is non-zero. The first time length and / or the second time length may be set by an application program, or may be determined based on a user's settings, thereby making the capture time of the target image more flexible and better meeting the user's personalized capture needs, and further enabling the creation of media works that meet the user's personalized creation needs. For example, the first time length may be 1.5 seconds, and the second time length may be 2 seconds, and the user may adjust these lengths according to their needs. Alternatively, the capture operation may only occur at the trigger time. For example, in the case of clicking a capture control, the capture operation time may be the time when a touch object (e.g., a user's finger) touches the touch panel. The cover image may be any one video frame from the recorded video, or an image independently collected by the electronic device, such as a captured image collected at the trigger time of the capture operation or a captured image collected at a second time, without any specific limitations. Alternatively, the cover image may be determined based on a user's settings. For example, the user may set a collection time for the cover image, or, for example, the user may select a video frame from a recorded video as the cover image, etc.
[0027] Optionally, the target shooting mode may be turned on simultaneously with a preset shooting mode, which may include, for example, a dual shooting mode (e.g., synchronized shooting using the front and rear cameras of an electronic device), a countdown shooting mode, and a variable-speed shooting mode. When the target shooting mode and the preset shooting mode are turned on simultaneously, for example, in the dual shooting mode, the recorded videos collected by the front and rear cameras may be combined into a single recorded video, and the cover images collected by each camera may be combined into a single cover image. The combining method may be, for example, equal divisions above and below, or windows of different sizes, and is not specifically limited. In the countdown shooting mode, the trigger time of the shooting operation may be understood as the time when the countdown ends. The variable-speed shooting mode may include a high-speed shooting mode and a low-speed shooting mode. In the variable-speed shooting mode, the speed of the normal recorded video is multiplied by a corresponding variable-speed coefficient (e.g., the variable coefficient for the high-speed shooting mode is greater than 1, and the variable coefficient for the low-speed shooting mode is less than 1) to obtain a recorded video that has undergone speed change processing for the target image.
[0028] Step 102: determining a target audio corresponding to the target image.
[0029] For example, the target audio may be specified by an application program or freely set by a user. The target audio may include various types of audio, such as a soundtrack or voice, and is not specifically limited. Alternatively, the user may select the target audio in a media content acquisition interface or in a preset editing interface for the target image. The user may then reselect or edit the target audio before delivering the target media content. As can be understood, the user may adjust the target audio and / or the target image in the preset editing interface to obtain the target media content, such as adjusting the frame size and trimming the time length of the target image. Alternatively, the target audio may include a target soundtrack, and the media content acquisition interface may include a soundtrack selection control. Here, the soundtrack selection control is used to select the target soundtrack. Alternatively, when the target audio is selected in the media content acquisition interface, the target audio may be played during the process of displaying the media content acquisition interface so that the user can preview the effect of the media content to some extent. Here, the audio of the target audio may not be included in the recorded video. For example, the audio of the target audio may be removed from the recorded video data. Optionally, the user may choose whether to add the soundtrack or the user's original language of the media content.
[0030] Step 103: generating a target media content based on the target image and the target audio.
[0031] For example, after obtaining a target image and determining target audio, the target image and target audio may be combined to obtain the target media content. Here, when generating the target media content, the audio included in the recorded video may be retained or filtered, and there is no specific limitation.
[0032] Step 104: In response to a distribution operation of the targeted media content, distribute the targeted media content as a media work in the application program.
[0033] For example, after receiving a distribution operation input by a user for the target media content, the target media content is distributed as a media work in an application program. It should be noted that the distribution operation for the target media content may be input before, during, or after the target media content is generated, and is not limited to a specific occasion. For example, a pre-defined distribution method may exist in the application program, and the target media content is generated and distributed after the user inputs a distribution operation corresponding to the pre-defined distribution method, i.e., the target media content is automatically distributed after the target media content is generated.
[0034] A media content distribution method according to an embodiment of the present disclosure includes: acquiring a target image captured in a target shooting mode in response to a shooting operation on a media content acquisition interface, where the target image includes a cover image and a video recorded between a first time before a trigger time of the shooting operation and a second time after the trigger time; determining target audio corresponding to the target image; generating target media content based on the target image and the target audio; and distributing the target media content as a media work in an application program in response to a distribution operation of the target media content. By adopting the above technical solution, media content for distribution can be generated and distributed based on the target image and audio, thereby enriching the creation methods of media content and the content formats of media works, which is beneficial to enhancing user interaction based on media works and improving user experience.
[0035] In some embodiments, generating target media content based on the target image and the target audio includes presenting the target image and the target audio in a preset editing interface based on a preset presentation manner, and generating target media content based on the target image and the target audio according to the preset presentation manner, thereby supporting the presentation of the target image and the target audio in the preset editing interface based on the preset presentation manner, generating target media content corresponding to the preset presentation manner, and allowing a user to achieve the effect of previewing media content in the preset editing interface.
[0036] Optionally, the preset presentation manner may be determined by a presentation mode, where different presentation modes correspond to different media types of the target media content. Here, media types may include video, picture, or picture with audio, etc. In some embodiments, the method further includes determining a current presentation mode in response to a presentation mode switching operation input based on the preset editing interface, where the presentation mode is used to determine the preset presentation manner, and different presentation modes correspond to different media types of the target media content. Thus, a user can select a media type of the target media content corresponding to a selected presentation mode by switching presentation modes.
[0037] In some embodiments, the preset presentation manner is determined based on a presentation mode and an audio duration of the target audio, so as to fully present the recorded video and / or the cover image during playback of all or a portion of the target audio, thereby ensuring full presentation of the recorded video and / or cover image in different presentation modes, adapting to audio of various lengths, providing a more harmonious visual and audio experience in the generated target media content, and allowing users of a media work to more fully view the content in the target image during listening to the audio, thereby enhancing the sensory experience.
[0038] It should be noted that the user may edit the acquired target image, and if edits are present, the complete presentation may be understood as a complete presentation of the recorded video and / or cover image after editing.
[0039] Exemplarily, the presentation mode may include at least one of a first presentation mode, a second presentation mode, and a third presentation mode. Here, the first presentation mode is used to present the recorded video and the cover image, the second presentation mode is used to present the recorded video, and may be a loop presentation of the recorded video or a carousel presentation mode. The third presentation mode is used to present the cover image and may be a still image presentation mode. At least two presentation modes may exist corresponding to the target image, and different presentation modes correspond to different preset presentation methods. For the same presentation mode, different preset presentation methods may exist depending on the audio duration of the target audio. As can be understood, different presentation modes correspond to different media types of the target media content. For example, when the presentation mode is the first presentation mode or the second presentation mode, the corresponding target media content is a video type, and when the presentation mode is the third presentation mode, the corresponding target media content is a picture type.
[0040] For example, in the first presentation mode, the recorded video and the cover image may be presented once in their entirety, e.g., the recorded video is played first, and the cover image is displayed after playback is complete. The display time of the cover image may be preset or dynamically adjusted according to the audio length of the target audio. For example, the video length of the recorded video is 3.5 seconds, and the display time of the cover image is preset to 2 seconds (the first preset time length), and the sum of the two is 5.5 seconds, which is the target image time length. That is, the target image time length is the sum of the video length of the recorded video and the first preset time length.
[0041] In some embodiments, presenting the target image and the target audio in the preset editing interface based on the preset presentation manner may include, in the first presentation mode, if the audio duration is shorter than the target image duration, muting the audio or looping the target audio after the target audio is fully played in the process of presenting the cover image for a first preset duration after the recorded video is fully played in the preset editing interface. This can prevent the audio duration from being too short to fully play the recorded video or the cover image presentation time from being too short to allow the user to timely obtain useful information from the cover image. In the above example, the target image duration is 5.5 seconds. If the audio duration is 3 seconds, the target audio is not played or looped within the last 0.5 seconds of the recorded video and the last 2 seconds corresponding to the cover image. If audio is present in the recorded video, it may be played normally. If the audio duration is 4 seconds, the target audio is not played or looped within the last 1.5 seconds corresponding to the cover image.
[0042] In some embodiments, presenting the target image and the target audio in the preset editing interface based on the preset presentation manner may include, in the first presentation mode, if the audio duration is greater than the target image duration, continuing to present the cover image in the preset editing interface after the recorded video has been fully played until the target audio has been fully played. This ensures that both the recorded video and the cover image can be fully presented while also taking into account the user's need to listen to the audio. In the above example, the target image duration is 5.5 seconds. If the audio duration is 7 seconds, the presentation duration of the cover image may be extended from 2 seconds to 3.5 seconds.
[0043] In some embodiments, presenting the target image and the target audio in the preset editing interface based on the preset presentation manner in the second presentation mode includes, in the process of playing the recorded video in the preset editing interface for each round, if the audio duration is shorter than the video duration of the recorded video, muting the audio or looping the target audio after the target audio is fully played. This prevents the recorded video from being fully played in a single playback round due to the audio duration being too short. In the example above, the video duration is 3.5 seconds. If the audio duration is 3 seconds, the target audio is not played or looped within the last 0.5 seconds of the recorded video. If audio is present in the recorded video, it may be played normally.
[0044] In some embodiments, presenting the target image and the target audio in a preset editing interface based on the preset presentation manner includes, in the second presentation mode, when the audio duration is greater than the video duration of the recorded video, playing the target audio for the target duration in the preset editing interface, including fully playing the recorded video for a number of target rounds, where the number of target rounds is determined by rounding the quotient of the audio duration and the video duration to an integer, and the target duration is determined by multiplying the video duration and the number of target rounds. This prevents the recorded video from being completely played in a single playback round near the end of the soundtrack. In the above example, the video duration is 3.5 seconds. If the audio duration is 18 seconds, the quotient after 18 seconds divided by 3.5 seconds is rounded to 5, i.e., the number of target rounds is 5. In this case, the target duration may be the product of 5 rounds and 3.5, or 17.5 seconds, and the target audio may be played for 17.5 seconds, with the last 0.5 seconds not being played. Optionally, after the target audio has been played once, it may be played again from the beginning, or the recorded video may continue to be played completely for the target number of rounds during playback.
[0045] In some embodiments, presenting the target image and the target audio in a preset editing interface based on the preset presentation manner includes, in the third presentation mode, presenting the cover image while the target audio is being played in its entirety in the preset editing interface, thereby ensuring that the cover image is presented in its entirety while also considering the user's need to listen to the entire soundtrack. For example, if the audio duration is 3 seconds, the cover image will be displayed for 3 seconds.
[0046] Alternatively, the user may edit the target image and / or the target audio in a preset editing interface, without being limited to a specific editing method, such as rotating, zooming, or cutting the screen of the target image, clipping the recorded video, adjusting the volume of the target audio, or clipping the volume of the target audio.
[0047] In some embodiments, the method further includes determining creative materials set by the user, wherein generating targeted media content based on the target image and the target audio includes generating targeted media content based on the target image, the target audio, and the creative materials, which can provide users with more creative space, increase the amount of information in the media work, and further enhance user interaction based on the media work.
[0048] Illustratively, creative materials may include, for example, stickers, effects, beautification effects, and filters.
[0049] In some embodiments, determining the user-set creative material includes determining the user-set creative material in response to a creative material setting operation input by a user based on a media content acquisition interface and / or a preset editing interface of the target image, thereby allowing a user to freely add creative material before and / or after acquiring the target image, further enhancing the user's creative freedom.
[0050] Here, when a user adds creative material, the creative material may be presented in a process of presenting a target image and a target audio in a preset editing interface based on a preset presentation manner, and the presentation duration of the creative material may be the same as the presentation duration of the target image. Optionally, the method may further include determining an association time period between the creative material and the target image set by the user, where the association time period is used to indicate the time when the creative material will appear in the target image. Thus, the user can set an association time period between the creative material and the target image and present the creative material during the association time period during the process of presenting the target image. The association time period may be a time period on a time axis corresponding to the target image. For example, if the association time period is from 2 seconds to 3 seconds, the creative material is presented from 2 seconds to 3 seconds after the start of presentation of the target image, and the presentation of the creative material is stopped after the end of the 3rd second.
[0051] Optionally, the media content acquisition interface may support a user to perform pre-editing operations, which may include, for example, lens inversion, beautification parameter editing, filter editing, effect editing, etc. After the user inputs the pre-editing operations, the cached video data may be cleared and the caching of the video data may be resumed.
[0052] In some embodiments, the method includes, after generating target media content based on the target image and the target audio, presenting the target media content in a first preset presentation manner in a target interface, and switching the presentation of the target media content in the target interface from the first preset presentation manner to a second preset presentation manner in response to a presentation manner switching operation, thereby realizing switching between different preset presentation manners and facilitating a user to view the target media content in different manners in the target interface.
[0053] For example, the target interface may include a preset editing interface, a first presentation interface for the target media content before distribution, and a second presentation interface for the target media content after distribution. When the audio duration of the target audio has been determined, the preset presentation manner may correspond to a presentation mode, and the presentation manner switching operation may specifically be a presentation mode switching operation. For example, the first preset presentation manner may correspond to a first presentation mode, the second preset presentation manner may correspond to a second presentation mode, etc., and switching between different preset presentation manners is achieved by inputting the presentation mode switching operation.
[0054] In some embodiments, the method further includes determining a device type of the local device in response to a save operation for the distributed targeted media content, and saving the distributed targeted media content as at least one of the target image, the recorded video, and the cover image according to the device type. This allows different device types to use different storage methods to save the targeted media content, thereby improving compatibility with device types. For example, if the device type of the local device supports the target image format, the target image may be saved. If the device type of the local device does not support the target image format, the target image may be saved separately as the recorded video and / or separately as the cover image.
[0055] In some embodiments, the process of acquiring the target image captured in the target shooting mode further includes generating and distributing a media work in the application program based on the cover image if it is determined that the recorded video was not successfully acquired in response to a user's preset distribution operation. Therefore, since it generally takes a certain amount of time to acquire a recorded video, if a user triggers a media work distribution operation within a short period of time, media content to be distributed as a media work based on the cover image may be quickly generated and distributed to reduce user waiting time and improve distribution efficiency.
[0056] In some embodiments, the method further includes: caching recorded video data in real time, obtaining newly added cached video data, and deleting historical cached video data that meets a preset deletion condition in response to a user turning on the target shooting mode; continuing to record recorded video data for a second preset time length in response to a shooting operation being triggered; and generating the target image based on the current cached video data and the recorded video data, thereby timely deleting historical cached video data that meets the preset deletion condition and saving storage resources of the electronic device.
[0057] Alternatively, the predetermined deletion condition may be set based on a first time length, for example, the predetermined deletion condition may be to delete historical cached video data whose time interval from the shooting time to the current time exceeds a predetermined interval threshold, and the predetermined interval threshold may be an integer multiple of the first time length, for example, 1 or 2 times.
[0058] Alternatively, the cache video data may be stored in an uncoded format as uncoded video data, or the cache video data may be stored in a coded format as coded video data, specifically as a coding file.
[0059] Alternatively, deleting the historical cached video data that satisfies the preset deletion condition may include deleting the historical cached video data that satisfies the preset deletion condition in units of frames if the cached video data is uncoded video data, and / or deleting the historical cached video data that satisfies the preset deletion condition in units of coding files if the cached video data is coded video data, thereby enabling more flexible deletion of historical cached video data.
[0060] For example, for uncoded video data, which generally has a relatively large data amount and occupies a large amount of storage space, it is deleted in frame units, and the integer multiple may be 1, so that unnecessary video frames can be deleted more timely. For coded video data, it is stored in a coding file format and deleted in coding file units, and the time length corresponding to the coding file may be a first time length, and the integer multiple may be 2, so that the coding file has a smaller data amount than the uncoded data, so that storage space can be saved.
[0061] Illustratively, the first time length is 1.5 seconds, and the second time length (i.e., the second preset time length) is 2 seconds. Coding may be performed in 1.5-second increments. After caching two 1.5-second coding files, the first coding file may be deleted, and recording and coding for the next 1.5 seconds may continue. Figure 2 is a schematic diagram of a recorded video generation process according to an embodiment of the present disclosure. During recording, if a user triggers a shooting operation (e.g., pressing the shooting button) at n seconds in a 1.5-second interval, a 1.5-second coding file (a 1.5-second video) and an n-second coding file (an n-second video) are obtained, and a 2-second video can be continuously shot. During editing, the coding data in the range from (1.5 to n) seconds to 1.5 seconds is cut from the 1.5-second coding file, and the n-second coding file and the 2-second video are combined to form a recorded video in a target image.
[0062] Optionally, when the cache video data is uncoded video data, first uncoded video data of a first time length may be stored in a memory of the electronic device, and after triggering a shooting operation, second uncoded video data of a second time length may be obtained and stored in the memory, and then the first uncoded video data and the second uncoded video data may be coded together as recorded video in the target image.
[0063] Optionally, when the cache video data is uncoded video data, third uncoded video data of a first time length may be stored on a local magnetic disk of the electronic device, and after triggering a shooting operation, the third uncoded video data may be coded as a first file, and after obtaining fourth uncoded video data of a second time length, the fourth uncoded video data may be coded as a second file, and the first file and the second file may be further combined as a recorded video in the target image.
[0064] Optionally, if the cache video data is uncoded video data, fifth uncoded video data of a first time length may be stored on a local magnetic disk of the electronic device, and after triggering a shooting operation, sixth uncoded video data of a second time length may be obtained and stored on the local magnetic disk, and then the fifth uncoded video data and the sixth uncoded video data may be coded together as recorded video in the target image.
[0065] Alternatively, when the cache video data is uncoded video data, the seventh uncoded video data of a first time length may be coded as important frame data and then stored in the memory of the electronic device, and after triggering a shooting operation, the eighth uncoded video data of a second time length may be obtained, coded as important frame data and stored in the memory, and then the important frame data corresponding to the seventh uncoded video data and the important frame data corresponding to the eighth uncoded video data may be coded together as recorded video in the target image.
[0066] FIG. 3 is a flowchart of a media content distribution method according to an embodiment of the present disclosure. The embodiment of the present disclosure is optimized based on each optional solution in the above embodiment. Specifically, the method includes the following steps:
[0067] Step 301: Enter target shooting mode in the media content acquisition interface.
[0068] FIG. 4 is a schematic diagram of interface interaction according to an embodiment of the present disclosure, in which a target shooting control 402 is displayed on a media content acquisition interface 401, and is currently in an inactive state. When a user clicks on the target shooting control 402, the target shooting mode is entered, and the display state of the target shooting control 402 is changed accordingly. The media content acquisition interface may display prompt information, such as “Turn on target shooting mode”, which may be displayed for a certain period of time and automatically disappear after, for example, 2 seconds.
[0069] Optionally, the user may perform pre-editing processes such as selecting target audio, setting creative materials such as effects, and selecting filters in the media content acquisition interface, and may select a shooting mode compatible with the target shooting mode, such as an on-dual shooting mode.
[0070] Step 302: In response to a photographing operation on the media content obtaining interface, enter a preset editing interface to obtain a target image photographed in a target photographing mode.
[0071] Illustratively, after entering the target shooting mode, the system caches the recorded video data in real time, obtains newly added cached video data, deletes historical cached video data that meets a preset deletion condition, and, in response to a shooting operation being triggered, enters a preset editing interface, continues recording a second preset length of recorded video data, and generates a target image based on the current cached video data and the recorded video data. As shown in FIG. 4, a user can enter a preset editing interface 404 by clicking the shutter control 403.
[0072] Step 303: Determine a target soundtrack corresponding to the target image.
[0073] Illustratively, if the user has already determined that the target soundtrack is music A in the media content acquisition interface 401, after entering the preset editing interface 404, the target soundtrack will still be music A. The user may change the target soundtrack in the preset editing interface 404, for example, to music B.
[0074] Step 304: Present the target image and the target soundtrack in a preset editing interface according to a preset presentation manner.
[0075] For example, after entering the preset editing interface, the presentation may be in a default presentation mode, such as a first presentation mode, and the user may input a presentation mode switching operation into the preset editing interface to view the target image and target audio in different presentation modes.
[0076] As shown in FIG. 4, the user can display more presentation modes, for example, the second and third, by clicking the drop-down button of the first presentation mode. When the user clicks "Second", the second presentation mode is selected and the preset presentation mode corresponding to the first presentation mode is switched to the preset presentation mode corresponding to the second presentation mode in the preset editing interface.
[0077] Step 305: Determine the creative material set by the user in response to the creative material setting operation input by the user based on the preset editing interface.
[0078] For example, the user may add stickers or effects to a pre-defined editing interface, or may change the effects at this time if the effects have already been added to the media content acquisition interface.
[0079] As shown in FIG. 4, a user may add a birthday hat sticker 405 to a pre-configured editing interface.
[0080] Step 306: In response to a media content generating operation, generate target media content based on the target image, the target soundtrack, and the creative material according to a preset presentation manner.
[0081] For example, if the preset presentation modes include various ones, the generated target media content may include media content corresponding to the various preset presentation modes, and may further support switching between the preset presentation modes when presenting the target media content. As shown in Figure 4, the media content generation operation may be, for example, a user clicking a "Next" control in the preset editing interface to further generate the target media content.
[0082] Step 307: In response to the target media content distribution operation, distribute the target media content as a media work in the application program.
[0083] As shown in FIG. 4, after the target media content is generated, further operations such as draft saving or distribution may be performed, and when the user clicks “Distribute”, the target media content will be distributed as a media work in an application program.
[0084] The media content distribution method according to the embodiment of the present disclosure adds a target shooting control to the media content acquisition interface to facilitate the user to turn on the target shooting mode. When the shooting operation is triggered, the user enters a preset editing interface to obtain a target image captured in the target shooting mode, determines a target soundtrack corresponding to the target image, and then presents the target image and the target soundtrack in a preset presentation manner in the preset editing interface, switches the presentation mode, and adds creative materials such as stickers. Finally, the target media content can be generated and distributed based on the target image, the target soundtrack, and the creative materials. The above technical solution enriches the creative methods of media content, provides users with more free creative space, and increases the amount of information in media works, which is beneficial to enhancing user interaction based on media works and improving the user experience.
[0085] FIG. 5 is a structural schematic diagram of a media content distribution device according to an embodiment of the present disclosure. As shown in FIG. 5, the device has an application program that: a target image acquisition module 501 for acquiring a target image captured in a target capture mode in response to a capture operation on the media content acquisition interface, the target image including a cover image and a video recorded between a first time before a trigger time of the capture operation and a second time after the trigger time; an audio determination module 502 for determining target audio corresponding to the target image; a media content generation module 503 for generating targeted media content based on the target image and the target audio; and a media content delivery module 504 for delivering the targeted media content as a media piece in the application program in response to a delivery operation of the targeted media content.
[0086] The media content distribution device according to the embodiments of the present disclosure can generate and distribute media content for distribution based on target images and audio, enrich the creative methods of media content, and enrich the content formats in media works, which is advantageous for enhancing the interaction based on media works among users and improving the user experience.
[0087] Optionally, the photographing operation only operates at the trigger time, a time length between the first time and the trigger time is a first time length, a time length between the second time and the trigger time is a second time length, and at least one of the first time length and the second time length is not zero.
[0088] Optionally, the target audio includes a target soundtrack, and the media content acquisition interface includes a soundtrack selection control, the soundtrack selection control being used to select the target soundtrack.
[0089] Optionally, the media content generation module: a presentation unit for presenting the target image and the target audio in a preset editing interface according to a preset presentation manner; a generating unit for generating a target media content based on the target image and the target audio according to the preset presentation manner.
[0090] Optionally, the apparatus comprises: The system further includes a presentation mode determination module for determining a current presentation mode in response to a presentation mode switching operation input based on the preset editing interface, wherein the presentation mode is used to determine the preset presentation manner, and different presentation modes correspond to different media types of the target media content.
[0091] Optionally, the preset presentation manner is determined based on the presentation mode and the audio time length of the target audio, so as to fully present the recorded video and / or the cover image during the process of playing all or part of the target audio.
[0092] Optionally, the presentation modes include a first presentation mode, the first presentation mode being used to present the recorded video and the cover image.
[0093] Optionally, the presentation unit specifically comprises: In the first presentation mode, if the audio duration is shorter than the target image duration, in the process of presenting the cover image with a first preset duration after the recorded video is completely played in a preset editing interface, the audio is muted or the target audio is loop-played after the target audio is completely played, and the target image duration is equal to the sum of the video duration of the recorded video and the first preset duration; In the first presentation mode, when the audio duration is greater than the target image duration, in the process of playing the target audio in a preset editing interface, the cover image is continued to be presented until the playback of the target audio is completed after the recorded video is fully played, and the target image duration includes the sum of the video duration of the recorded video and a first preset duration.
[0094] Optionally, the presentation modes include a second presentation mode, the second presentation mode being used to present the recorded video.
[0095] Here, the presentation unit specifically includes: In the second presentation mode, if the audio duration is less than the video duration of the recorded video, during the process of playing the recorded video in each round in a preset editing interface, mute the audio after the target audio is completely played or play the target audio in a loop; In the second presentation mode, when the audio duration is greater than the video duration of the recorded video, the process of playing the target audio of the target duration in a preset editing interface is used to achieve at least one of: completely playing the recorded video in a target number of rounds, wherein the target number of rounds is determined by rounding the quotient of the audio duration and the video duration to an integer, and the target duration is determined based on the product of the video duration and the target number of rounds.
[0096] Optionally, the presentation modes include a third presentation mode, the third presentation mode being used to present the cover image.
[0097] Optionally, the presentation unit is specifically used to present the cover image in the process of completely playing the target audio in a preset editing interface in the third presentation mode.
[0098] Optionally, the method further includes a material determination module for determining creative materials set by the user; Here, the media content distribution module is specifically used for generating targeted media content based on the target image, the target audio and the creative material.
[0099] Optionally, the material determination module is specifically used to determine creative materials set by the user in response to creative material setting operations input by the user based on the media content acquisition interface and / or the preset editing interface of the target image.
[0100] Optionally, the device further includes an association time zone determination module for determining an association time zone between the creative material and the target image set by a user, wherein the association time zone is used to indicate a time when the creative material appears in the target image.
[0101] Optionally, the apparatus comprises: a content presentation module for generating a target media content based on the target image and the target audio, and then presenting the target media content in a target interface based on a first preset presentation manner; and a mode switching module for switching from presenting the target media content based on the first preset presentation mode in the target interface to presenting the target media content based on a second preset presentation mode in response to a presentation mode switching operation.
[0102] Optionally, a first length of time between the first time and the trigger time and / or a second length of time between the second time and the trigger time is determined based on a user setting.
[0103] Optionally, the apparatus comprises: a device type determination module for determining a device type of the local device in response to a save operation on the delivered targeted media content; The device further includes a storage module for storing the distributed targeted media content as at least one of the target image, the recorded video, and the cover image according to the device type.
[0104] Optionally, the apparatus comprises: The device further includes an image distribution module for generating and distributing a media work in the application program based on the cover image when, in the process of acquiring the target image captured in the target shooting mode, it determines in response to a user's preset distribution operation that the acquisition of the recorded video was not successful.
[0105] Optionally, the apparatus comprises: a cache processing module for caching video data recorded in real time, obtaining newly added cached video data, and deleting historical cached video data that meets a preset deletion condition in response to a user turning on the target shooting mode; a video recording module for continuing to record the video data for a second predetermined length of time in response to the capture operation being triggered; The system further includes a photo generation module for generating the target image based on current cached video data and the recorded video data.
[0106] Alternatively, deleting the historical cached video data that satisfies the preset deletion conditions includes deleting the historical cached video data that satisfies the preset deletion conditions on a frame-by-frame basis if the cached video data is uncoded video data, and / or deleting the historical cached video data that satisfies the preset deletion conditions on a coding file-by-coding file basis if the cached video data is coded video data.
[0107] The media content distribution device according to the embodiments of the present disclosure can execute the media content distribution method according to any embodiment of the present disclosure, and has functional modules and beneficial effects corresponding to the execution method.
[0108] It should be noted that the units and modules included in the above device are simply divided according to functional logic, but are not limited to the above divisions, as long as they can realize the corresponding functions. Furthermore, the specific names of each functional unit are intended to facilitate mutual distinction, and are not intended to limit the scope of protection of the embodiments of the present disclosure.
[0109] FIG. 6 is a structural schematic diagram of an electronic device according to an embodiment of the present disclosure. Referring now to FIG. 6, which shows a structural schematic diagram of an electronic device (e.g., a terminal device or server in FIG. 6) 600 suitable for implementing an embodiment of the present disclosure. 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), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG. 6 is merely an example and should not impose any limitations on the functionality and scope of use of the embodiment of the present disclosure.
[0110] 6, electronic device 600 may include a processing unit (e.g., a central processor, a graphics processor, etc.) 601, which can perform various appropriate operations and processes based on programs stored in read-only memory (ROM) 602 or programs loaded from storage device 608 into random access memory (RAM) 603. RAM 603 further stores various programs and data necessary for the operation of electronic device 600. Processing unit 601, ROM 602, and RAM 603 are connected to each other via bus 604. Input / output (I / O) interface 605 is also connected to bus 604.
[0111] In general, input devices 606 including, for example, a touch panel, touch board, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc., output devices 607 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc., storage devices 608 including, for example, a magnetic tape, hard disk, etc., and communication devices 609 can be connected to the I / O interface 605. The communication devices 609 can allow the electronic device 600 to exchange data with other devices through wireless or wired communication. While FIG. 6 illustrates the electronic device 600 having various devices, it should be understood that it is not required to implement or include all of the devices shown. Alternatively, more or fewer devices can be implemented or included.
[0112] In particular, according to embodiments of the present disclosure, the processes described with reference to the flowcharts above can be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product, which includes a computer program stored on a non-transitory computer-readable medium, the computer program including program code for performing the methods shown in the flowcharts. In such embodiments, the computer program may be downloaded and installed from a network via the communication device 609, or may be installed from the storage device 608, or may be installed from the ROM 602. When the computer program is executed by the processing device 601, the functions defined in the methods of the embodiments of the present disclosure are performed.
[0113] The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only and do not limit the scope of these messages or information.
[0114] The electronic device according to the embodiment of the present disclosure belongs to the same inventive concept as the media content distribution method according to the above embodiment, and the technical details not described in detail in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0115] An embodiment of the present disclosure provides a computer storage medium having a computer program stored thereon, which, when executed by a processor, implements the media content distribution method according to the above embodiment.
[0116] It should be noted that the computer-readable medium of the present disclosure may be a computer-readable signal medium, a computer-readable storage medium, or any combination of the above. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of the computer-readable storage medium may include, but are not limited to, an electrical connection having one or more conductors, 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, the computer-readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in combination with an instruction execution system, apparatus, or device. However, in this disclosure, a computer-readable signal medium may include a propagated data signal, either in baseband or as part of a carrier, bearing computer-readable program code. Such a propagated data signal may take various forms, including, but not limited to, an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may be any computer-readable medium other than a computer-readable storage medium, which is capable of transmitting, propagating, or carrying a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted over any suitable medium, including, but not limited to, electrical wire, optical cable, RF (radio frequency), etc., or any suitable combination of the above.
[0117] In some embodiments, clients and servers may communicate using any network protocol now known or hereafter developed, such as HyperText Transfer Protocol (HTTP), and may interconnect via any form or medium of digital data communication (e.g., a communications network). Examples of communications networks include local area networks ("LANs"), wide area networks ("WANs"), the World Wide Web (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any network now known or hereafter developed.
[0118] The computer-readable medium may be included in the electronic device, or may exist independently of the electronic device.
[0119] The computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: acquire a target image captured in a target capture mode in response to a capture operation on a media content acquisition interface, the target image including a cover image and video recorded between a first time before a trigger time of the capture operation and a second time after the trigger time; determine target audio corresponding to the target image; generate target media content based on the target image and the target audio; and distribute the target media content as a media work in the application program in response to a distribution operation of the target media content.
[0120] Computer program code for carrying out the operations of the present disclosure can 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, and C++, as well as general procedural programming languages such as "C" or similar programming languages. The program code may run entirely on the user computer, partially on the user computer, as a separate software package, partially on the user computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user computer via 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., via the Internet using an Internet Service Provider).
[0121] The flowcharts and block diagrams in the figures illustrate the system architecture, functions, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams may represent a module, program segment, or portion of code, which includes one or more executable instructions for implementing the specified logical function. It should also be noted that in some implementations, the functions illustrated in the blocks may occur in a different order than illustrated in the figures. For example, two consecutive blocks may actually be executed essentially in parallel, or may be executed in the reverse order, depending on the functionality involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified function or operation, or by a combination of dedicated hardware and computer instructions.
[0122] The units described in relation to the embodiments of the present disclosure may be implemented in a software manner or a hardware manner, and the names of the modules may not necessarily be limiting of the units themselves, for example, an audio determination module may be described as a "module for determining target audio corresponding to the target image."
[0123] The functionality described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, typical 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), etc.
[0124] In the context of this disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with an instruction execution system, device, or apparatus. 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 apparatus, or any suitable combination of the above. More specific examples of machine-readable storage media include one or more line-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
[0125] According to one or more embodiments of the present disclosure, there is provided a method for distributing media content, comprising: acquiring a target image captured in a target capture mode in response to a capture operation on a media content acquisition interface, the target image including a cover image and a video recorded between a first time before a trigger time of the capture operation and a second time after the trigger time; determining target audio corresponding to the target image; generating targeted media content based on the target image and the target audio; and in response to a distribution operation of the targeted media content, distributing the targeted media content as a media piece in the application program.
[0126] According to one or more embodiments of the present disclosure, the photographing operation only acts on the trigger time, a time length between the first time and the trigger time is a first time length, a time length between the second time and the trigger time is a second time length, and at least one of the first time length and the second time length is not zero.
[0127] According to one or more embodiments of the present disclosure, the target audio includes a target soundtrack, and the media content acquisition interface includes a soundtrack selection control, which is used to select the target soundtrack.
[0128] According to one or more embodiments of the present disclosure, generating targeted media content based on the target image and the target audio includes: Presenting the target image and the target audio in a preset editing interface according to a preset presentation manner; generating a target media content based on the target image and the target audio according to the preset presentation manner.
[0129] According to one or more embodiments of the present disclosure, The method further includes determining a current presentation mode in response to a presentation mode switching operation input based on the preset editing interface, wherein the presentation mode is used to determine the preset presentation manner, and different presentation modes correspond to different media types of the target media content.
[0130] According to one or more embodiments of the present disclosure, the preset presentation manner is determined based on the presentation mode and the audio time length of the target audio, so as to fully present the recorded video and / or the cover image during the process of playing all or part of the target audio.
[0131] According to one or more embodiments of the present disclosure, the presentation modes include a first presentation mode, which is used to present the recorded video and the cover image.
[0132] According to one or more embodiments of the present disclosure, presenting the target image and the target audio in a preset editing interface based on a preset presentation manner may include: In the first presentation mode, if the audio duration is shorter than the target image duration, in the process of presenting the cover image with a first preset duration after the recorded video is completely played in a preset editing interface, the audio is muted or the target audio is loop-played after the target audio is completely played, and the target image duration is equal to the sum of the video duration of the recorded video and the first preset duration; In the first presentation mode, if the audio time length is greater than the target image time length, in the process of playing the target audio in a preset editing interface, the cover image is continued to be presented until the playback of the target audio is completed after the recorded video is fully played, and the target image time length includes at least one of the following: the audio time length is greater than the target image time length;
[0133] According to one or more embodiments of the present disclosure, the presentation modes include a second presentation mode, which is used to present the recorded video in a loop.
[0134] According to one or more embodiments of the present disclosure, presenting the target image and the target audio in a preset editing interface based on a preset presentation manner may include: In the second presentation mode, if the audio duration is less than the video duration of the recorded video, during the process of playing the recorded video in each round in a preset editing interface, mute the audio after the target audio is completely played or play the target audio in a loop; In the second presentation mode, if the audio duration is greater than the video duration of the recorded video, the process of playing the target audio of the target duration in a preset editing interface includes at least one of: completely playing the recorded video for a target number of rounds, wherein the target number of rounds is determined by rounding the quotient of the audio duration and the video duration to an integer, and the target duration is determined based on the product of the video duration and the target number of rounds.
[0135] According to one or more embodiments of the present disclosure, the presentation modes include a third presentation mode, and the third presentation mode is used to present the cover image.
[0136] According to one or more embodiments of the present disclosure, presenting the target image and the target audio in a preset editing interface based on a preset presentation manner may include: The third presentation mode includes presenting the cover image during the complete playback of the target audio in a preset editing interface.
[0137] According to one or more embodiments of the present disclosure, determining the creative materials set by the user; wherein generating the target media content based on the target image and the target audio includes: generating targeted media content based on the target image, the target audio and the creative material;
[0138] According to one or more embodiments of the present disclosure, determining the creative material set by the user includes: The method includes determining creative material set by the user in response to a creative material setting operation input by the user based on a media content acquisition interface and / or a preset editing interface of the target image.
[0139] According to one or more embodiments of the present disclosure, The method further includes determining an association time zone between the creative material and the target image set by the user, wherein the association time zone is used to indicate a time when the creative material will appear in the target image.
[0140] According to one or more embodiments of the present disclosure, after generating the target media content based on the target image and the target audio, presenting the target media content in a target interface based on a first preset presentation manner; In response to a presentation mode switching operation, switching from presenting the target media content based on the first preset presentation mode to presenting the target media content based on a second preset presentation mode in the target interface.
[0141] According to one or more embodiments of the present disclosure, the first length of time between the first time and the trigger time and / or the second length of time between the second time and the trigger time is determined based on a user setting.
[0142] According to one or more embodiments of the present disclosure, determining a device type of the local device in response to a save operation on the distributed targeted media content; The method further includes storing the distributed targeted media content as at least one of the target image, the recorded video, and the cover image according to the device type.
[0143] According to one or more embodiments of the present disclosure, in the process of acquiring a target image captured in the target photographing mode, The method further includes generating and distributing a media work in the application program based on the cover image when it is determined that the recorded video was not successfully acquired in response to a user's preset distribution operation.
[0144] According to one or more embodiments of the present disclosure, In response to a user turning on the target shooting mode, caching video data recorded in real time, obtaining newly added cached video data, and deleting historical cached video data that meets a preset deletion condition; In response to the capture operation being triggered, continuing to record the video data for a second preset length of time; The method further includes generating the target image based on current cached video data and the recorded video data.
[0145] According to one or more embodiments of the present disclosure, deleting the cached video data of the history that meets the preset deletion condition includes: If the cached video data is uncoded video data, deleting the cached video data that satisfies a predetermined deletion condition in frame units; and / or If the cached video data is coded video data, deleting the cached video data of the history that satisfies a predetermined deletion condition in units of coding files.
[0146] According to one or more embodiments of the present disclosure, there is provided a media content distribution device, comprising: a target image acquisition module for acquiring a target image captured in a target capture mode in response to a capture operation on the media content acquisition interface, the target image including a cover image and a video recorded between a first time before a trigger time of the capture operation and a second time after the trigger time; an audio determination module for determining target audio corresponding to the target image; a media content generation module for generating targeted media content based on the target image and the target audio; and a media content delivery module for delivering the targeted media content as a media piece in the application program in response to a delivery operation of the targeted media content.
[0147] According to one or more embodiments of the present disclosure, there is provided an electronic device, the electronic device comprising: one or more processors; a storage device for storing one or more programs; The one or more programs are executed by the one or more processors to cause the one or more processors to implement a media content distribution method according to an embodiment of the present disclosure.
[0148] According to one or more embodiments of the present disclosure, a storage medium is provided that includes computer-executable instructions, which, when executed by a computer processor, are used to perform a media content distribution method according to an embodiment of the present disclosure.
[0149] The above description merely describes preferred embodiments and the technical principles of the present disclosure. Those skilled in the art should understand that the scope of the present disclosure is not limited to the technical solution 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 concept of the above disclosure. For example, the above features are substituted with technical features having similar functions disclosed in the present disclosure (but are not limited to these).
[0150] It should be noted that, although operations are depicted using a particular sequence, this should not be understood as requiring that these operations be performed in the particular sequence shown, or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although the above discussion includes some specific implementation details, these should not be construed as limiting the scope of the present disclosure. Some features that are described in the context of a single embodiment may also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment may also be implemented in multiple embodiments, either alone or in any suitable subcombination.
[0151] Although the present subject matter has been described employing language specific to structural features and / or methodological operations, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or operations described above. Rather, the specific features and operations described above are merely example forms of implementing the claims.
Claims
1. 1. A media content distribution method, comprising: acquiring a target image captured in a target capture mode in response to a capture operation on a media content acquisition interface, the target image including a cover image and a video recorded between a first time before a trigger time of the capture operation and a second time after the trigger time; determining target audio corresponding to the target image; generating targeted media content based on the target image and the target audio; and in response to a distribution operation of the targeted media content, distributing the targeted media content as a media piece in the application program.
2. 2. The method of claim 1, wherein the capture operation operates only at the trigger time, a time length between the first time and the trigger time is a first time length, a time length between the second time and the trigger time is a second time length, and at least one of the first time length and the second time length is non-zero.
3. The method of claim 1 , wherein the target audio comprises a target soundtrack, and the media content acquisition interface comprises a soundtrack selection control, the soundtrack selection control being used to select the target soundtrack.
4. generating targeted media content based on the target image and the target audio, 2. The method of claim 1, comprising: presenting the target image and the target audio in a preset editing interface based on a preset presentation manner; and generating target media content based on the target image and the target audio based on the preset presentation manner.
5. 5. The method of claim 4, further comprising: determining a current presentation mode in response to a presentation mode switching operation input based on the preset editing interface, the presentation mode being used to determine the preset presentation manner, and different presentation modes corresponding to different media types of the target media content.
6. The method of claim 4, wherein the preset presentation manner is determined based on a presentation mode and an audio duration of the target audio, so as to fully present the recorded video and / or the cover image during the process of playing all or part of the target audio.
7. The method of claim 6 , wherein the presentation modes include a first presentation mode, the first presentation mode being used to present the recorded video and the cover image.
8. Presenting the target image and the target audio in a preset editing interface according to the preset presentation manner includes: In the first presentation mode, if the audio duration is shorter than the target image duration, in the process of presenting the cover image with a first preset duration after the recorded video is completely played in a preset editing interface, the audio is muted or the target audio is loop-played after the target audio is completely played, and the target image duration is equal to the sum of the video duration of the recorded video and the first preset duration; 8. The method of claim 7, wherein in the first presentation mode, if the audio time length is greater than a target image time length, in the process of playing the target audio in a preset editing interface, the method includes at least one of: continuing to present the cover image until playback of the target audio is completed after fully playing the recorded video, and the target image time length comprises the sum of the video time length of the recorded video and a first preset time length.
9. The method of claim 6 , wherein the presentation modes include a second presentation mode, the second presentation mode being used to present the recorded video.
10. Presenting the target image and the target audio in a preset editing interface according to the preset presentation manner includes: In the second presentation mode, if the audio duration is less than the video duration of the recorded video, during the process of playing the recorded video in each round in a preset editing interface, mute the audio after the target audio is completely played or play the target audio in a loop; 10. The method of claim 9, wherein in the second presentation mode, if the audio duration is greater than the video duration of the recorded video, the process of playing the target audio of the target duration in a preset editing interface includes at least one of: completely playing the recorded video for a target number of rounds; wherein the target number of rounds is determined by rounding the quotient of the audio duration and the video duration to an integer, and the target duration is determined based on the product of the video duration and the target number of rounds.
11. The method of claim 6 , wherein the presentation modes include a third presentation mode, the third presentation mode being used to present the cover image.
12. Presenting the target image and the target audio in a preset editing interface according to the preset presentation manner includes: The method of claim 11 , further comprising: presenting the cover image in the third presentation mode while fully playing the target audio in a preset editing interface.
13. determining the creative materials set by the user; generating targeted media content based on the target image and the target audio, The method of claim 1 , further comprising generating targeted media content based on the target image, the target audio, and the creative material.
14. Determining the creative material set by the user The method of claim 13, further comprising determining the creative material set by the user in response to a creative material setting operation input by the user based on a media content acquisition interface and / or a preset editing interface of the target image.
15. The method of claim 13, further comprising determining an association time zone between the creative material and the target image set by a user, the association time zone being used to indicate a time when the creative material will appear in the target image.
16. After generating the target media content based on the target image and the target audio, presenting the target media content in a target interface based on a first preset presentation manner; 2. The method of claim 1, further comprising: in response to a presentation scheme switching operation, switching in the target interface from presenting the target media content based on the first preset presentation scheme to presenting the target media content based on a second preset presentation scheme.
17. 2. The method of claim 1, wherein the first length of time between the first time and the trigger time and / or the second length of time between the second time and the trigger time is determined based on a user setting.
18. determining a device type of the local device in response to a save operation on the distributed targeted media content; The method of claim 1 , further comprising storing the distributed targeted media content as at least one of the target image, the recorded video, and the cover image based on the device type.
19. In the process of acquiring a target image photographed in the target photographing mode, The method of claim 1 , further comprising generating and distributing a media work in the application program based on the cover image when it is determined that the recorded video was not successfully acquired in response to a user's preset distribution operation.
20. In response to a user turning on the target shooting mode, caching video data recorded in real time, obtaining newly added cached video data, and deleting historical cached video data that meets a preset deletion condition; In response to the capture operation being triggered, continuing to record the video data for a second preset length of time; The method of claim 1 , further comprising generating the target image based on current cached video data and the recorded video data.
21. The deletion of the cached video data of the history that satisfies the predetermined deletion condition includes: If the cached video data is uncoded video data, deleting the cached video data that satisfies a predetermined deletion condition in frame units; and / or The method of claim 20, further comprising deleting, when the cached video data is coded video data, cached video data of a history that satisfies a predetermined deletion condition in units of coding files.
22. A media content distribution device, in an application program, a target image acquisition module for acquiring a target image captured in a target capture mode in response to a capture operation on the media content acquisition interface, the target image including a cover image and a video recorded between a first time before a trigger time of the capture operation and a second time after the trigger time; an audio determination module for determining target audio corresponding to the target image; a media content generation module for generating targeted media content based on the target image and the target audio; a media content delivery module for delivering the targeted media content as a media piece in the application program in response to a delivery operation of the targeted media content.
23. 23. Apparatus according to claim 22, comprising a module for carrying out the method according to any one of claims 2 to 21.
24. An electronic device, one or more processors; a storage device for storing one or more programs; 22. An electronic device, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the media content distribution method of any one of claims 1 to 21.
25. 22. A storage medium containing computer-executable instructions, the computer-executable instructions, when executed by a computer processor, for use in carrying out the media content distribution method of any one of claims 1 to 21.
Citation Information
Patent Citations
Method and device for publishing video or image, equipment and medium
CN112153288A
Video processing method and device, electronic equipment and storage medium
CN115278139A
Interaction method and device, electronic equipment and storage medium
CN115963960A
Video processing method, apparatus, device and computer program
JP2021535656A
Continuous Video Capture Glasses Inventors: Armaan Saini, Casey Spencer, and Vivek Vinodh
JP2022524511A