Video editing method, electronic equipment and readable storage medium

By using sliding bars in the video editing interface to adjust the animation duration and track area of ​​the material display material tracks, the complex problem of video editing operations in the prior art is solved, and the user experience and operation convenience are improved.

CN119182972AActive Publication Date: 2024-12-24HONOR DEVICE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310748379.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-21
Publication Date
2024-12-24
Estimated Expiration
2043-06-21

AI Technical Summary

Technical Problem

The operation method of setting materials in existing video editing tools is complicated, difficult to understand and operate, and affects the user experience.

Method used

Provide a video editing method, which adjusts the playback time of the entry and exit animation of the material by displaying a slider in the video editing interface, simplifies user operations, and displays the material track in the track area, allowing users to adjust the total of the material in the video. Duration.

Benefits of technology

It reduces user learning costs, improves the convenience and operation experience of video editing, and allows users to easily add and set the animation effects of materials.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119182972A_ABST
    Figure CN119182972A_ABST
Patent Text Reader

Abstract

The invention provides a video editing method, electronic equipment and a readable storage medium. A user can add materials such as clips, characters and stickers in the video through the electronic equipment. And then, the user can respectively adjust the playing duration of the entering animation and the playing duration of the exiting animation of the material in the video through the two sliders. When a user controls the sliding block of one sliding strip to a certain range, the sliding block on the other sliding strip slides along with the sliding block controlled by the user. Therefore, when a user adjusts the sliding blocks, the two sliding blocks always meet a certain constraint relation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a video editing method, an electronic device and a readable storage medium. Background Art

[0002] In daily life, users often need to edit videos. For example, users can add clips, text, stickers and other materials to the video, and users can also set the animation effects when the above materials appear or disappear in the video. In this way, the content of the video will be richer and the display form of the video will be more interesting. However, the current operation method of setting materials in the video is relatively complicated, which is not conducive to user understanding and operation. Summary of the invention

[0003] The present 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 animation effect editing entry, helping users to add materials to videos without paying too much learning cost, and set the material's entry animation, exit animation and other effects, thereby improving the user experience.

[0004] In a first aspect, the present application provides a video editing method, the method comprising: displaying a video editing interface, the video editing interface being used to edit a first video, the video editing interface including a material adding control; receiving a first user operation acting on the material adding control, and displaying a first material and an animation setting control in the video editing interface; receiving a second user operation acting on the animation setting control, and in response to the second user operation, displaying one or more entry animation options in the video editing interface, the one or more entry animation options including an option for a first entry animation; receiving a third user operation acting on the option for the first entry animation, and displaying a first slider bar, the first slider bar being used to adjust the entry playback duration of the first entry 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 acting on the option for the first exit animation, and displaying a second slider bar, the second slider bar being used to adjust the exit playback duration of the first exit animation in the first video.

[0005] In combination with the first aspect, in some embodiments, in response to a second user operation, one or more options for entry animation are displayed in the video editing interface, specifically including: displaying an entry animation adding control and an exit animation adding control in the video editing interface, and when the entry animation adding control is selected, displaying one or more options for entry animation in the video editing interface.

[0006] In combination with the first aspect, in some embodiments, displaying one or more options for appearance animations in a video editing interface specifically includes: receiving a fifth user operation of selecting an appearance animation add control, and displaying one or more options for appearance animations in the video editing interface in response to the fifth user operation.

[0007] refer to Figure 1A-1L The embodiment shown. The video editing interface may be an interface for editing a first video. The video editing interface may include a material adding control for adding a first material. The first material may include one or more of a clip, text, and a sticker. The electronic device may display the first material and an animation setting control for setting an animation effect of the first material in response to a first user operation performed by the user on the material adding control. In response to a first user operation performed by the user on the animation setting control (such as Figure 1C The electronic device can display the entry animation adding control (such as Figure 1D Entrance label shown) and exit animation controls (such as Figure 1D The electronic device may receive an operation on the control for adding an entrance animation, and in response to the operation, the electronic device may display buttons corresponding to one or more options for the entrance animation. The electronic device may receive and respond to the user's operation on the button corresponding to the option of the first entrance animation, and display a first slider corresponding to the playback duration of the entrance animation that is not grayed out. Optionally, the electronic device may display the slider on the first slider to a position corresponding to the preset initial value of the playback duration of the entrance animation; the electronic device may also receive an operation on the control for adding an exit animation, and in response to the operation, the electronic device may display buttons corresponding to one or more options for the exit animation. The electronic device may receive and respond to the user's operation on the button corresponding to the option of the first exit animation, and display a second slider corresponding to the playback duration of the exit animation that is not grayed out. Optionally, the electronic device may display the slider on the second slider to a position corresponding to the preset initial value of the playback duration of the exit animation. Further, the electronic device may receive the user's operation on the first slider and / or the second slider, and set the playback duration of the entrance animation and the exit animation.

[0008] refer to Figure 3A-Figure 3FIn the illustrated embodiment, the electronic device may display buttons corresponding to one or more options of entrance animations, and buttons corresponding to one or more options of exit animations. The electronic device may receive and respond to a user's operation on a button corresponding to an option of the first entrance animation, and display a first slider that is not grayed out. The electronic device may receive a user's operation on the first slider to change the playback duration of the first entrance animation. At the same time, the electronic device may receive and respond to a user's operation on a button corresponding to an option of the first exit animation, and display a second slider that is not grayed out. Furthermore, the electronic device may receive a user's operation on the second slider to change the playback duration of the first exit animation.

[0009] It is understandable that the electronic device can provide the user with an entry to add material to the video, and the electronic device can set the entrance animation and exit animation of the material in response to the user operation. Among them, the playing time of the entrance animation and the playing time of the exit animation are each controlled by a slider, and the length of the two sliders represents the total time the material is displayed in the video. The user can operate the first slider to set the playing time of the entrance animation, and then the user can operate the second slider to set the playing time of the exit animation. In this way, the user can edit the entrance animation and exit animation in the video without paying too much learning cost.

[0010] In combination with the first aspect, in some embodiments, the method also includes: receiving a sixth user operation of sliding the slider in the first slider bar to the first position, and displaying the first entry playback time corresponding to the first position; receiving and responding to a seventh user operation of sliding the slider in the second slider bar to the second position, and displaying the first exit playback time corresponding to the second position; when the sum of the first entry playback time and the first exit playback time exceeds the total time, adjusting the slider in the first slider bar to the third position, and displaying the second entry playback time corresponding to the third position, and the sum of the second entry playback time and the first exit playback time is equal to the total time.

[0011] It should be noted that, when the user adjusts the first slider and the second slider, the electronic device needs to ensure that the sum of the playing time of the entrance animation corresponding to the slider position in the first slider and the playing time of the exit animation corresponding to the slider position in the second slider does not exceed the total playing time. Therefore, when the sum of the first entrance playing time and the first exit playing time exceeds the total playing time, 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 playing time of the entrance animation corresponding to the slider position in the first slider is reduced to the second entrance playing time. Among them, the sum of the second entrance playing time and the first exit playing time is equal to the total playing time.

[0012] It is understandable that when the electronic device receives the user's operation on the second slider, and the operation makes the sum of the playing time of the entrance animation corresponding to the position of the slider in the first slider and the playing time of the exit animation corresponding to the position of the slider in the second slider exceed the total time, the electronic device can change the playing time of the entrance animation and change the position of the slider in the first slider so that the sum of the changed playing time of the entrance animation and the playing time of the exit animation adjusted in response to the user operation is equal to the total time, ensuring that the playing time of the entrance animation and the playing time of the exit animation do not exceed the total time. In this way, the user only needs to adjust the slider in the second slider to increase the playing time of the exit animation while reducing the playing time of the entrance animation, reducing the cumbersomeness of the operation. The electronic device can also display the results of the user's adjustment of the entrance animation and the exit animation, providing a reference for the user to adjust the sliders in the first slider and / or the second slider.

[0013] In combination with the first aspect, in some embodiments, the method also includes: receiving a sixth user operation of sliding the slider in the first slider bar to the first position, and displaying the first entry playback time corresponding to the first position; receiving a seventh user operation of sliding the slider in the second slider bar to the second position, when the sum of the first entry playback time and the first exit playback time corresponding to the second position exceeds the total time, adjusting the slider in the second slider bar from the second position to the fourth position, and displaying the second exit playback time corresponding to the fourth position, and the sum of the second exit playback time and the first entry playback time is equal to the total time.

[0014] The sixth user operation may be an operation in which the user presses the slider to slide the slider in the first slider bar to the first position. The seventh user operation may be an operation in which the user presses the 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 may 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] It is understandable that when the electronic device receives an operation of the user on the second slider bar, which causes the sum of the playing time of the entrance animation corresponding to the position of the slider in the first slider bar and the playing time of the exit animation corresponding to the position of the slider in the second slider bar to exceed the total playing time, the electronic device can also change the playing time of the exit animation, and change the position of the slider in the second slider bar, so that the sum of the playing time of the entrance animation and the changed playing time of the exit animation is equal to the total playing time, ensuring that the playing time of the entrance animation and the playing time of the exit animation do not exceed the total playing time. In other words, the electronic device can determine the maximum playing time of the exit animation according to the position in the first slider bar. When the playing time of the exit animation adjusted by the user exceeds the above-mentioned maximum playing time of the exit animation, the electronic device can slide the slider in the second slider bar back to the position where the above-mentioned maximum playing time of the exit animation is located.

[0016] In combination with the first aspect, in some embodiments, the method also includes: receiving an operation of sliding a slider in a first slider bar to a first position, and displaying a first entry playback duration corresponding to the first position; receiving an eighth user operation of sliding a slider in a second slider bar toward an end position of the second slider bar, and when the slider in the second slider bar follows the eighth user operation to slide to a fourth position, it stops sliding, and displays a second exit playback duration corresponding to the fourth position, and the sum of the second exit playback duration and the first entry playback duration is equal to the total duration.

[0017] It is understandable that the electronic device can determine the longest playback duration of the exit animation (i.e., the total duration minus the first entrance playback duration) based on the first entrance playback duration corresponding to the first position in the first slider. Then the electronic device can determine the fourth position on the second slider based on the longest playback duration of the exit animation. The sum of the first entrance playback duration corresponding to the first position and the second exit playback duration corresponding to the fourth position is equal to the total duration. When the electronic device receives the user sliding the slider on the second slider, the farthest distance the slider moves does not exceed the distance from the fourth position to the starting point of the second slider. When the slider on the second slider reaches the fourth position, if the electronic device still receives the user's operation of sliding the slider toward the end point of the second slider, the slider may no longer continue to slide following the user's operation. In this way, the user can adjust the position of the slider on the second slider without changing the position of the slider on the first slider.

[0018] In combination with the first aspect, in some embodiments, the method also includes: receiving a ninth user operation of sliding the slider in the second slider bar from the second position to the fifth position, the third exit playback time corresponding to the fifth position being less than the first exit playback time corresponding to the second position; in response to the ninth user operation, displaying the second entry playback time and the third exit playback time.

[0019] refer to Figure 1Q-Figure 1R The embodiment shown, Figure 1QThe position of the slider corresponding to the duration of the middle appearance is called the second position. Figure 1R The position of the slider corresponding to the exit playback duration can be called the fifth position. When the electronic device receives the operation of sliding the slider from the second position to the fifth position, the electronic device can display the second entry playback duration corresponding to the third position and the third exit playback duration corresponding to the fifth position. In the process of sliding the slider from the second position to the fifth position in the second slider, the position of the slider in the first slider remains unchanged. In other words, only when the sum of the entry animation playback duration and the exit animation playback duration after the user slides exceeds the total duration, the electronic device will change the position of the slider in the first slider and / or the position of the slider in the second slider, so that the sum of the entry animation playback duration and the exit animation playback duration does not exceed the total duration. In this way, when the sum of the entry animation playback duration and the exit animation playback duration does not exceed the total duration, the user will not change the position of the slider in the first slider when operating the slider in the second slider, which is easier for the user to understand.

[0020] In combination 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 on the video editing interface using the adjusted entrance playback duration.

[0021] In combination with the first aspect, in some embodiments, the method further includes: after adjusting the appearance playing time of the first appearance animation, displaying the first appearance animation on the video editing interface using the adjusted appearance playing time.

[0022] It is understandable that each time the user adjusts the slider on the first slider bar and / or the slider on the second slider bar, a preview effect of the first entrance animation and / or the first exit animation of the first material can be displayed in the video editing interface. In this way, the user can adjust the first slider bar corresponding to the playback duration of the entrance animation and / or the second slider bar corresponding to the playback duration of the exit animation according to the preview effect, thereby improving the user's operating experience.

[0023] In combination with the first aspect, in some embodiments, the starting position of the second sliding bar and the ending position of the first sliding bar are on the same side, and the ending position of the second sliding bar and the starting position of the first sliding bar are on the same side.

[0024] Among them, the starting position of the first slider refers to the position of the slider on the first slider when the playing time of the entrance animation is 0 seconds. The end position of the first slider refers to the position of the slider on the first slider when the playing time of the entrance animation is equal to the total time. The starting position of the second slider refers to the position of the slider on the second slider when the playing time of the exit animation is 0 seconds. The end position of the second slider refers to the position of the slider on the second slider when the playing time of the exit animation is equal to the total time.

[0025] In combination with the first aspect, in some embodiments, the starting position of the second sliding bar is on the same vertical line as the end position of the first sliding bar, the end position of the second sliding bar is on the same vertical line as the starting position of the first sliding bar, and the third position of the first sliding bar is on the same vertical line as the second position of the second sliding bar.

[0026] It is understandable that the starting position of the first slider and the end position of the second slider can be on the same side, and the end position of the first slider and the end position of the second slider can be on the same side. In addition, the length of the first slider can be equal to the length of the second slider. When the slider on the first slider and the slider on the second slider are on the same vertical line, it means that the sum of the playing time of the entrance animation and the playing time of the exit animation is equal to the total animation time. In this way, the user can more conveniently and clearly see the relationship between the playing time of the entrance animation, the playing time of the exit animation and the total animation time.

[0027] In combination with the first aspect, in some embodiments, the method further includes: after adjusting the entrance playback time of the first entrance animation and the exit playback time of the first exit animation, displaying the track bar of the first video and the track bar of the first material, the length of the track bar of the first material being used to represent the total duration of the first material; receiving a tenth user operation of the user adjusting the track bar of the first material from the first length to the second length, wherein when the track bar of the first material is the first length, the total duration of the first material is the first total duration, and when the track bar of 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, keep the entrance playback time of the first entrance animation and the exit playback time of the first exit animation unchanged; when the second total time is less than the first total time, reduce the entrance playback time of the first entrance animation and the exit playback time of the first exit animation; wherein, the ratio of the entrance playback time of the first entrance animation to the second total time after the reduction is equal to the ratio of the entrance playback time of the first entrance animation to the first total time before the reduction, and the ratio of the exit playback time of the first exit animation to the second total time after the reduction is equal to the ratio of the exit playback time of the first exit animation to the first total time before the reduction.

[0028] refer to Figure 2B In the embodiment shown, the track bar in the first video may include one or more of a video track and an audio track. The track bar of the first material may be a text track bar. Figure 2H Taking the case where the sum of the playing time of the entrance animation and the playing time of the exit animation is equal to the total playing time of the animation as an example, the length of the text track bar can be called the first length. Figure 2J The tenth user operation of the length shown. Figure 2JThe length in is called the second length. At this time, 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 playback duration of the exit animation in 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 normal display (i.e., no animation display) of the first material between the entrance animation and the exit animation. The electronic device can also receive an eleventh user operation in which the user adjusts 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. Furthermore, the electronic device can reduce the duration of normal display (i.e., no animation display) of the first material between the entrance animation and the exit animation without changing the playback duration of the entrance animation and the playback duration of the exit animation.

[0029] It is understandable that the user can change the total duration of the first material displayed in the video by adjusting the track bar. The electronic device can adjust the playing duration of the entrance animation and the playing duration of the exit animation according to the total duration adjusted by the user without user operation, thereby improving the user experience.

[0030] In combination 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, the first track being used to indicate the entrance playback duration of the first entrance animation, and the second track being used to indicate the exit playback duration of the first exit animation.

[0031] refer to Figure 2C , the electronic device can display the first track and the second track in the track bar, wherein the first track corresponds to the entrance playing time, and the second track corresponds to the exit playing time. Figure 3A-Figure 3F In the embodiment shown, when the user adjusts the first slider, the electronic device can display a first track on the track bar, and the first track can correspond to the playing time of the entrance animation. When the user adjusts the second slider, the electronic device can display a second track on the track bar, and the second track can correspond to the playing time of the exit animation.

[0032] It is understandable that after the user adjusts the slider on the first slider bar and / or the slider on the second slider bar, the electronic device can feedback the user's adjustment results in the track bar, so that the user can easily view the relationship between the adjustment of the entrance animation playback time, the exit animation playback time and the total time.

[0033] In a second aspect, the present application provides an electronic device, comprising 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 above computer program, the electronic device implements any one of the methods described in the above first aspect.

[0034] In a third aspect, the present application provides a computer-readable storage medium, which stores a computer program or computer instructions, and the aforementioned computer program or computer instructions are executed by a processor to implement any method described in the first aspect above.

[0035] In a fourth aspect, an embodiment of the present application provides a computer program product. When the computer program product is executed by a processor, the method described in any one of the above-mentioned first aspects will be implemented.

[0036] In a fifth aspect, an embodiment of the present application provides a chip, comprising 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, so that the chip executes any method described in the first aspect above.

[0037] The solutions provided in the second to fifth aspects are used to implement or cooperate with the corresponding methods provided in the first aspect, and therefore can achieve the same or corresponding beneficial effects as the corresponding methods in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1A-1S This is a schematic diagram of a user interface for adding exit animation and entrance animation to some electronic devices 100 provided in an embodiment of the present application;

[0039] Figure 2A-2K is a schematic diagram of a user interface for adjusting a material track bar of some electronic devices 100 provided in an embodiment of the present application;

[0040] Figure 3A-Figure 3F is a schematic diagram of a user interface for editing a video on another electronic device provided by an embodiment of the present application;

[0041] Figure 4A This is a flow chart of a slider sliding method provided in an embodiment of the present application;

[0042] Figure 4B-4C It is a schematic diagram of a slider movement method in a video editing method provided in an embodiment of the present application;

[0043] Figure 5 is a flow chart of a video editing method provided by an embodiment of the present application;

[0044] Figure 6 is a structural diagram of an electronic device 100 provided in an embodiment of the present application;

[0045] Figure 7 It is a software structure block diagram of the electronic device 100 provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to and includes any or all possible combinations of one or more listed items.

[0047] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0048] In order to meet the needs of users to enrich video content, electronic devices often provide the function of adding text, stickers and other materials to the video. In addition, the electronic device can also receive user operations to set the display effect of the material in the video. However, the current operation method of setting materials in the video is relatively complicated, which is not conducive to user understanding and operation.

[0049] Embodiments of the present application provide a video editing method, an electronic device, and a readable storage medium. A user can add clips, text, stickers, and other materials to a video through an electronic device. The electronic device can display two sliders when a user adds material to a video, one of which 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). In addition, the electronic device can also display a material track in the track area. The user can operate the material track to adjust the total duration of the material displayed in the video, etc.

[0050] By implementing the method provided in this application, an easy-to-understand animation effect editing entry can be provided to users. Users can add materials to videos and set one or more parameters of the materials without paying too much learning cost, thereby improving the user experience.

[0051] The following describes a scenario in which an electronic device provided by an embodiment of the present application edits an exit animation and an entrance animation in a video.

[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 can include a preview area 202, a track area 203 and a toolbar 204.

[0054] The preview area 202 may display a video preview screen 202A, and the video preview screen 202A is used to preview the video.

[0055] Track area 203 may include one or more tracks. One or more tracks in video editing interface 201 are containers for placing video resources. The above resources may include but are not limited to: video images, audio, materials, etc. 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 the video as time passes backwards ( Figure 1A The track area 203 may also include a material track. For an introduction to the material track, please refer to the introduction of the subsequent embodiments, which will not be expanded here.

[0056] The toolbar 204 may include one or more buttons corresponding to video editing functions. For example, the 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 animation effect of the text. 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 by the embodiment of the present application is introduced below by taking adding text to a video as an example. It is not limited to adding text, and other materials (such as clips, stickers, etc.) can also be added to the video. The method of adding other materials to the video can refer to the method of adding text to the video in the subsequent embodiments, which will not be repeated here.

[0058] The electronic device 100 may receive an operation of the user clicking the add text button 204A, and in response to the operation, the electronic device 100 may display an edit window 211. At the same time, a text preview box 202B, a delete button 202C, and a zoom button 202D may be displayed in the video preview screen 202A.

[0059] The editing window 211 may include a text editing box 212 , a tab bar 213 , and a soft keyboard 205 .

[0060] The text edit box 212 is used to display the text input by the user. The text input by the user in the text edit 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 functional options when adding text to a video. The above labels may include but are not limited to: templates, fonts, styles, flowery characters and animations.

[0062] The soft keyboard 205 is used to receive user operations and input 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 and its style added by the user in the video.

[0064] The delete button 202C is used to delete the text and its style etc. added in 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 may receive an operation in which a user inputs the word "happy" into the text editing box 212. The above-mentioned word may be input by the user through the soft keyboard 205. Figure 1C As shown, the text edit box 212 can display the text "Happy", and the text displayed in the text preview box 202B is Figure 1B The "click to enter text" shown in the figure is transformed into Figure 1C The "happy" shown is not limited to "happy", but can also be other words. The embodiment of the present application does not limit the content of the words that can be added to the video.

[0067] The electronic device 100 may receive an operation in which the user clicks on an animation option in the menu bar. In response to the operation, the electronic device 100 may hide the soft keyboard 205 and display the following: Figure 1D The animation editing area 214 is shown. At the same time, the animation option in the tab bar 213 may be underlined to indicate that the animation option in the tab bar 213 is selected. The above-mentioned styles indicating that the animation option is selected are only examples and are not intended to limit the embodiments of the present application.

[0068] After the electronic device 100 responds to the user's operation of adding the text "happy" in the video, the text "happy" will be displayed in the video. At this time, since no entry animation, exit animation or loop animation is set, the text has no animation effect in the video. The text material added in the video does not have an animation effect, which can be called normal display of the text. At this time, the length of time the text "happy" is normally displayed in the video is equal to the total length of time the text material is displayed in the video. The electronic device 100 may store the value of the total length of time the text material is displayed in the video in the initial state (for example, 2 seconds, 3 seconds, 5 seconds, etc.). The embodiment of the present application does not limit the value of the total length of time the text material is displayed in the video in the initial state stored in the electronic device 100. In some embodiments, the total length of time the text material is displayed in the video can be changed, and the method for the electronic device 100 to change the above total length in response to the user operation can refer to the introduction of the subsequent embodiments, which will not be expanded here.

[0069] 2. Add text entry animation:

[0070] like Figure 1D As shown, one or more functions included in the animation function options may be displayed in the animation editing area 214. The animation editing area 214 may include a tab bar 215, an animation option area 216, a slide bar 217, a slider 218, a slide bar 219 and a slider 220.

[0071] The tab bar 215 may include labels corresponding to one or more function options for the animation effect of text. The above function options may include, but are not limited to: entrance animation, exit animation and loop animation. Among them, the entrance animation option corresponds to the "entry" label, the exit animation option corresponds to the "exit" label, and the loop animation option corresponds to the "loop" label. The entrance animation function corresponding to 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 corresponding to the exit animation option is used to edit the animation effect of the text displayed in the text editing box 212 when it disappears in the video. The loop animation function corresponding to the loop animation option is used to edit the loop playback effect of the text when it is displayed in the video.

[0072] The animation option area 216 may include buttons corresponding to one or more animation options. The animation options are used to set different animation effects for the entry or exit of the text in the text editing box 212. For example, the animation effects may include but are not limited to: fade in, enlarge, fold, rotate, shake, etc. It should be noted that Figure 1DThe deepening of the "Entrance" label means 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 option area 216 are used to set the animation effect of the entrance animation. Among them, the animation option area 216 may include a no animation effect button 216A. The no animation effect button 216A is used to turn off the animation effect of the entrance animation. Figure 1D The button 216A without animation effect is shown to be selected, which indicates that the electronic device 100 has not set an entry animation for the text "Happy".

[0073] The slide bar 217 and the slider 218 are used to set the playing time of the text entry animation. The electronic device 100 can determine the playing time of the entry animation according to the position of the slider 218 on the slide bar 217. Figure 1D As shown, when the entry animation is not set, the slider 218 can be located at the far left on the slider 217. At the same time, the slider 217 and the slider 218 are grayed out. Graying out the slider and the slider means that even if the electronic device 100 receives an operation by the user on the position of the slider 217 or the slider 218, the position of the slider 218 will not be changed, that is, the playback duration of the entry animation will not be changed. The right side of the slider 217 can display the playback duration "0.0s" of the entry animation corresponding to the current position of the slider 218 on the slider 217, which indicates that the current playback duration of the entry animation is 0 seconds. The total length of the slider 217 represents the total duration that the text "Happy" appears in the video.

[0074] The slide bar 219 and the slider 220 are used to set the playing time of the text's exit animation. The electronic device 100 can determine the playing time of the entrance animation according to the position of the slider 220 on the slide bar 219. Figure 1D As shown, when the exit animation is not set, the slider 220 can be located at the rightmost side of the slider 219. At the same time, the slider 219 and the slider 220 are grayed out. At this time, even if the electronic device 100 receives the user's operation on the position of the slider 219 and the slider 220, the position of the slider 219 and the slider 220 will not be changed. The right side of the slider 219 can display the play time "0.0s" of the exit animation corresponding to the position of the current slider 220 on the slider 219, which indicates that the play time of the current exit animation is 0 seconds. The total length of the slider 219 represents the total length of the text "Happy" appearing in the video. Among them, the lengths of the slider 217 and the slider 219 are equal, and the leftmost end of the slider 217 is on the same vertical line as the leftmost end of the slider 219, and the rightmost end of the slider 217 is on the same vertical line as the rightmost end of the slider 219. The above vertical line is a straight line from the top to the bottom of the video editing interface, which is perpendicular to the edge of the video editing interface.

[0075] like Figure 1E As shown, the electronic device 100 may receive an operation in which the user clicks the animation button 216B in the animation option area 216. In response to this operation, the electronic device 100 may set the animation effect of the entrance animation of the text "Happy" to the animation effect of the animation A corresponding to the animation button 216B. At the same time, the slider 217 and the slider 218 are no longer grayed out. In some embodiments, the electronic device 100 may store a preset initial value for the duration of the entrance animation. 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" to the above-mentioned preset initial value. For example, the preset initial value of the playback duration of the entrance animation 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 217, and display the entrance animation of the text material "Happy" in the video preview screen 202A. The above-mentioned entrance animation can be the text material "Happy" displayed for 0.2 seconds with the effect of animation A. Not limited to 0.2 seconds, the preset initial value of the playback duration of the entrance animation stored in the electronic device 100 can also be other values, such as 0 seconds, 0.1 seconds, 0.3 seconds, etc. The embodiment of the present application does not limit the size of the preset initial value of the playback duration of the entrance animation stored in the electronic device 100. The animation effect of the entrance animation of the text material "Happy" can also be other animation effects. The way of setting the entrance animation of other animation effects of the electronic device 100 can refer to the way of setting animation A above, which will not be repeated here. Figure 1F As shown, the electronic device 100 can receive an operation in which the user presses the slider 218 and slides the slider 217 to the right. The electronic device 100 can deepen the display of the track that the slider 218 passes through on the slider 217 after sliding from the leftmost end of the slider 217 to the right. The style of the sliding track displayed on the slider 217 after the slider 218 slides on the slider 217 is only an example and is not a limitation of the embodiments of the present application. The electronic device 100 can calculate the percentage of the length from the leftmost end of the slider 217 to the slider 218 to the total length of the slider 217. For example, Figure 1G The length from the leftmost end of the slider 217 to the slider 218 is 40% of the total length of the slider 217. The electronic device 100 can multiply the above 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), and then determine the length of time that the slider 218 moves to. Figure 1GThe playing time of the entrance animation should be set to 0.4 seconds when the position is shown. In some embodiments, the total time corresponding to the total length of the slider 217 can be changed. The change method of the total time corresponding to the total length of the slider 217 can refer to the introduction of the subsequent embodiments, which will not be expanded here. The above total time can include the time length of the text entrance animation, the time length of the exit animation, and the time length of normal display (i.e., no animation display). Figure 1G The entry animation and exit animation represented by the slide bar 217 and the slider 218, the slide bar 219 and the slider 220 can refer to Figure 1H The example diagram is shown in Figure 1. Figure 1H As shown in the figure, the total duration is 1 second, of which the entrance animation takes up 0.4 seconds. Since the exit animation is not set, the text has no animation effect in the remaining 0.6 seconds (i.e. the normal display duration).

[0076] The time length corresponding to the position of the above slider on the slide bar is only an example and is not a limitation of the embodiments of the present application.

[0077] 3. Add text appearance animation:

[0078] like Fig. 1I As shown, the electronic device 100 may receive an operation of selecting a label corresponding to the appearance animation option in the label bar 215. In response to the operation, the editing window 211 may display an animation option area 221. The animation option area 221 is used to set the animation effect of the appearance animation. The animation option area 221 may include one or more animation buttons corresponding to the animation effect options. Fig. 1I The animation option area 221 includes a no animation effect button 221A, and the no animation effect button 221A is used to turn off the animation effect of the appearance animation. Fig. 1I The button 221A without animation effect is selected, which indicates that the electronic device 100 has not set an appearance animation for the word "Happy".

[0079] like Figure 1J As shown, the electronic device 100 may receive an operation in which the user clicks the animation button 221B in the animation option area 221. In response to this operation, the electronic device 100 may set the animation effect of the appearance animation of the text "Happy" to the animation effect of the animation B corresponding to the animation button 221B. At the same time, the slider 219 and the slider 220 are no longer grayed out. In some embodiments, the electronic device 100 may store a preset initial value for the duration of the appearance animation. Figure 1JAs shown, in response to the user clicking the animation button 221B, the electronic device 100 may set the playing duration of the entrance animation of the text material "Happy" to the above preset initial value. Exemplarily, the preset initial value of the playing duration of the entrance animation may be 0.2 seconds. The electronic device 100 may display the slider 220 at the position corresponding to 0.2 seconds in the slider bar 219, and display the entrance animation of the text material "Happy" in the video preview screen 202A. The above entrance animation may be that the text material "Happy" is displayed with the effect of animation B for 0.2 seconds. Not limited to 0.2 seconds, the preset initial value of the playing duration of the entrance animation stored in the electronic device 100 may also be other values, such as 0 second, 0.1 second, 0.3 second, etc. The embodiments of the present application do not limit the preset initial value of the playing duration of the entrance animation stored in the electronic device 100 either. Not limited to animation B, the animation effect of the entrance animation of the text material "Happy" may also be other animation effects. The way for the electronic device 100 to set the entrance animation with other animation effects may refer to the above way of setting animation B, which will not be elaborated here.

[0080] As Figure 1K shown, the electronic device 100 may receive an operation in which the user presses the slider 220 and slides it to the left along the slider bar 219. After the electronic device 100 slides the slider 220 from the rightmost end of the slider bar 219 to the left, the trajectory passed on the slider bar 219 may be highlighted. After the above slider 220 slides on the slider bar 219, the style of the sliding trajectory displayed on the slider bar 219 is only an example and is not a limitation of the embodiments of the present application. The electronic device 100 may receive that the user slides the slider 220 to the position as Figure 1L shown, at this time, the slider 218 and the slider 220 are on the same vertical line. The length of the trajectory passed by the slider 218 on the slider bar 217 plus the length of the trajectory passed by the slider 220 on the slider bar 219 is equal to the total length of the slider bar 217 (or the slider bar 219). The percentage of the length from the leftmost end of the shown slider bar 217 to the slider 218 in the total length of the slider bar 217 is 40%. Then the percentage of the length from the rightmost end of the slider bar 219 to the slider 220 in the total length of the slider bar 219 is 60%. Similarly, taking the total duration as 1 second as an example, as Figure 1M shown, the playing duration of the entrance animation is 0.4 seconds, and the playing duration of the exit animation is 0.6 seconds. Since the playing duration of the entrance animation and the playing duration of the exit animation are equal to the total duration, there is no time when the text "Happy" is displayed without animation (i.e., normally displayed) in the video. After the electronic device 100 receives that the user moves the slider 220 to the position as Figure 1L shown, it may synchronously display the preview animation of "Happy" in the display text preview box 202B. The above preview animation may include an exit animation of 0.6 seconds. Optionally, after the electronic device 100 receives that the user slides the slider 220 to Figure 1L After reaching the position shown, you can also first display a 0.4-second entry animation and then a 0.6-second exit animation.

[0081] When the slider 218 and the slider 220 are on the same vertical line, the electronic device may also receive an operation of the user moving the slider 218 to the right or the slider 220 to the left. Figure 1N As shown, the electronic device 100 may receive an operation by the user to continue to move the slider 220 to the left until the slider 220 is moved to the position shown in FIG. Fig.1O In response to this operation, the electronic device 100 will synchronously move the position of the slider 218 on the slide bar 217 so that the slider 218 is always on the same vertical line as the slider 220. Figure 1P for Fig.1O The playing time of the entrance animation and exit animation corresponding to the two sliders in the figure. 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 Fig.1O The operation at the position shown in the figure shows a preview animation of the text in the text preview box 202B on the display screen, and the preview animation may include an exit animation of the 0.8 second animation B effect. Optionally, the preview animation may also be an entrance animation of the 0.2 second animation A effect, and an exit animation of the 0.8 second animation B effect.

[0082] It should be noted that the slider 217 and the slider 219 are interrelated, and the two are used to adjust the playing time of the entrance animation and the playing time of the exit animation within the total duration. The total length of the slider 217 and the slider 219 also indicate the total duration of the text material "Happy" appearing in the video. The sum of the duration of the entrance animation corresponding to the position of the slider 218 on the slider 217 and the duration of the exit animation corresponding to the position of the slider 220 on the slider 219 should not exceed the total duration. Therefore, when the slider 217 and the slider 219 are equal in length, the sum of the distance length of the slider 218 from the starting point of the slider 217 and the distance length of the slider 220 from the starting point of the slider 219 cannot exceed the total length of the slider 217 (or the slider 219). Therefore, when the slider 218 and the slider 220 are on the same vertical line, when the slider 220 continues to slide to the left in response to the user's operation, in order to ensure that the duration of the entrance animation and the exit animation does not exceed the total duration, the slider 218 needs to follow the slider 220 to slide to the left by the same distance. Accordingly, the playback duration of the exit animation will increase in response to the user's operation of moving the slider 220 to the left, and the playback duration of the entrance animation will decrease while the electronic device 100 moves the slider 218 to the left. At this time, the sum of the duration of the entrance animation and the duration of the exit animation is equal to the total duration. When the slider 218 and the slider 220 are on the same vertical line, when the electronic device 100 receives the user moving the slider 218 to the right, the method for moving the slider 220 can refer to the method for moving the slider 218 when the electronic device receives the user moving the slider 220 to the left in the above embodiment, which will not be repeated here.

[0083] like Figure 1Q As shown, when the slider 218 and the slider 220 are on the same vertical line, the electronic device 100 receives a signal from the user that the slider 220 is moved right to the position shown in FIG. Figure 1R At this point, the slider 218 no longer follows the slider 220 to move. Figure 1S Shown Figure 1Q The duration of the entrance and exit animations corresponding to the slider in the middle. Figure 1S As shown, the playing duration of the entrance animation is still 0.2 seconds. As the slider 220 moves to the right, the playing duration of the exit animation becomes 0.3 seconds. The method for the electronic device 100 to determine the playing duration of the entrance animation and the exit animation can refer to the introduction of the aforementioned embodiment, which will not be repeated here. In response to the user's operation of moving the slider 220, the electronic device 100 will display the preview animation effect of the text in the text preview box 202B, wherein the preview animation effect may include an exit animation with an animation B effect of 0.3 seconds. Optionally, the preview animation effect may also be an entrance animation with an animation A effect of 0.2 seconds, no animation of 0.5 seconds (the text is stationary in the video), and an exit animation with an animation B effect of 0.3 seconds.

[0084] The user interface when the electronic device 100 sets the exit animation first and then the entrance animation in response to the user operation can refer to the user interface when the entrance animation is first set and then the exit animation is set in the above embodiment, which will not be repeated here.

[0085] Among them, each time the electronic device 100 receives the user's operation on the slider on the slider 217 and / or 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] The method of adding the entrance animation first and then the exit animation in response to the user operation can refer to the method of adding the entrance animation first and then the exit animation in the above embodiment, and will not be repeated here.

[0087] It is not limited to first adjusting the slider 218 in the slider 217 corresponding to the playing time of the entrance animation, and then adjusting the slider 220 in the slider 219 corresponding to the playing time of the exit animation. In some embodiments, the electronic device 100 can also first adjust the slider 220 in the slider 219 corresponding to the playing time of the exit animation in response to the user operation, and then adjust the slider 218 in the slider 217 corresponding to the playing time of the entrance animation. The method in which the electronic device 100 first adjusts the playing time of the exit animation and then adjusts the playing time of the entrance animation in response to the user operation can refer to the method in the aforementioned embodiment of first adjusting the playing time of the entrance animation and then adjusting the playing time of the exit animation. The method in which the electronic device adjusts the position of the slider 220 corresponding to the playing time of the exit animation according to the playing time of the entrance animation can refer to the introduction of adjusting the playing time of the entrance animation corresponding to the slider 218 according to the playing time of the exit animation in the aforementioned embodiment, which will not be repeated here.

[0088] Two sliders can be displayed in the electronic device 100, which are used to set the entrance time and exit time respectively. Among them, when the exit animation and entrance animation are not set, the corresponding slider can be grayed out. When the user adds an exit animation or an entrance animation, the corresponding slider lights up again, which can prompt the user to use the lit slider to adjust the exit animation or entrance animation, reducing the user's learning cost. The starting point of the slider in the slider corresponding to the entrance animation is the leftmost end of the slider, and the end point is the rightmost end of the slider; the starting point of the slider in the slider corresponding to the exit animation is the rightmost end of the slider, and the end point is the leftmost end of the slider. When the user drags the slider on a slider bar toward the end point, so that the distance from the slider to the starting point exceeds the distance from the slider in another slider bar to the end point, the slider in the other slider bar will move with the slider dragged by the user. This can prevent the user from changing the total duration of the animation when operating the slider.

[0089] 4. Adjust the material track:

[0090] like Figure 2A As shown, a save control 222 is displayed in the video editing interface 201. The save control 222 is used to save the animation effect set by the user for the text "Happy". The electronic device 100 can receive an operation of the user clicking the save control 222. In response to the operation, the electronic device 100 will save the above-mentioned animation effect set for the text "Happy" (i.e., the 0.2 second animation A entrance animation, 0.5 second no animation, and 0.3 second animation B exit animation mentioned above). Further, the electronic device 100 will close the editing window 211 in the video editing interface 201 and display the following. Figure 2B The user interface shown.

[0091] like Figure 2B As shown, the add text button 204A and the add title button 204B in the toolbar 204 are grayed out, and the toolbar 204 may display a Figure 1A More buttons are used to quickly edit the text "Happy" added in the video, including edit button, split button, template button, delete button, animation button, flower button and style button. The edit button is used to re-edit a series of text contents; the split button is used to split the animation of the text; the template button is used to set the template animation for the text; the delete button is used to delete the text added in the video; the animation button is used to set the animation effect of the text, etc.; the flower button is used to set the artistic text; the style button is used to set the text style, etc.

[0092] The track area will display the material track 203C. The material track 203C can display the text track bar 203D corresponding to the text newly added by the electronic device in response to the user's operation in the video. The text track bar 203D can display the text "Happy" added by the user in the video, track A for indicating the playing time of the entrance animation, and track B for indicating the playing time of the exit animation. The length of the text track bar 203D corresponds to the total time that the text material "Happy" appears in the video. Figure 2C The figure shows an example of the corresponding relationship between track A and track B in the text track bar 203D and the playing time of the entrance animation and the playing time of the exit animation. Figure 2C As shown, the ratio of the length of track A to the maximum length of the track is equal to the ratio of the playing time 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 time of the exit animation to the total duration of the text material in the video. The above-mentioned maximum length of the 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 length corresponding to the entrance animation and the track length corresponding to the exit animation in the text track bar 203D according to the playing time of the entrance animation of the text material in the video, the playing time of the exit animation and the total duration of the text material in the video.

[0093] like Figure 2D As shown, the electronic device 100 may receive an operation in which 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 extended to Figure 2E Correspondingly, the total display time of the text material in the video will also increase. Figure 2F The text track bar 203D is shown from Figure 2D Change to Figure 2E , the change of animation duration. FIG. 2D to FIG. 2E As the text track bar 203D is stretched, the playing time of the text entrance animation and the playing time of the exit animation remain unchanged, and the time without animation increases as the text track bar 203D is stretched, and the total time of the text material in the video increases. Figure 2E The length of Figure 2D 1.5 times the length of the text, the total duration of the text displayed in the video increases from 1 second ( Figure 2D ) becomes 1.5 seconds ( Figure 2E ). The playing time of the entrance animation and the playing time of the exit animation remain unchanged, and the normal playing time length is changed from 0.5 seconds to 1 second. In other words, the electronic device 100 can receive the user's operation of lengthening the text track bar 203D to increase the total display time of the text in the video.

[0094] like Figure 2G As shown, the electronic device 100 may receive an operation in which the user clicks on the right end of the text track bar 203D and drags it to the left. In response to this operation, the length of the text track bar 203D is compressed to Figure 2H 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 playing duration of the entrance animation and the playing duration of the exit animation are equal to the above total duration. At this time, there is no time without animation display (i.e. normal display time) in the total display duration of the text material in the video. The sum of the track corresponding to the entrance animation and the track corresponding to the exit animation in the text track bar 203D is equal to the maximum length of the track. Fig.2I The text track bar 203D is shown from Figure 2G Change to Figure 2H , the change of animation duration. Figure 2G to Figure 2H During the compression of the text track bar 203D, the animation-free time (i.e., normal playback time) between the entrance animation and the exit animation is compressed and reduced until there is no animation-free time. During the above-mentioned change process, the playback time of the entrance animation and the playback time of the exit animation remain unchanged, and the total duration of the text appearing in the video is the duration of the entrance animation (0.2 seconds) plus the duration of the exit animation (0.3 seconds). Accordingly, the electronic device 100 can change the length of the track corresponding to the entrance animation and the length of the track corresponding to the exit animation in the text track bar 203D, and make the sum of the lengths of the above-mentioned tracks equal to the maximum length of the tracks.

[0095] like Figure 2H As shown, the electronic device 100 may receive an operation in which the user continues to click on the right end of the text track bar 203D and drags 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. Figure 2H The text track bar 203D shown has no non-animation playback duration (ie, normal playback duration) that can be compressed. Continuing to drag the compressed text track bar 203D to the left will proportionally reduce the duration of the entrance animation and the exit animation. Figure 2K The text track bar 203D is shown from Figure 2H Change to Figure 2J , the change of animation duration. Figure 2H to Figure 2J As the text track bar 203D is further compressed, the playing time of the entrance animation and the playing time of the exit animation are reduced in equal proportion. Figure 2J The length of the Chinese character track bar 203D can be Figure 2H The Chinese text track bar is half the length of 203D, so the text track bar is adjusted to Figure 2J After the size is shown, the playing time of the entrance animation is increased from 0.2 seconds ( Figure 2H ) changes to 0.1 seconds ( Figure 2J ),The playing duration of the entrance animation changes from 0.3 seconds ( Figure 2H ) to 0.15 seconds ( Figure 2J ). The total duration of the text "happy" appearing in the video changes from 0.5 seconds ( Figure 2H ) to 0.25 seconds ( Figure 2J ). Correspondingly, the electronic device 100 can proportionally reduce the lengths of the trajectories corresponding to the entrance animation and 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 loop animation for the text "happy", the loop animation can be displayed during the above-mentioned period without animation. At this time, the length of the time without animation (i.e., normal display) is the length of the time for the loop animation to be displayed.

[0097] After the user adds the entrance animation and exit animation of the text, the user can stretch its track bar. In this way, the total duration of the text appearing in the video can be increased. Correspondingly, the duration of the text without animation (i.e., the duration of normal display) in the video will increase as the total duration increases. The user can also compress the track bar to reduce the total duration of the text appearing in the video. Correspondingly, the time of the text without animation in the video will decrease until there is no time of the text without animation in the video. The user can also continue to compress the track bar of the text when there is no time of the text without animation (i.e., normal display). In this way, the durations of the entrance animation and the exit animation will decrease proportionally. The user can quickly change the time of the text appearing in the video and the durations of the entrance animation and the exit animation by operating the track bar, improving the user experience.

[0098] The following introduces another scenario when an electronic device provided by an embodiment of the present application edits the entrance animation and the exit animation in a video.

[0099] As Figure 3A 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 the introduction of the preview area 301 and the track area 302, reference can be made to the introduction of the preview area and the track area in the electronic device 100, which will not be elaborated here. The track area may include a text track bar 302A. For the introduction of the text track bar, reference can be made to the introduction in the foregoing embodiments, which will not be elaborated here.

[0100] The preview area 301 may display a video preview screen, which includes a text preview box 301A. The text preview box 301A may be displayed by the electronic device 101 in response to a user's operation of adding text to the video. The method for the electronic device 101 to add text to the video in response to a user's operation may refer to the method for adding text in the electronic device 100 in the aforementioned embodiment, which will not be described in detail here.

[0101] The entrance animation editing area 303 is used to edit the entrance animation of the text added in the video. The entrance animation editing area 303 may include one or more animation buttons corresponding to the animation effect options, and a slide bar 306 and a slider 307 corresponding to the entrance animation. Among them, the introduction of the animation buttons in the entrance animation editing area 303 can refer to the introduction of the animation buttons in the animation option area 216 in the aforementioned embodiment. The introduction of the slide bar 306 can refer to the introduction of the slide bar 217 in the aforementioned embodiment, and the introduction of the slider 307 can refer to the introduction of the slider 218 in the aforementioned embodiment, which will not be repeated here.

[0102] The appearance animation editing area 304 is used to edit the appearance animation of the text added in the video. The appearance animation editing area 304 may include one or more animation buttons corresponding to the animation effect options, and a slide bar 308 and a slider 309 corresponding to the appearance animation. Among them, the introduction of the animation buttons in the appearance animation editing area 304 can refer to the introduction of the animation buttons in the animation option area 221 in the aforementioned embodiment. The introduction of the slide bar 308 can refer to the introduction of the slide bar 219 in the aforementioned embodiment, and the introduction of the slider 309 can refer to the introduction of the slider 220 in the aforementioned embodiment, which will not be repeated here.

[0103] The loop animation editing area 305 is used to edit the loop animation of the text added in the video. The loop animation editing area 305 may include one or more animation buttons corresponding to animation effect options.

[0104] like Figure 3A As shown, the slider bar 306 of the entrance animation and the slider bar 308 of the exit animation are grayed out in the initial state. The electronic device 101 can receive the operation of the user clicking the animation button 310 corresponding to the animation A in the entrance animation editing area 303. In response to the operation, the electronic device 101 will add the animation effect of the animation A to the text. Figure 3B As shown, the electronic device 101 will cancel the graying effect of the slider 306. The electronic device 101 will display the slider 307 in the slider 306 at a position corresponding to the preset initial value of the playing time of the entrance animation. Exemplarily, the preset initial value of the playing time of the entrance animation may 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 entrance animation of the text material "Happy" in the video preview screen.

[0105] The electronic device 101 may receive an operation in which the user clicks the slider 307 and slides the slider 307 to the right along the slide bar 306. In response to the operation, the electronic device adjusts the playing time of the text entry animation. Figure 3C As shown, the electronic device 101 will display the track corresponding to the entrance animation in the text track bar 302A, wherein the ratio of the length of the track corresponding to the entrance animation to the maximum length of the track is equal to the ratio of the duration of the entrance animation to the total duration of the text material displayed in the video, and is also equal to the ratio of the length of the slider 307 from the starting point of the slider 306 to the total length of the slider 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 in which the user clicks the animation button 311 corresponding to the animation B in the appearance animation editing area 304. In response to this operation, the electronic device 101 no longer grays out the slider 308 corresponding to the appearance animation. The electronic device 101 will display the slider 309 in the slider 308 at a position corresponding to the preset initial value of the appearance animation playback duration. Exemplarily, the preset initial value of the appearance animation playback duration may 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 appearance animation of the text material "Happy" in the video preview screen.

[0107] like Figure 3E The electronic device 101 can receive a user pressing the slider 309 and slide it to the left along the slide bar 308 until it slides to the left. Figure 3F Operation at the position shown. Figure 3F As shown, in response to the user's operation of sliding the slider 309 to the left, the electronic device 101 will display the track corresponding to the appearance animation in the text track bar 302A. The ratio of the length of the track corresponding to the appearance animation to the maximum length of the track is equal to the ratio of the duration of the appearance animation to the total duration of the text material displayed in the video, which is also equal to the ratio of the length of the slider 309 from the starting point of the slider 308 to the total length of the slider 308. In response to the user's operation of adjusting the slider 307, the electronic device 101 can display the appearance animation of the text material in the video preview screen.

[0108] It can be seen that in the electronic device 101, the text track, the animation button and slider for editing the entrance animation, and the interface elements such as the animation button and slider for editing the exit animation can be displayed in the same user interface. In this way, the user can adjust the track bar of the material while adjusting the slider corresponding to the entrance animation of the material and the slider corresponding to the exit animation, so that the user can edit the material more conveniently.

[0109] It can be seen that in Figure 3A In the video editing interface shown, the height of the area used to edit the text material entrance animation, entrance animation and other contents occupies the entire height of the electronic device display screen. The electronic device can simultaneously display interface elements such as animation buttons and sliders for editing the entrance animation and animation buttons and sliders for editing the exit animation. In this way, the user can directly edit the entrance animation and exit animation without clicking other controls. Figure 1E In the video editing interface shown, the editing window 211 for editing the text material entrance animation and entrance animation is lower than the height of the electronic device display screen. The electronic device can display the interface elements such as animation buttons and sliders for editing the entrance animation under the "entry" label, and display the interface elements such as animation buttons and sliders for editing the exit animation under the "exit" label, so that the user needs to click the label first, and then edit the animation corresponding to the label.

[0110] The following describes a slider sliding method provided by the present application in combination with the above embodiments. 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 in which a user slides a slider in a first slider bar to position A, the distance between position A and the starting point of the first slider bar is a first distance, and the distance between the slider in the second slider bar and the end point of the second slider bar is less than the first distance.

[0112] The first slider may be the slider 217 for adjusting the playing time of the entrance animation in the above embodiment, and the second slider may be the slider 219 for adjusting the playing time of the exit animation in the above embodiment. The slider in the first slider is the slider 218, and the slider in the second slider is the slider 220. The introduction of the slider 217, the slider 218, the slider 219, and the slider 220 can refer to the introduction of the above embodiment, which will not be expanded here.

[0113] like Figure 4B As shown, before the electronic device receives the operation of the user sliding 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 slide bar in the figure, the electronic device can receive and respond to the user's operation of sliding the slider in the first slide bar to position A. The distance between position A and the starting point of the first slide bar is L2, which can also be called the first distance. At this time, the position of the slider in the second slide bar is Figure 4B The position indicated by the slider in the second sliding bar, the distance L1 between the position of the slider in the second sliding bar and the end point of the second sliding bar is less than the first distance L2.

[0115] S402: The electronic device slides the slider in the second slider bar to position B, where the distance between position B and the end point of the second slider bar is equal to the first distance.

[0116] like Figure 4C As shown in the second sliding bar, in response to the user sliding the slider in the first sliding bar to position A, the electronic device can slide the slider in the second sliding bar to position B following the slider in the first sliding bar, and the distance between position B and the end point of the second sliding bar is equal to the first distance L2.

[0117] The slider bar 217 of the entrance animation and the slider bar 219 of the exit animation correspond to the total duration of the video material appearing 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 material appearing in the video.

[0118] The following describes a video editing method provided by the present application in combination with the above embodiments. Figure 5 As shown, the video editing method may include but is not limited to the following steps:

[0119] S501. Display a video editing interface, where the video editing interface is used to edit a first video, and the video editing interface includes a material adding control.

[0120] refer to Figure 1A In the embodiment shown, the electronic device 100 may display Figure 1A The video editing interface 201 shown in FIG. 201 may display a material adding control. The material adding control is used to add a first material to the first video. The first material may include one or more of a clip, text, and a sticker.

[0121] S502: Receive a first user operation on a material adding control, and display a first material and an animation setting control in a video editing interface.

[0122] refer to Figure 1A-1B In the illustrated embodiment, taking the first material as text as an example, the material adding control may be an add text button 204A for adding text material. The electronic device 100 may receive a first user operation acting on the add text button 204A. The first user operation may be a user operation of clicking the add text button 204A, and then the text material and the animation setting control (i.e., the animation label in the label bar 213) may be displayed in the video editing interface.

[0123] S503: receiving a second user operation on the animation setting control, displaying an entry animation adding control and an exit animation adding control in the video editing interface, the entry animation adding control being selected, and displaying one or more entry animation options in the video editing interface, wherein the one or more entry animation options include an option for the first entry animation.

[0124] refer to Figure 1C In the embodiment shown, the electronic device 100 can receive a second user operation of the user acting on the animation setting control (i.e., the animation label in the label bar 213), and the second user operation can be an operation of clicking the animation label. Then, the electronic device 100 can display an entry animation adding control and an exit animation adding control. The entry animation adding control can be as follows: Figure 1D The entry animation option in the tab bar 215 corresponds to the "entry" tab, and the exit animation adding control can be as follows: Figure 1D The “Exit” tab corresponding to the exit animation option in the tab bar 215 is shown.

[0125] When the "Entry" label corresponding to the entry animation option is selected, the video editing interface 201 may display buttons corresponding to one or more entry animation options. Figure 1D The animation option area 216 shown in the figure includes one or more options of entrance animations including an option of a first entrance animation.

[0126] In some embodiments, the electronic device receives and responds to the second user operation on the animation setting control, and can also directly display one or more entry animation options. Figure 3A In the embodiment shown, the electronic device 101 can directly display a button corresponding to the option of the entrance animation without receiving an operation of the user clicking the "entry" label (ie, adding a control for the entrance animation).

[0127] S504: receiving a third user operation acting on an option of the first entrance animation, and displaying a first sliding bar, where the first sliding bar is used to adjust the entrance playing duration of the first entrance animation in the first video.

[0128] by Figure 1E Taking the embodiment shown as an example, the option of the first entrance animation may be the option of animation A. The electronic device 100 may receive a third user operation acting on the option of animation A. The third user operation may be an operation of the user clicking the animation button 216B corresponding to the option of animation A. The electronic device 100 may display a first slide bar, such as Figure 1E As shown, the electronic device 100 may display a non-grayed-out slider 217. The slider 217 is used to adjust the playing time of the first entrance animation (ie, animation A) in the first video.

[0129] In some embodiments, the electronic device 100 may also receive a sixth user operation of sliding the slider in the first slider bar to the first position, and display the first entry playback time corresponding to the first position. Figure 1F-1G In the embodiment shown, the electronic device can receive a user sliding the slider 218 to Figure 1G The electronic device 100 can then display the first entry play time (i.e. Figure 1G 0.4s is shown on the right side of the slider 217). Figure 3A-3C In the embodiment shown, the electronic device can receive a signal from a user sliding the slider 307 to Figure 3C The operation of the position shown (i.e. the first position) will then display the entry playback time corresponding to the first position.

[0130] In some embodiments, after adjusting the entrance playing time of the first entrance animation, the electronic device 100 can display the first entrance animation in the video editing interface through the adjusted entrance playing time, that is, display the entrance animation of the first material with the animation effect of animation A.

[0131] S505: receiving a fifth user operation of selecting an appearance animation adding control, and displaying one or more appearance animation options in the video editing interface, wherein the one or more appearance animation options include an option for the first appearance animation.

[0132] by Fig. 1I Taking the embodiment shown as an example, the exit animation adding control may be an "exit" label corresponding to the exit animation option in the label bar 215. The electronic device 100 may receive a fifth user operation of selecting the "exit" label. The fifth user operation may be a user operation of clicking the "exit" label. Furthermore, the electronic device 100 may display buttons corresponding to one or more exit animation options. Fig. 1I The animation option area 221 in the figure. Among them, the options of one or more appearance animations may include the option of the first appearance animation.

[0133] In some embodiments, the electronic device may directly display buttons corresponding to one or more appearance animation options in the video editing interface without receiving an operation of the user clicking the "appearance" label (i.e., adding an appearance animation control). Figure 3A The embodiment shown.

[0134] S506: Receive a fourth user operation on an option of the first appearance animation, and display a second sliding bar, where the second sliding bar is used to adjust the appearance playing duration of the first appearance animation in the first video.

[0135] by Figure 1JTaking the embodiment shown as an example, the first appearance animation may be an option of animation B. The electronic device 100 may receive an operation on the animation button 221B corresponding to the animation B option. Furthermore, the electronic device 100 may display a non-grayed slider 219. The slider 219 is used to adjust the appearance playing time of the first appearance 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 of sliding the slider in the second slider bar to the second position, and display the first appearance playing time corresponding to the second position. Figure 1K-1L In the embodiment shown, the electronic device 100 can receive a user sliding the slider 220 to Figure 1L The electronic device 100 can then display the first playing time corresponding to the position of the slider 220 (i.e., the second position). Figure 1L 0.6s shown on the right side of the slider 219). Figure 3D-Figure 3F In the embodiment shown, the electronic device can receive a signal from a user sliding the slider 309 to Figure 3F The operation of the position shown (i.e. the first position) will then display the appearance and playback time corresponding to the second position.

[0137] In some embodiments, when the sum of the first entry playback time and the first exit playback time exceeds the total time, the electronic device 100 can adjust the slider in the first slider bar to the third position to display the second entry playback time corresponding to the third position, and the sum of the second entry playback time and the first exit playback time is equal to the total time. Figure 1N In the embodiment shown, when the electronic device 100 receives the user's operation of sliding the slider 220 to the left, the sum of the first entrance playing time and the first exit playing time will exceed the total time. Then the electronic device 100 can slide the slider 218 to follow the slider 220. Fig.1O The third position is on the same vertical line as the position of the slider 220, and the second entry playing time (i.e. Fig.1O The duration corresponding to the position of the middle slider 218 is 0.2s) and the duration of the first appearance (i.e. Fig.1O The sum of the durations (0.8 s) corresponding to the position of the middle slider 220 is equal to the total duration.

[0138] In some embodiments, the electronic device 100 may also receive a sixth user operation of sliding the slider in the first slider to the first position, and the playing time of the entrance animation is the first entrance playing time. Then, the electronic device 100 may receive a seventh user operation of sliding the slider in the second slider to the second position. When the sum of the first entrance playing time and the first exit playing time corresponding to the second position exceeds the total time, the electronic device 100 may also adjust the slider in the second slider from the second position to the fourth position. The sum of the second exit playing time corresponding to the fourth position and the first entrance playing time corresponding to the first position is equal to the total time. That is, when the electronic device 100 receives the user's operation on the slider 219, so that the sum of the entrance playing time and the exit playing time exceeds the total time, the electronic device 100 may not change the position of the slider 218, but slide the slider on the slider 219 back to the fourth position on the same vertical line as the position of the slider 218 in the slider 217. In this way, the playing time of the entrance animation and the playing time of the exit animation also do not exceed the total time of the first material in the video.

[0139] In some embodiments, the electronic device 100 may receive an operation of sliding a slider in a first slider bar to a first position, and display the first entrance playback duration corresponding to the first position; then the electronic device 100 may receive an eighth user operation of sliding a slider in a second slider bar toward the end position of the second slider bar, and when the slider in the second slider bar follows the eighth user operation to slide to a fourth position, the slider stops sliding, and displays the second exit playback duration corresponding to the fourth position, and the sum of the second exit playback duration and the first entrance playback duration is equal to the total duration. Among them, the fourth position may 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 fourth position, it cannot continue to slide toward the end position. This ensures that the playback duration of the entrance 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 of sliding the slider in the second slider bar from the second position to the fifth position, and the third exit playback duration corresponding to the fifth position is less than the first exit 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. Figure 1Q-Figure 1R The embodiment shown, Figure 1Q The position of the middle slider 220 may be referred to as the second position. Figure 1RThe position of the slider 220 can be called the fifth position. When the electronic device 100 receives the operation of sliding the slider 220 from the second position to the fifth position, since the sum of the third exit play time and the second entrance play time corresponding to the fifth position does not exceed the total time, the slider 218 will not slide with the slider 220. The electronic device 100 can display the second entrance play time (0.2s) and the third exit play time (0.3s).

[0141] In some embodiments, the starting position of the second slide bar is on the same side as the end position of the first slide bar, and the end position of the second slide bar is on the same side as the starting position of the first slide bar. Referring to the introduction of the slide bar 217 and the slide bar 219 in the above embodiments, no further description is given here.

[0142] In some embodiments, the starting position of the second slider is on the same vertical line as the end position of the first slider, and the end position of the second slider is on the same vertical line as the starting position of the first slider. With reference to the introduction of sliders 217 and 219 in the aforementioned embodiments, no further details are given here. The third position of the first slider and the second position of the second slider can be on the same vertical line. In other words, the sum of the entry play duration corresponding to the third position and the exit play duration corresponding to the second position is equal to the total duration of the first material in the video. Among them, the starting position of the first slider (or the second slider) can also be referred to as the starting point of the first slider (or the second slider), and the end position of the first slider (or the second slider) can also be referred to as the end 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, the track bar of the first video and the track bar of the first material may also be displayed, and the length of the track bar of the first material is used to indicate the total duration of the first material. The electronic device 100 may receive a tenth user operation of the user adjusting the track bar of the first material from the first length to the second length, wherein when the track bar of the first material is the first length, the total duration of the first material is the first total duration, and when the track bar of the first material is the second length, the total duration of the first material is the second total duration. Reference Figure 2B In the embodiment shown, the track bar in the first video may include one or more of the video picture track 203A and the audio track 203B. The track bar of the first material may be the text track bar 203D. Figure 2H Taking the case where the sum of the playing time of the entrance animation and the playing time of the exit animation is equal to the total animation time as an example, the length of the text track bar 203D at this time can be called the first length.

[0144] The electronic device 100 can receive the user's text track bar 203D from Figure 2HThe first length adjustment shown is 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. The 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 entrance playback duration of the first entrance animation after reduction to the second total duration is equal to the ratio of the entrance playback duration of the first entrance animation to the first total duration before reduction, and the ratio of the exit playback duration of the first exit animation after reduction to the second total duration is equal to the ratio of the exit playback duration of the first exit animation to the first total duration before reduction (reference Figure 2K ).

[0145] In other embodiments, when the electronic device 100 receives the tenth user operation to increase the length of the text track bar 203D, the second total duration is greater than the first total duration, and the electronic device 100 can increase the normal display time of the first material (i.e., the duration without animation effects between the entry animation and the exit animation), wherein the entry playback duration of the first entry 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 is used to indicate the duration of the first entrance animation, and the second track is used to indicate the duration of the first exit animation. Figure 2C The embodiment shown.

[0147] In some embodiments, after adjusting the appearance playing time of the first appearance animation, the electronic device 100 can display the first appearance animation in the video editing interface through the adjusted appearance playing time, that is, display the appearance animation of the first material with the animation effect of animation B.

[0148] The method of editing the animation of other types of materials can refer to the method of editing the animation of text materials in the above embodiment, which will not be repeated here.

[0149] An exemplary electronic device 100 provided in an embodiment of the present application is introduced below.

[0150] Figure 6 It is a schematic diagram of the structure of the electronic device 100 provided in an embodiment of the present application.

[0151] The following is a detailed description of the embodiment using the electronic device 100 as an example. It should be understood that the electronic device 100 may have more than Figure 6 More or fewer components may be shown, two or more components may be combined, or there may be a different configuration of components. Figure 6 The various components shown in the EMBODIMENTS 2000 may 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] The 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, an earphone interface 170D, a sensor module 180, a camera 193, a display screen 194, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a touch sensor 180B, etc.

[0153] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0154] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0155] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, 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 a charger, where 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, the internal memory 121, the external memory, the display screen 194, the camera 193, etc.

[0158] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0159] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0160] The camera 193 is used to capture still images or videos. The electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0161] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0162] The video codec is used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record videos in multiple coding formats.

[0163] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0164] The external memory 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 memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0165] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The program storage area may store an operating system, applications required for at least one function (such as face recognition function, fingerprint recognition function, mobile payment function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as face information template data, fingerprint information template, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0166] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0167] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

[0168] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.

[0169] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.

[0170] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals.

[0171] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 can also calculate the position of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions.

[0172] The touch sensor 180B is also called a "touch panel". The touch sensor 180B can be arranged on the display screen 194, and the touch sensor 180B and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180B is used to detect touch operations acting on or near it. The touch sensor can pass 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 the display screen 194. In other embodiments, the touch sensor 180B can also be arranged on the surface of the electronic device 100, which is different from the position of the display screen 194.

[0173] The structure of the electronic device 101 may refer to the structure of the electronic device 100 , and will not be described in detail here.

[0174] Figure 7 It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.

[0175] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the system is divided into four layers, from top to bottom, namely the application layer, the application framework layer, the runtime and system library, and the kernel layer. The application layer can include a series of application packages.

[0176] like Figure 7As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications (also referred to as applications).

[0177] The application framework layer provides an application programming interface (API) and a programming framework for the 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, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0179] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0180] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0181] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0182] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).

[0183] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0184] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications from applications running in the background, or a notification that appears on the screen in the form of a dialogue interface. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0185] The runtime includes the core library and the virtual machine. The runtime is responsible for the scheduling and management of the system.

[0186] The core library consists of two parts: one part is the function that the programming language (for example, Java language) needs to call, and the other part is the core library of the system.

[0187] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the programming files (e.g., java files) of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0188] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as 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 a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[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 drawing engine for 2D drawings.

[0193] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, sensor driver, and virtual card driver.

[0194] The software structure of the electronic device 101 may refer to the structure of the electronic device 100 and will not be described in detail here.

[0195] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0196] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.

[0197] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part 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, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. 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 contains one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0198] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

Claims

1. A video editing method, characterized in that: include: Displaying a video editing interface, wherein the video editing interface is used to edit the first video, and the video editing interface includes a material adding control; receiving a first user operation acting on the material adding control, and displaying a first material and an animation setting control in the video editing interface; receiving a second user operation acting on the animation setting control; In response to the second user operation, displaying one or more options of entrance animations in the video editing interface, wherein the one or more options of entrance animations include an option of the first entrance animation; receiving a third user operation acting on an option of the first entrance animation, and displaying a first sliding bar, wherein the first sliding bar is used to adjust the entrance playing time of the first entrance animation in the first video; Displaying one or more options of appearance animations in the video editing interface, wherein the one or more options of appearance animations include an option of the first appearance animation; A fourth user operation acting on an option of the first appearance animation is received, and a second sliding bar is displayed, where the second sliding bar is used to adjust the appearance playing duration of the first appearance animation in the first video.

2. The method according to claim 1, characterized in that In response to the second user operation, displaying one or more entry animation options in the video editing interface specifically includes: In response to the second user operation, displaying an entry animation adding control and an exit animation adding control in the video editing interface; When the entrance animation adding 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 of displaying one or more appearance animations in the video editing interface specifically includes: A fifth user operation of selecting the appearance animation adding control is received, and one or more appearance animation options are displayed in the video editing interface in response to the fifth user operation.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: receiving a sixth user operation of sliding the slider in the first slider bar to a first position, and displaying a first entrance playback time corresponding to the first position; receiving and responding to a seventh user operation of sliding the slider in the second slider bar to a second position, and displaying a first appearance playing time length corresponding to the second position; When the sum of the first entry playback time and the first exit playback time exceeds the total time, the slider in the first slider bar is adjusted to a third position to display the second entry playback time corresponding to the third position, and the sum of the second entry playback time and the first exit playback time is equal to the total time.

5. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: receiving a sixth user operation of sliding the slider in the first slider bar to a first position, and displaying a first entrance playback time corresponding to the first position; A seventh user operation of sliding the slider in the second slider bar to a second position is received; when the sum of the first entry playback duration and the first exit playback duration corresponding to the second position exceeds the total duration, the slider in the second slider bar is adjusted from the second position to a fourth position, and the second exit playback duration corresponding to the fourth position is displayed, and the sum of the second exit playback duration and the first entry playback duration is equal to the total duration.

6. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: receiving an operation of sliding the slider in the first slider bar to a first position, and displaying a first entrance playback time corresponding to the first position; An eighth user operation is received to slide the slider in the second slider bar toward the end position of the second slider bar. When the slider in the second slider bar slides to the fourth position following the eighth user operation, the sliding is stopped, and the second exit playback time corresponding to the fourth position is displayed, and the sum of the second exit playback time and the first entry playback time is equal to the total time.

7. The method according to claim 4, characterized in that The method further comprises: receiving a ninth user operation of sliding the slider in the second slider bar from the second position to a fifth position, wherein a third appearance playing time length corresponding to the fifth position is shorter than a first appearance playing time length 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.

8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: After adjusting the entrance playing time of the first entrance animation, the first entrance animation is displayed on the video editing interface using the adjusted entrance playing time.

9. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: After adjusting the appearance playing time of the first appearance animation, the first appearance animation is displayed on the video editing interface using the adjusted appearance playing time.

10. The method according to any one of claims 1 to 9, characterized in that: The starting position of the second sliding bar is on the same side as the ending position of the first sliding bar, and the ending position of the second sliding bar is on the same side as the starting position of the first sliding bar.

11. The method according to any one of claims 1 to 10, characterized in that: The starting position of the second sliding bar and the ending position of the first sliding bar are on the same vertical line, the ending position of the second sliding bar and the starting position of the first sliding bar are on the same vertical line, and the third position of the first sliding bar and the second position of the second sliding bar are on the same vertical line.

12. The method according to any one of claims 1 to 11, characterized in that: The method further includes: after adjusting the entrance playing time of the first entrance animation and the exit playing time 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 indicate the total time length of the first material; receiving a tenth user operation of adjusting 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 total duration of the first material is a first total duration, and when the track bar of the first material is the second length, the total duration of the first material is a 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, and the entrance playing duration of the first entrance animation and the exit playing duration of the first exit animation remain 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 entrance playback duration of the first entrance animation to the second total duration after the reduction is equal to the ratio of the entrance playback duration of the first entrance animation to the first total duration before the reduction, and the ratio of the exit playback duration of the first exit animation to the second total duration after the reduction is equal to the ratio of the exit playback duration of the first exit animation to the first total duration before the reduction.

13. The method according to claim 12, characterized in that The method further comprises: A first track and a second track are displayed in the track bar of the first material, wherein the first track is used to indicate the entrance playing time of the first entrance animation, and the second track is used to indicate the exit playing time of the first exit animation.

14. The method according to any one of claims 1 to 13, characterized in that: The first material includes one or more of a clip, text, and a sticker.

15. An electronic device, characterized in that: The electronic device comprises: 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, the electronic device implements the method as described in any one of claims 1 to 14.

16. A computer-readable storage medium comprising computer instructions, characterized in that: When the computer instructions are executed on an electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 14.

Citation Information

Patent Citations

  • Display control method and system for progress bar of media player, and media player

    CN106935254A

  • Video editing method and video editing device

    CN112702656A

  • Video editing method and device, terminal and storage medium

    CN113242467A

  • Video processing method and device, electronic equipment and storage medium

    CN113542854A

  • Video processing method and electronic equipment

    CN115484395A