Media content editing method, apparatus, electronic device, storage medium, and program product
Patent Information
- Application Number
- PCT/CN2025/134388
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-03-25
- Filing Date
- 2025-11-12
- Publication Date
- 2026-10-01
Smart Images

Figure CN2025134388_01102026_PF_FP_ABST
Abstract
Description
Media content editing methods, apparatus, electronic devices, storage media and program products
[0001] Cross-references to related applications
[0002] This application claims priority to Chinese Patent Application No. 202510361745.9, filed on March 25, 2025, the disclosure of which is incorporated herein by reference in its entirety. Technical Field
[0003] This disclosure relates to a media content editing method, apparatus, electronic device, storage medium, and program product. Background Technology
[0004] As people's living standards continue to improve, still images can no longer meet their shooting needs. Therefore, a dynamic shooting mode for capturing live photos has emerged. Live photos include still images and videos that capture the dynamic moment of the shot.
[0005] Currently, the image size in a captured GIF is typically 100%, while the video size is 90%. In other words, the image size in a GIF is generally larger than the video size. However, after editing a GIF using video editing software, the exported GIF will have the same image size as the video, both at 90%.
[0006] Thus, after video editing of the first animated image, the cover image size of the animated image becomes smaller, which seriously affects the user experience. Summary of the Invention
[0007] In order to solve the above-mentioned technical problems, or at least partially solve the above-mentioned technical problems, this disclosure provides a media content editing method, apparatus, electronic device, storage medium and program product.
[0008] This disclosure provides a media content editing method, which includes: in response to an import operation of first media content, importing a first image and a first video of the first media content respectively, and displaying the first video on a video editing page; in response to an editing operation of the first video, generating an edited second video; in response to an export operation of media content, obtaining a target video frame of the second video; applying the target video frame and the editing effect corresponding to the editing operation to the first image to obtain the second image; and exporting the second media content generated based on the second image and the second video.
[0009] In some embodiments of this disclosure, the export of second media content generated based on the second image and the second video includes: updating the second video at a first resolution to a third video at a second resolution; combining the second image and the third video into second media content; and exporting the second media content.
[0010] In some embodiments of this disclosure, obtaining a target video frame of a second video in response to an export operation of media content includes: extracting the target video frame from the second video in response to a trigger operation that includes specifying the target video frame in the export operation; and extracting a video frame from the second video as the target video frame in response to a trigger operation that does not include specifying the target video frame in the export operation.
[0011] In some embodiments of this disclosure, the response to the export operation includes a triggering operation that specifies the target video frame. After extracting the target video frame from the second video, the method further includes: exporting third media content generated based on the target video frame and the second video.
[0012] In some embodiments of this disclosure, the method of importing a first image and a first video of the first media content in response to an import operation of the first media content includes: in response to an import operation of the first media content, obtaining a first image and an initial video included in the first media content; in response to the initial video including a clean aperture parameter, generating a first video that does not include the clean aperture parameter based on the initial video, wherein the clean aperture parameter is used to modify the screen size of the video, and the screen size of the initial video is smaller than the screen size of the first video; and importing the first image and the first video respectively.
[0013] In some embodiments of this disclosure, the process of exporting third media content generated based on the target video frame and the second video includes: generating a fourth video including the clean aperture parameter based on the second video; combining the target video frame and the fourth video into third media content; and exporting the third media content.
[0014] In some embodiments of this disclosure, the process of exporting third media content generated based on the target video frame and the second video includes: updating the second video at a first resolution to a third video at a second resolution; combining the target video frame and the third video into third media content; and exporting the third media content.
[0015] This disclosure also provides a media content editing apparatus, comprising: an import module for importing a first image and a first video of the first media content in response to an import operation of the first media content; a display module for displaying the first video on a video editing page; a generation module for generating an edited second video in response to an editing operation of the first video; an acquisition module for acquiring a target video frame of the second video in response to an export operation of the media content; the generation module further for applying the target video frame and the editing effect corresponding to the editing operation to the first image to obtain the second image; and an export module for exporting the second media content generated based on the second image and the second video.
[0016] In some embodiments of this disclosure, the export module is specifically used to update a second video at a first resolution to a third video at a second resolution; to combine a second image and a third video into second media content; and to export the second media content.
[0017] In some embodiments of this disclosure, the acquisition module is specifically configured to extract the target video frame from the second video in response to a trigger operation that includes specifying the target video frame in the export operation; and to extract a video frame from the second video as the target video frame in response to a trigger operation that does not include specifying the target video frame in the export operation.
[0018] In some embodiments of this disclosure, the export module is further configured to export third media content generated based on the target video frame and the second video after extracting the target video frame from the second video in response to a triggering operation that includes specifying the target video frame.
[0019] In some embodiments of this disclosure, the import module is specifically configured to, in response to an import operation on the first media content, obtain a first image and an initial video included in the first media content; in response to the initial video including a clean aperture parameter, generate a first video that does not include the clean aperture parameter based on the initial video, wherein the clean aperture parameter is used to reduce the screen size of the video, and the screen size of the initial video is smaller than the screen size of the first video; and import the first image and the first video respectively.
[0020] In some embodiments of this disclosure, the export module is specifically used to generate a fourth video including the clean aperture parameter based on the second video; to synthesize the target video frame and the fourth video into third media content; and to export the third media content.
[0021] In some embodiments of this disclosure, the export module is specifically used to update a second video at a first resolution to a third video at a second resolution; to combine the target video frame and the third video into third media content; and to export the third media content.
[0022] This disclosure also provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When executed by the processor, the computer program implements the media content editing method as described in the first aspect.
[0023] This disclosure also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the media content editing method described above.
[0024] This disclosure also provides a computer program product, which includes a computer program. When the computer program product is run on a processor, the processor executes the computer program to implement the media content editing method.
[0025] This disclosure also provides a chip including a processor and a communication interface coupled to the processor, which is used to execute program instructions to implement the media content editing method described above. Attached Figure Description
[0026] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0027] To more clearly illustrate the technical solutions in the embodiments of this disclosure, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, those skilled in the art can obtain other drawings based on these drawings without any creative effort.
[0028] Figure 1 is one of the flowcharts of the media content editing method provided in this embodiment of the present disclosure;
[0029] Figure 2 is a second schematic flowchart of the media content editing method provided in this embodiment of the present disclosure;
[0030] Figure 3 is a third flowchart illustrating the media content editing method provided in this embodiment of the present disclosure;
[0031] Figure 4 is a structural block diagram of a media content editing device provided in an embodiment of this disclosure; and
[0032] Figure 5 is a structural block diagram of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0033] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.
[0034] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.
[0035] The terms "first," "second," etc., used in this disclosure and in the claims are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this disclosure can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0036] The following is an explanation of some of the terms or concepts used in the claims and description of this invention.
[0037] A live photo is created by combining a still image captured by the user pressing the shutter button with a pre-set video clip (e.g., 1.5 seconds) that is recorded before or after the still image was captured, or a video clip that includes the still image. When the user presses and holds the live photo, the image will automatically play a dynamic effect, reproducing the dynamic moment when it was captured.
[0038] Clean caperture: This feature allows you to reduce the size of a video frame by adding a clean caper parameter to the video parameters through transcoding without re-encoding the original video data.
[0039] The video and cover image dimensions of a LivePhoto are not consistent. When shooting a LivePhoto, although a 100% full-screen image and a corresponding 100% full-screen video are captured, the video edges may be blurry due to the camera's violent movement during shooting, head movement, and issues with CMOS image stabilization. Therefore, the video is cropped to 90% full-screen size. Since video editing software is used for editing, only the video portion of the media content is imported. This video is then edited, and during export, frames are extracted from the edited video to obtain the target video frame for the cover image. The edited media content is then generated based on this target video frame and the edited video. Thus, because the image is derived from frames extracted from the edited video, the cover image size in the edited media content is smaller. Similarly, the cover resolution is lower, resulting in lower image clarity (the clarity of the edited cover image can at best match the clarity of the video, but is lower than the original cover image), negatively impacting the user experience.
[0040] The electronic devices in this disclosure can be mobile electronic devices or non-mobile electronic devices. Mobile electronic devices can be mobile phones, tablets, laptops, PDAs, in-vehicle electronic devices, wearable devices, ultra-mobile personal computers (UMPCs), netbooks, or personal digital assistants (PDAs), etc.; non-mobile electronic devices can be personal computers (PCs), televisions (TVs), ATMs, or self-service machines, etc.; this disclosure does not impose specific limitations.
[0041] The execution subject of the media content editing method provided in this disclosure can be the aforementioned electronic device (including mobile electronic devices and non-mobile electronic devices), or it can be a functional module and / or functional entity in the electronic device that can implement the media content editing method. The specific implementation subject can be determined according to actual usage requirements, and this disclosure does not limit it.
[0042] The media content editing method provided in this disclosure will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0043] As shown in Figure 1, this disclosure provides a media content editing method, which may include the following steps 101 to 106.
[0044] 101. In response to the import operation of the first media content, import the first image and the first video of the first media content respectively.
[0045] The first media content can be media content captured by an electronic device or media content downloaded from the network by an electronic device; there is no limitation here.
[0046] In some embodiments of this disclosure, the media content can be a dynamic image, which includes an initial image and an initial video. The initial image can be the cover image of the dynamic image.
[0047] The import operation can be a triggered operation that imports the first media content into the video editing page of the video editing software through the import control, or it can be a triggered operation that drags and drops the first media content into the video editing page; there is no limitation here.
[0048] 102. Display the first video on the video editing page.
[0049] The first video is presented as video material to be edited on the video editing page.
[0050] 103. In response to the editing operation on the first video, generate the edited second video.
[0051] In response to the editing operation on the first video, the first video is edited accordingly to generate the edited second video.
[0052] The editing operations can include triggering operations such as adding subtitle text, picture-in-picture, non-subtitle text, stickers, effects, filters, material packs, and background music to the first video, and are not limited here.
[0053] 104. In response to the media content export operation, obtain the target video frame of the second video.
[0054] The target video frame can be any frame in the second video.
[0055] 105. Apply the target video frame and the editing effect corresponding to the editing operation to the first image to obtain the second image.
[0056] For example, if the editing effect corresponding to the target video frame and the editing operation includes a filter effect, then the filter effect is applied to the first image; if the editing effect corresponding to the target video frame and the editing operation includes a sticker effect, then the sticker effect is applied to the first image. This is not limited to any particular effect. In this way, the editing effects of the video can be synchronized to the images, thus obtaining media content with consistent editing effects for both the images and the video.
[0057] 106. Export the second media content generated based on the second image and the second video.
[0058] In some embodiments of this disclosure, the second image and the second video can be combined into the second media content; alternatively, the resolution of the second video can be adjusted before combining the second image and the resolution-adjusted second video into the second media content; alternatively, the resolution of both the second image and the second video can be adjusted before exporting the second media content, and then the resolution-adjusted second image and the second video can be combined into the second media content; the specific method can be determined according to the actual situation, and is not limited here.
[0059] In this embodiment, in response to the import operation, not only is the first video imported, but also the first image is imported. Then, when exporting the second video generated by editing the first video, a target video frame can be extracted from the second video, and the editing effect corresponding to the editing operation is applied to the first image to obtain the second image. Finally, the second media content generated based on the second image and the second video is exported. Thus, after editing with video editing software, the original image with the corresponding editing effect applied to the video is used as the image of the edited media content. The image size remains unchanged before and after editing, which improves the user experience.
[0060] In some embodiments of this disclosure, step 106 can be specifically implemented by steps 106a to 106c.
[0061] 106a. Update the second video at the first resolution to the third video at the second resolution.
[0062] The second resolution can be smaller than the first resolution or larger than the first resolution. The specific resolution can be determined according to the actual situation and is not limited here.
[0063] 106b. Combine the second image and the third video into a second media content.
[0064] 106c, Export the second media content.
[0065] For example, the cover resolution of the first image is 3024×4032, and the screen size is 100%. The video resolution of the first video is 1440×1920, the cropped resolution is 1308×1744, and the screen size is 90%. The first image and the first video are imported into video editing software for editing and processing, and then exported as second media content. The cover resolution of the second image is 3024×4032, and the screen size is 100%. The video resolution of the second video is 1080×1440, and the screen size is 90%.
[0066] In this embodiment of the disclosure, during the export of the edited media content, only the resolution of the second video is adjusted to obtain the third video, while the resolution of the second image is not adjusted. This ensures that the resolution of the images in the media content remains unchanged before and after editing, thereby ensuring that the clarity of the images remains unchanged before and after editing. Moreover, the resolution of the second video can be adjusted according to actual usage needs, which can improve the user experience.
[0067] In some embodiments of this disclosure, as shown in FIG1 and FIG2, the above step 104 can be specifically implemented by the following steps 104a or 104b.
[0068] 104a. In response to the export operation including a trigger operation that specifies the target video frame, the target video frame is extracted from the second video.
[0069] The target video frame can be a video frame specified by the user. Thus, the user-specified video frame is extracted from the second video as the target video frame.
[0070] 104b. In response to the export operation not including a trigger operation that specifies the target video frame, extract a video frame from the second video as the target video frame.
[0071] In some embodiments of this disclosure, when the user does not specify a video frame, a video frame can be randomly selected from the second video as the target video frame, or a video frame can be selected from the second video according to a preset strategy. This is not limited here. The preset strategy may include extracting highlight frames from the second video and selecting the frame from the second video that best matches the content of the first image as the target video frame. The specific selection can be determined according to actual circumstances and is not limited here.
[0072] The process involves scoring each frame of the second video individually, with the frame receiving the highest score being designated as the highlight frame. The scoring considers factors such as composition, color, and aesthetics of the video frames.
[0073] In this embodiment, the target video frame can be user-specified, randomly selected, or extracted from the second video according to a preset strategy. This allows for the acquisition of a suitable target video frame based on actual needs. Furthermore, based on the target video frame, an image with the corresponding editing effect applied to it is obtained. This enables image editing, ensuring that the images in the edited media content also exhibit the corresponding editing effect. This guarantees consistency between the editing effects of images and videos in the edited media content, thereby improving the user experience.
[0074] In some embodiments of this disclosure, as shown in FIG2 and FIG3, after step 104a above, the media content editing method provided by the embodiments of this disclosure may further include the following step 107.
[0075] 107. Export the third media content generated based on the target video frame and the second video.
[0076] In this embodiment of the disclosure, when the target video frame is a video frame specified by the user, third media content can also be generated based on the target video frame and the second video. In this case, the target video frame is a static image (cover image) specified by the user as included in the edited media content. That is, the image included in the third media content can be determined based on the target video frame (the target video frame is the image included in the third media content, or the target video frame is processed and then used as the image included in the third media content). This can meet the user's needs for images and improve the user experience.
[0077] In some embodiments of this disclosure, step 101 can be specifically implemented by steps 101a to 101c.
[0078] 101a. In response to the import operation of the first media content, obtain the first image and initial video included in the first media content.
[0079] 101b. In response to the initial video including the clean aperture parameter, a first video is generated based on the initial video that does not include the clean aperture parameter.
[0080] The clean aperture parameter is used to reduce the screen size of the video, and the screen size of the initial video is smaller than that of the first video.
[0081] In some embodiments of this disclosure, a first video excluding the clean aperture parameter can be generated by encapsulating the initial video, rewriting the video parameters, and removing the clean aperture parameter.
[0082] The video frame size can also be described as the video's angle of view, and the clean aperture parameter is used to reduce the video's angle of view. In this embodiment, the angle of view reduction refers to the reduction in frame size due to cropping the frame boundaries. In other words, the initial video has less frame content than the first video, and the initial video's frame content is a portion of the first video's frame content.
[0083] 101c. Import the first image and the first video respectively.
[0084] Currently, cropping a 100% screen-size video to 90% screen-size is achieved by writing clean aperture parameters into the 100% screen-size video, without actually cropping the original video data. Therefore, to ensure that the screen size of the exported target video frame as the third-party media content image is the same as the screen size of the first image, the clean aperture parameters of the initial video can be removed during the import process through transcoding to obtain a 100% screen-size first video. Thus, the second video will also be a 100% screen-size video, and the target video frame extracted from the second video will also be a 100% screen-size video frame. Therefore, the generated third-party media content including the target video frame (which can also be a cover image) will include images at 100% screen size.
[0085] In this embodiment of the disclosure, in response to the initial video including the clean aperture parameter, a first video that does not include the clean aperture parameter is generated based on the initial video. This can ensure that the image size of the media content before and after editing remains unchanged, and ensure that the image size of the images before and after editing is presented in the same way.
[0086] In some embodiments of this disclosure, prior to steps 102 to 104 (including step 104a or step 104b) and step 107, in response to the import operation of the first media content, only the initial video included in the first media content can be obtained, without needing to obtain the first image; in response to the initial video including the clean aperture parameter, a first video excluding the clean aperture parameter can be generated based on the initial video; and the first video can be imported.
[0087] In some embodiments of this disclosure, after steps 101a to 101c, step 107 can be specifically implemented by steps 107a to 107c.
[0088] 107a. Based on the second video, generate a fourth video that includes the clean aperture parameters.
[0089] In some embodiments of this disclosure, a fourth video including clean aperture parameters can be generated by repackaging the second video, rewriting the video parameters, and adding clean aperture parameters.
[0090] 107b. Combine the target video frame and the fourth video to form third media content.
[0091] 107c. Export third-party media content.
[0092] In some embodiments of this disclosure, after obtaining a target video frame with the same screen size as the first image, a fourth video including the clean aperture parameter is generated based on the second video. This ensures that the screen size of the video in the media content before editing remains unchanged, which can improve the user experience.
[0093] In some embodiments of this disclosure, step 107 can be specifically implemented by steps 107d to 107f.
[0094] 107d. Update the second video at the first resolution to the third video at the second resolution.
[0095] The second resolution can be smaller than the first resolution or larger than the first resolution. The specific resolution can be determined according to the actual situation and is not limited here.
[0096] 107e. Combine the target video frame and the third video to form third media content.
[0097] 107f, Export third-party media content.
[0098] In this embodiment of the disclosure, during the export of the edited media content, only the resolution of the second video is adjusted to obtain the third video, without adjusting the resolution of the target video frame of the second image. This reduces the range of resolution changes in the images in the media content before and after editing, thereby reducing the range of changes in image clarity before and after editing. To a certain extent, this can reduce the degree of resolution reduction in the images before and after editing, reduce the impact of resolution reduction on visual presentation, and allow the resolution of the second video to be adjusted according to actual usage needs, thus improving the user experience.
[0099] Figure 4 is a structural block diagram of a media content editing device according to an embodiment of this disclosure. As shown in Figure 4, it includes: an import module 401, used to import a first image and a first video of the first media content in response to an import operation of the first media content; a display module 402, used to display the first video on a video editing page; a generation module 403, used to generate an edited second video in response to an editing operation of the first video; an acquisition module 404, used to acquire a target video frame of the second video in response to an export operation of the media content; the generation module 403 is also used to apply the editing effect corresponding to the editing operation of the target video frame to the first image to obtain the second image; and an export module 405, used to export the second media content generated based on the second image and the second video.
[0100] In some embodiments of this disclosure, the export module 405 is specifically used to update the second video at the first resolution to a third video at the second resolution; to combine the second image and the third video into second media content; and to export the second media content.
[0101] In some embodiments of this disclosure, the acquisition module 404 is specifically configured to extract the target video frame from the second video in response to a trigger operation that includes specifying the target video frame in the export operation; and to extract a video frame from the second video as the target video frame in response to a trigger operation that does not include specifying the target video frame in the export operation.
[0102] In some embodiments of this disclosure, the export module 405 is further configured to export third media content generated based on the target video frame and the second video after extracting the target video frame from the second video in response to a triggering operation that includes specifying the target video frame.
[0103] In some embodiments of this disclosure, the import module 401 is specifically configured to, in response to an import operation of the first media content, obtain the first image and the initial video included in the first media content; in response to the initial video including a clean aperture parameter, generate a first video that does not include the clean aperture parameter based on the initial video, wherein the clean aperture parameter is used to reduce the screen size of the video, and the screen size of the initial video is smaller than the screen size of the first video; and import the first image and the first video respectively.
[0104] In some embodiments of this disclosure, the export module 405 is specifically used to generate a fourth video including the clean aperture parameter based on the second video; to synthesize the target video frame and the fourth video into third media content; and to export the third media content.
[0105] In some embodiments of this disclosure, the export module 405 is specifically used to update the second video at the first resolution to a third video at the second resolution; to combine the target video frame and the third video into third media content; and to export the third media content.
[0106] In this embodiment, each module can implement the media content editing method provided in the above method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0107] Figure 5 is a schematic diagram of an electronic device provided in an embodiment of this disclosure. It is used to illustrate the electronic device that implements any media content editing method in the embodiments of this disclosure and should not be construed as a specific limitation on the embodiments of this disclosure.
[0108] As shown in Figure 5, the electronic device 500 may include a processor (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of the electronic device 500. The processor 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0109] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 508 including, for example, magnetic tapes, hard disks, etc.; and communication devices 509. Communication device 509 allows electronic device 500 to communicate wirelessly or wiredly with other devices to exchange data. Although an electronic device 500 with various devices is shown, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0110] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processor 501, it can perform the functions defined in any media content editing method provided in embodiments of this disclosure.
[0111] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can 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 a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit 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 can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0112] In some implementations, the client and server can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol), and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.
[0113] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0114] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to: in response to an import operation on the first media content, import a first image and a first video of the first media content respectively, and display the first video on a video editing page; in response to an editing operation on the first video, generate an edited second video; in response to an export operation on the media content, obtain a target video frame of the second video; apply the target video frame and the editing effect corresponding to the editing operation to the first image to obtain the second image; and export the second media content generated based on the second image and the second video.
[0115] In embodiments of this disclosure, computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof. These programming languages include, but are not limited to, object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on a computer, partially on a computer, as a standalone software package, partially on a computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0116] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions 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, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0117] The units described in the embodiments of this disclosure can be implemented in software or hardware. The names of the units are not, in some cases, intended to limit the specific unit.
[0118] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0119] In the context of this disclosure, a computer-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of computer-readable storage media include electrical connections based on one or more wires, 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 disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0120] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0121] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0122] Although the subject matter has been described using language specific to structural features and / or methodological logic, 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. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. A method for editing media content, comprising: In response to the import operation of the first media content, the first image and the first video of the first media content are imported respectively, and the first video is displayed on the video editing page; In response to the editing operation on the first video, an edited second video is generated; In response to the media content export operation, the target video frame of the second video is obtained; The editing effect corresponding to the target video frame and the editing operation is applied to the first image to obtain the second image; Export the second media content generated based on the second image and the second video.
2. The method of claim 1, wherein, The export of the second media content generated based on the second image and the second video includes: Update the second video at the first resolution to the third video at the second resolution; The second image and the third video are combined to form the second media content; Export the second media content.
3. The method of claim 1 or 2, wherein, The step of obtaining the target video frame of the second video in response to the media content export operation includes: In response to the export operation including a trigger operation that specifies the target video frame, the target video frame is extracted from the second video; In response to the export operation not including a trigger operation specifying the target video frame, a video frame is extracted from the second video as the target video frame.
4. The method of claim 3, wherein, The method, in response to the export operation including a trigger operation specifying the target video frame, further includes, after extracting the target video frame from the second video: Export the third media content generated based on the target video frame and the second video.
5. The method of claim 4, wherein, The step of importing the first image and the first video of the first media content in response to the import operation includes: In response to the import operation of the first media content, the first image and initial video included in the first media content are obtained; In response to the initial video including a clean aperture parameter, a first video excluding the clean aperture parameter is generated based on the initial video, wherein the clean aperture parameter is used to reduce the screen size of the video; Import the first image and the first video respectively.
6. The method of claim 5, wherein, The export of third media content generated based on the target video frame and the second video includes: Based on the second video, a fourth video including the clean aperture parameters is generated; The target video frame and the fourth video are combined to form the third media content; Export the aforementioned third-party media content.
7. The method of claim 4 or 5, wherein, The export of third media content generated based on the target video frame and the second video includes: Update the second video at the first resolution to the third video at the second resolution; The target video frame and the third video are combined to form the third media content; Export the aforementioned third-party media content.
8. A media content editing device, comprising: The import module is configured to import the first image and the first video of the first media content in response to the import operation of the first media content; The display module is configured to display the first video on the video editing page; The generation module is configured to generate an edited second video in response to an editing operation on the first video; An acquisition module configured to acquire a target video frame of the second video in response to an export operation of the media content; The generation module is further configured to apply the target video frame to the first picture with an editing effect corresponding to the editing operation to obtain a second picture; An export module configured to export second media content generated based on the second picture and the second video.
9. An electronic device comprising a memory and a processor, wherein, The memory is configured to store a computer program; and the processor is configured to execute the media content editing method of any one of claims 1 to 7 when the computer program is invoked.
10. A computer readable storage medium storing a computer program, wherein, The computer program, when executed by a processor, implements the media content editing method of any one of claims 1 to 7.
11. A computer program product comprising a computer program, wherein, The computer program, when executed by a processor, implements the media content editing method of any one of claims 1 to 7. The computer program, when executed by a processor, implements the media content editing method of any one of claims 1 to 7.