Video editing method, device, storage medium and electronic device

By responding to the user's sliding operation in video editing technology and controlling the movement rate and direction of the image frame sequence, the problem of low editing efficiency in the existing technology is solved and a more efficient video editing operation is achieved.

CN114697749BActive Publication Date: 2024-09-03BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011583705.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-28
Publication Date
2024-09-03
Estimated Expiration
2040-12-28

AI Technical Summary

Technical Problem

In the existing video editing technology, the increase in the number of preview frames of the video to be edited leads to a decrease in the efficiency of the user's editing operation, and the movement of the image frame sequence cannot be effectively controlled when sliding the editing axis, resulting in low editing efficiency.

Method used

By displaying the image frame sequence and editing frame of the video to be edited on the display interface, in response to the user's sliding operation, the moving rate and direction of the image frame sequence are determined, so that the number of image frames in the editing frame increases or decreases, and the image frame sequence moves at the moving rate Move in the corresponding direction, and all image frames in the editing frame are used to compose the edited video.

Benefits of technology

The efficiency of video editing is significantly improved. Users can adaptively control the movement rate of the image frame sequence according to needs, quickly increase or decrease the number of image frames in the editing frame, and improve the operation efficiency of video editing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114697749B
    Figure CN114697749B
Patent Text Reader

Abstract

The present disclosure relates to a video editing method, device, storage medium and electronic device. The method comprises: displaying an image frame sequence and an editing frame of a video to be edited on a display interface, wherein the editing frame comprises a target editing axis that can slide along the front-back direction of the image frame sequence; in response to a sliding operation on the target editing axis, determining a moving speed and a moving direction of the image frame sequence, wherein the moving speed is related to a distance between the target editing axis and a reference area on the display interface; controlling the image frame sequence to move along the moving direction at the moving speed to increase or decrease the number of image frames in the editing frame, wherein all image frames in the editing frame are used to form the edited video. By adopting this method, the efficiency of editing videos can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the development of sharing platforms, more and more people like to record their lives in the form of videos and publish them on sharing platforms to share life stories with the public. In order to conveniently record and share life videos anytime and anywhere, people gradually tend to use mobile phones to shoot videos, edit the videos with mobile phones, and then publish the streamlined videos directly on sharing platforms through mobile phones.

[0003] In the related art, after the video to be edited is loaded into a video editor, the video editor displays all preview frames (image frame sequences) of the video. The longer the video, the more preview frames it has. As the number of preview frames of the video to be edited increases, the user's editing operation efficiency will be greatly reduced. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides a video editing method, device, storage medium and electronic device to achieve the purpose of improving the efficiency of video editing.

[0005] According to a first aspect of an embodiment of the present disclosure, a video editing method is provided, the method comprising:

[0006] Displaying an image frame sequence of a video to be edited and an editing frame on a display interface, wherein the editing frame includes a target editing axis that can slide along a front-to-back direction of the image frame sequence;

[0007] In response to a sliding operation on the target editing axis, determining a moving speed and a moving direction of the image frame sequence, wherein the moving speed is related to a distance between the target editing axis and a reference area on the display interface;

[0008] The image frame sequence is controlled to move along the moving direction at the moving rate to increase or decrease the number of image frames in the editing frame, wherein all image frames in the editing frame are used to compose the edited video.

[0009] Optionally, the editing frame includes a first editing axis and a second editing axis, the target editing axis is the first editing axis, and the reference area is an edge on the display interface corresponding to the second editing axis;

[0010] Determining the moving rate of the image frame sequence includes:

[0011] The moving rate of the image frame sequence is determined according to the distance from the position of the first editing axis to the edge, wherein the magnitude of the moving rate is inversely correlated with the distance from the position of the first editing axis to the edge.

[0012] Optionally, the editing frame includes a first editing axis and a second editing axis, the target editing axis is the first editing axis, and determining the moving direction of the image frame sequence includes:

[0013] In the case where a sliding operation is detected on the first editing axis, if the first editing axis slides between an initial position of the first editing axis and the second editing axis, determining that the moving direction of the image frame sequence is a direction for reducing the number of image frames in the editing frame;

[0014] If the first editing axis slides between an initial position of the first editing axis and an edge of the display interface away from the second editing axis, the moving direction of the image frame sequence is determined to be a direction for increasing the number of image frames in the editing frame.

[0015] Optionally, the method further comprises:

[0016] In a case where the moving direction of the image frame sequence is a direction for reducing the number of image frames in the clipping frame, determining the reference area to be an edge on the display interface corresponding to the second clipping axis;

[0017] In a case where the moving direction of the image frame sequence is a direction for increasing the number of image frames in the clipping frame, determining the reference area to be an edge on the display interface corresponding to the first clipping axis;

[0018] Determining the moving rate of the image frame sequence includes:

[0019] The moving rate of the image frame sequence is determined according to the distance from the position of the first editing axis to the reference area, wherein the magnitude of the moving rate is inversely correlated with the distance from the position of the first editing axis to the reference area.

[0020] Optionally, in response to the sliding operation on the target editing axis, determining the moving speed and moving direction of the image frame sequence includes:

[0021] When it is determined that the target editing axis is in a selected state, continuously detecting the position of the target editing axis on the display interface;

[0022] In a case where the target editing axis is in a selected state, in response to a sliding operation on the target editing axis, determining a moving rate of the image frame sequence according to a detected position of the target editing axis on the display interface;

[0023] The method also includes: in the process of controlling the image frame sequence to move along the moving direction at the moving rate, if an operation to end the selected state of the target editing axis is detected, then the movement of the image frame sequence is stopped, and all the image frames in the editing frame are combined into a clipped video.

[0024] Optionally, some image frames in the image frame sequence are target image frames, and the method further includes:

[0025] In the process of controlling the image frame sequence to move in the moving direction at the moving rate, determining the Nth image frame before the target image frame and the Mth image frame after the target image frame in the moving direction, where N and M are both positive integers greater than or equal to 1;

[0026] When the Nth image frame passes through the target editing axis, the moving rate of the image frame sequence is reduced, and when the Mth image frame passes through the target editing axis, the moving rate of the image frame sequence is restored.

[0027] Optionally, when the Nth image frame passes through the target editing axis, the method further includes:

[0028] The information for prompting the user to pay attention to the target image frame is displayed to the user.

[0029] Optionally, controlling the image frame sequence to move along the moving direction at the moving rate comprises:

[0030] The image frame in the clipping frame is moved in the moving direction at the moving speed and displayed.

[0031] According to a second aspect of an embodiment of the present disclosure, a video editing device is provided, including:

[0032] A display module, configured to display an image frame sequence of a video to be edited and an editing frame on a display interface, wherein the editing frame includes a target editing axis that can slide along a front-to-back direction of the image frame sequence;

[0033] a first determining module, configured to determine a moving speed and a moving direction of the image frame sequence in response to a sliding operation on the target editing axis, wherein the moving speed is related to a distance between the target editing axis and a reference area on the display interface;

[0034] The control module is configured to control the image frame sequence to move along the moving direction at the moving rate to increase or decrease the number of image frames in the editing frame, wherein all image frames in the editing frame are used to compose the edited video.

[0035] Optionally, the clipping frame includes a first clipping axis and a second clipping axis, the target clipping axis is the first clipping axis, the reference area is an edge on the display interface corresponding to the second clipping axis; and the first determining module includes:

[0036] The first determination submodule is configured to determine the moving rate of the image frame sequence according to the distance from the position of the first editing axis to the edge, wherein the magnitude of the moving rate is inversely correlated with the distance from the position of the first editing axis to the edge.

[0037] The editing frame includes a first editing axis and a second editing axis, the target editing axis is the first editing axis, and the first determining module includes:

[0038] a second determining submodule configured to, when a sliding operation is detected on the first editing axis, determine that the moving direction of the image frame sequence is a direction for reducing the number of image frames in the editing frame if the first editing axis slides between an initial position of the first editing axis and the second editing axis;

[0039] The third determination submodule is configured to determine that the moving direction of the image frame sequence is a direction for increasing the number of image frames in the editing frame if the first editing axis slides between an initial position of the first editing axis and an edge of the display interface away from the second editing axis.

[0040] Optionally, the device further comprises:

[0041] A second determining module is configured to determine that the reference area is an edge on the display interface corresponding to the second editing axis when the moving direction of the image frame sequence is a direction for reducing the number of image frames in the editing frame;

[0042] A third determining module is configured to determine that the reference area is an edge on the display interface corresponding to the first editing axis when the moving direction of the image frame sequence is a direction for increasing the number of image frames in the editing frame;

[0043] The first determining module includes:

[0044] The fourth determination submodule is configured to determine the moving rate of the image frame sequence according to the distance from the position of the first editing axis to the reference area, wherein the magnitude of the moving rate is inversely correlated with the distance from the position of the first editing axis to the reference area.

[0045] Optionally, the first determining module further includes:

[0046] a detection submodule, configured to continuously detect the position of the target editing axis on the display interface when determining that the target editing axis is in a selected state;

[0047] an execution submodule, configured to determine a moving rate of the image frame sequence according to a detected position of the target editing axis on the display interface in response to a sliding operation on the target editing axis when the target editing axis is in a selected state;

[0048] The device also includes:

[0049] The first execution module is configured to stop moving the image frame sequence and combine all the image frames in the editing frame into a clipped video if an operation to end the selected state of the target editing axis is detected during the process of controlling the image frame sequence to move along the moving direction at the moving rate.

[0050] Optionally, some image frames in the image frame sequence are target image frames, and the device further includes:

[0051] A second execution module is configured to determine, in a process of controlling the image frame sequence to move in the moving direction at the moving rate, an Nth image frame before the target image frame and an Mth image frame after the target image frame in the moving direction, where N and M are both positive integers greater than or equal to 1;

[0052] The third execution module is configured to reduce the moving rate of the image frame sequence when the Nth image frame passes through the target editing axis, and restore the moving rate of the image frame sequence when the Mth image frame passes through the target editing axis.

[0053] Optionally, the third execution module is further configured to display information for prompting the user to pay attention to the target image frame when the Nth image frame passes through the target editing axis.

[0054] Optionally, the control module is further configured to move in the clipping frame at the moving speed in the moving direction and display the image frame in the clipping frame.

[0055] According to a third aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of any one of the video editing methods provided in the first aspect of the present disclosure are implemented.

[0056] According to a fourth aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0057] a memory having a computer program stored thereon;

[0058] A processor is used to execute the computer program in the memory to implement the steps of any one of the methods described in the first aspect of the present disclosure.

[0059] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0060] The image frame sequence and the editing frame of the video to be edited are displayed on the display interface, and the editing frame includes a target editing axis that can slide along the front-back direction of the image frame sequence. In response to the sliding operation on the target editing axis, the moving speed and moving direction of the image frame sequence are determined, wherein the moving speed is related to the distance between the target editing axis and the reference area on the display interface. The image frame sequence is controlled to move in the moving direction at the moving speed to increase or decrease the number of image frames in the editing frame, wherein all image frames in the editing frame are used to form the edited video. In this way, when the user slides the target editing axis to lengthen the editing frame to frame more image frames, or when the user slides the target editing axis to shorten the editing frame to frame fewer image frames, the image frame sequence is controlled to move in the corresponding moving direction at the same time, which can further accelerate the editing purpose of increasing or reducing the number of image frames in the editing frame. In addition, using the above-mentioned technical solution of the present disclosure, when the user slides the target editing axis, the distance between the target editing axis and the reference area will change, and when the distance between the target editing axis and the reference area changes, the moving speed of the image frame sequence changes. Therefore, the user can control the moving rate of the image frame sequence by changing the distance between the target editing axis and the reference area. When the user can control the moving rate of the image frame sequence, the user can adaptively control the increase or decrease of the number of image frames in the editing frame at different rates according to the needs, further improving the efficiency of the user in editing the video using the editing frame.

[0061] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0063] Figure 1 The figure is a flowchart of a video editing method according to an exemplary embodiment.

[0064] Figure 2 The figure is a schematic diagram of a video clip according to an exemplary embodiment.

[0065] Figure 3 is another schematic diagram of video editing according to an exemplary embodiment.

[0066] Figure 4 is another schematic diagram of video editing according to an exemplary embodiment.

[0067] Figure 5 The invention is a block diagram of a video editing device according to an exemplary embodiment.

[0068] Figure 6 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0069] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0070] In the related art, after the video to be edited is loaded into the video editor, the video editor displays the video preview frame sequence of the video to be edited, and the longer the video is, the more video preview frames there are (i.e., the longer the sequence is). After the video to be edited is loaded into the editor, the display interface of the editor can display the video preview frame sequence of the video to be edited. By clicking / selecting the video preview frame sequence of the video to be edited, the editing frame is displayed, and the editing frame will frame the entire video preview frame sequence of the video to be edited by default. By sliding the editing axis on the editing frame, the length of the editing frame can be shortened, thereby reducing the number of video image frames framed by the editing frame. After reducing the number of video image frames framed by the editing frame, continuing to slide the editing axis on the editing frame can also lengthen the length of the editing frame, thereby increasing the number of video image frames framed by the editing frame. When the user determines not to slide the editing axis on the editing frame (the user no longer slides the editing axis to indicate that the user has currently completed editing using the editing frame), the video image frames in the editing frame constitute the edited video, thus completing a video editing operation.

[0071] However, in the related art, since the video preview frame sequence of the video to be edited does not move when the user slides the editing axis, this method makes the editing efficiency very low. In order to solve the problem of low editing efficiency in this method, when the user slides the editing axis, the video preview frame sequence of the video to be edited can be controlled to move in the direction opposite to the direction in which the user slides the editing axis at a certain speed. In this way, the number of video image frames in the editing frame can be increased or decreased more quickly, so as to achieve the purpose of improving editing efficiency.

[0072] However, in the scenario of multiple video clips or long video clips, the editing efficiency of this method of controlling the video preview frame sequence of the video to be edited to move in the opposite direction of the direction in which the user slides the editing axis at a certain rate is still not high enough. For example, when the video preview frame sequence is particularly long, if the user only wants to keep the first one-tenth of the video preview frame sequence, then even if the user slides the right editing axis to the left and controls the video preview frame sequence of the video to be edited to move to the right at a certain rate, it will take nine-tenths of the length of the video preview frame sequence as the dividend, the sum of the right editing axis and the certain rate as the divisor to edit the first one-tenth of the video in the video preview frame sequence that the user wants to keep. Therefore, the editing efficiency of this method is still not high enough.

[0073] In view of this, the embodiments of the present disclosure provide a video editing method, device, storage medium and electronic device to improve the efficiency of video editing.

[0074] In order to make it easier for those skilled in the art to understand the technical solution of the present disclosure, the relevant principles involved in the embodiments of the present disclosure are briefly explained below.

[0075] The editing frame includes two editing axes. When one of the editing axes is moved, the other editing axis is generally fixed at the current corresponding image frame position. By sliding any editing axis, the editing frame can be lengthened or shortened, thereby reducing or increasing the number of image frames in the editing frame. When sliding any editing axis, the slid editing axis can move at most to a position at a preset distance from the edge of the display screen (that is, the slid editing axis will not slide out of the screen).

[0076] The user can slide the editing axis of the editing box to frame the continuous image frame sequence required by the user. When the user completes the editing using the editing box (that is, the editing box frames and only frames the continuous image frame sequence required by the user), all the image frames in the editing box constitute the edited video. Alternatively, when the image frame is a preview image frame, when the user completes the editing using the editing box, the complete image frame sequence corresponding to all the preview image frames in the editing box constitutes the edited video. Among them, the preview image frame refers to the image frame extracted from all the image frames when the video is too long and it is impossible to fully display all the image frames. Generally, it is extracted at uniform intervals. Since the image frame sequence in the editing box is the image frame that the user wants to keep for composing the edited video. Therefore, the process of changing the image frames in the editing box by operating the editing box is a video editing operation process.

[0077] The specific embodiments of the present disclosure are described below.

[0078] Figure 1 is a flow chart of a video editing method according to an exemplary embodiment. Figure 1 As shown, the video editing method is applied to terminal devices with display screens such as mobile phones and computers, and the video editing method includes the following steps.

[0079] In step S11, the image frame sequence of the video to be edited and an editing frame are displayed on a display interface, wherein the editing frame includes a target editing axis that can slide along the front-to-back direction of the image frame sequence.

[0080] For example, Figure 2 As shown in the figure, the solid-line frame marked with numbers 1, 2, 3, etc. is an image frame, and multiple image frames form an image frame sequence. The rest of the dashed-line frame except the image frame sequence is a clipping frame, and the side where the dot is located in the clipping frame is the clipping axis. It should be known to those skilled in the art that the display interface may also include a positioning pin and an image frame preview area ( Figure 2 ), where the positioning pin is generally an independent white line segment, which is different from the editing axis on the editing box.

[0081] It is worth noting that the target clip axis is Figure 2 The target editing axis can slide along the front-back direction of the image frame sequence. The front direction of the image frame sequence can refer to the direction of the sequence frames when the video is played in forward order. The rear direction of the image frame sequence can refer to the direction of the sequence frames when the video is played in reverse order. For example, see Figure 2 , the forward direction of the image frame sequence refers to the direction of the image frames from 1 to 8. The backward direction of the image frame sequence refers to the direction of the image frames from 8 to 1. For another example, see Figure 2, the front direction of the image frame sequence may refer to the direction of the image frame from 8 to 1. The rear direction of the image frame sequence may refer to the direction of the image frame from 1 to 8.

[0082] In step S12, in response to a sliding operation on the target editing axis, a moving speed and a moving direction of the image frame sequence are determined, wherein the moving speed is related to a distance between the target editing axis and a reference area on the display interface.

[0083] The sliding operation on the target editing axis refers to an operation of controlling the target editing axis to slide, which can be an operation of directly manually operating the target editing axis to slide by a user, or an operation of automatically controlling the target editing axis to slide by a computer program.

[0084] Among them, the reference area can be a linear axis pre-defined on the display interface, with a preset position and parallel to the target editing axis. The reference area can also be a pixel point, a column of pixels, or multiple columns of pixels preset on the display interface. The reference area can also be an edge or a border of the display interface. In this regard, the present disclosure does not impose specific restrictions. When the user slides the target editing axis along the front-to-back direction of the image frame sequence, the distance between the slid target editing axis and the reference area changes as the user slides the target editing axis.

[0085] For example, the reference area may be an edge of the display interface, or a pixel column on the central axis of the display interface, or a pixel column at other positions on the display interface that is parallel to the editing axis.

[0086] In one possible implementation, the moving speed is positively correlated with the distance between the target editing axis and the reference area on the display interface. In another possible implementation, the moving speed is negatively correlated with the distance between the target editing axis and the reference area on the display interface.

[0087] For example, in response to a user's sliding operation on a target editing axis, a moving speed and a moving direction of the image frame sequence are determined. Figure 2, assuming that the reference area is the left edge of the display interface (i.e., the edge line / border), the moving rate is inversely correlated with the distance between the target editing axis and the reference area on the display interface, and whenever the distance between the target editing axis and the reference area decreases by a preset number of pixels (such as 1, 2, 3, 4, etc.), the moving rate increases by a preset speed value. Then, when the user controls the right editing axis to slide to the left, the right editing axis is the target editing axis, and the real-time moving rate value of the image frame sequence can be determined in real time according to the distance between the right editing axis and the left edge of the display interface. It is easy to understand that when the user controls the right editing axis to slide to the left, it can be determined that the user wants to move the right rear part of the image frame in the image frame sequence out of the editing box. In order to move the right rear part of the image frame in the image frame sequence out of the editing box more quickly, the image frame sequence of the video to be edited can be controlled to move to the right while the user controls the right editing axis to slide to the left. In this way, according to the user's sliding operation on the target editing axis, the moving direction of the image frame sequence can also be determined.

[0088] In step S13, the image frame sequence is controlled to move along the moving direction at the moving rate to increase or decrease the number of image frames in the editing frame, wherein all the image frames in the editing frame are used to compose the edited video.

[0089] When the moving rate and moving direction of the image frame sequence are determined in step S12, while the user slides the target editing axis, the image frame sequence is controlled to move in the moving direction at the moving rate, so that the number of image frames in the editing box can be increased or decreased more quickly, so that the editing box can more quickly reach a state where only the part of the continuous image frames that the user wants to keep is framed.

[0090] Optionally, controlling the image frame sequence to move along the moving direction at the moving rate comprises:

[0091] The image frame in the clipping frame is moved in the moving direction at the moving speed and displayed.

[0092] For example, when the user slides the target editing axis and the image frame sequence moves in the moving direction at a moving rate, the image frames in the editing box (including the partial images that gradually enter the editing box) are scrolled and displayed in the editing box. In this way, the user can intuitively perceive the moving rate and moving direction of the image frames in the editing box. When the user can intuitively perceive the moving rate and moving direction of the image frames in the editing box, it is helpful for the user to perceive the speed at which the image frames enter or move out of the editing box. In other words, this method is helpful for the user to perceive the speed at which the editing box edits the video.

[0093] Moreover, when the user can intuitively perceive the speed at which the image frame enters or moves out of the clipping frame, it is also beneficial for the user to adjust the speed at which the image frame enters or moves out of the clipping frame according to needs, that is, to adjust the moving speed and direction of the image frame.

[0094] In this method, an image frame sequence and an editing frame of a video to be edited are displayed on a display interface, and the editing frame includes a target editing axis that can slide along the front-back direction of the image frame sequence. In response to a sliding operation on the target editing axis, a moving rate and a moving direction of the image frame sequence are determined, wherein the moving rate is related to the distance between the target editing axis and a reference area on the display interface. The image frame sequence is controlled to move in the moving direction at the moving rate to increase or decrease the number of image frames in the editing frame, wherein all image frames in the editing frame are used to form the edited video. In this way, when the user slides the target editing axis to lengthen the editing frame to frame more image frames, or when the user slides the target editing axis to shorten the editing frame to frame fewer image frames, the image frame sequence is controlled to move in the corresponding moving direction at the same time, which can further accelerate the editing purpose of increasing or decreasing the number of image frames in the editing frame. In addition, in the above-mentioned technical solution of the present disclosure, when the user slides the target editing axis, the distance between the target editing axis and the reference area will change, and when the distance between the target editing axis and the reference area changes, the moving rate of the image frame sequence changes. Therefore, the user can control the moving rate of the image frame sequence by changing the distance between the target editing axis and the reference area. When the user can control the moving rate of the image frame sequence, the user can adaptively control the increase or decrease of the number of image frames in the editing frame at different rates according to the needs, further improving the efficiency of the user in editing the video using the editing frame.

[0095] By adopting the above technical solution disclosed in the present invention, the efficiency of multi-video editing can be significantly improved in a multi-video editing scenario.

[0096] Optionally, according to the sliding operation on the target editing axis, the direction opposite to the direction of sliding the editing axis may be used as the moving direction of the image frame sequence.

[0097] Optionally, the editing frame includes a first editing axis and a second editing axis, and the target editing axis is the first editing axis. A method of determining the reference area is: the reference area is an edge on the display interface corresponding to the second editing axis.

[0098] In detail, Figure 2 As shown, the editing frame includes a first editing axis and a second editing axis. The first editing axis is the editing axis slid by the user, and the editing axis slid by the user is the target editing axis. The target editing axis can be Figure 2 The left clip axis can also be Figure 2 The second editing axis is the editing axis on the other side corresponding to the first editing axis. Figure 2 The left clip axis is the first clip axis, then Figure 2 The right editing axis in is the second editing axis. Figure 2 The right clip axis is the first clip axis, then Figure 2 The editing axis on the left in the middle is the second editing axis.

[0099] The reference area is the edge of the display interface corresponding to the second editing axis. Figure 2 The left editing axis is the first editing axis, the second editing axis is the right editing axis, and the edge on the display interface corresponding to the right editing axis is the right edge, so the reference area is the right edge. Figure 2 The right editing axis is the first editing axis, then the second editing axis is the left editing axis, the edge on the display interface corresponding to the left editing axis is the left edge, and thus the reference area is the left edge.

[0100] In the case of determining the reference area in the above manner, an achievable implementation manner, wherein determining the moving rate of the image frame sequence comprises: determining the moving rate of the image frame sequence based on the distance from the position of the first editing axis to the edge of the display interface on the side corresponding to the second editing axis, wherein the magnitude of the moving rate is inversely correlated with the distance from the position of the first editing axis to the edge of the display interface on the side corresponding to the second editing axis.

[0101] The magnitude of the moving speed is inversely correlated with the distance from the position of the first editing axis to the edge of the display interface on the side corresponding to the second editing axis. Here, the corresponding calculation formula or corresponding mapping table of the magnitude of the moving speed and the distance from the first editing axis to the reference area is not specifically limited in the present disclosure.

[0102] For example, assuming that the first clip axis is Figure 2 Then, when the user slides the right clip axis to the left, the distance between the right clip axis and the reference area (i.e., the left edge of the display interface) becomes smaller and smaller, and the moving rate of the image frame sequence becomes larger and larger. When the user slides the right clip axis to the right, the distance between the right clip axis and the reference area (i.e., the left edge of the display interface) becomes larger and larger, and the moving rate of the image frame sequence becomes smaller and smaller.

[0103] As another example, assuming that the first clip axis is Figure 2Then, when the user slides the left clip axis to the right, the distance between the left clip axis and the reference area (i.e., the right edge of the display interface) becomes smaller and smaller, and the moving rate of the image frame sequence becomes larger and larger. When the user slides the left clip axis to the left, the distance between the left clip axis and the reference area (i.e., the right edge of the display interface) becomes larger and larger, and the moving rate of the image frame sequence becomes smaller and smaller.

[0104] In this way, when the user slides any editing axis on the editing box, the corresponding reference area can be adaptively determined. When the reference area is determined, the direction of change of the distance between the reference area and the target editing axis slid by the user can be determined. When the direction of change of the distance between the reference area and the target editing axis slid by the user is determined, the direction of change of the moving speed of the image frame sequence can be determined. Therefore, in the above manner, the user can change the moving speed of the image frame sequence by controlling the position of the target editing axis, which is convenient for the user to increase or decrease the number of image frames in the editing box at different rates, thereby achieving the technical effect of improving the efficiency of editing videos using the editing box.

[0105] Optionally, the editing frame includes a first editing axis and a second editing axis, the target editing axis is the first editing axis, and determining the moving direction of the image frame sequence includes:

[0106] In the case where a sliding operation on the first editing axis is detected, if the first editing axis slides between the initial position of the first editing axis and the second editing axis, the moving direction of the image frame sequence is determined to be a direction for reducing the number of image frames in the editing frame; if the first editing axis slides between the initial position of the first editing axis and the edge of the display interface away from the second editing axis, the moving direction of the image frame sequence is determined to be a direction for increasing the number of image frames in the editing frame.

[0107] For example, assuming that the first clip axis is Figure 3 The initial position of the first clip axis is as follows: Figure 3 If the first editing axis slides between the initial position of the first editing axis and the second editing axis (the left edge of the display interface), that is, the first editing axis is Figure 3 If the left side of the initial position line slides back and forth arbitrarily, the moving direction of the image frame sequence is determined to be the direction for reducing the number of image frames in the clipping frame, that is, the moving direction of the image frame sequence is rightward.

[0108] As another example, assuming that the first clip axis is Figure 3 The initial position of the first clip axis is as follows: Figure 3If the first editing axis slides between the initial position of the first editing axis and the edge of the display interface away from the second editing axis (the right edge of the display interface), that is, the first editing axis is Figure 3 If the right side of the initial position line in the image frame slides back and forth arbitrarily, the moving direction of the image frame sequence is determined to be the direction for increasing the number of image frames in the clipping frame, that is, the moving direction of the image frame sequence is moving to the left.

[0109] In this way, when the user slides the target editing axis, if a certain image frame in the editing frame is moved out of the editing frame due to the user's sliding operation, and the user currently wants to keep the moved image frame, the user does not need to interrupt the operation of sliding the target editing axis, but can change the moving direction of the image frame sequence by sliding the target editing axis to the other side of the initial position of the target editing axis, so that the moved image frame re-enters the editing frame. Therefore, in this way, it is convenient for the user to arbitrarily change the moving direction of the image frame sequence without interrupting the current sliding operation.

[0110] Another possible way to determine the reference area is:

[0111] When the moving direction of the image frame sequence is a direction for reducing the number of image frames within the clipping frame, the reference area is determined to be an edge on the display interface on the side corresponding to the second clipping axis; when the moving direction of the image frame sequence is a direction for increasing the number of image frames within the clipping frame, the reference area is determined to be an edge on the display interface on the side corresponding to the first clipping axis.

[0112] For example, assuming that the first clip axis is Figure 3 The initial position of the first clip axis is as follows: Figure 3 If the first editing axis slides between the initial position of the first editing axis and the second editing axis, that is, the first editing axis is Figure 3 If the left side of the initial position line in the image frame is arbitrarily slid back and forth, the moving direction of the image frame sequence is determined to be the direction for reducing the number of image frames in the editing frame, that is, the moving direction of the image frame sequence is moving to the right. In this case, the reference area is determined to be the edge of the display interface corresponding to the second editing axis, that is, Figure 3 The left edge of the display interface is the reference area.

[0113] As another example, assuming that the first clip axis is Figure 3 The initial position of the first clip axis is as follows: Figure 3 If the first editing axis slides between the initial position of the first editing axis and the edge of the display interface away from the second editing axis, that is, the first editing axis is Figure 3If the image frame sequence moves to the right of the initial position line in the image frame, the moving direction of the image frame sequence is determined to be the direction for increasing the number of image frames in the editing frame, that is, the moving direction of the image frame sequence is moving to the left. In this case, the reference area is determined to be the edge of the display interface corresponding to the first editing axis, that is, Figure 3 The right edge of the display interface is the reference area.

[0114] By adopting the above method, the purpose of changing the moving direction of the image frame sequence is achieved by changing the relative position relationship between the first editing axis and the initial position of the first editing axis without interrupting the current sliding operation of the user. On this basis, it is convenient for the user to determine the orientation of the current reference area according to the moving direction of the image frame sequence. When the user knows the position of the reference area, it is beneficial for the user to control the distance between the editing axis and the reference area to achieve the size of the moving speed of the image frame sequence. Therefore, this method is very convenient for the user to operate the editing axis and achieve the purpose of quickly editing the video.

[0115] In detail, when this method of determining the reference area is adopted, determining the moving rate of the image frame sequence includes: determining the moving rate of the image frame sequence based on the distance from the position of the first editing axis to the reference area, wherein the magnitude of the moving rate is inversely correlated with the distance from the position of the first editing axis to the reference area.

[0116] For example, see Figure 2 When the reference area is the edge of the left display interface and the right editing axis is the first editing axis, when the first editing axis is moved, the closer the first editing axis is to the edge of the left display interface, the greater the moving rate of the image frame sequence.

[0117] For example, see Figure 2 When the reference area is the edge of the right display interface and the left editing axis is the first editing axis, when the first editing axis is moved, the closer the first editing axis is to the edge of the right display interface, the greater the moving rate of the image frame sequence.

[0118] Optionally, the target editing axis is the first editing axis and the second editing axis, the reference area is the pixel column corresponding to the central axis of the display interface, or the reference area is the pixel column corresponding to the central axis of the initial editing frame on the display interface.

[0119] Since the target editing axis is the editing axis that is controlled to perform the sliding operation, when the left and right editing axes of the editing frame are slid at the same time, the left and right editing axes are both the target editing axes. Figure 2, assuming that the user simultaneously controls the left and right editing axes to slide toward the middle, the image frame sequence in the editing frame continuously moves out of the editing frame from the left and right sides at the same time. The left image frame sequence (which can be the left half of the image frame sequence in the initial editing frame) moves to the left at a rate determined by the distance between the left editing axis and the reference area, and the right image frame sequence (which can be the right half of the image frame sequence in the initial editing frame) moves to the right at a rate determined by the distance between the right editing axis and the reference area. In this way, the purpose of quickly editing out the middle part of the image frame sequence from the image frame sequence in the current editing frame can be achieved, thereby improving editing efficiency.

[0120] Optionally, in response to the sliding operation on the target editing axis, determining the moving speed and moving direction of the image frame sequence includes:

[0121] In response to a selection operation on the target editing axis, it is determined that the target editing axis is in a selected state; when it is determined that the target editing axis is in the selected state, the position of the target editing axis on the display interface is continuously detected; and when the target editing axis is in the selected state, in response to a sliding operation on the target editing axis, the moving rate of the image frame sequence is determined according to the detected position of the target editing axis on the display interface; the method also includes: in the process of controlling the image frame sequence to move along the moving direction at the moving rate, if an operation to end the selection state of the target editing axis is detected, the moving of the image frame sequence is stopped, and all the image frames in the editing frame are combined into an edited video.

[0122] The selection operation may be an operation of the user pressing and holding the target editing axis, and after the user presses and holds the target editing axis, the target editing axis is in a selected state. The operation of the user releasing the target editing axis is used to end the selected state of the target editing axis.

[0123] For example, in response to a user's selection operation on a target editing axis, the position of the target editing axis on the display interface is continuously detected. Furthermore, when the target editing axis is in a selected state, in response to a user's operation of controlling the target editing axis to slide back and forth, the real-time moving rate of the image frame sequence is determined according to the position of the target editing axis on the display interface detected in real time. In this way, it is possible to determine the change in the moving rate of the image frame sequence according to the change in the distance between the target editing axis and the reference area. In the process of controlling the image frame sequence to move in the moving direction at a moving rate, if it is detected that the user has performed an operation to end the selection state of the target editing axis, the moving image frame sequence is stopped, the detection of the position of the target editing axis on the display interface is stopped, and all image frames in the editing frame are grouped into an edited video.

[0124] It is worth noting that the sliding operation on the target editing axis is an operation that starts when the sliding starts in the selected state and ends when the selected state ends. For example, assume that the user presses the target editing axis, controls the target editing axis to start sliding to the left for a distance, then stops sliding for a period of time, then slides to the right for a distance, and the user releases the target editing axis. The sliding operation process is the process from controlling the target editing axis to start sliding to the left to the user releasing the target editing axis.

[0125] Optionally, some image frames in the image frame sequence are target image frames, and any of the above video editing methods may further include the following steps:

[0126] In the process of controlling the image frame sequence to move in the moving direction at the moving rate, the Nth image frame before the target image frame and the Mth image frame after the target image frame are determined in the moving direction, and both N and M are positive integers greater than or equal to 1; when the Nth image frame passes through the target editing axis, the moving rate of the image frame sequence is reduced, and when the Mth image frame passes through the target editing axis, the moving rate of the image frame sequence is restored.

[0127] Among them, the target image frame is an important key image frame. The target image frame can be obtained by performing saliency detection on each image frame in the image frame sequence. It can also be obtained by detecting whether a specified object (such as a person, a person's expression, an object, etc.) exists in each image frame, and if so, adding a mark to obtain the target image frame. Alternatively, based on the aesthetic (composition) scoring method, the image frame with a high score is marked as the target image frame. The present disclosure does not make specific restrictions on this.

[0128] For example, see Figure 4 , assuming that N is 2, M is 1, the target image frame is the image frame corresponding to number 2, the target editing axis is the right editing axis, and the current user controls the right editing axis to move to the left, and the image frame sequence moves to the right at the corresponding moving rate. In this case, the second image frame before the image frame corresponding to number 2 is determined to be the image frame corresponding to number 4 in the moving direction (i.e., the direction from the image frames of number 1 to number 5), and the first image frame after the image frame corresponding to number 2 is determined to be the image frame corresponding to number 1. When the second image frame (i.e., the image frame corresponding to number 4) passes through the right editing axis, the moving rate of the image frame sequence is reduced, and when the first image frame (i.e., the image frame corresponding to number 1) passes through the right editing axis, the moving rate of the image frame sequence is restored to the rate corresponding to the distance between the current target editing axis and the reference area.

[0129] In the case where the Nth image frame passes through the target editing axis, the method may further include: displaying information to the user for prompting the user to pay attention to the target image frame.

[0130] In this way, when the image frame sequence is moving at high speed, if the target image frame is about to pass through the target editing axis and enter or move out of the editing frame, the moving speed of the image frame sequence can be reduced so that the user can focus on the target image frame and avoid the target image frame being missed or edited multiple times. This can avoid the user from sliding the target editing axis back and forth due to the target image frame being missed or edited multiple times, and thus this method further improves the efficiency of the user's video editing.

[0131] Based on the same inventive concept, the embodiment of the present disclosure also provides a device for editing a video, such as Figure 5 As shown, the device 500 includes: a display module 510 , a determination module 520 and a control module 530 .

[0132] A display module 510 is configured to display an image frame sequence of a video to be edited and an editing frame on a display interface, wherein the editing frame includes a target editing axis that can slide along a front-to-back direction of the image frame sequence;

[0133] A first determination module 520 is configured to determine a moving speed and a moving direction of the image frame sequence in response to a sliding operation on the target editing axis, wherein the moving speed is related to a distance between the target editing axis and a reference area on the display interface;

[0134] The control module 530 is configured to control the image frame sequence to move along the moving direction at the moving rate to increase or decrease the number of image frames in the editing frame, wherein all image frames in the editing frame are used to compose the edited video.

[0135] By adopting this device 500, an image frame sequence and an editing frame of a video to be edited are displayed on a display interface, and the editing frame includes a target editing axis that can slide along the front-back direction of the image frame sequence. In response to a user's sliding operation on the target editing axis, a moving speed and a moving direction of the image frame sequence are determined, wherein the moving speed is related to the distance between the target editing axis and the reference area on the display interface. The image frame sequence is controlled to move in the moving direction at the moving speed to increase or decrease the number of image frames in the editing frame, wherein all image frames in the editing frame are used to form the edited video. In this way, when the user slides the target editing axis to lengthen the editing frame to frame more image frames, or when the user slides the target editing axis to shorten the editing frame to frame fewer image frames, the image frame sequence is controlled to move in the corresponding moving direction at the same time, which can further accelerate the editing purpose of increasing or decreasing the number of image frames in the editing frame. In addition, by adopting the above-mentioned technical solution of the present disclosure, when the user slides the target editing axis, the distance between the target editing axis and the reference area will change, and when the distance between the target editing axis and the reference area changes, the moving speed of the image frame sequence changes. Therefore, the user can control the moving rate of the image frame sequence by changing the distance between the target editing axis and the reference area. When the user can control the moving rate of the image frame sequence, the user can adaptively control the increase or decrease of the number of image frames in the editing frame at different rates according to the needs, further improving the efficiency of the user in editing the video using the editing frame.

[0136] Optionally, the clipping frame includes a first clipping axis and a second clipping axis, the target clipping axis is the first clipping axis, and the reference area is an edge on the display interface corresponding to the second clipping axis; the first determination module 520 includes:

[0137] The first determination submodule is configured to determine the moving rate of the image frame sequence according to the distance from the position of the first editing axis to the edge, wherein the magnitude of the moving rate is inversely correlated with the distance from the position of the first editing axis to the edge.

[0138] The editing frame includes a first editing axis and a second editing axis, the target editing axis is the first editing axis, and the first determining module 520 includes:

[0139] a second determining submodule configured to, when a sliding operation is detected on the first editing axis, determine that the moving direction of the image frame sequence is a direction for reducing the number of image frames in the editing frame if the first editing axis slides between an initial position of the first editing axis and the second editing axis;

[0140] The third determination submodule is configured to determine that the moving direction of the image frame sequence is a direction for increasing the number of image frames in the editing frame if the first editing axis slides between an initial position of the first editing axis and an edge of the display interface away from the second editing axis.

[0141] Optionally, the device 500 further includes:

[0142] A second determining module is configured to determine that the reference area is an edge on the display interface corresponding to the second editing axis when the moving direction of the image frame sequence is a direction for reducing the number of image frames in the editing frame;

[0143] A third determining module is configured to determine that the reference area is an edge on the display interface corresponding to the first editing axis when the moving direction of the image frame sequence is a direction for increasing the number of image frames in the editing frame;

[0144] The first determining module 520 includes:

[0145] The fourth determination submodule is configured to determine the moving rate of the image frame sequence according to the distance from the position of the first editing axis to the reference area, wherein the magnitude of the moving rate is inversely correlated with the distance from the position of the first editing axis to the reference area.

[0146] Optionally, the first determining module 520 further includes:

[0147] a detection submodule, configured to continuously detect the position of the target editing axis on the display interface when determining that the target editing axis is in a selected state;

[0148] an execution submodule, configured to determine a moving rate of the image frame sequence according to a detected position of the target editing axis on the display interface in response to a sliding operation on the target editing axis when the target editing axis is in a selected state;

[0149] The device 500 further includes:

[0150] The first execution module is configured to stop moving the image frame sequence and combine all the image frames in the editing frame into a clipped video if an operation to end the selected state of the target editing axis is detected during the process of controlling the image frame sequence to move along the moving direction at the moving rate.

[0151] Optionally, some image frames in the image frame sequence are target image frames, and the apparatus 500 further includes:

[0152] A second execution module is configured to determine, in a process of controlling the image frame sequence to move in the moving direction at the moving rate, an Nth image frame before the target image frame and an Mth image frame after the target image frame in the moving direction, where N and M are both positive integers greater than or equal to 1;

[0153] The third execution module is configured to reduce the moving rate of the image frame sequence when the Nth image frame passes through the target editing axis, and restore the moving rate of the image frame sequence when the Mth image frame passes through the target editing axis.

[0154] Optionally, the third execution module 530 is further configured to display information for prompting the user to pay attention to the target image frame when the Nth image frame passes through the target editing axis.

[0155] Optionally, the control module is further configured to move in the clipping frame at the moving speed in the moving direction and display the image frame in the clipping frame.

[0156] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0157] The present disclosure also provides a computer-readable storage medium on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of any of the above-mentioned video editing methods provided by the present disclosure are implemented.

[0158] Figure 6 8 is a block diagram of a device 800 for video editing according to an exemplary embodiment. For example, the device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0159] Reference Figure 6 , the device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0160] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned video editing method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0161] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0162] The power component 806 provides power to the various components of the device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.

[0163] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0164] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0165] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0166] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor assembly 814 can also detect the position change of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor assembly 814 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0167] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0168] In an exemplary embodiment, the device 800 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above-mentioned video editing method.

[0169] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 to complete the above-mentioned video editing method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0170] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program that can be executed by a programmable device. The computer program has a code portion for executing the above-mentioned video editing method when executed by the programmable device.

[0171] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present application is intended to cover any modification, use or adaptation of the present disclosure, such as any combination of the above embodiments. These modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and embodiments are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0172] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A video editing method, characterized in that: The method comprises: Displaying an image frame sequence of a video to be edited and an editing frame on a display interface, wherein the editing frame includes a target editing axis that can slide along a front-to-back direction of the image frame sequence; In response to a sliding operation on the target editing axis, determining a moving speed and a moving direction of the image frame sequence, wherein the moving speed is related to a distance between the target editing axis and a reference area of ​​the display interface, and the moving direction is a direction for reducing the number of image frames in the editing frame or a direction for increasing the number of image frames in the editing frame; The image frame sequence is controlled to move along the moving direction at the moving rate to increase or decrease the number of image frames in the editing frame, wherein all image frames in the editing frame are used to compose the edited video.

2. The method according to claim 1, characterized in that The clipping frame includes a first clipping axis and a second clipping axis, the target clipping axis is the first clipping axis, and the reference area is an edge on the display interface corresponding to the second clipping axis; Determining the moving rate of the image frame sequence includes: The moving rate of the image frame sequence is determined according to the distance from the position of the first editing axis to the edge, wherein the magnitude of the moving rate is inversely correlated with the distance from the position of the first editing axis to the edge.

3. The method according to claim 1, characterized in that The editing frame includes a first editing axis and a second editing axis, the target editing axis is the first editing axis, and determining the moving direction of the image frame sequence includes: In the case where a sliding operation is detected on the first editing axis, if the first editing axis slides between an initial position of the first editing axis and the second editing axis, determining that the moving direction of the image frame sequence is a direction for reducing the number of image frames in the editing frame; If the first editing axis slides between an initial position of the first editing axis and an edge of the display interface away from the second editing axis, the moving direction of the image frame sequence is determined to be a direction for increasing the number of image frames in the editing frame.

4. The method according to claim 3, characterized in that The method further comprises: In a case where the moving direction of the image frame sequence is a direction for reducing the number of image frames in the clipping frame, determining the reference area to be an edge on the display interface corresponding to the second clipping axis; In a case where the moving direction of the image frame sequence is a direction for increasing the number of image frames in the clipping frame, determining the reference area to be an edge on the display interface corresponding to the first clipping axis; Determining the moving rate of the image frame sequence includes: The moving rate of the image frame sequence is determined according to the distance from the position of the first editing axis to the reference area, wherein the magnitude of the moving rate is inversely correlated with the distance from the position of the first editing axis to the reference area.

5. The method according to claim 1, characterized in that The step of determining the moving speed and moving direction of the image frame sequence in response to the sliding operation on the target editing axis comprises: When it is determined that the target editing axis is in a selected state, continuously detecting the position of the target editing axis on the display interface; In a case where the target editing axis is in a selected state, in response to a sliding operation on the target editing axis, determining a moving rate of the image frame sequence according to a detected position of the target editing axis on the display interface; The method also includes: in the process of controlling the image frame sequence to move along the moving direction at the moving rate, if an operation to end the selected state of the target editing axis is detected, then the movement of the image frame sequence is stopped, and all the image frames in the editing frame are combined into a clipped video.

6. The method according to any one of claims 1 to 5, characterized in that Some of the image frames in the image frame sequence are target image frames, and the method further includes: In the process of controlling the image frame sequence to move in the moving direction at the moving rate, determining the Nth image frame before the target image frame and the Mth image frame after the target image frame in the moving direction, where N and M are both positive integers greater than or equal to 1; When the Nth image frame passes through the target editing axis, the moving rate of the image frame sequence is reduced, and when the Mth image frame passes through the target editing axis, the moving rate of the image frame sequence is restored.

7. The method according to claim 6, characterized in that The controlling the image frame sequence to move along the moving direction at the moving rate comprises: The image frame in the clipping frame is moved in the moving direction at the moving speed and displayed.

8. A video editing device, characterized in that: include: A display module, configured to display an image frame sequence of a video to be edited and an editing frame on a display interface, wherein the editing frame includes a target editing axis that can slide along a front-to-back direction of the image frame sequence; a first determining module configured to determine a moving speed and a moving direction of the image frame sequence in response to a sliding operation on the target editing axis, wherein the moving speed is related to a distance between the target editing axis and a reference area on the display interface, and the moving direction is a direction for reducing the number of image frames in the editing frame or a direction for increasing the number of image frames in the editing frame; The control module is configured to control the image frame sequence to move along the moving direction at the moving rate to increase or decrease the number of image frames in the editing frame, wherein all image frames in the editing frame are used to compose the edited video.

9. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.

10. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 7.