Video editing method, electronic device, and readable storage medium
By using sliders in the video editing interface to adjust the playback duration of the entrance and exit animations of the footage, and displaying the footage track in the track area, the operation of setting up video footage is simplified and the user experience is improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-21
- Publication Date
- 2026-05-15
AI Technical Summary
The current method of setting up materials in videos is complicated, which is not conducive to user understanding and operation, resulting in a poor user experience.
This paper provides a video editing method that simplifies user operation by allowing users to adjust the playback duration of the entrance and exit animations of footage using sliders in the video editing interface and displaying the footage track in the track area.
It reduces the learning cost for users, improves the convenience of adding video materials and the user experience, and simplifies the process of setting up animation effects for materials.
Smart Images

Figure CN119182972B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to video editing methods, electronic devices, and readable storage media. Background Technology
[0002] In daily life, users often need to edit videos. For example, users can add clips, text, stickers, and other materials to videos, and can also set animation effects when these materials appear or disappear in the video. This makes the video content richer and the presentation more interesting. However, the current method of adding materials to videos is relatively complicated, which is not conducive to user understanding and operation. Summary of the Invention
[0003] This application provides a video editing method, an electronic device, and a readable storage medium. The electronic device can provide users with an easy-to-understand interface for editing animation effects, helping users add materials to videos and set entrance and exit animations for the materials without incurring excessive learning costs, thereby improving the user experience.
[0004] In a first aspect, this application provides a video editing method, the method comprising: displaying a video editing interface for editing a first video, the video editing interface including a material adding control; receiving a first user operation applied to the material adding control, displaying a first material and an animation setting control in the video editing interface; receiving a second user operation applied to the animation setting control, and in response to the second user operation, displaying one or more entrance animation options in the video editing interface, the one or more entrance animation options including an option for a first entrance animation; receiving a third user operation applied to an option for the first entrance animation, displaying a first slider, the first slider being used to adjust the entrance playback duration of the first entrance animation in the first video; displaying one or more exit animation options in the video editing interface, the one or more exit animation options including an option for the first exit animation; receiving a fourth user operation applied to an option for the first exit animation, displaying a second slider, the second slider being used to adjust the exit playback duration of the first exit animation in the first video.
[0005] In conjunction with the first aspect, in some embodiments, in response to a second user operation, displaying one or more entrance animation options in the video editing interface specifically includes: displaying an entrance animation addition control and an exit animation addition control in the video editing interface, and when the entrance animation addition control is selected, displaying one or more entrance animation options in the video editing interface.
[0006] In conjunction with the first aspect, in some embodiments, displaying one or more entrance animation options in the video editing interface specifically includes: receiving a fifth user operation to select an entrance animation addition control, and responding to the fifth user operation to display one or more entrance animation options in the video editing interface.
[0007] refer to Figures 1A-1L The illustrated embodiment. The video editing interface can be an interface for editing a first video. The video editing interface may include a material adding control for adding first material. The first material may include one or more of clips, text, and stickers. The electronic device may, in response to a first user operation on the material adding control, display the first material and an animation setting control for setting animation effects for the first material. In response to a user operation on the animation setting control (such as...) Figure 1C The operation of the "Animation" tab (as shown) allows electronic devices to display entrance animations and add controls (such as...) Figure 1D The "Entry" label shown) and exit animation add controls (such as...) Figure 1D (See the "Exit" label shown). The electronic device can receive operations performed on the entrance animation adding control. In response to these operations, the electronic device can display buttons corresponding to one or more entrance animation options. The electronic device can receive and respond to user operations performed on the buttons corresponding to the first entrance animation options, displaying a first slider corresponding to the un-grayed entrance animation playback duration. Optionally, the electronic device can display the slider on the first slider at a position corresponding to the preset initial value of the entrance animation playback duration. The electronic device can also receive operations performed on the exit animation adding control. In response to these operations, the electronic device can display buttons corresponding to one or more exit animation options. The electronic device can receive and respond to user operations performed on the buttons corresponding to the first exit animation options, displaying a second slider corresponding to the un-grayed exit animation playback duration. Optionally, the electronic device can display the slider on the second slider at a position corresponding to the preset initial value of the exit animation playback duration. Furthermore, the electronic device can receive user operations performed on the first and / or second sliders to set the playback duration of the entrance and exit animations.
[0008] refer to Figures 3A-3FIn the illustrated embodiment, the electronic device can display buttons corresponding to one or more entrance animation options, and buttons corresponding to one or more exit animation options. The electronic device can receive and respond to user actions on the button corresponding to the first entrance animation option, displaying an un-grayed first slider. The electronic device can also receive user actions on the first slider to change the playback duration of the first entrance animation. Simultaneously, the electronic device can receive and respond to user actions on the button corresponding to the first exit animation option, displaying an un-grayed second slider. Furthermore, the electronic device can receive user actions on the second slider to change the playback duration of the first exit animation.
[0009] Understandably, electronic devices provide users with an entry point to add content to videos, and can respond to user actions by setting entrance and exit animations. The playback duration of each animation is controlled by a slider, with the length of both sliders representing the total display time of the content in the video. Users can use the first slider to set the entrance animation duration, and then use the second slider to set the exit animation duration. This allows users to edit entrance and exit animations in videos without requiring excessive learning.
[0010] In conjunction with the first aspect, in some embodiments, the method further includes: receiving a sixth user operation to slide the slider in the first slider to a first position, and displaying a first entry playback duration corresponding to the first position; receiving and responding to a seventh user operation to slide the slider in the second slider to a second position, and displaying a first exit playback duration corresponding to the second position; when the sum of the first entry playback duration and the first exit playback duration exceeds the total duration, adjusting the slider in the first slider to a third position, and displaying a second entry playback duration corresponding to the third position, wherein the sum of the second entry playback duration and the first exit playback duration equals the total duration.
[0011] It should be noted that during the user's adjustment of the first and second sliders, the electronic device must ensure that the sum of the entrance animation playback duration corresponding to the slider position in the first slider and the exit animation playback duration corresponding to the slider position in the second slider does not exceed the total duration. Therefore, when the sum of the first entrance playback duration and the first exit playback duration exceeds the total duration, the electronic device can adjust the position of the slider in the first slider according to the position of the slider in the second slider, so that the entrance animation playback duration corresponding to the slider position in the first slider is reduced to the second entrance playback duration. Wherein, the sum of the second entrance playback duration and the first exit playback duration equals the total duration.
[0012] Understandably, when the electronic device receives a user's operation on the second slider, such that the sum of the entrance animation duration corresponding to the slider position in the first slider and the exit animation duration corresponding to the slider position in the second slider exceeds the total duration, the electronic device can change the entrance animation duration and the position of the slider in the first slider. This ensures that the sum of the changed entrance animation duration and the adjusted exit animation duration, as per the user's operation, equals the total duration, guaranteeing that the entrance and exit animation durations do not exceed the total duration. In this way, the user only needs to adjust the slider in the second slider to increase the exit animation duration while decreasing the entrance animation duration, reducing operational complexity. The electronic device can also display the results of the user's adjustments to the entrance and exit animation durations, providing a reference for the user to adjust the sliders in the first and / or second sliders.
[0013] In conjunction with the first aspect, in some embodiments, the method further includes: receiving a sixth user operation to slide the slider in the first slider to a first position, and displaying the first entry playback duration corresponding to the first position; receiving a seventh user operation to slide the slider in the second slider to a second position, and when the sum of the first entry playback duration and the first exit playback duration corresponding to the second position exceeds the total duration, adjusting the slider in the second slider from the second position to the fourth position, and displaying the second exit playback duration corresponding to the fourth position, wherein the sum of the second exit playback duration and the first entry playback duration is equal to the total duration.
[0014] The sixth user operation can be the user pressing a slider to slide the slider in the first slider bar to the first position. The seventh user operation can be the user pressing a slider to slide the slider in the second slider bar to the second position. When the sum of the first entrance playback duration corresponding to the first position and the first exit playback duration corresponding to the second position exceeds the total duration, the electronic device can adjust the exit animation playback duration and change the position of the slider in the second slider bar to the fourth position, so that the sum of the entrance animation playback duration and the exit animation playback duration does not exceed the total duration.
[0015] Understandably, when the electronic device receives a user's operation on the second slider, such that the sum of the entrance animation duration corresponding to the slider position in the first slider and the exit animation duration corresponding to the slider position in the second slider exceeds the total duration, the electronic device can further change the exit animation duration and the position of the slider in the second slider, ensuring that the sum of the entrance animation duration and the changed exit animation duration equals the total duration, thus guaranteeing that the total duration does not exceed the total duration. In other words, the electronic device can determine the maximum exit animation duration based on the position in the first slider. If the user adjusts the exit animation duration beyond the maximum, the electronic device can slide the slider in the second slider back to the position corresponding to the maximum exit animation duration.
[0016] In conjunction with the first aspect, in some embodiments, the method further includes: receiving an operation to slide the slider in the first slider to a first position, and displaying the first entry playback duration corresponding to the first position; receiving an eighth user operation to slide the slider in the second slider towards the end position of the second slider, stopping the slider in the second slider when it follows the eighth user operation to slide to a fourth position, and displaying the second exit playback duration corresponding to the fourth position, wherein the sum of the second exit playback duration and the first entry playback duration equals the total duration.
[0017] Understandably, the electronic device can determine the maximum playback duration of the exit animation (i.e., the total duration minus the first entry playback duration) based on the first position in the first slider. Then, the electronic device can determine the fourth position on the second slider based on the maximum playback duration of the exit animation. The sum of the first entry playback duration corresponding to the first position and the second exit playback duration corresponding to the fourth position equals the total duration. When the electronic device receives a user sliding the slider on the second slider, the maximum distance the slider moves does not exceed the distance between the fourth position and the starting point of the second slider. If, after the slider on the second slider reaches the fourth position, the electronic device still receives an operation from the user to slide the slider towards the end point of the second slider, the slider can stop following the user's operation. This allows the user to adjust the position of the slider on the second slider without changing the position of the slider on the first slider.
[0018] In conjunction with the first aspect, in some embodiments, the method further includes: receiving a ninth user operation to slide a slider in the second slider bar from a second position to a fifth position, wherein the third exit playback duration corresponding to the fifth position is less than the first exit playback duration corresponding to the second position; and in response to the ninth user operation, displaying the second entry playback duration and the third exit playback duration.
[0019] refer to Figure 1Q-Figure 1R The embodiment shown, Figure 1QThe position of the slider corresponding to the duration of the middle scene's appearance is called the second position. Figure 1R The position of the slider corresponding to the entrance / exit animation duration can be referred to as the fifth position. When the electronic device receives an operation to slide the slider from the second position to the fifth position, it can display the second entrance / exit animation duration corresponding to the third position and the third exit / exit animation duration corresponding to the fifth position. During the process of the slider in the second slider moving from the second position to the fifth position, the position of the slider in the first slider remains unchanged. That is, the electronic device will only change the position of the slider in the first slider and / or the position of the slider in the second slider if the sum of the entrance and exit animation durations exceeds the total duration, ensuring that the sum of the entrance and exit animation durations does not exceed the total duration. This way, when the sum of the entrance and exit animation durations does not exceed the total duration, the user's operation of the slider in the second slider will not change the position of the slider in the first slider, making it easier for the user to understand.
[0020] In conjunction with the first aspect, in some embodiments, the method further includes: after adjusting the entrance playback duration of the first entrance animation, displaying the first entrance animation in the video editing interface with the adjusted entrance playback duration.
[0021] In conjunction with the first aspect, in some embodiments, the method further includes: after adjusting the appearance playback duration of the first appearance animation, displaying the first appearance animation in the video editing interface using the adjusted appearance playback duration.
[0022] Understandably, after each adjustment of the slider on the first slider and / or the slider on the second slider, a preview of the first entrance animation and / or the first exit animation of the first clip can be displayed in the video editing interface. This allows users to adjust the first slider corresponding to the entrance animation duration and / or the second slider corresponding to the exit animation duration based on the preview, improving the user experience.
[0023] In conjunction with the first aspect, in some embodiments, the starting position of the second slider is on the same side as the ending position of the first slider, and the ending position of the second slider is on the same side as the starting position of the first slider.
[0024] The starting position of the first slider refers to the position of the slider on the first slider when the entrance animation duration is 0 seconds. The ending position of the first slider refers to the position of the slider on the first slider when the entrance animation duration equals the total duration. The starting position of the second slider refers to the position of the slider on the second slider when the exit animation duration is 0 seconds. The ending position of the second slider refers to the position of the slider on the second slider when the exit animation duration equals the total duration.
[0025] In conjunction with the first aspect, in some embodiments, the starting position of the second slider is on the same vertical line as the ending position of the first slider, the ending position of the second slider is on the same vertical line as the starting position of the first slider, and the third position of the first slider is on the same vertical line as the second position of the second slider.
[0026] It's understandable that the starting position of the first slider and the ending position of the second slider can be on the same side, and their respective endpoints can also be on the same side. Furthermore, the lengths of the first and second sliders can be equal. When the sliders on the first and second sliders are aligned vertically, it indicates that the sum of the entrance animation duration and the exit animation duration equals the total animation duration. This allows users to more easily and clearly see the relationship between the entrance animation duration, the exit animation duration, and the total animation duration.
[0027] In conjunction with the first aspect, in some embodiments, the method further includes: after adjusting the entrance playback duration of the first entrance animation and the exit playback duration of the first exit animation, displaying a track bar for the first video and a track bar for the first material, wherein the length of the track bar for the first material is used to represent the total duration of the first material; receiving a tenth user operation from the user to adjust the track bar for the first material from a first length to a second length, wherein when the track bar for the first material is the first length, the total duration of the first material is the first total duration, and when the track bar for the first material is the second length, the total duration of the first material is the second total duration; when the second total duration is greater than the first total duration, increasing... Add the normal display time of the first material, and keep the entrance playback duration of the first entrance animation and the exit playback duration of the first exit animation unchanged; when the second total duration is less than the first total duration, reduce the entrance playback duration of the first entrance animation and the exit playback duration of the first exit animation; wherein, the ratio of the reduced entrance playback duration of the first entrance animation to the second total duration is equal to the ratio of the original entrance playback duration of the first entrance animation to the first total duration, and the ratio of the reduced exit playback duration of the first exit animation to the second total duration is equal to the ratio of the original exit playback duration of the first exit animation to the first total duration.
[0028] refer to Figure 2B In the illustrated embodiment, the track bar in the first video may include one or more of a video frame track and an audio track. The track bar in the first source material may be a text track bar. Figure 2H Taking the case where the sum of the entrance animation duration and the exit animation duration equals the total animation duration as an example, the length of the text track bar can be referred to as the first length. The electronic device can receive user adjustments to the text track bar. Figure 2J The tenth user action of the indicated length. Place the text track bar in... Figure 2JThe length in the text track is called the second length. At this point, the second total duration corresponding to the second length is less than the first total duration corresponding to the first length. The electronic device can reduce the playback duration of the entrance animation and the exit animation by the same proportion; when the second total duration corresponding to the second length is greater than the first total duration corresponding to the first length, the electronic device can increase the duration of the first material's normal display (i.e., no animation display) between the entrance animation and the exit animation. The electronic device can also receive an eleventh user operation to adjust the text track bar from the second length to the third length. The third total duration corresponding to the third length can be less than the second total duration corresponding to the second length. Therefore, the electronic device can reduce the duration of the first material's normal display (i.e., no animation display) between the entrance animation and the exit animation without changing the playback duration of the entrance animation and the exit animation.
[0029] Understandably, users can change the total duration of the first clip displayed in the video by adjusting the timeline. Electronic devices can then automatically adjust the entrance and exit animation durations based on the user-adjusted total duration, improving the user experience.
[0030] In conjunction with the first aspect, in some embodiments, the method further includes: displaying a first track and a second track in the track bar of the first material, wherein the first track is used to represent the entrance playback duration of the first entrance animation, and the second track is used to represent the exit playback duration of the first exit animation.
[0031] refer to Figure 2C The electronic device can display a first track and a second track on the track bar, where the first track corresponds to the entrance playback duration and the second track corresponds to the exit playback duration. Optional, see reference. Figures 3A-3F In the illustrated embodiment, when the user adjusts the first slider, the electronic device can display a first trajectory on the track bar, which corresponds to the playback duration of the entrance animation. When the user adjusts the second slider, the electronic device can display a second trajectory on the track bar, which corresponds to the playback duration of the exit animation.
[0032] Understandably, after the user adjusts the slider on the first slider and / or the slider on the second slider, the electronic device can display the user's adjustment results on the track bar. This allows the user to easily view the relationship between the playback duration of the entrance animation, the playback duration of the exit animation, and the total duration after their adjustment.
[0033] In a second aspect, this application provides an electronic device including a display screen, a memory, and a processor coupled to the memory; the display screen is used to display an interface, the memory stores a computer program, and when the processor executes the computer program, it causes the electronic device to implement the method described in any one of the first aspects.
[0034] Thirdly, this application provides a computer-readable storage medium storing a computer program or computer instructions, which are executed by a processor to implement the method described in any of the first aspects above.
[0035] Fourthly, embodiments of this application provide a computer program product, which, when executed by a processor, implements the method described in any of the first aspects above.
[0036] Fifthly, embodiments of this application provide a chip including a processor and a memory, wherein the memory is used to store computer programs or computer instructions, and the processor is used to execute the computer programs or computer instructions stored in the memory, causing the chip to perform the method described in any of the first aspects above.
[0037] The solutions provided in the second to fifth aspects above are used to implement or cooperate with the methods provided in the first aspect above, and therefore can achieve the same or corresponding beneficial effects as the methods in the first aspect, which will not be elaborated here. Attached Figure Description
[0038] Figures 1A-1S This is a schematic diagram of the user interface for adding exit animations and entrance animations to some electronic devices 100 provided in the embodiments of this application;
[0039] Figures 2A-2K This is a schematic diagram of the user interface of an electronic device 100 for adjusting a material track bar, provided in an embodiment of this application;
[0040] Figures 3A-3F This is a schematic diagram of a user interface for editing video on another electronic device provided in an embodiment of this application;
[0041] Figure 4A This is a flowchart of a slider sliding method provided in an embodiment of this application;
[0042] Figures 4B-4C This is a schematic diagram of the slider movement method in the video editing method provided in the embodiments of this application;
[0043] Figure 5 This is a flowchart of the video editing method provided in the embodiments of this application;
[0044] Figure 6 This is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of this application;
[0045] Figure 7 This is a software structure block diagram of the electronic device 100 provided in the embodiments of this application. Detailed Implementation
[0046] The terminology used in the following embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to include the plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in this application refers to and includes any or all possible combinations of one or more of the listed items.
[0047] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.
[0048] To meet users' demand for richer video content, electronic devices often offer the ability to add text, stickers, and other materials to videos. Furthermore, these devices can receive user input to adjust the display effects of these materials within the video. However, the current methods for adding materials to videos are rather complex, making them difficult for users to understand and operate.
[0049] This application provides a video editing method, an electronic device, and a readable storage medium. Users can add clips, text, stickers, and other materials to videos using the electronic device. The electronic device can display two sliders when a user adds materials to a video. One slider can be used to adjust the playback duration of the animation effect when the material enters the video (i.e., the entrance animation), and the other slider can be used to adjust the playback duration of the animation effect when the material disappears from the video (i.e., the exit animation). Furthermore, the electronic device can also display a material track in a timer area. Users can manipulate the material track to adjust the total display duration of the material in the video, etc.
[0050] Implementing the method provided in this application offers users an easy-to-understand interface for editing animation effects. Users can add materials to videos and set one or more parameters of those materials without incurring excessive learning costs, thereby improving the user experience.
[0051] The following describes a scenario where an electronic device edits entrance and exit animations in a video, according to an embodiment of this application.
[0052] 1. Add text:
[0053] like Figure 1AAs shown, the electronic device 100 can display a video editing interface 201. The video editing interface 201 may include a preview area 202, a track area 203, and a toolbar 204.
[0054] The preview area 202 can display a video preview screen 202A, which is used to preview the video.
[0055] Track area 203 may include one or more tracks. One or more tracks in the video editing interface 201 are containers for placing video resources. These resources may include, but are not limited to: video footage, audio, and other materials. Figure 1A The track area 203 shown may include a video track 203A and an audio track 203B. The video track 203A may display one or more frames of video that move forward over time. Figure 1A (Not shown in the image), audio track 203B can display the magnitude of audio changes as time progresses. Track area 203 may also include a source track; for details on source tracks, please refer to the description in subsequent embodiments, which will not be elaborated here.
[0056] Toolbar 204 may include one or more buttons corresponding to video editing functions. For example, toolbar 204 may include an "Add Text" button 204A and an "Add Title" button 204B. The "Add Text" button 204A is used to add text to the video and edit the text's animation effects. The "Add Title" button 204B is used to add a title to the video.
[0057] For ease of description and better understanding, the video editing method provided in this application embodiment is illustrated below using adding text to a video as an example. It is not limited to adding text; other materials (such as clips, stickers, etc.) can also be added to the video. The method for adding other materials to a video can be found in the method for adding text to a video in subsequent embodiments, and will not be repeated here.
[0058] The electronic device 100 can receive a user's click on the add text button 204A, and in response to this operation, the electronic device 100 can display the editing window 211. At the same time, the video preview screen 202A can display the text preview box 202B, the delete button 202C, and the zoom button 202D.
[0059] The editing window 211 may include a text editing box 212, a tab bar 213, and a soft keyboard 205.
[0060] The text editing box 212 is used to display the text entered by the user. The text entered by the user in the text editing box 212 can be synchronously displayed in the text preview box 202B in the video preview screen 202A.
[0061] The label bar 213 may include labels corresponding to one or more function options when adding text to a video. These labels may include, but are not limited to: templates, fonts, styles, decorative text, and animations.
[0062] The soft keyboard 205 is used to receive user operations, such as entering one or more characters in the text editing box 212.
[0063] The text preview box 202B can display the text added by the user, and is used to preview the text added by the user in the video and its style, etc.
[0064] The delete button 202C is used to delete the text and its styles added to the text preview box 202B.
[0065] The zoom button 202D is used to adjust the size of the text preview box 202B. When the size of the text preview box 202B increases, the font size of the text displayed in the text preview box will also increase.
[0066] For example, the electronic device can receive a user's input of the text "happy" into the text editing box 212. This text can be input by the user via the soft keyboard 205. Figure 1C As shown, text editing box 212 can display the text "happy and carefree", while the text preview box 202B displays text that is changed from... Figure 1B The "Click to enter text" option shown has been changed to: Figure 1C The word "happy and carefree" is shown. However, it is not limited to "happy and carefree" and can also be other words. This application embodiment does not limit the content of text that can be added to the video.
[0067] The electronic device 100 can receive a user's click on an animated option in the menu bar. In response to this action, the electronic device 100 can hide or show the soft keyboard 205 and display something like... Figure 1D The animation editing area 214 is shown. Meanwhile, the animation options in the tab bar 213 can be underlined to indicate that the animation option in the tab bar 213 is selected. The above-described style indicating that the animation option is selected is merely an example and is not intended to limit the embodiments of this application.
[0068] The electronic device 100 can respond to a user's operation of adding the text "happy" to a video, at which point the text "happy" will be displayed in the video. At this time, since no entrance animation, exit animation, or loop animation is set, the text has no animation effect in the video. The text material added to the video without animation effect can be considered to be displayed normally. The duration of the text "happy" displayed normally in the video is equal to the total duration of the text material displayed in the video. The electronic device 100 can store the value of the total duration of the text material displayed in the video in the initial state (e.g., 2 seconds, 3 seconds, 5 seconds, etc.). This application embodiment does not limit the value of the total duration of the text material displayed in the video in the initial state stored in the electronic device 100. In some embodiments, the total duration of the text material displayed in the video can be changed. The method by which the electronic device 100 changes the total duration in response to user operation can be referred to the description of subsequent embodiments, which will not be elaborated here.
[0069] 2. Add an entrance animation with text:
[0070] like Figure 1D As shown, the animation editing area 214 can display one or more functions included in the animation function options. The animation editing area 214 may include a tab bar 215, an animation options area 216, a slider 217, a slider 218, a slider 219, and a slider 220.
[0071] The label bar 215 may include labels corresponding to one or more function options for text animation effects. These function options may include, but are not limited to: entrance animation, exit animation, and loop animation. Specifically, the entrance animation option corresponds to the "Entrance" label, the exit animation option corresponds to the "Exit" label, and the loop animation option corresponds to the "Loop" label. The entrance animation function option is used to edit the animation effect of the text displayed in the text editing box 212 when it appears in the video. The exit animation function is used to edit the animation effect of the text displayed in the text editing box 212 when it disappears from the video. The loop animation function is used to edit the looping playback effect of the text displayed in the video.
[0072] The animation options area 216 may include buttons corresponding to one or more animation options. These animation options are used to set different animation effects for the entry or exit of text in the text editing box 212. For example, these animation effects may include, but are not limited to: fade in, zoom in, collapse, rotate, and jitter. It should be noted that... Figure 1DThe darkened "Entrance" label indicates that the entrance animation option is selected. When the entrance animation option is selected, the buttons corresponding to one or more animation options in the animation options area 216 are used to set the animation effects of the entrance animation. The animation options area 216 may include a "No Animation Effect" button 216A. The "No Animation Effect" button 216A is used to disable the entrance animation effect. Figure 1D The button 216A without animation effect is selected, indicating that the electronic device 100 has not set an entrance animation for the text "happy and carefree".
[0073] Slider 217 and slider 218 are used to set the playback duration of the text entrance animation. The electronic device 100 can determine the playback duration of the entrance animation based on the position of slider 218 on slider 217. For example... Figure 1D As shown, without an entrance animation, slider 218 can be located at the far left of slider 217. Simultaneously, slider 217 and slider 218 are grayed out. Graying out the slider means that even if the electronic device 100 receives an operation from the user on the position of slider 217 or slider 218, the position of slider 218 will not change, meaning the playback duration of the entrance animation will not change. The right side of slider 217 can display the playback duration of the entrance animation corresponding to the current position of slider 218 on slider 217, "0.0s," indicating that the current playback duration of the entrance animation is 0 seconds. The total length of slider 217 represents the total duration of the text "Happy Happy" appearing in the video.
[0074] Slider 219 and slider 220 are used to set the playback duration of the text entrance animation. The electronic device 100 can determine the playback duration of the entrance animation based on the position of slider 220 on slider 219. For example... Figure 1D As shown, without an entrance animation, slider 220 can be located at the far right of slider 219. Simultaneously, slider 219 and slider 220 are grayed out. At this time, even if the electronic device 100 receives user actions on the positions of slider 219 and slider 220, their positions will not change. The right side of slider 219 can display the playback duration of the entrance animation corresponding to the current position of slider 220 on slider 219, "0.0s," indicating that the current entrance animation playback duration is 0 seconds. The total length of slider 219 represents the total duration of the text "Happy and Happy" appearing in the video. Slider 217 and slider 219 are of equal length, and the leftmost end of slider 217 is on the same vertical line as the leftmost end of slider 219, and the rightmost end of slider 217 is on the same vertical line as the rightmost end of slider 219. These vertical lines are perpendicular to the edges of the video editing interface, running from the top to the bottom.
[0075] like Figure 1E As shown, the electronic device 100 can receive a user's click on the animation button 216B in the animation option area 216. In response to this operation, the electronic device 100 can set the animation effect of the entrance animation with the text "Happy Happy" to the animation effect of animation A corresponding to animation button 216B. Simultaneously, the slider 217 and slider 218 are no longer grayed out. In some embodiments, the electronic device 100 may store a preset initial value for the entrance animation playback duration. For example... Figure 1E As shown, in response to the user clicking the animation button 216B, the electronic device 100 can set the playback duration of the entrance animation of the text material "Happy and Joyful" to the aforementioned preset initial value. For example, the preset initial value of the entrance animation playback duration can be 0.2 seconds. The electronic device 100 can display the slider 218 at the position corresponding to 0.2 seconds in the slider bar 217 and display the entrance animation of the text material "Happy and Joyful" in the video preview screen 202A. The entrance animation can be the text material "Happy and Joyful" displayed with the effect of animation A for 0.2 seconds. It is not limited to 0.2 seconds. The preset initial value of the entrance animation playback duration stored in the electronic device 100 can also be other values, such as 0 seconds, 0.1 seconds, 0.3 seconds, etc. The present application embodiment does not limit the size of the preset initial value of the entrance animation playback duration stored in the electronic device 100. Not limited to Animation A, the entrance animation effect for the text material "Happy and Joyful" can also be other animation effects. The method for setting other animation effects for the entrance animation on electronic device 100 can refer to the method for setting Animation A described above, and will not be repeated here. For example... Figure 1F As shown, the electronic device 100 can receive a user's operation of pressing the slider 218 and sliding it to the right along the slider bar 217. The electronic device 100 can highlight the trajectory of the slider 218 along the slider bar 217 after it slides from the leftmost end to the right. The style of the sliding trajectory displayed on the slider bar 217 after the slider 218 slides is only an example and not a limitation of the embodiments of this application. The electronic device 100 can calculate the percentage of the length from the leftmost end of the slider bar 217 to the slider 218 relative to the total length of the slider bar 217. For example, Figure 1G The length from the leftmost end of the slider 217 to the slider 218 represents 40% of the total length of the slider 217. The electronic device 100 can multiply this percentage by the total duration of the text material corresponding to the total length of the slider 217 displayed in the video (taking 1 second as an example) to determine when the slider 218 moves to... Figure 1GThe playback duration of the entrance animation at the indicated position should be set to 0.4 seconds. In some embodiments, the total duration corresponding to the total length of the slider 217 can be changed. The method for changing the total duration corresponding to the total length of the slider 217 can be referred to the description of the subsequent embodiments, which will not be elaborated here. The above-mentioned total duration may include the duration of the text entrance animation, the duration of the exit animation, and the duration of normal display (i.e., no animation display). Figure 1G The entrance and exit animations represented by sliders 217 and 218, and sliders 219 and 220 shown can be referenced. Figure 1H The example diagram is shown below. Figure 1H As shown, the total duration is 1 second, with the entrance animation taking up 0.4 seconds. Since no exit animation is set, this text will not have any animation effects for the remaining 0.6 seconds (i.e., the normal display duration).
[0076] The time length corresponding to the position of the slider on the slider bar is only an example and is not intended to limit the embodiments of this application.
[0077] 3. Add text entrance animation:
[0078] like Figure 1I As shown, the electronic device 100 can receive an operation that selects the tab corresponding to the entrance animation option in the tab bar 215. In response to this operation, the editing window 211 can display the animation option area 221. The animation option area 221 is used to set the animation effects of the entrance animation. The animation option area 221 may include one or more animation buttons corresponding to the animation effect options. Figure 1I The animation options area 221 shown includes a no animation effect button 221A, which is used to turn off the animation effect of the entrance animation. Figure 1I The button 221A without animation effect is selected, indicating that the electronic device 100 has not set an entrance animation for the text "Happy".
[0079] like Figure 1J As shown, the electronic device 100 can receive a user's click on the animation button 221B in the animation option area 221. In response to this operation, the electronic device 100 can set the animation effect of the "Happy" text entrance animation to the animation effect of animation B corresponding to animation button 221B. Simultaneously, the slider 219 and slider 220 are no longer grayed out. In some embodiments, the electronic device 100 may store a preset initial value for the entrance animation playback duration. For example... Figure 1JAs shown, in response to the user clicking the animation button 221B, the electronic device 100 can set the playback duration of the entrance animation of the text material "Happy and Joyful" to the aforementioned preset initial value. For example, the preset initial value of the entrance animation playback duration can be 0.2 seconds. The electronic device 100 can display slider 220 at the position corresponding to 0.2 seconds in slider 219 and display the entrance animation of the text material "Happy and Joyful" in the video preview screen 202A. The entrance animation can be the text material "Happy and Joyful" displayed with the effect of animation B for 0.2 seconds. Not limited to 0.2 seconds, the preset initial value of the entrance animation playback duration stored in the electronic device 100 can also be other values, such as 0 seconds, 0.1 seconds, 0.3 seconds, etc. This application embodiment does not limit the preset initial value of the entrance animation playback duration stored in the electronic device 100. Not limited to animation B, the animation effect of the entrance animation of the text material "Happy and Joyful" can also be other animation effects. The method of setting other animation effects for the entrance animation of the electronic device 100 can refer to the method of setting animation B described above, and will not be repeated here.
[0080] like Figure 1K As shown, the electronic device 100 can receive the user's operation of pressing the slider 220 and sliding it to the left along the slider bar 219. The electronic device 100 can highlight the trajectory of the slider 220 along the slider bar 219 after it slides from the rightmost end to the left. The style of the sliding trajectory displayed on the slider bar 219 after the slider 220 slides is only an example and not a limitation of the embodiments of this application. The electronic device 100 can receive the user's operation of sliding the slider 220 to the left as shown. Figure 1L As shown, sliders 218 and 220 are on the same vertical line. The length of the path slid by slider 218 on slider 217 plus the length of the path slid by slider 220 on slider 219 equals the total length of slider 217 (or slider 219). The length from the leftmost end of slider 217 to slider 218 represents 40% of the total length of slider 217. Therefore, the length from the rightmost end of slider 219 to slider 220 represents 60% of the total length of slider 219. Again, taking a total duration of 1 second as an example... Figure 1M As shown, the entrance animation lasts for 0.4 seconds, while the exit animation lasts for 0.6 seconds. Since the combined duration of the entrance and exit animations equals the total duration, there is no time in the video where the text "Happy and cheerful" is displayed without animation (i.e., normally). Electronic device 100 receives a message from the user moving slider 220 to... Figure 1L After the indicated position, a "Happy" preview animation can be simultaneously displayed in the text preview box 202B. This preview animation may include a 0.6-second entrance animation. Optionally, the electronic device 100 receives a notification from the user that the slider 220 has been moved to... Figure 1L After the indicated position, an entrance animation of 0.4 seconds can be displayed first, followed by an exit animation of 0.6 seconds.
[0081] When sliders 218 and 220 are on the same vertical line, the electronic device can also receive user input to move slider 218 to the right or slider 220 to the left. For example... Figure 1N As shown, the electronic device 100 can receive the user's operation to continue moving the slider 220 to the left, until the slider 220 is moved to the left as shown. Figure 10 The position shown. In response to this operation, the electronic device 100 will synchronously move the slider 218 on the slider bar 217 so that the slider 218 is always on the same vertical line as the slider 220. Figure 1P for Figure 10 The playback duration of the entrance and exit animations corresponding to the two sliders is specified. The entrance animation is 0.2 seconds, and the exit animation is 0.8 seconds. The electronic device 100 will respond to the user moving the slider 220 to... Figure 10 The operation at the indicated position displays a preview animation of the text in the text preview box 202B on the display screen. This preview animation may include an entrance animation with a 0.8-second animation B effect. Optionally, the preview animation may also be an entrance animation with a 0.2-second animation A effect and an exit animation with a 0.8-second animation B effect.
[0082] It should be noted that sliders 217 and 219 are interconnected, used to adjust the playback time of the entrance animation and exit animation within the total duration, respectively. The total length of both sliders 217 and 219 indicates the total duration of the text "Happy and Joyful" appearing in the video. The sum of the entrance animation duration corresponding to the position of slider 218 on slider 217 and the exit animation duration corresponding to the position of slider 220 on slider 219 should not exceed the total duration. Therefore, when sliders 217 and 219 are of equal length, the sum of the distances of slider 218 from the starting point of slider 217 and the distances of slider 220 from the starting point of slider 219 cannot exceed the total length of slider 217 (or slider 219). Therefore, when sliders 218 and 220 are on the same vertical line, as slider 220 continues to slide to the left in response to user input, slider 218 needs to slide the same distance to the left as slider 220 to ensure that the duration of the entrance and exit animations does not exceed the total duration. Correspondingly, the duration of the exit animation increases in response to the user's leftward movement of slider 220, while the duration of the entrance animation decreases as the electronic device 100 moves slider 218 to the left. At this point, the sum of the durations of the entrance and exit animations equals the total duration. When sliders 218 and 220 are on the same vertical line, when the electronic device 100 receives a rightward movement of slider 218 from the user, the method for moving slider 220 can refer to the method for moving slider 218 when the electronic device receives a leftward movement of slider 220 from the user in the above embodiment, and will not be repeated here.
[0083] like Figure 1Q As shown, when sliders 218 and 220 are on the same vertical line, the electronic device 100 receives a user's instruction to move slider 220 to the right. Figure 1R The operation at the indicated position. At this time, slider 218 no longer follows slider 220. Figure 1S As shown Figure 1Q The playback duration of the entrance and exit animations corresponding to the middle slider. For example... Figure 1S As shown, the playback duration of the entrance animation remains 0.2 seconds. Due to the movement of slider 220 to the right, the playback duration of the exit animation becomes 0.3 seconds. The method by which the electronic device 100 determines the playback duration of the entrance and exit animations can be found in the description of the foregoing embodiments, and will not be repeated here. In response to the user's operation of moving slider 220, the electronic device 100 displays a preview animation effect of the text in the text preview box 202B, wherein the preview animation effect may include a 0.3-second exit animation with animation effect B. Optionally, the preview animation effect may also be a 0.2-second entrance animation with animation effect A, a 0.5-second no animation (the text remains still in the video), and a 0.3-second exit animation with animation effect B.
[0084] When the electronic device 100 responds to a user operation by setting an exit animation first and then setting an entrance animation, the user interface can refer to the above embodiment, which sets the entrance animation first and then the exit animation. This will not be repeated here.
[0085] Each time the electronic device 100 receives a user's operation on the slider on the slider 217 and / or the slider on the slider 219, it can display the animation effect of the text material in the video preview screen 202A according to the playback duration of the entrance animation corresponding to the slider position in the slider 217 and / or the playback duration of the exit animation corresponding to the slider position in the slider 219.
[0086] Not limited to adding an entrance animation first and then an exit animation, in some embodiments, the electronic device 100 may also respond to a user operation by first adding an exit animation for text material and then adding an entrance animation for text material. The method by which the electronic device 100 responds to a user operation by first adding an entrance animation for text material and then adding an entrance animation for text material can refer to the method in the above embodiments that first adds an entrance animation and then adds an exit animation, and will not be repeated here.
[0087] The method is not limited to first adjusting slider 218 in slider 217 corresponding to the entrance animation playback duration and then adjusting slider 220 in slider 219 corresponding to the exit animation playback duration. In some embodiments, the electronic device 100 may also respond to user operation by first adjusting slider 220 in slider 219 corresponding to the exit animation playback duration and then adjusting slider 218 in slider 217. The method by which the electronic device 100 responds to user operation by first adjusting the exit animation playback duration and then adjusting the entrance animation playback duration can refer to the method in the foregoing embodiments that first adjusts the entrance animation playback duration and then adjusts the exit animation playback duration. The method by which the electronic device adjusts the position of slider 220 corresponding to the exit animation playback duration based on the entrance animation playback duration can refer to the description in the above embodiments of adjusting slider 218 corresponding to the entrance animation playback duration based on the exit animation playback duration, and will not be repeated here.
[0088] The electronic device 100 can display two sliders, used to set the entrance and exit animation durations respectively. When no entrance or exit animation is set, the corresponding sliders are grayed out. When the user adds an entrance or exit animation, the corresponding sliders light up, prompting the user to adjust the animation and reducing the learning curve. The entry animation slider starts at the leftmost end and ends at the rightmost end; the exit animation slider starts at the rightmost end and ends at the leftmost end. When the user drags a slider on one side towards its endpoint, making that slider's distance from the starting point greater than the distance of the slider on the other side from its endpoint, the slider on the other side will follow the user's drag. This prevents the user from altering the total animation duration while manipulating the sliders.
[0089] 4. Adjust the media track:
[0090] like Figure 2A As shown, the video editing interface 201 displays a save control 222. The save control 222 is used to save the animation effects set by the user for the text "Happy". The electronic device 100 can receive the user's click on the save control 222. In response to this operation, the electronic device 100 will save the aforementioned animation effects set for the text "Happy" (i.e., the 0.2-second entrance animation of animation A, the 0.5-second no animation, and the 0.3-second exit animation of animation B mentioned above). Furthermore, the electronic device 100 will close the editing window 211 in the video editing interface 201 and display as shown... Figure 2B The user interface shown.
[0091] like Figure 2B As shown, the "Add Text" button 204A and the "Add Title" button 204B in toolbar 204 are grayed out, while toolbar 204 can display more text than... Figure 1A More buttons are available for quickly editing the text "Happy Happy" added to the video. These include an edit button, a split button, a template button, a delete button, an animation button, a fancy text button, and a style button. The edit button allows for re-editing a series of text elements; the split button allows for splitting the text animation; the template button allows for setting template animations for the text; the delete button deletes the text added to the video; the animation button sets animation effects for the text; the fancy text button sets artistic text; and the style button sets text styles.
[0092] The track area will display the material track 203C. In the material track 203C, a text track bar 203D corresponding to the text newly added to the video by the electronic device in response to a user operation can be displayed. In the text track bar 203D, the text "Happy" added by the user to the video can be displayed, as well as a track A representing the playing duration of the entrance animation and a track B representing the playing duration of the exit animation. The length of the text track bar 203D corresponds to the total duration of the text material "Happy" appearing in the video. As Figure 2C shown is an example diagram of the corresponding relationship between track A, track B in the text track bar 203D and the playing durations of the entrance animation and the exit animation. As Figure 2C shown, the ratio of the length of track A to the maximum length of the track is equal to the ratio of the playing duration of the entrance animation to the total duration of the text material in the video, and the ratio of the length of track B to the maximum length of the track is equal to the ratio of the playing duration of the exit animation to the total duration of the text material in the video. The maximum length of the above track corresponds to the total duration of the text material in the video. Among them, track A and track B can be located on the same straight line. The electronic device 100 can adjust the track lengths corresponding to the entrance animation and the exit animation in the text track bar 203D according to the playing duration of the entrance animation, the playing duration of the exit animation of the text material in the video, and the total duration of the text material in the video.
[0093] As Figure 2D shown, the electronic device 100 can receive an operation where the user clicks on the right end of the text track bar 203D and drags it to the right. In response to this operation, the length of the text track bar 203D is stretched to the Figure 2E size shown. Correspondingly, the total duration of the text material displayed in the video will also increase. Figure 2F shows the text track bar 203D changing from Figure 2D to Figure 2E and the change in the animation duration. During the process of Figures 2D to 2E the text track bar 203D being stretched, the playing durations of the entrance animation and the exit animation of the text remain unchanged, the time without animation in the middle increases as the text track bar 203D is stretched, and the total duration of the text material in the video increases. Exemplarily, the length of the text track bar 203D in Figure 2E is 1.5 times its length in Figure 2D , then the total duration of the text displayed in the video changes from 1 second ( Figure 2D ) to 1.5 seconds ( Figure 2E ). The playing durations of the entrance animation and the exit animation both remain unchanged, and the length of the normal playing time changes from 0.5 seconds to 1 second. That is to say, the electronic device 100 can receive the operation of the user stretching the text track bar 203D and increase the total duration of the text displayed in the video.
[0094] As Figure 2G As shown, the electronic device 100 can receive an operation from a user clicking the right end of the text track bar 203D and dragging it to the left. In response to this operation, the length of the text track bar 203D is compressed to... Figure 2H The size shown. The total duration of the text material in the video will decrease as the user drags the right end of the text track bar 203D to the left, until the duration of the entrance animation and the duration of the exit animation equal the total duration mentioned above. At this point, there is no time without animation (i.e., normal display time) within the total duration of the text material displayed in the video. The sum of the trajectory corresponding to the entrance animation and the trajectory corresponding to the exit animation in the text track bar 203D equals the maximum length of the trajectory. Figure 2I The text track bar 203D is shown. Figure 2G Change to Figure 2H The duration of the animation changes over time. Figures 2G to 2H During the compression of the text track bar 203D, the no-animation duration (i.e., normal playback time) between the entrance and exit animations is compressed and reduced until there is no no-animation time. During this process, the playback time of the entrance and exit animations remains unchanged, and the total duration of the text appearing in the video is the sum of the entrance animation duration (0.2 seconds) and the exit animation duration (0.3 seconds). Correspondingly, the electronic device 100 can change the length of the trajectory corresponding to the entrance animation and the trajectory corresponding to the exit animation in the text track bar 203D, ensuring that the sum of the lengths of these trajectories equals the maximum length of the trajectory.
[0095] like Figure 2H As shown, the electronic device 100 can receive an operation from the user to continue clicking the right end of the text track bar 203D and dragging it to the left. In response to this operation, the length of the text track bar 203D is compressed to... Figure 2J The size shown. Because... Figure 2H If the text track bar 203D shown no longer has a compressible non-animation playback duration (i.e., normal playback duration), then continue dragging the text track bar 203D to the left to compress it, which will proportionally reduce the duration of the entrance and exit animations. Figure 2K The text track bar 203D is shown. Figure 2H Change to Figure 2J The duration of the animation changes over time. Figures 2H to 2J During the further compression of the 203D text track bar, the playback duration of the entrance animation and the exit animation were reduced proportionally. Figure 2J The length of the Chinese character track bar 203D can be Figure 2H If the length of the Chinese text track bar is half that of 203D, then the text track bar will be adjusted to... Figure 2J After the size shown, the playback duration of the entrance animation is reduced from 0.2 seconds. Figure 2H The change is 0.1 seconds. Figure 2J The duration of the entrance animation has been reduced from 0.3 seconds. Figure 2H The change is 0.15 seconds. Figure 2J The total duration of the text "happy and carefree" in the video is 0.5 seconds. Figure 2H ) becomes 0.25 seconds ( Figure 2J Correspondingly, the electronic device 100 can proportionally reduce the length of the trajectory corresponding to the entrance animation and the length of the trajectory corresponding to the exit animation in the text track bar 203D.
[0096] In some embodiments, when the electronic device 100 responds to a user operation and sets a looping animation for the text "happy and carefree", the looping animation can be displayed during the aforementioned period of no animation. The length of the time without animation (i.e., normal display) is the length of the looping animation display.
[0097] Users can stretch the text track after adding entrance and exit animations. This increases the total duration of the text in the video. Correspondingly, the duration of the text without animation (i.e., normal display time) will increase with the total duration. Users can also compress the track to reduce the total duration of the text in the video; consequently, the time without animation will decrease until there is no time without animation for the text. Even after the text has no time without animation (i.e., normal display time), users can continue to compress the text track, which will proportionally reduce the duration of the entrance and exit animations. By manipulating the track, users can quickly change the duration of text appearing in the video, as well as the duration of entrance and exit animations, improving the user experience.
[0098] The following describes another scenario where an electronic device, according to an embodiment of this application, edits entrance and exit animations in a video.
[0099] like Figure 3A As shown, the electronic device 101 can display a video editing interface 300. The video editing interface 300 may include a preview area 301, a track area 302, an entrance animation editing area 303, an exit animation editing area 304, and a loop animation editing area 305. For a description of the preview area 301 and the track area 302, please refer to the description of the preview area and track area in the electronic device 100; it will not be repeated here. The track area may include a text track bar 302A; for a description of the text track bar, please refer to the description in the foregoing embodiments; it will not be repeated here.
[0100] The preview area 301 can display a video preview screen, which includes a text preview box 301A. The text preview box 301A can be displayed by the electronic device 101 in response to the user's operation of adding text to the video. The method by which the electronic device 101 adds text to the video in response to the user's operation can refer to the method of adding text in the electronic device 100 in the previous embodiment, and will not be repeated here.
[0101] The entrance animation editing area 303 is used to edit the entrance animation of text added to the video. The entrance animation editing area 303 may include one or more animation buttons corresponding to animation effect options, as well as a slider 306 and a slider 307 corresponding to the entrance animation. For a description of the animation buttons in the entrance animation editing area 303, please refer to the description of the animation buttons in the animation option area 216 in the previous embodiment. For a description of the slider 306, please refer to the description of the slider 217 in the previous embodiment; for a description of the slider 307, please refer to the description of the slider 218 in the previous embodiment. These descriptions will not be repeated here.
[0102] The entrance animation editing area 304 is used to edit the entrance animation of text added to the video. The entrance animation editing area 304 may include animation buttons corresponding to one or more animation effect options, as well as sliders 308 and 309 corresponding to the entrance animation. For a description of the animation buttons in the entrance animation editing area 304, please refer to the description of the animation buttons in the animation option area 221 in the previous embodiment. For a description of slider 308, please refer to the description of slider 219 in the previous embodiment; for a description of slider 309, please refer to the description of slider 220 in the previous embodiment. These details will not be repeated here.
[0103] The loop animation editing area 305 is used to edit the looping animation of text added to the video. The loop animation editing area 305 may include animation buttons corresponding to one or more animation effect options.
[0104] like Figure 3A As shown, in the initial state, the slider 306 for the entrance animation and the slider 308 for the exit animation are grayed out. The electronic device 101 can receive a user's click on the animation button 310 corresponding to animation A in the entrance animation editing area 303. In response to this operation, the electronic device 101 adds the animation effect of animation A to the text. For example... Figure 3B As shown, the electronic device 101 will cancel the grayed-out effect of the slider 306. The electronic device 101 will display the slider 307 in the slider 306 at the position corresponding to the preset initial value of the entrance animation playback duration. For example, the preset initial value of the entrance animation playback duration can be 0.2 seconds. At the same time, in response to the user clicking the animation button 310, the electronic device 101 will also display the text material "Happy Happy" in the entrance animation in the video preview screen.
[0105] Electronic device 101 can receive an operation from a user who clicks slider 307 and slides slider 307 to the right along slider bar 306. In response to this operation, the electronic device will adjust the playback duration of the text entrance animation. For example... Figure 3C As shown, the electronic device 101 displays the trajectory corresponding to the entrance animation in the text track bar 302A. The proportion of the trajectory length corresponding to the entrance animation to the maximum trajectory length is equal to the proportion of the entrance animation duration to the total duration of the text material displayed in the video, and also equal to the proportion of the distance between the slider 307 and the starting point of the slider bar 306 to the total length of the slider bar 306. In response to the user's operation of adjusting the slider 307, the electronic device 101 can display the entrance animation of the text material in the video preview screen.
[0106] like Figure 3D As shown, the electronic device 101 can receive an operation from the user clicking the animation button 311 corresponding to animation B in the entrance animation editing area 304. In response to this operation, the electronic device 101 will no longer gray out the slider 308 corresponding to the entrance animation. The electronic device 101 will display the slider 309 in the slider 308 at the position corresponding to the preset initial value of the entrance animation playback duration. For example, the preset initial value of the entrance animation playback duration can be 0.2 seconds. At the same time, in response to the user clicking the animation button 311, the electronic device 101 will also display the text material "Happy Happy" in the entrance animation in the video preview screen.
[0107] like Figure 3E The electronic device 101 shown can receive a user pressing the slider 309 and sliding it to the left along the slider 308 until it slides to... Figure 3F The operation at the indicated location. For example... Figure 3F As shown, in response to the user's action of sliding slider 309 to the left, electronic device 101 will display the trajectory corresponding to the entrance animation in the text track bar 302A. The proportion of the trajectory length corresponding to the entrance animation to the maximum trajectory length is equal to the proportion of the entrance animation duration to the total display duration of the text material in the video, and also equal to the proportion of the distance of slider 309 from the starting point of slider bar 308 to the total length of slider bar 308. In response to the user's action of adjusting slider 307, electronic device 101 can display the entrance animation of the text material in the video preview screen.
[0108] As can be seen, in electronic device 101, interface elements such as text tracks, animation buttons and sliders for editing entrance animations, and animation buttons and sliders for editing exit animations can be displayed in the same user interface. This allows users to adjust the track bar of the material while simultaneously adjusting the sliders corresponding to the entrance and exit animations, making material editing more convenient and efficient.
[0109] It can be seen that, in such Figure 3A In the video editing interface shown, the area used for editing text materials, entrance animations, and other content occupies the entire height of the electronic device's screen. The electronic device can simultaneously display interface elements such as animation buttons and sliders for editing entrance animations, and animation buttons and sliders for editing exit animations. This allows users to directly edit entrance and exit animations without clicking other controls. In such cases... Figure 1E In the video editing interface shown, the editing window 211, used for editing text materials, entrance animations, and other content, is lower than the height of the electronic device's screen. The electronic device can display interface elements such as animation buttons and sliders for editing entrance animations under the "Entrance" tab, and animation buttons and sliders for editing exit animations under the "Exit" tab. This way, the user needs to click on the tab first, and then edit the animation corresponding to the tab.
[0110] The following describes a slider sliding method provided by this application in conjunction with the above embodiments, such as... Figure 4A As shown, the slider adjustment method may include, but is not limited to, the following steps:
[0111] S401, The electronic device receives an operation from the user to slide the slider in the first slider to position A. The distance between position A and the starting point of the first slider is a first distance, and the distance between the slider in the second slider and the ending point of the second slider is less than the first distance.
[0112] The first slider can be slider 217 for adjusting the playback duration of the entrance animation in the above embodiment, and the second slider can be slider 219 for adjusting the playback duration of the exit animation in the above embodiment. The slider in the first slider is slider 218, and the slider in the second slider is slider 220. For a description of sliders 217, 218, 219, and 220, please refer to the description in the foregoing embodiments; they will not be elaborated upon here.
[0113] like Figure 4B As shown, before the electronic device receives the user's operation to slide the slider in the first slider to position A, the distance between the slider in the second slider and the end point of the second slider is L1.
[0114] like Figure 4C As shown in the first slider, the electronic device can receive and respond to the user's operation of sliding the slider in the first slider to position A. The distance from position A to the starting point of the first slider is L2, which can also be called the first distance. At this time, the position of the slider in the second slider is... Figure 4B The position indicated by the slider in the second slider bar is such that the distance L1 between the slider position and the end point of the second slider bar is less than the first distance L2.
[0115] S402, The electronic device slides the slider in the second slider to position B, and the distance between position B and the end point of the second slider is equal to the first distance.
[0116] like Figure 4C As shown in the second slider, in response to the user's operation of sliding the slider in the first slider to position A, the electronic device can slide the slider in the second slider to position B, following the slider in the first slider. The distance of position B from the end point of the second slider is equal to the first distance L2.
[0117] The slider 217 for the entrance animation and the slider 219 for the exit animation correspond to the total duration of the video footage in the video. When the sum of the duration corresponding to the position of one slider and the duration corresponding to the position of the other slider exceeds the total duration, the electronic device can control the slider to slide so that the sum of the durations corresponding to the two sliders does not exceed the total duration of the video footage in the video.
[0118] The following describes a video editing method provided by this application in conjunction with the above embodiments, such as... Figure 5 As shown, this video editing method may include, but is not limited to, the following steps:
[0119] S501. Display the video editing interface, which is used to edit the first video. The video editing interface includes controls for adding materials.
[0120] refer to Figure 1A In the embodiment shown, the electronic device 100 can display as follows: Figure 1A The video editing interface 201 is shown. This interface may display a media addition control. This control is used to add media to the first video. The first media may include one or more clips, text, or stickers.
[0121] S502, Receive the first user operation applied to the material addition control, and display the first material and animation setting control in the video editing interface.
[0122] refer to Figures 1A-1B In the illustrated embodiment, taking text as the first material as an example, the material addition control can be an add text button 204A for adding text material. The electronic device 100 can receive a first user operation performed on the add text button 204A. The first user operation can be a user operation of clicking the add text button 204A, which will then display the text material and animation settings controls (i.e., the animation tab in the tab bar 213) in the video editing interface.
[0123] S503, Receive a second user operation applied to the animation setting control, Display an entrance animation addition control and an exit animation addition control in the video editing interface, The entrance animation addition control is selected, The video editing interface displays one or more entrance animation options, The one or more entrance animation options include the option of the first entrance animation.
[0124] refer to Figure 1C In the illustrated embodiment, the electronic device 100 can receive a second user operation performed by a user on the animation settings control (i.e., the animation tab in the tab bar 213), which may be an operation of clicking the animation tab. Furthermore, the electronic device 100 can display an entrance animation addition control and an exit animation addition control. The entrance animation addition control may be as follows: Figure 1D The "Entrance" tab corresponds to the "Entrance Animation" option in tab bar 215. The exit animation control can be added as follows: Figure 1D The "Entry" tab corresponds to the entry animation option in tab bar 215 shown.
[0125] When the "Entrance" tab corresponding to the entrance animation option is selected, buttons for one or more entrance animation options can be displayed in the video editing interface 201. (See reference...) Figure 1D The animation options area 216 is shown. Among the options for one or more entrance animations, there is an option for the first entrance animation.
[0126] In some embodiments, the electronic device may also directly display one or more entrance animation options in response to a second user action performed on the animation settings controls. (See reference) Figure 3A The illustrated embodiment shows that the electronic device 101 can directly display the buttons corresponding to the entrance animation options without needing to receive user input of clicking the "Entrance" tab (i.e., adding controls for the entrance animation).
[0127] S504. Receive a third user operation that applies to the options of the first entrance animation, and display a first slider. The first slider is used to adjust the entrance playback duration of the first entrance animation in the first video.
[0128] by Figure 1E In the illustrated embodiment, the option for the first entrance animation can be option A. The electronic device 100 can receive a third user operation applied to option A. This third user operation can be the user clicking the animation button 216B corresponding to option A. The electronic device 100 can display a first slider, such as... Figure 1E As shown, the electronic device 100 can display an un-grayed slider 217. The slider 217 is used to adjust the entrance playback duration of the first entrance animation (i.e., animation A) in the first video.
[0129] In some embodiments, the electronic device 100 may also receive a sixth user operation to slide the slider in the first slider bar to a first position, and display the first entry playback duration corresponding to the first position. (See reference) Figures 1F-1G In the illustrated embodiment, the electronic device can receive the user sliding slider 218 to... Figure 1G The operation at the indicated position (i.e., the first position) allows the electronic device 100 to display the first entry playback duration (i.e., the duration corresponding to the position of the slider 218) Figure 1G The slider 217 shown on the right side displays 0.4s. (Reference) Figures 3A-3C In the illustrated embodiment, the electronic device can receive the user sliding slider 307 to... Figure 3C The operation at the indicated position (i.e., the first position) will then display the entry playback duration corresponding to the first position.
[0130] In some embodiments, after adjusting the entrance playback duration of the first entrance animation, the electronic device 100 can display the first entrance animation in the video editing interface through the adjusted entrance playback duration, that is, display the entrance animation of the first material with the animation effect of animation A.
[0131] S505: Receive the fifth user operation of selecting the entrance animation addition control, and display one or more entrance animation options in the video editing interface, including the option of the first entrance animation among the one or more entrance animation options.
[0132] by Figure 1I In the illustrated embodiment, the exit animation addition control can be the "Exit" tab corresponding to the exit animation options in the tab bar 215. The electronic device 100 can receive a fifth user operation that selects the "Exit" tab. This fifth user operation can be a user operation that clicks the "Exit" tab. Furthermore, the electronic device 100 can display buttons corresponding to one or more exit animation options. (See reference...) Figure 1I The animation options section 221. Among the options for one or more entrance animations, there may be options for the first entrance animation.
[0133] In some embodiments, the electronic device can directly display buttons corresponding to one or more entrance animation options in the video editing interface, without needing to receive user input on clicking the "Entrance" tab (i.e., the entrance animation addition control). (See reference...) Figure 3A The example shown.
[0134] S506, Receive a fourth user operation that applies to the options of the first entrance animation, and display a second slider, which is used to adjust the appearance playback duration of the first entrance animation in the first video.
[0135] by Figure 1JIn the illustrated embodiment, the first entrance animation can be an option for animation B. The electronic device 100 can receive an operation on the animation button 221B corresponding to the animation option B. Furthermore, the electronic device 100 can display an un-grayed slider 219. The slider 219 is used to adjust the appearance duration of the first entrance animation (i.e., animation B) in the first video.
[0136] In some embodiments, the electronic device 100 may also receive and respond to a seventh user operation that slides a slider in a second slider to a second position, displaying the first playback duration corresponding to the second position. (See reference) Figure 1K-Figure 1L In the illustrated embodiment, the electronic device 100 can receive the user sliding the slider 220 to... Figure 1L The operation at the indicated position (i.e., the second position) allows the electronic device 100 to display the first playback duration corresponding to the position of the slider 220 (i.e., the second position). Figure 1L The slider 219 shown on the right side displays 0.6s. (Reference) Figures 3D-3F In the illustrated embodiment, the electronic device can receive the user sliding slider 309 to... Figure 3F The operation at the indicated position (i.e., the first position) will then display the playback duration corresponding to the second position.
[0137] In some embodiments, when the sum of the first entrance playback duration and the first exit playback duration exceeds the total duration, the electronic device 100 can adjust the slider in the first slider bar to a third position, displaying the second entrance playback duration corresponding to the third position. The sum of the second entrance playback duration and the first exit playback duration equals the total duration. (Reference) Figure 1N In the illustrated embodiment, when the electronic device 100 receives an operation from the user to slide the slider 220 to the left, the sum of the first entry playback duration and the first exit playback duration will exceed the total duration. Therefore, the electronic device 100 can slide the slider 218 following the slider 220, as shown in the reference. Figure 10 The embodiment shown. The third position is on the same vertical line as the position of slider 220, at which time the second entry playback duration (i.e. Figure 10 The duration corresponding to the position of slider 218 is 0.2s) and the first appearance playback duration (i.e. Figure 10 The sum of the duration (0.8s) corresponding to the position of the middle slider 220 equals the total duration.
[0138] In some embodiments, the electronic device 100 can also receive a sixth user operation to slide the slider in the first slider bar to a first position, at which point the playback duration of the entrance animation is the first entrance playback duration. Then, the electronic device 100 can receive a seventh user operation to slide the slider in the second slider bar to a second position. When the sum of the first entrance playback duration and the first exit playback duration corresponding to the second position exceeds the total duration, the electronic device 100 can also adjust the slider in the second slider bar from the second position to a fourth position. The sum of the second exit playback duration corresponding to the fourth position and the first entrance playback duration corresponding to the first position equals the total duration. That is, when the electronic device 100 receives a user operation on the slider bar 219, causing the sum of the entrance playback duration and the exit playback duration to exceed the total duration, the electronic device 100 can, without changing the position of the slider 218, slide the slider on the slider bar 219 back to the fourth position, which is on the same vertical line as the position of the slider 218 in the slider bar 217. In this way, the playback duration of the entrance animation and the playback duration of the exit animation also do not exceed the total duration of the first material in the video.
[0139] In some embodiments, the electronic device 100 can receive an operation to slide the slider in the first slider bar to a first position, displaying the first entry playback duration corresponding to the first position; then, the electronic device 100 can receive an eighth user operation to slide the slider in the second slider bar towards the end position of the second slider bar. When the slider in the second slider bar follows the eighth user operation and slides to a fourth position, it stops sliding and displays the second exit playback duration corresponding to the fourth position. The sum of the second exit playback duration and the first entry playback duration equals the total duration. The fourth position can be a position in the second slider bar that is on the same vertical line as the position of the slider on the first slider bar. When the slider in the second slider bar slides to the aforementioned fourth position, it cannot continue to slide towards the end position. This ensures that the playback duration of the entry animation and the playback duration of the exit animation do not exceed the total duration of the first material in the video.
[0140] In some embodiments, the electronic device 100 may receive a ninth user operation to slide a slider in a second slider bar from a second position to a fifth position, wherein the third entrance playback duration corresponding to the fifth position is less than the first entrance playback duration corresponding to the second position; in response to the ninth user operation, the electronic device 100 may display the second entrance playback duration and the third exit playback duration. (Reference) Figure 1Q-Figure 1R The embodiment shown, Figure 1Q The position of the middle slider 220 can be referred to as the second position. Figure 1RThe position of slider 220 can be referred to as the fifth position. When the electronic device 100 receives an operation to slide slider 220 from the second position to the fifth position, since the sum of the third exit playback duration and the second entrance playback duration corresponding to the fifth position does not exceed the total duration, slider 218 will not slide with slider 220. The electronic device 100 can display the second entrance playback duration (0.2s) and the third exit playback duration (0.3s).
[0141] In some embodiments, the starting position of the second slider is on the same side as the ending position of the first slider, and the ending position of the second slider is on the same side as the starting position of the first slider. Referring to the description of sliders 217 and 219 in the foregoing embodiments, further details will not be repeated here.
[0142] In some embodiments, the starting position of the second slider and the ending position of the first slider are on the same vertical line, and the ending position of the second slider and the starting position of the first slider are on the same vertical line. Referring to the description of sliders 217 and 219 in the foregoing embodiments, they will not be repeated here. The third position of the first slider and the second position of the second slider can be on the same vertical line. That is, the sum of the entry playback duration corresponding to the third position and the exit playback duration corresponding to the second position is equal to the total duration of the first material in the video. The starting position of the first slider (or the second slider) can also be called the starting point of the first slider (or the second slider), and the ending position of the first slider (or the second slider) can also be called the ending point of the first slider (or the second slider).
[0143] In some embodiments, after the electronic device 100 adjusts the entrance playback duration of the first entrance animation and the exit playback duration of the first exit animation, it can also display a track bar for the first video and a track bar for the first clip, where the length of the track bar for the first clip represents the total duration of the first clip. The electronic device 100 can receive a tenth user operation from the user to adjust the track bar for the first clip from a first length to a second length, wherein when the track bar for the first clip is at the first length, the total duration of the first clip is the first total duration, and when the track bar for the first clip is at the second length, the total duration of the first clip is the second total duration. (Reference) Figure 2B In the illustrated embodiment, the track bar in the first video may include one or more of video frame track 203A and audio track 203B. The track bar of the first material may be a text track bar 203D. Figure 2H Taking the case where the sum of the entrance animation duration and the exit animation duration equals the total animation duration as an example, the length of the text track bar 203D can be called the first length.
[0144] Electronic device 100 can receive text track bar 203D from user input. Figure 2HThe first length shown is adjusted to Figure 2J The tenth user operation of the second length is shown. At this time, the second total duration is less than the first total duration. Electronic device 100 can reduce the entrance playback duration of the first entrance animation and the exit playback duration of the first exit animation; wherein, the ratio of the reduced entrance playback duration of the first entrance animation to the second total duration is equal to the ratio of the original entrance playback duration of the first entrance animation to the first total duration, and the ratio of the reduced exit playback duration of the first exit animation to the second total duration is equal to the ratio of the original exit playback duration of the first exit animation to the first total duration (reference). Figure 2K ).
[0145] In other embodiments, when the electronic device 100 receives a tenth user operation to increase the length of the text track bar 203D, the second total duration is greater than the first total duration. The electronic device 100 may increase the normal display time of the first material (i.e., the duration without animation effects between the entrance animation and the exit animation), wherein the entrance playback duration of the first entrance animation and the exit playback duration of the first exit animation remain unchanged.
[0146] In some embodiments, the electronic device 100 may also display a first track and a second track in the track bar of the first material. The first track represents the entrance playback duration of the first entrance animation, and the second track represents the exit playback duration of the first exit animation. (Refer to...) Figure 2C The example shown.
[0147] In some embodiments, after adjusting the playback duration of the first entrance animation, the electronic device 100 can display the first entrance animation in the video editing interface using the adjusted playback duration, that is, display the entrance animation of the first material with the animation effect of animation B.
[0148] The addition of materials is not limited to text; other types of materials can also be used. This application embodiment does not limit the type of the first material added to the video. The method for editing animations of other types of materials can refer to the method for editing animations of text materials in the above embodiments, and will not be repeated here.
[0149] The following describes an exemplary electronic device 100 provided in an embodiment of this application.
[0150] Figure 6 This is a schematic diagram of the structure of the electronic device 100 provided in the embodiments of this application.
[0151] The following description uses electronic device 100 as an example to illustrate the embodiment. It should be understood that electronic device 100 may have more than Figure 6 The more or fewer components shown can be combined into two or more components, or they can have different component configurations. Figure 6 The various components shown can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.
[0152] Electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, a camera 193, a display screen 194, etc. The sensor module 180 may include a pressure sensor 180A, a touch sensor 180B, etc.
[0153] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0154] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.
[0155] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0156] The charging management module 140 is used to receive charging input from the charger. The charger can be a wireless charger or a wired charger.
[0157] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, internal memory 121, external memory, display 194, camera 193, etc.
[0158] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0159] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini LED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.
[0160] Camera 193 is used to capture still images or videos. Electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
[0161] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.
[0162] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. Thus, electronic device 100 can play or record videos in various encoding formats.
[0163] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.
[0164] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.
[0165] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (such as facial recognition, fingerprint recognition, mobile payment, etc.). The data storage area may store data created during the use of electronic device 100 (such as facial information template data, fingerprint information templates, etc.). Furthermore, internal memory 121 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
[0166] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
[0167] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.
[0168] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.
[0169] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.
[0170] The microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals.
[0171] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be disposed on display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the intensity of the touch operation based on pressure sensor 180A. Electronic device 100 can also calculate the touch position based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands.
[0172] Touch sensor 180B, also known as a "touch panel," can be located on display screen 194. The touch sensor 180B and display screen 194 together form a touchscreen, also known as a "touch screen." Touch sensor 180B is used to detect touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180B may also be located on the surface of electronic device 100, in a different position than display screen 194.
[0173] The structure of electronic device 101 can be referred to the structure of electronic device 100, and will not be described in detail here.
[0174] Figure 7 This is a software structure block diagram of the electronic device 100 according to an embodiment of this application.
[0175] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the system is divided into four layers, from top to bottom: the application layer, the application framework layer, the runtime and system libraries, and the kernel layer. The application layer may include a series of application packages.
[0176] like Figure 7As shown, the application package may include applications (also known as apps) such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS.
[0177] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0178] like Figure 7 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
[0179] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.
[0180] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.
[0181] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.
[0182] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).
[0183] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.
[0184] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog-style notifications on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.
[0185] The runtime consists of the core libraries and the virtual machine. The runtime is responsible for system scheduling and management.
[0186] The core library consists of two parts: one part is the functionalities that the programming language (e.g., Java) needs to call, and the other part is the system's core library.
[0187] The application layer and application framework layer run in a virtual machine. The virtual machine executes the programming files (e.g., .jave files) of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0188] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.
[0189] The Surface Manager is used to manage the display subsystem and provides the fusion of two-dimensional (2D) and three-dimensional (3D) layers for multiple applications.
[0190] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.
[0191] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0192] A 2D graphics engine is a graphics engine for 2D drawing.
[0193] The kernel layer is the layer between hardware and software. The kernel layer includes at least the display driver, camera driver, audio driver, sensor driver, and virtual card driver.
[0194] The software structure of electronic device 101 can be referenced from the structure of electronic device 100, and will not be described in detail here.
[0195] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
[0196] As used in the above embodiments, depending on the context, the term "when..." can be interpreted as meaning "if...", "after...", "in response to determining...", or "in response to detecting...". Similarly, depending on the context, the phrase "when determining..." or "if (the stated condition or event) is interpreted as meaning "if determining...", "in response to determining...", "when (the stated condition or event) is detected", or "in response to detecting (the stated condition or event)".
[0197] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive), etc.
[0198] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
Claims
1. A video editing method, characterized in that, include: Display a video editing interface, which is used to edit the first video and includes a material addition control; Receive a first user operation applied to the material addition control, and display the first material and animation setting control in the video editing interface; Receive a second user operation applied to the animation settings control; In response to the second user operation, one or more entrance animation options are displayed in the video editing interface, including the option of a first entrance animation. Receive a third user operation that applies to the options of the first entrance animation, and display a first slider, which is used to adjust the entrance playback duration of the first entrance animation in the first video; The video editing interface displays one or more options for entrance animations, including an option for a first entrance animation. A fourth user action is received that applies to the options of the first entrance animation, and a second slider is displayed, which is used to adjust the appearance playback duration of the first entrance animation in the first video; Receive a sixth user operation to slide the slider in the first slider to the first position, and display the first entry playback duration corresponding to the first position; Receive and respond to a seventh user operation that slides the slider in the second slider to a second position, and display the first playback duration corresponding to the second position; When the sum of the first entry playback duration and the first exit playback duration exceeds the first duration, the slider in the first slider bar is adjusted to the third position, and the second entry playback duration corresponding to the third position is displayed. The sum of the second entry playback duration and the first exit playback duration is equal to the first duration, and the first duration indicates the total playback duration of the first material in the first video.
2. The method according to claim 1, characterized in that, The option to display one or more entrance animations in the video editing interface in response to the second user operation specifically includes: In response to the second user operation, the video editing interface displays the entrance animation addition control and the exit animation addition control; When the entrance animation addition control is selected, one or more entrance animation options are displayed in the video editing interface.
3. The method according to claim 2, characterized in that, The option to display one or more entrance animations in the video editing interface specifically includes: The system receives a fifth user action that selects the entrance animation addition control, and in response to the fifth user action, displays one or more entrance animation options in the video editing interface.
4. The method according to claim 1, characterized in that, The method further includes: The system receives a ninth user operation to slide the slider in the second slider bar from the second position to the fifth position, wherein the third appearance playback duration corresponding to the fifth position is less than the first appearance playback duration corresponding to the second position. In response to the ninth user operation, the second entry playback duration and the third exit playback duration are displayed.
5. The method according to any one of claims 1-4, characterized in that, The method further includes: After adjusting the playback duration of the first entrance animation, the first entrance animation is displayed on the video editing interface with the adjusted playback duration.
6. The method according to any one of claims 1-4, characterized in that, The method further includes: After adjusting the playback duration of the first entrance animation, the first entrance animation is displayed on the video editing interface with the adjusted playback duration.
7. The method according to any one of claims 1-4, characterized in that, The starting position of the second slider is on the same side as the ending position of the first slider, and the ending position of the second slider is on the same side as the starting position of the first slider.
8. The method according to any one of claims 1-4, characterized in that, The starting position of the second slider is on the same vertical line as the ending position of the first slider, the ending position of the second slider is on the same vertical line as the starting position of the first slider, and the third position of the first slider is on the same vertical line as the second position of the second slider.
9. The method according to any one of claims 1-4, characterized in that, The method further includes: after adjusting the entrance playback duration of the first entrance animation and the exit playback duration of the first exit animation, displaying the track bar of the first video and the track bar of the first material, wherein the length of the track bar of the first material is used to represent the first duration; The system receives a tenth user operation to adjust the track bar of the first material from a first length to a second length, wherein when the track bar of the first material is the first length, the first duration is the first total duration, and when the track bar of the first material is the second length, the first duration is the second total duration. When the second total duration is greater than the first total duration, the normal display time of the first material is increased, while the entrance playback duration of the first entrance animation and the exit playback duration of the first exit animation remain unchanged. When the second total duration is less than the first total duration, the entrance playback duration of the first entrance animation and the exit playback duration of the first exit animation are reduced; wherein, the ratio of the reduced entrance playback duration of the first entrance animation to the second total duration is equal to the ratio of the original entrance playback duration of the first entrance animation to the first total duration, and the ratio of the reduced exit playback duration of the first exit animation to the second total duration is equal to the ratio of the original exit playback duration of the first exit animation to the first total duration.
10. The method according to claim 9, characterized in that, The method further includes: A first track and a second track are displayed in the track bar of the first material. The first track is used to represent the entrance playback duration of the first entrance animation, and the second track is used to represent the exit playback duration of the first exit animation.
11. The method according to any one of claims 1-4, characterized in that, The first material includes one or more of the following: clips, text, and stickers.
12. An electronic device, characterized in that, The electronic device includes: a display screen, a memory, and a processor coupled to the memory; the display screen is used to display an interface, the memory stores a computer program, and the processor executes the computer program to cause the electronic device to implement the method as described in any one of claims 1 to 11.
13. A computer-readable storage medium comprising computer instructions, characterized in that, When the computer instructions are executed on an electronic device, the electronic device causes the electronic device to perform the method as described in any one of claims 1 to 11.