WO2022126664A1 - 视频编辑方法、终端设备及计算机可读存储介质 - Google Patents

视频编辑方法、终端设备及计算机可读存储介质 Download PDF

Info

Publication number
WO2022126664A1
WO2022126664A1 PCT/CN2020/137795 CN2020137795W WO2022126664A1 WO 2022126664 A1 WO2022126664 A1 WO 2022126664A1 CN 2020137795 W CN2020137795 W CN 2020137795W WO 2022126664 A1 WO2022126664 A1 WO 2022126664A1
Authority
WO
WIPO (PCT)
Prior art keywords
segment
clip
user
switching control
thumbnails
Prior art date
Application number
PCT/CN2020/137795
Other languages
English (en)
French (fr)
Inventor
丛文宣
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2020/137795 priority Critical patent/WO2022126664A1/zh
Publication of WO2022126664A1 publication Critical patent/WO2022126664A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Definitions

  • the present application relates to the technical field of video editing, and in particular, to a video editing method, a terminal device, and a computer-readable storage medium.
  • the embodiments of the present application provide a video editing method, a terminal device, and a computer-readable storage medium, which aim to improve the convenience of video editing and improve user experience.
  • an embodiment of the present application provides a video editing method, including:
  • Video editing page includes a target video template and multiple segment replacement icons of the target video template
  • segment editing page In response to a user triggering operation on one of the segment editing icons, displaying a segment editing page, wherein the segment editing page includes a segment switching control, a segment preview window and a confirmation control;
  • the target video template is edited according to the material clip currently displayed in the clip preview window.
  • an embodiment of the present application further provides a terminal device, where the terminal device includes a memory and a processor; the memory is used to store a computer program;
  • the processor is configured to execute the computer program and implement the following steps when executing the computer program:
  • the video editing page including a target video template and a plurality of segment replacement icons of the target video template
  • a segment editing page In response to a user's triggering operation on one of the segment editing icons, a segment editing page is displayed, and the segment editing page includes a segment switching control, a segment preview window and a confirmation control;
  • the target video template is edited according to the material clip currently displayed in the clip preview window.
  • embodiments of the present application further provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the above-mentioned Steps of video editing method.
  • Embodiments of the present application provide a video editing method, a terminal device, and a computer-readable storage medium, by displaying a video editing page including a target video template and a plurality of segment editing icons, and responding to a user's triggering operation on a segment editing icon , display the clip editing page including the clip switching control, the clip preview window and the confirmation control, and then in response to the user triggering the clip switching control, switch the clips displayed in the clip preview window, and finally respond to the user's triggering of the confirmation control. Trigger the operation to edit the target video template according to the clip currently displayed in the clip preview window. Since the clips displayed in the clip preview window can be switched as the user triggers the clip switching control, it is very convenient for users to select the clips they want to edit the video template, which improves the convenience of video editing. Also improves the user experience.
  • FIG. 1 is a schematic structural diagram of a terminal device implementing the video editing method provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart of steps of a video editing method provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of a video editing page in an embodiment of the present application.
  • FIG. 4 is another schematic diagram of a video editing page in an embodiment of the present application.
  • FIG. 5 is another schematic diagram of a video editing page in an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a segment editing page in an embodiment of the present application.
  • FIG. 7 is another schematic diagram of a segment editing page in an embodiment of the present application.
  • FIG. 8 is another schematic diagram of a segment editing page in an embodiment of the present application.
  • FIG. 9 is another schematic diagram of a segment editing page in an embodiment of the present application.
  • FIG. 10 is another schematic diagram of a segment editing page in an embodiment of the present application.
  • FIG. 11 is another schematic diagram of a segment editing page in an embodiment of the present application.
  • FIG. 12 is a schematic structural block diagram of a terminal device provided by an embodiment of the present application.
  • embodiments of the present application provide a video editing method, a terminal device, and a computer-readable storage medium, by displaying a video editing page including a target video template and a plurality of clip editing icons, and The trigger operation of the edit icon displays the clip editing page including the clip switching control, the clip preview window and the confirmation control, and then in response to the user triggering the clip switching control, the clip displayed in the clip preview window is switched, and finally responds to the user
  • the triggering operation of the confirmation control edits the target video template according to the clip currently displayed in the clip preview window. Since the clips displayed in the clip preview window can be switched as the user triggers the clip switching control, it is very convenient for users to select the clips they want to edit the video template, which improves the convenience of video editing. Also improves the user experience.
  • FIG. 1 is a schematic structural diagram of a terminal device implementing the video editing method provided by the embodiment of the present application.
  • the terminal device 100 includes a display device 110 and a processor (not shown in FIG. 1 ), the display device 110 is used to display a human-computer interaction page, and the display device 110 includes a liquid crystal display screen and a touch display screen, etc. , the processor is used to process the input control instructions, or send and receive signals.
  • the processor may be located inside the removable platform.
  • the processor may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (application specific integrated circuits) circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the terminal device 100 includes a remote controller, a ground control platform, a mobile phone, a tablet computer, a notebook computer, a PC computer, and the like. It can be understood that the terminal device in FIG. 1 and the above-mentioned naming of each component of the terminal device are only for the purpose of identification, and therefore do not limit the embodiments of the present application.
  • FIG. 1 is only used to explain the video editing method provided by the embodiment of the present application, but does not constitute a limitation on the application scene of the video editing method provided by the embodiment of the present application.
  • FIG. 2 is a schematic flowchart of steps of a video editing method provided by an embodiment of the present application.
  • the video editing method can be applied to a terminal device to improve the convenience and user experience of video editing.
  • the video editing method includes steps S101 to S104.
  • Step S101 displaying a video editing page, wherein the video editing page includes a target video template and multiple segment replacement icons of the target video template.
  • the segment replacement icon is in one-to-one correspondence with the segment pits in the target video template, the segment replacement icon displays the time length of the segment pit corresponding to the segment replacement icon, and the length of each segment replacement icon is
  • the display sizes are the same, and the display position of the segment replacement icon may be set based on the actual situation, which is not specifically limited in this embodiment of the present application.
  • the video editing page displays 4 segment replacement icons, so it can be known that the target video template includes 4 segment pits, and the 4 segment pits can be known by the length of time displayed by the 4 segment replacement icons.
  • the time lengths of the bits are 2.5s, 3.5s, 5s and 2s, respectively.
  • the video editing page further includes a video preview window
  • the video preview window displays the target video template
  • the time length of the target video template and the video currently displayed in the video preview window are also displayed below the video preview window. frame.
  • the time length of the target video template is 1 minute and 10 seconds
  • the video frame currently displayed in the video preview window is the 15th second video frame of the target video template.
  • the target video template and the time length of the target video template are displayed through the video preview window, which is convenient for the user to preview the target video template.
  • the display size of the segment replacement icon is determined according to the time length of the corresponding segment pit. Wherein, the longer the time length of the segment pit, the larger the display size of the segment replacement icon, and the shorter the time length of the segment pit, the smaller the display size of the segment replacement icon.
  • the display time lengths of the four segment replacement icons are 2.5s, 3.5s, 5s and 2s respectively, and the display length of the segment replacement icon corresponding to 2s is less than the display length of the segment replacement icon corresponding to 2.5s, 2.5
  • the display length of the segment replacement icon corresponding to s is less than the display length of the segment replacement icon corresponding to 3.5s, and the display length of the segment replacement icon corresponding to 3.5s is less than the display length of the segment replacement icon corresponding to 5s.
  • Step S102 In response to a user triggering operation on one of the segment editing icons, display a segment editing page, wherein the segment editing page includes a segment switching control, a segment preview window and a confirmation control.
  • the user's triggering operation on the segment editing icon includes the user operating the mouse to click the segment editing icon, the user operating the keyboard to confirm the selection of the segment editing icon, and the user's touch operation on the segment editing icon.
  • the clip preview window is used to display material clips so that the user can preview them and is convenient for the user to select the clips.
  • the clip switching control is used to switch the clips displayed in the clip preview window.
  • the confirmation control is used to confirm the clips selected by the user. After the segment edit icon is triggered by the user, the triggered segment edit icon and the untriggered segment edit icon are displayed differently. Exemplarily, as shown in FIG.
  • the segment edit icon corresponding to the segment pit with a time length of 2.5s is triggered by the user, and the display mode of the segment edit icon corresponding to the segment pit with a time length of 2.5s is the same as the rest of the segments. Edit icons are displayed differently.
  • the clip switching control includes a plurality of clip thumbnails, the clips and clip thumbnails are in one-to-one correspondence, and adjacent clip thumbnails among the multiple clip thumbnails are displayed in an overlapping manner.
  • the number of clip thumbnails included in the clip switching control may be adapted to the size of the display screen of the terminal device.
  • the number of clip thumbnails included in the clip switching control may also be different from the size of the display screen of the terminal device. adaptation.
  • the segment editing page includes a segment switching control 10, a segment preview window 20 and a confirmation control 30, and the segment switching control 10 includes 7 material segment thumbnails, and these 7 material segment thumbnails are symmetrical.
  • the clip thumbnails in the control 10 are recorded in the order from top to bottom as clip thumbnail 11, clip thumbnail 12, clip thumbnail 13, clip thumbnail 14, clip thumbnail 15, clip thumbnail.
  • Thumbnail 16 and clip thumbnail 17, clip thumbnail 11 and clip thumbnail 15 have the same display size
  • clip thumbnail 12 and clip thumbnail 16 have the same display size
  • the display size of the thumbnail image 17 is the same, and the time length of the material clip displayed in the clip preview window 20 is 5s.
  • the segment editing page further includes a cancel control 40 and a timeline slider 50.
  • the segment editing page displayed by the terminal device is returned to the video editing page.
  • a segment cut line 51 is displayed on the axis slider 50, and the segment cut line 51 is used to determine the start point or end point of the material segment. The user can determine the start point or end point of the selected material segment by sliding the segment cut line segment.
  • Step S103 in response to the user's triggering operation on the segment switching control, switch the material segments displayed in the segment preview window.
  • the user's triggering operation on the segment switching control may be the user's sliding operation on the scroll wheel of the mouse, or may be the user's finger sliding operation on the segment switching control, which is not specifically limited in this embodiment of the present application.
  • the clips displayed in the clip preview window can be switched based on sensing the triggering operation of the clip switching control by the user, and the thumbnails of the clips in the clip switching control can be switched based on sensing the user's triggering operation of the clip switching control.
  • the display size of the thumbnails of the clips in the clip switching control can be changed based on the triggering operation of the clip switching control by the user.
  • the thumbnails of each material segment in the segment switching control 10 are composed of material segment thumbnail 11 , material segment thumbnail 12 , material segment thumbnail 13 , material segment Thumbnail 14, Clip Thumbnail 15, Clip Thumbnail 16, and Clip Thumbnail 17 change to Clip Thumbnail 12, Clip Thumbnail 13, Clip Thumbnail 14, Clip Thumbnail 15, Clip Thumbnail 17 Thumbnail 16, Clip Thumbnails 17 and the remaining clip thumbnails.
  • the thumbnails of each material segment in the segment switching control 10 are composed of material segment thumbnail 11 , material segment thumbnail 12 , material segment thumbnail 13 , Clip Thumbnails 14, Clip Thumbnails 15, Clip Thumbnails 16, and Clip Thumbnails 17 Change to Other Clip Thumbnails, Clip Thumbnails 11, Clip Thumbnails 12, Clip Thumbnails 13, Clip Thumbnails Clip thumbnails 14 , clip thumbnails 15 , and clip thumbnails 16 .
  • the user can also switch the clips displayed in the clip preview window by sliding the clip switching control to the left or right.
  • the clip thumbnails in the clip switching control 10 are recorded as clip thumbnails 21 , clip thumbnails 22 , clip thumbnails 23 , clip thumbnails in the order from left to right 24.
  • the thumbnails of each material segment in the segment switching control 10 are composed of material segment thumbnail 21 , material segment thumbnail 22 , material segment thumbnail 23 , material segment Clip Thumbnail 24, Clip Thumbnail 25, Clip Thumbnail 26, and Clip Thumbnail 27 Change to Clip Thumbnail 22, Clip Thumbnail 23, Clip Thumbnail 24, Clip Thumbnail 25, Clip Thumbnail 27 Thumbnail 26 and the remaining clip thumbnails.
  • the thumbnails of each material segment in the segment switching control 10 are composed of material segment thumbnails 21 , material segment thumbnails 22 , material segment thumbnails 23 ,
  • the clip thumbnail 24, clip thumbnail 25, clip thumbnail 26, and clip thumbnail 27 change to the remaining clip thumbnails, clip thumbnails 21, clip thumbnails 22, clips in the clip library Thumbnail 23 , Clip Thumbnail 24 , Clip Thumbnail 25 , and Clip Thumbnail 26 .
  • the display sizes of adjacent material clip thumbnails in the plurality of material clip thumbnails are different, and the size change relationship between the material clip thumbnails in the clip switching control satisfies a preset size change relationship.
  • the preset size change relationship includes at least one of the following: from the first preset size to the second preset size, and then from the second preset size to the first preset size, and the first preset size is smaller than the second preset size.
  • the size, and the size ratio between the thumbnails of two adjacent clips is equal to the preset size ratio; gradually change from the first preset size to the second preset size, and the first preset size is smaller than the second preset size , and the size ratio between the thumbnails of two adjacent clips is equal to the preset size ratio; the second preset size gradually changes to the first preset size, and the first preset size is smaller than the second preset size, and The size ratio between the thumbnails of two adjacent clips is equal to the preset size ratio.
  • the first preset size, the second preset size, and the preset size ratio may be set based on actual conditions, which are not specifically limited in this embodiment of the present application.
  • the clip thumbnails 11 , clip thumbnails 12 , clip thumbnails 13 , clip thumbnails 14 , clip thumbnails 15 , clip thumbnails 16 and clips in the clip switching control 10 The size change relationship between the thumbnails 17 is that in the order of the clip thumbnail 11, the clip thumbnail 12, the clip thumbnail 13, and the clip thumbnail 14, the display size gradually increases, and then the display size increases according to the clip thumbnail 14. , clip thumbnail 15 , clip thumbnail 16 , clip thumbnail 17 , the display size gradually decreases.
  • the clip thumbnails in the clip switching control 10 are recorded as clip thumbnails 31 , clip thumbnails 32 , clip thumbnails 33 and clip thumbnails 34 in the order from top to bottom.
  • the display size gradually increases.
  • the clip thumbnails in the clip switching control 10 are recorded as clip thumbnails 41 , clip thumbnails 42 , clip thumbnails 43 and clip thumbnails 44 in the order from top to bottom.
  • the display size gradually decreases.
  • the clips displayed in the clip preview window correspond to the clip thumbnails located in the center of the clip switching control; or, the clips displayed in the clip preview window correspond to the clips located at the first end of the clip switching control. corresponding to the clip thumbnail; or, the material clip displayed in the clip preview window corresponds to the clip thumbnail located at the second end of the clip switching control.
  • the display size of the thumbnail of the material clip corresponding to the material clip displayed in the clip preview window is the largest.
  • the clips displayed in the clip preview window 20 are the clips corresponding to the clip thumbnails 14 located in the center of the clip switching control 10 .
  • the clips displayed in the clip preview window 20 are clips located in the center of the clip switching control 10 .
  • the clips corresponding to the clip thumbnails 34 at the first end of the clip switching control 10 are shown in FIG. 9 .
  • the clips displayed in the clip preview window 20 correspond to the clip thumbnails 41 located at the second end of the clip switching control 10 . footage.
  • the material segment selected by the user in response to the user's triggering operation on the segment switching control, is determined, and the material segment displayed in the segment preview window is switched to the material segment selected by the user.
  • the user's triggering operation on the segment switching control includes a first triggering operation or a second triggering operation, the first triggering operation includes a sliding operation or a clicking operation on the segment switching control by the user, and the second triggering operation includes a user's The double-click operation or long-press operation of the fragment switch control.
  • the clip corresponding to the clip thumbnail in the center of the clip switching control is determined as the clip selected by the user; or in response to the user triggering the clip switching control.
  • the first trigger operation of the clip switching control determines the clip corresponding to the clip thumbnail at the first end of the clip switching control as the clip selected by the user; or in response to the user's first triggering operation on the clip switching control, the clip switching
  • the material segment corresponding to the material segment thumbnail at the second end of the control is determined to be the material segment selected by the user.
  • the material segment corresponding to the material segment thumbnail 14 located in the center of the segment switching control 10 is determined as the material segment selected by the user.
  • the material segment located at the first end of the segment switching control 10 is determined
  • the material segment corresponding to the material segment thumbnail 34 is determined as the material segment selected by the user.
  • the material segment corresponding to the material segment thumbnail 41 at the second end of the segment switching control 10 is determined as the material segment selected by the user.
  • the initial material segment in response to a second triggering operation of the segment switching control by the user, is determined as the material segment selected by the user, wherein the initial material segment includes the material segment determined when the user triggers the segment switching control for the first time ; Switch the clip displayed in the clip preview window to the clip selected by the user.
  • the clip displayed in the clip preview window can be switched to the clip determined when the user triggers the clip switching control for the first time, which is convenient for users who do not want to replace and still want to use the original clip The idea is realized to improve the convenience of video editing.
  • the clip switching control includes a plurality of clip thumbnails, adjacent clip thumbnails among the clip thumbnails are displayed at a preset distance, and the display size of the clip thumbnails is displayed at a predetermined distance. The same, and the display size of the thumbnails of multiple clips will not change based on the user's trigger operation on the clip switching control.
  • the thumbnails of multiple material clips can be changed based on sensing the triggering operation of the clip switching control by the user, and the preset distance can be set based on the actual situation, which is not specifically limited in this embodiment of the present application.
  • the clip switching control 10 includes 6 clip thumbnails, the display sizes of the 6 clip thumbnails are the same, and the 5 clip thumbnails are recorded as clips in the order from left to right Thumbnail 61 , clip thumbnail 62 , clip thumbnail 63 , clip thumbnail 64 , clip thumbnail 65 , and clip thumbnail 66 , it can be known that clip thumbnail 63 is selected by the user.
  • Step S104 in response to the user's triggering operation on the confirmation control, edit the target video template according to the material clip currently displayed in the clip preview window.
  • the material segment currently displayed in the segment preview window 20 is the material segment corresponding to the material segment thumbnail 14 in the segment switching control 10, and the time length of the material segment corresponding to the material segment thumbnail 14 is 5s.
  • the terminal device edits the target video template based on the clip corresponding to the clip thumbnail 14 .
  • the method of editing the target video template may be: obtaining the first time length of the clips currently displayed in the clip preview window, and obtaining and editing the clips triggered.
  • the material fragment currently displayed in the fragment preview window is processed to obtain the target material fragment; the target material fragment is filled into the target fragment pit, wherein , the duration of the target clip is equal to the second duration.
  • the time length of the material segment selected by the user is inconsistent with the time length of the corresponding segment pit, the time length of the material segment selected by the user is adjusted, so that the adjusted time length of the material segment selected by the user is consistent with the time of the corresponding segment pit. The same length does not require manual adjustment by the user, which greatly improves the convenience of video editing.
  • the method of processing the material clip currently displayed in the clip preview window to obtain the target material clip may be: if the first time length is greater than the second time length, intercept the material clip currently displayed in the clip preview window. , to obtain the target material fragment; if the first time length is less than the second time length, continue splicing part of the material fragment at the end of the material fragment currently displayed in the fragment preview window to obtain the target material fragment.
  • the clip editing page further includes a timeline slider and a clip clip line segment located on the timeline slider, the clip clip line segment is used to determine the start point or end point of the clip, and the timeline slider is used to display clips.
  • the timeline of the clip currently displayed in the preview window in response to the user's sliding operation on the clipping line segment, the target start point or target end point of the clipped material clip is determined; according to the target start point or target end point, the clip currently displayed in the clip preview window is intercepted, And the clipped clips are displayed in the clip preview window.
  • the clip editing page also includes a timeline slider 50 and a clip clip line 51 located on the timeline slider 50.
  • the clip clip line 51 is used to determine the start point or end point of the clip, and the clip preview window 20
  • the currently displayed material segment is the material segment corresponding to the material segment thumbnail 14, the time length of the material segment is 5s, and the timeline slider 50 displays the time axis 0:00, 0 of the material segment corresponding to the material segment thumbnail 14.
  • the clipping line segment 51 after sliding is located at the time point of 0:01, it can be determined that the target starting point of the clipped clip is 0: 01
  • the clip preview window 20 displays the clipped clip, and the displayed duration is 0. :04.
  • preset prompt information is output to prompt the user that the clipped clips have different time lengths from the target clips.
  • the video editing method provided by the above embodiment displays a video editing page including a target video template and a plurality of clip editing icons, and in response to a user triggering a clip editing icon, displays a clip switching control, a clip preview window, and a confirmation window.
  • the clip editing page of the control then in response to the user triggering the clip switching control, switch the clips displayed in the clip preview window, and finally in response to the user triggering the confirmation control, according to the clip preview window. clip to edit the target video template. Since the clips displayed in the clip preview window can be switched as the user triggers the clip switching control, it is very convenient for users to select the clips they want to edit the video template, which improves the convenience of video editing. Also improves the user experience.
  • FIG. 12 is a schematic structural block diagram of a terminal device provided by an embodiment of the present application.
  • the terminal device 200 includes a processor 201, a memory 202, and a display device 203.
  • the processor 201, the memory 202, and the display device 203 are connected through a bus 204, such as an I2C (Inter-integrated Circuit) bus.
  • the terminal device 200 includes, but is not limited to, a remote controller, a ground control platform, a mobile phone, a tablet computer, a notebook computer, a PC computer, and the like.
  • the display device 203 includes a liquid crystal display, a touch display, and the like.
  • the processor 201 may be a micro-controller unit (Micro-controller Unit, MCU), a central processing unit (Central Processing Unit, CPU), or a digital signal processor (Digital Signal Processor, DSP) or the like.
  • MCU Micro-controller Unit
  • CPU Central Processing Unit
  • DSP Digital Signal Processor
  • the memory 202 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) magnetic disk, an optical disk, a U disk, or a removable hard disk, or the like.
  • ROM Read-Only Memory
  • the memory 202 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) magnetic disk, an optical disk, a U disk, or a removable hard disk, or the like.
  • the processor 201 is used for running the computer program stored in the memory 202, and implements the following steps when executing the computer program:
  • the video editing page including a target video template and a plurality of segment replacement icons of the target video template
  • the segment editing page In response to a user triggering operation on one of the segment editing icons, displaying a segment editing page, the segment editing page includes a segment switching control, a segment preview window and a confirmation control;
  • the target video template is edited according to the material clip currently displayed in the clip preview window.
  • the segment replacement icons are in one-to-one correspondence with segment pits in the target video template.
  • the segment replacement icon displays the time length of the segment pit corresponding to the segment replacement icon.
  • each of the segment replacement icons has the same display size.
  • the display size of the segment replacement icon is determined according to the time length of the corresponding segment pit.
  • the clip switching control includes a plurality of clip thumbnails, the clips are in one-to-one correspondence with the clip thumbnails, and adjacent clips in the clip thumbnails Thumbnails are displayed overlapping.
  • the plurality of clip thumbnails can be changed based on sensing a triggering operation of the clip switching control by a user.
  • the display size of the thumbnails of the plurality of material clips can be changed based on the triggering operation of the clip switching control by the user.
  • adjacent ones of the plurality of clip thumbnails have different display sizes.
  • the size change relationship between the thumbnails of the material clips in the segment switching control satisfies a preset size change relationship.
  • the preset size change relationship includes at least one of the following:
  • the clips displayed in the clip preview window correspond to the clip thumbnails located in the center of the clip switching control
  • the clips displayed in the clip preview window correspond to the clip thumbnails located at the first end of the clip switching control
  • the clips displayed in the clip preview window correspond to the clip thumbnails located at the second end of the clip switching control.
  • the processor implements, in response to a triggering operation of the segment switching control by the user, when switching the material segments displayed in the segment preview window, for implementing:
  • the material segment selected by the user is determined, and the material segment displayed in the segment preview window is switched to the material segment selected by the user.
  • the processor determines the clip selected by the user in response to a triggering operation of the clip switching control by the user, the processor is configured to:
  • the material segment corresponding to the material segment thumbnail located at the second end of the segment switching control is determined as the material segment selected by the user.
  • the processor determines the clip selected by the user in response to a triggering operation of the clip switching control by the user, the processor is configured to:
  • the initial material segment is determined as the material segment selected by the user, wherein the initial material segment includes the material segment determined when the user triggers the segment switching control for the first time.
  • the clip switching control includes multiple clip thumbnails, and adjacent clip thumbnails among the multiple clip thumbnails are displayed at a preset distance.
  • the display sizes of the multiple clip thumbnails are the same, and the display sizes of the multiple clip thumbnails will not change based on the user's triggering operation on the clip switching control.
  • the processor is configured to, when editing the target video template according to the clip currently displayed in the clip preview window, implement:
  • the material segment currently displayed in the segment preview window is filled into the target segment pit.
  • the processor is further configured to implement the following steps:
  • the clip editing page further includes a timeline slider and a clip cut line segment located on the timeline slider, the clip cut line segment is used to determine the start point or the end point of the material clip, the The processor is also used to implement the following steps:
  • the clips currently displayed in the clip preview window are intercepted according to the target start point or the target end point, and the clipped clips are displayed in the clip preview window.
  • the timeline slider is used to display the timeline of the material clip currently displayed in the clip preview window.
  • the processor is further configured to implement the following steps:
  • preset prompt information is output to prompt the user that the clipped clips have different time lengths from the target clips.
  • Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and the computer program includes program instructions, and the processor executes the program instructions to realize the provision of the above embodiments.
  • the steps of the video editing method are described in detail below.
  • the computer-readable storage medium may be an internal storage unit of the terminal device described in any of the foregoing embodiments, such as a hard disk or a memory of the terminal device.
  • the computer-readable storage medium may also be an external storage device of the terminal device, such as a plug-in hard disk equipped on the terminal device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) ) card, Flash Card, etc.

Abstract

一种视频编辑方法、终端设备及计算机可读存储介质,该方法包括:显示视频编辑页面,其中,所述视频编辑页面包括目标视频模板、所述目标视频模板的多个片段替换图标(S101);响应于用户对一个所述片段编辑图标的触发操作,显示片段编辑页面,其中,所述片段编辑页面包括片段切换控件、片段预览窗口和确认控件(S102);响应于用户对所述片段切换控件的触发操作,切换所述片段预览窗口显示的素材片段(S103);响应于用户对所述确认控件的触发操作,根据所述片段预览窗口当前显示的素材片段,对所述目标视频模板进行编辑(S104)。该方法能够提高视频编辑的便利性。

Description

视频编辑方法、终端设备及计算机可读存储介质 技术领域
本申请涉及视频编辑技术领域,尤其涉及一种视频编辑方法、终端设备及计算机可读存储介质。
背景技术
随着互联网技术的快速发展,越来越多的用户喜欢在社交平台上分享视频。为了提高视频的趣味性和绚丽程度来吸引网友的关注,用户通常会对视频进行编辑。目前,用户可以使用视频模板,并替换视频模板中的视频片段,可以方便用户编辑视频,然而,用户替换视频模板中的视频片段的步骤较为繁琐,用户体验不好。
发明内容
基于此,本申请实施例提供了一种视频编辑方法、终端设备及计算机可读存储介质,旨在提高视频编辑的便利性,提高用户体验。
第一方面,本申请实施例提供了一种视频编辑方法,包括:
显示视频编辑页面,其中,所述视频编辑页面包括目标视频模板、所述目标视频模板的多个片段替换图标;
响应于用户对一个所述片段编辑图标的触发操作,显示片段编辑页面,其中,所述片段编辑页面包括片段切换控件、片段预览窗口和确认控件;
响应于用户对所述片段切换控件的触发操作,切换所述片段预览窗口显示的素材片段;
响应于用户对所述确认控件的触发操作,根据所述片段预览窗口当前显示的素材片段,对所述目标视频模板进行编辑。
第二方面,本申请实施例还提供了一种终端设备,所述终端设备包括存储器和处理器;所述存储器用于存储计算机程序;
所述处理器,用于执行所述计算机程序并在执行所述计算机程序时,实现如下步骤:
通过所述显示装置显示视频编辑页面,所述视频编辑页面包括目标视频模板、所述目标视频模板的多个片段替换图标;
响应于用户对一个所述片段编辑图标的触发操作,显示片段编辑页面,所 述片段编辑页面包括片段切换控件、片段预览窗口和确认控件;
响应于用户对所述片段切换控件的触发操作,切换所述片段预览窗口显示的素材片段;
响应于用户对所述确认控件的触发操作,根据所述片段预览窗口当前显示的素材片段,对所述目标视频模板进行编辑。
第三方面,本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现如上所述的视频编辑方法的步骤。
本申请实施例提供了一种视频编辑方法、终端设备及计算机可读存储介质,通过显示包含目标视频模板和多个片段编辑图标的视频编辑页面,并响应于用户对一个片段编辑图标的触发操作,显示包含片段切换控件、片段预览窗口和确认控件的片段编辑页面,然后响应于用户对该片段切换控件的触发操作,切换该片段预览窗口显示的素材片段,最后响应于用户对该确认控件的触发操作,根据该片段预览窗口当前显示的素材片段,对该目标视频模板进行编辑。由于片段预览窗口显示的素材片段能够随着用户对片段切换控件的触发操作而发生切换,极大的方便用户选择自己想要的素材片段来对视频模板进行编辑,提高了视频编辑的便利性,也提高了用户体验。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。
附图说明
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是实施本申请实施例提供的视频编辑方法的终端设备的一结构示意图;
图2是本申请实施例提供的一种视频编辑方法的步骤示意流程图;
图3是本申请实施例中的视频编辑页面的一示意图;
图4是本申请实施例中的视频编辑页面的另一示意图;
图5是本申请实施例中的视频编辑页面的另一示意图;
图6是本申请实施例中的片段编辑页面的一示意图;
图7是本申请实施例中的片段编辑页面的另一示意图;
图8是本申请实施例中的片段编辑页面的另一示意图;
图9是本申请实施例中的片段编辑页面的另一示意图;
图10是本申请实施例中的片段编辑页面的另一示意图;
图11是本申请实施例中的片段编辑页面的另一示意图;
图12是本申请实施例提供的一种终端设备的结构示意性框图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
附图中所示的流程图仅是示例说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解、组合或部分合并,因此实际执行的顺序有可能根据实际情况改变。
下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。
随着互联网技术的快速发展,越来越多的用户喜欢在社交平台上分享视频。为了提高视频的趣味性和绚丽程度来吸引网友的关注,用户通常会对视频进行编辑。目前,用户可以使用视频模板,并替换视频模板中的视频片段,可以方便用户编辑视频,然而,用户替换视频模板中的视频片段的步骤较为繁琐,用户体验不好。
为解决上述问题,本申请实施例提供了一种视频编辑方法、终端设备及计算机可读存储介质,通过显示包含目标视频模板和多个片段编辑图标的视频编辑页面,并响应于用户对一个片段编辑图标的触发操作,显示包含片段切换控件、片段预览窗口和确认控件的片段编辑页面,然后响应于用户对该片段切换控件的触发操作,切换该片段预览窗口显示的素材片段,最后响应于用户对该确认控件的触发操作,根据该片段预览窗口当前显示的素材片段,对该目标视频模板进行编辑。由于片段预览窗口显示的素材片段能够随着用户对片段切换控件的触发操作而发生切换,极大的方便用户选择自己想要的素材片段来对视频模板进行编辑,提高了视频编辑的便利性,也提高了用户体验。
请参阅图1,图1是实施本申请实施例提供的视频编辑方法的终端设备的一结构示意图。如图1所示,终端设备100包括显示装置110和处理器(图1 中未示出),该显示装置110用于显示人机交互页面,该显示装置110包括液晶显示屏和触摸显示屏等,处理器用于对输入的控制指令进行处理,或者收发信号等。处理器可以设置在可移动平台的内部。
可选的,该处理器可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
终端设备100包括遥控器、地面控制平台、手机、平板电脑、笔记本电脑和PC电脑等。可以理解的,图1中的终端设备以及上述对于终端设备各部件的命名仅仅出于标识的目的,并不因此对本申请实施例进行限制。
以下,将结合图1中的场景对本申请的实施例提供的视频编辑方法进行详细介绍。需知,图1中的场景仅用于解释本申请实施例提供的视频编辑方法,但并不构成对本申请实施例提供的视频编辑方法应用场景的限定。
请参阅图2,图2是本申请实施例提供的一种视频编辑方法的步骤示意流程图。该视频编辑方法可以应用终端设备中,用于提高视频编辑的便利性和用户体验。
具体地,如图2所示,该视频编辑方法包括步骤S101至步骤S104。
步骤S101、显示视频编辑页面,其中,所述视频编辑页面包括目标视频模板、所述目标视频模板的多个片段替换图标。
示例性的,该片段替换图标与该目标视频模板中的片段坑位一一对应,该片段替换图标上显示有与该片段替换图标对应的片段坑位的时间长度,每个该片段替换图标的显示尺寸相同,片段替换图标的显示位置可基于实际情况进行设置,本申请实施例对此不做具体限定。
如图3所示,该视频编辑页面显示有4个片段替换图标,因此可以知道目标视频模板包括4个片段坑位,且通过这4个片段替换图标显示的时间长度可以知道这4个片段坑位的时间长度分别为2.5s、3.5s、5s和2s。通过在片段替换图标显示对应片段坑位的时间长度,便于用户选择时间长度匹配的素材片段,提高视频编辑的便利性。
在一实施例中,该视频编辑页面还包括视频预览窗口,且该视频预览窗口显示目标视频模板,同时该视频预览窗口的下方还显示有目标视频模板的时间 长度和视频预览窗口当前显示的视频帧。如图3所示,目标视频模板的时间长度为1分10秒,且视频预览窗口当前显示的视频帧是目标视频模板的第15秒的视频帧。通过视频预览窗口显示目标视频模板以及目标视频模板的时间长度,便于用户预览目标视频模板。
在一实施例中,该片段替换图标的显示尺寸是根据对应的片段坑位的时间长度确定的。其中,片段坑位的时间长度越长,则该片段替换图标的显示尺寸越大,片段坑位的时间长度越短,则该片段替换图标的显示尺寸越小。如图4所示,4个片段替换图标显示的时间长度分别为2.5s、3.5s、5s和2s,且2s对应的片段替换图标的显示长度小于2.5s对应的片段替换图标的显示长度,2.5s对应的片段替换图标的显示长度小于3.5s对应的片段替换图标的显示长度,3.5s对应的片段替换图标的显示长度小于5s对应的片段替换图标的显示长度。
步骤S102、响应于用户对一个所述片段编辑图标的触发操作,显示片段编辑页面,其中,所述片段编辑页面包括片段切换控件、片段预览窗口和确认控件。
其中,用户对片段编辑图标的触发操作包括用户操作鼠标对片段编辑图标的点击操作、用户操作键盘对片段编辑图标的选择确认操作、用户对该片段编辑图标的触控操作,本申请实施例对此不做具体限定。该片段预览窗口用于显示素材片段,使得用户能够预览,便于用户选择素材片段,该片段切换控件用于切换该片段预览窗口显示的素材片段,该确认控件用于确认用户选择的素材片段,在片段编辑图标被用户触发后,被触发的片段编辑图标与未被触发的片段编辑图标的显示方式不同。示例性的,如图5所示,时间长度为2.5s的片段坑位对应的片段编辑图标被用户触发,且时间长度为2.5s的片段坑位对应的片段编辑图标的显示方式与其余的片段编辑图标的显示不同。
在一实施例中,该片段切换控件包括多个素材片段缩略图,该素材片段与素材片段缩略图一一对应,多个素材片段缩略图中的相邻素材片段缩略图重叠显示。其中,片段切换控件包括的素材片段缩略图的数量可以与终端设备的显示屏的尺寸相适配,当然,片段切换控件包括的素材片段缩略图的数量也可以与终端设备的显示屏的尺寸不适配。
如图6所示,片段编辑页面包括片段切换控件10、片段预览窗口20和确认控件30,且片段切换控件10包括7个素材片段缩略图,且这7个素材片段缩略图对称,将片段切换控件10中的素材片段缩略图按照从上到下的顺序记为素材片段缩略图11、素材片段缩略图12、素材片段缩略图13、素材片段缩略 图14、素材片段缩略图15、素材片段缩略图16和素材片段缩略图17,素材片段缩略图11与素材片段缩略图15的显示尺寸相同,素材片段缩略图12与素材片段缩略图16的显示尺寸相同,素材片段缩略图13与素材片段缩略图17的显示尺寸相同,片段预览窗口20显示的素材片段的时间长度为5s。
如图6所示、片段编辑页面还包括取消控件40和时间轴滑条50,响应于用户对该取消控件40的触发操作,将终端设备显示的片段编辑页面回退为视频编辑页面,该时间轴滑条50上显示有片段截取线段51,该片段截取线段51用于确定素材片段的起始点或结束点,用户可以通过滑动该片段截取线段来确定选择的素材片段的起始点或结束点。
步骤S103、响应于用户对所述片段切换控件的触发操作,切换所述片段预览窗口显示的素材片段。
其中,用户对该片段切换控件的触发操作可以为用户对鼠标的滚轮的滑动操作,也可以为用户的手指对该片段切换控件的滑动操作,本申请实施例对此不做具体限定。示例性的,片段预览窗口显示的素材片段能够基于感测到用户对该片段切换控件的触发操作而进行切换,该片段切换控件中的多个素材片段缩略图能够基于感测到用户对该片段切换控件的触发操作而发生变化,该片段切换控件中的多个素材片段缩略图的显示尺寸能够基于用户对片段切换控件的触发操作而发生变化。
例如,当用户向上滑动如图6所示的片段切换控件10后,片段切换控件10中的各素材片段缩略图由素材片段缩略图11、素材片段缩略图12、素材片段缩略图13、素材片段缩略图14、素材片段缩略图15、素材片段缩略图16和素材片段缩略图17变化为素材片段缩略图12、素材片段缩略图13、素材片段缩略图14、素材片段缩略图15、素材片段缩略图16、素材片段缩略图17和其余素材片段缩略图。
又例如,当用户向下滑动如图6所示的片段切换控件10后,片段切换控件10中的各素材片段缩略图由素材片段缩略图11、素材片段缩略图12、素材片段缩略图13、素材片段缩略图14、素材片段缩略图15、素材片段缩略图16和素材片段缩略图17变化为其余素材片段缩略图、素材片段缩略图11、素材片段缩略图12、素材片段缩略图13、素材片段缩略图14、素材片段缩略图15和素材片段缩略图16。
可以理解的是,用户也可以通过向左或向右滑动片段切换控件来切换片段预览窗口显示的素材片段。例如,如图7所示,将片段切换控件10中的素材片 段缩略图按照从左到右的顺序记为素材片段缩略图21、素材片段缩略图22、素材片段缩略图23、素材片段缩略图24、素材片段缩略图25、素材片段缩略图26和素材片段缩略图27,用户通过向左或向右滑动图7中的片段切换控件10可以切换片段预览窗口20显示的素材片段。
例如,当用户向左滑动如图7所示的片段切换控件10后,片段切换控件10中的各素材片段缩略图由素材片段缩略图21、素材片段缩略图22、素材片段缩略图23、素材片段缩略图24、素材片段缩略图25、素材片段缩略图26和素材片段缩略图27变化为素材片段缩略图22、素材片段缩略图23、素材片段缩略图24、素材片段缩略图25、素材片段缩略图26和其余素材片段缩略图。
又例如,当用户向右滑动如图7所示的片段切换控件10后,片段切换控件10中的各素材片段缩略图由素材片段缩略图21、素材片段缩略图22、素材片段缩略图23、素材片段缩略图24、素材片段缩略图25、素材片段缩略图26和素材片段缩略图27变化为素材片段库中的其余素材片段缩略图、素材片段缩略图21、素材片段缩略图22、素材片段缩略图23、素材片段缩略图24、素材片段缩略图25和素材片段缩略图26。
在一实施例中,多个素材片段缩略图中的相邻素材片段缩略图的显示尺寸不同,片段切换控件中的各素材片段缩略图之间的尺寸变化关系满足预设尺寸变化关系。预设尺寸变化关系包括如下至少一种:由第一预设尺寸渐变为第二预设尺寸,再由第二预设尺寸渐变为第一预设尺寸,且第一预设尺寸小于第二预设尺寸,且相邻的两个素材片段缩略图之间的尺寸比例等于预设尺寸比例;由第一预设尺寸渐变为第二预设尺寸,且第一预设尺寸小于第二预设尺寸,且相邻的两个素材片段缩略图之间的尺寸比例等于预设尺寸比例;由第二预设尺寸渐变为第一预设尺寸,且第一预设尺寸小于第二预设尺寸,且相邻的两个所述素材片段缩略图之间的尺寸比例等于预设尺寸比例。其中,第一预设尺寸、第二预设尺寸、预设尺寸比例可基于实际情况进行设置,本申请实施例对此不做具体限定。
如图6所示,片段切换控件10中的素材片段缩略图11、素材片段缩略图12、素材片段缩略图13、素材片段缩略图14、素材片段缩略图15、素材片段缩略图16和素材片段缩略图17之间的尺寸变化关系为按照素材片段缩略图11、素材片段缩略图12、素材片段缩略图13、素材片段缩略图14的顺序,显示尺寸逐渐增大,之后按照素材片段缩略图14、素材片段缩略图15、素材片段缩略图16、素材片段缩略图17的顺序,显示尺寸逐渐减小。
如图8所示,将片段切换控件10中的各素材片段缩略图按照从上到下的顺序记为素材片段缩略图31、素材片段缩略图32、素材片段缩略图33和素材片段缩略图34,且按照素材片段缩略图31、素材片段缩略图32、素材片段缩略图33和素材片段缩略图34的顺序,显示尺寸逐渐增大。如图9所示,将片段切换控件10中的各素材片段缩略图按照从上到下的顺序记为素材片段缩略图41、素材片段缩略图42、素材片段缩略图43和素材片段缩略图44,且按照素材片段缩略图41、素材片段缩略图42、素材片段缩略图43和素材片段缩略图44的顺序,显示尺寸逐渐减小。
在一实施例中,该片段预览窗口显示的素材片段与位于该片段切换控件中央的素材片段缩略图相对应;或者,该片段预览窗口显示的素材片段与位于片段切换控件的第一端的素材片段缩略图相对应;或者,该片段预览窗口显示的素材片段与位于该片段切换控件的第二端的素材片段缩略图相对应。其中,该片段预览窗口显示的素材片段对应的素材片段缩略图的显示尺寸最大。
例如,如图6所示,片段预览窗口20显示的素材片段为位于片段切换控件10中央的素材片段缩略图14对应的素材片段,如图8所示,片段预览窗口20显示的素材片段为位于片段切换控件10的第一端的素材片段缩略图34对应的素材片段,如图9所示,片段预览窗口20显示的素材片段为位于片段切换控件10的第二端的素材片段缩略图41对应的素材片段。
在一实施例中,响应于用户对片段切换控件的触发操作,确定用户选择的素材片段,并将该片段预览窗口显示的素材片段切换为用户选择的素材片段。其中,用户对该片段切换控件的触发操作包括第一触发操作或第二触发操作,所述第一触发操作包括用户对该片段切换控件的滑动操作或单击操作,第二触发操作包括用户对该片段切换控件的双击操作或长按操作。
在一实施例中,响应于用户对片段切换控件的第一触发操作,将位于片段切换控件中央的素材片段缩略图对应的素材片段确定为用户选择的素材片段;或者响应于用户对片段切换控件的第一触发操作,将位于片段切换控件的第一端的素材片段缩略图对应的素材片段确定为用户选择的素材片段;或者响应于用户对片段切换控件的第一触发操作,将位于片段切换控件的第二端的素材片段缩略图对应的素材片段确定为用户选择的素材片段。
例如,如图6所示,将位于片段切换控件10中央的素材片段缩略图14对应的素材片段确定为用户选择的素材片段,如图8所示,将位于片段切换控件10的第一端的素材片段缩略图34对应的素材片段确定为用户选择的素材片段, 如图9所示,将位于片段切换控件10的第二端的素材片段缩略图41对应的素材片段确定为用户选择的素材片段。
在一实施例中,响应于用户对片段切换控件的第二触发操作,将初始素材片段确定为用户选择的素材片段,其中,该初始素材片段包括用户首次触发片段切换控件时所确定的素材片段;将该片段预览窗口显示的素材片段切换为用户选择的素材片段。通过响应于用户对片段切换控件的第二触发操作,可以将该片段预览窗口显示的素材片段切换为用户首次触发片段切换控件时所确定的素材片段,方便用户不想替换,仍想使用原始素材片段的想法实现,提高视频编辑的便利性。
在一实施例中,所述片段切换控件包括多个素材片段缩略图,该多个素材片段缩略图中的相邻素材片段缩略图间隔预设距离显示,该多个素材片段缩略图的显示尺寸相同,且多个素材片段缩略图的显示尺寸不会基于用户对片段切换控件的触发操作而发生变化。其中,多个素材片段缩略图能够基于感测到用户对片段切换控件的触发操作而发生变化,预设距离可基于实际情况进行设置,本申请实施例对此不做具体限定。
例如,如图10所示,片段切换控件10包括6个素材片段缩略图,6个素材片段缩略图的显示尺寸相同,按照从左到右的顺序将这5个素材片段缩略图记为素材片段缩略图61、素材片段缩略图62、素材片段缩略图63、素材片段缩略图64、素材片段缩略图65和素材片段缩略图66,则可以知道素材片段缩略图63被用户选择。
步骤S104、响应于用户对所述确认控件的触发操作,根据所述片段预览窗口当前显示的素材片段,对所述目标视频模板进行编辑。
例如,如图6所示,片段预览窗口20当前显示的素材片段为片段切换控件10中的素材片段缩略图14对应的素材片段,且素材片段缩略图14对应的素材片段的时间长度为5s,当图6中的确认控件30被用户触发时,终端设备基于素材片段缩略图14对应的素材片段对目标视频模板进行编辑。
在一实施例中,根据片段预览窗口当前显示的素材片段,对目标视频模板进行编辑的方式可以为:获取片段预览窗口当前显示的素材片段的第一时间长度,并获取与被触发的片段编辑图标对应的目标片段坑位的第二时间长度;若第一时间长度与第二时间长度相等,则将片段预览窗口当前显示的素材片段填充至目标片段坑位中。
在一实施例中,若第一时间长度与第二时间长度不相等,则对片段预览窗 口当前显示的素材片段进行处理,得到目标素材片段;将目标素材片段填充至目标片段坑位中,其中,目标素材片段的时间长度与第二时间长度相等。通过在用户选择的素材片段的时间长度与对应片段坑位的时间长度不一致时,调整用户选择的素材片段的时间长度,使得调整后的用户选择的素材片段的时间长度与对应片段坑位的时间长度相同,不需要用户手动的调整,极大的提高了视频编辑的便利性。
在一实施例中,对片段预览窗口当前显示的素材片段进行处理,得到目标素材片段的方式可以为:若第一时间长度大于第二时间长度,则对片段预览窗口当前显示的素材片段进行截取,得到目标素材片段;若第一时间长度小于第二时间长度,则在片段预览窗口当前显示的素材片段的末位继续拼接该素材片段中的部分片段,得到目标素材片段。
在一实施例中,片段编辑页面还包括时间轴滑条和位于时间轴滑条上的片段截取线段,片段截取线段用于确定素材片段的起始点或结束点,时间轴滑条用于显示片段预览窗口当前显示的素材片段的时间轴。可选的,响应于用户对片段截取线段的滑动操作,确定截取后的素材片段的目标起始点或目标结束点;根据目标起始点或目标结束点对片段预览窗口当前显示的素材片段进行截取,并在片段预览窗口显示截取后的素材片段。通过显示时间轴滑条和位于时间轴滑条上的片段截取线段,便于用户对选中的素材片段进行截取,极大的提高了视频编辑的便利性。
如图11所示,片段编辑页面还包括时间轴滑条50和位于时间轴滑条50上的片段截取线段51,该片段截取线段51用于确定素材片段的起始点或结束点,片段预览窗口20当前显示的素材片段为素材片段缩略图14对应的素材片段,该素材片段的时间长度为5s,时间轴滑条50显示有素材片段缩略图14对应的素材片段的时间轴0:00、0:01、0:02、0:03、0:04、0:05,且滑动后的片段截取线段51位于0:01这个时间点,则可以确定截取后的素材片段的目标起始点为0:01这个时间点,在对素材片段缩略图14对应的素材片段截取之后,可以得到时间长度为4秒的新素材片段,且片段预览窗口20显示截取后的素材片段,且显示的时间长度为0:04。
在一实施例中,在截取后的素材片段与目标片段坑位的时间长度不同时,输出预设提示信息,以提示用户截取后的素材片段与目标片段的时间长度不同。通过提示用户截取后的素材片段与目标片段的时间长度不同,便于用户继续截取素材片段,提高视频编辑的便利性,提高用户体验。
上述实施例提供的视频编辑方法,通过显示包含目标视频模板和多个片段编辑图标的视频编辑页面,并响应于用户对一个片段编辑图标的触发操作,显示包含片段切换控件、片段预览窗口和确认控件的片段编辑页面,然后响应于用户对该片段切换控件的触发操作,切换该片段预览窗口显示的素材片段,最后响应于用户对该确认控件的触发操作,根据该片段预览窗口当前显示的素材片段,对该目标视频模板进行编辑。由于片段预览窗口显示的素材片段能够随着用户对片段切换控件的触发操作而发生切换,极大的方便用户选择自己想要的素材片段来对视频模板进行编辑,提高了视频编辑的便利性,也提高了用户体验。
请参阅图12,图12是本申请实施例提供的一种终端设备的结构示意性框图。
如图12所示,该终端设备200包括处理器201、存储器202和显示装置203,处理器201、存储器202和显示装置203通过总线204连接,该总线204比如为I2C(Inter-integrated Circuit)总线。该终端设备200包括但不限于遥控器、地面控制平台、手机、平板电脑、笔记本电脑和PC电脑等。显示装置203包括液晶显示屏和触摸显示屏等。
具体地,处理器201可以是微控制单元(Micro-controller Unit,MCU)、中央处理单元(Central Processing Unit,CPU)或数字信号处理器(Digital Signal Processor,DSP)等。
具体地,存储器202可以是Flash芯片、只读存储器(ROM,Read-Only Memory)磁盘、光盘、U盘或移动硬盘等。
其中,所述处理器201用于运行存储在存储器202中的计算机程序,并在执行所述计算机程序时实现如下步骤:
通过所述显示装置显示视频编辑页面,所述视频编辑页面包括目标视频模板、所述目标视频模板的多个片段替换图标;
响应于用户对一个所述片段编辑图标的触发操作,显示片段编辑页面,所述片段编辑页面包括片段切换控件、片段预览窗口和确认控件;
响应于用户对所述片段切换控件的触发操作,切换所述片段预览窗口显示的素材片段;
响应于用户对所述确认控件的触发操作,根据所述片段预览窗口当前显示的素材片段,对所述目标视频模板进行编辑。
在一实施例中,所述片段替换图标与所述目标视频模板中的片段坑位一一 对应。
在一实施例中,所述片段替换图标上显示有与所述片段替换图标对应的片段坑位的时间长度。
在一实施例中,每个所述片段替换图标的显示尺寸相同。
在一实施例中,所述片段替换图标的显示尺寸是根据对应的片段坑位的时间长度确定的。
在一实施例中,所述片段切换控件包括多个素材片段缩略图,所述素材片段与所述素材片段缩略图一一对应,所述多个素材片段缩略图中的相邻所述素材片段缩略图重叠显示。
在一实施例中,所述多个素材片段缩略图能够基于感测到用户对所述片段切换控件的触发操作而发生变化。
在一实施例中,所述多个素材片段缩略图的显示尺寸能够基于用户对所述片段切换控件的触发操作而发生变化。
在一实施例中,所述多个素材片段缩略图中的相邻所述素材片段缩略图的显示尺寸不同。
在一实施例中,所述片段切换控件中的各所述素材片段缩略图之间的尺寸变化关系满足预设尺寸变化关系。
在一实施例中,所述预设尺寸变化关系包括如下至少一种:
由第一预设尺寸渐变为第二预设尺寸,再由第二预设尺寸渐变为第一预设尺寸,且第一预设尺寸小于第二预设尺寸,且相邻的两个所述素材片段缩略图之间的尺寸比例等于预设尺寸比例;
由第一预设尺寸渐变为第二预设尺寸,且第一预设尺寸小于第二预设尺寸,且相邻的两个所述素材片段缩略图之间的尺寸比例等于预设尺寸比例;
由第二预设尺寸渐变为第一预设尺寸,且第一预设尺寸小于第二预设尺寸,且相邻的两个所述素材片段缩略图之间的尺寸比例等于预设尺寸比例。
在一实施例中,所述片段预览窗口显示的素材片段与位于所述片段切换控件中央的素材片段缩略图相对应;
或者,所述片段预览窗口显示的素材片段与位于所述片段切换控件的第一端的素材片段缩略图相对应;
或者,所述片段预览窗口显示的素材片段与位于所述片段切换控件的第二端的素材片段缩略图相对应。
在一实施例中,所述处理器实现响应于用户对所述片段切换控件的触发操 作,切换所述片段预览窗口显示的素材片段时,用于实现:
响应于用户对所述片段切换控件的触发操作,确定用户选择的素材片段,并将所述片段预览窗口显示的素材片段切换为用户选择的素材片段。
在一实施例中,所述处理器实现响应于用户对所述片段切换控件的触发操作,确定用户选择的素材片段时,用于实现:
响应于用户对所述片段切换控件的第一触发操作,将位于所述片段切换控件中央的素材片段缩略图对应的素材片段确定为用户选择的素材片段;
或者
响应于用户对所述片段切换控件的第一触发操作,将位于所述片段切换控件的第一端的素材片段缩略图对应的素材片段确定为用户选择的素材片段;
或者
响应于用户对所述片段切换控件的第一触发操作,将位于所述片段切换控件的第二端的素材片段缩略图对应的素材片段确定为用户选择的素材片段。
在一实施例中,所述处理器实现响应于用户对所述片段切换控件的触发操作,确定用户选择的素材片段时,用于实现:
响应于用户对所述片段切换控件的第二触发操作,将初始素材片段确定为用户选择的素材片段,其中,所述初始素材片段包括用户首次触发所述片段切换控件时所确定的素材片段。
在一实施例中,所述片段切换控件包括多个素材片段缩略图,所述多个素材片段缩略图中的相邻所述素材片段缩略图间隔预设距离显示。
在一实施例中,所述多个素材片段缩略图的显示尺寸相同,且所述多个素材片段缩略图的显示尺寸不会基于用户对所述片段切换控件的触发操作而发生变化。
在一实施例中,所述处理器实现根据所述片段预览窗口当前显示的素材片段,对所述目标视频模板进行编辑时,用于实现:
获取所述片段预览窗口当前显示的素材片段的第一时间长度,并获取与被触发的所述片段编辑图标对应的目标片段坑位的第二时间长度;
若所述第一时间长度与所述第二时间长度相等,则将所述片段预览窗口当前显示的素材片段填充至所述目标片段坑位中。
在一实施例中,所述处理器还用于实现以下步骤:
若所述第一时间长度与所述第二时间长度不相等,则对所述片段预览窗口当前显示的素材片段进行处理,得到目标素材片段;
将所述目标素材片段填充至所述目标片段坑位中,其中,所述目标素材片段的时间长度与所述第二时间长度相等。
在一实施例中,所述片段编辑页面还包括时间轴滑条和位于所述时间轴滑条上的片段截取线段,所述片段截取线段用于确定素材片段的起始点或结束点,所述处理器还用于实现以下步骤:
响应于用户对所述片段截取线段的滑动操作,确定截取后的素材片段的目标起始点或目标结束点;
根据所述目标起始点或目标结束点对所述片段预览窗口当前显示的素材片段进行截取,并在所述片段预览窗口显示截取后的素材片段。
在一实施例中,所述时间轴滑条用于显示所述片段预览窗口当前显示的素材片段的时间轴。
在一实施例中,所述处理器还用于实现以下步骤:
在截取后的素材片段与目标片段坑位的时间长度不同时,输出预设提示信息,以提示用户截取后的素材片段与所述目标片段的时间长度不同。
需要说明的是,所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的终端设备的具体工作过程,可以参考前述视频编辑方法实施例中的对应过程,在此不再赘述。
本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序中包括程序指令,所述处理器执行所述程序指令,实现上述实施例提供的视频编辑方法的步骤。
其中,所述计算机可读存储介质可以是前述任一实施例所述的终端设备的内部存储单元,例如所述终端设备的硬盘或内存。所述计算机可读存储介质也可以是所述终端设备的外部存储设备,例如所述终端设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。
应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (45)

  1. 一种视频编辑方法,其特征在于,包括:
    显示视频编辑页面,其中,所述视频编辑页面包括目标视频模板、所述目标视频模板的多个片段替换图标;
    响应于用户对一个所述片段编辑图标的触发操作,显示片段编辑页面,其中,所述片段编辑页面包括片段切换控件、片段预览窗口和确认控件;
    响应于用户对所述片段切换控件的触发操作,切换所述片段预览窗口显示的素材片段;
    响应于用户对所述确认控件的触发操作,根据所述片段预览窗口当前显示的素材片段,对所述目标视频模板进行编辑。
  2. 根据权利要求1所述的视频编辑方法,其特征在于,所述片段替换图标与所述目标视频模板中的片段坑位一一对应。
  3. 根据权利要求1所述的视频编辑方法,其特征在于,所述片段替换图标上显示有与所述片段替换图标对应的片段坑位的时间长度。
  4. 根据权利要求1所述的视频编辑方法,其特征在于,每个所述片段替换图标的显示尺寸相同。
  5. 根据权利要求1所述的视频编辑方法,其特征在于,所述片段替换图标的显示尺寸是根据对应的片段坑位的时间长度确定的。
  6. 根据权利要求1所述的视频编辑方法,其特征在于,所述片段切换控件包括多个素材片段缩略图,所述素材片段与所述素材片段缩略图一一对应,所述多个素材片段缩略图中的相邻所述素材片段缩略图重叠显示。
  7. 根据权利要求6所述的视频编辑方法,其特征在于,所述多个素材片段缩略图能够基于感测到用户对所述片段切换控件的触发操作而发生变化。
  8. 根据权利要求6所述的视频编辑方法,其特征在于,所述多个素材片段缩略图的显示尺寸能够基于用户对所述片段切换控件的触发操作而发生变化。
  9. 根据权利要求6所述的视频编辑方法,其特征在于,所述多个素材片段缩略图中的相邻所述素材片段缩略图的显示尺寸不同。
  10. 根据权利要求9所述的视频编辑方法,其特征在于,所述片段切换控件中的各所述素材片段缩略图之间的尺寸变化关系满足预设尺寸变化关系。
  11. 根据权利要求10所述的视频编辑方法,其特征在于,所述预设尺寸变化关系包括如下至少一种:
    由第一预设尺寸渐变为第二预设尺寸,再由第二预设尺寸渐变为第一预设尺寸,且第一预设尺寸小于第二预设尺寸,且相邻的两个所述素材片段缩略图之间的尺寸比例等于预设尺寸比例;
    由第一预设尺寸渐变为第二预设尺寸,且第一预设尺寸小于第二预设尺寸,且相邻的两个所述素材片段缩略图之间的尺寸比例等于预设尺寸比例;
    由第二预设尺寸渐变为第一预设尺寸,且第一预设尺寸小于第二预设尺寸,且相邻的两个所述素材片段缩略图之间的尺寸比例等于预设尺寸比例。
  12. 根据权利要求6所述的视频编辑方法,其特征在于,所述片段预览窗口显示的素材片段与位于所述片段切换控件中央的素材片段缩略图相对应;
    或者,所述片段预览窗口显示的素材片段与位于所述片段切换控件的第一端的素材片段缩略图相对应;
    或者,所述片段预览窗口显示的素材片段与位于所述片段切换控件的第二端的素材片段缩略图相对应。
  13. 根据权利要求1-12中任一项所述的视频编辑方法,其特征在于,所述响应于用户对所述片段切换控件的触发操作,切换所述片段预览窗口显示的素材片段,包括:
    响应于用户对所述片段切换控件的触发操作,确定用户选择的素材片段,并将所述片段预览窗口显示的素材片段切换为用户选择的素材片段。
  14. 根据权利要求13所述的视频编辑方法,其特征在于,所述响应于用户对所述片段切换控件的触发操作,确定用户选择的素材片段,包括:
    响应于用户对所述片段切换控件的第一触发操作,将位于所述片段切换控件中央的素材片段缩略图对应的素材片段确定为用户选择的素材片段;
    或者
    响应于用户对所述片段切换控件的第一触发操作,将位于所述片段切换控件的第一端的素材片段缩略图对应的素材片段确定为用户选择的素材片段;
    或者
    响应于用户对所述片段切换控件的第一触发操作,将位于所述片段切换控件的第二端的素材片段缩略图对应的素材片段确定为用户选择的素材片段。
  15. 根据权利要求13所述的视频编辑方法,其特征在于,所述响应于用户对所述片段切换控件的触发操作,确定用户选择的素材片段,包括:
    响应于用户对所述片段切换控件的第二触发操作,将初始素材片段确定为用户选择的素材片段,其中,所述初始素材片段包括用户首次触发所述片段切 换控件时所确定的素材片段。
  16. 根据权利要求1所述的视频编辑方法,其特征在于,所述片段切换控件包括多个素材片段缩略图,所述多个素材片段缩略图中的相邻所述素材片段缩略图间隔预设距离显示。
  17. 根据权利要求16所述的视频编辑方法,其特征在于,所述多个素材片段缩略图的显示尺寸相同,且所述多个素材片段缩略图的显示尺寸不会基于用户对所述片段切换控件的触发操作而发生变化。
  18. 根据权利要求1-12中任一项所述的视频编辑方法,其特征在于,所述根据所述片段预览窗口当前显示的素材片段,对所述目标视频模板进行编辑,包括:
    获取所述片段预览窗口当前显示的素材片段的第一时间长度,并获取与被触发的所述片段编辑图标对应的目标片段坑位的第二时间长度;
    若所述第一时间长度与所述第二时间长度相等,则将所述片段预览窗口当前显示的素材片段填充至所述目标片段坑位中。
  19. 根据权利要求18所述的视频编辑方法,其特征在于,所述方法还包括:
    若所述第一时间长度与所述第二时间长度不相等,则对所述片段预览窗口当前显示的素材片段进行处理,得到目标素材片段;
    将所述目标素材片段填充至所述目标片段坑位中,其中,所述目标素材片段的时间长度与所述第二时间长度相等。
  20. 根据权利要求1-12中任一项所述的视频编辑方法,其特征在于,所述片段编辑页面还包括时间轴滑条和位于所述时间轴滑条上的片段截取线段,所述片段截取线段用于确定素材片段的起始点或结束点,所述方法还包括:
    响应于用户对所述片段截取线段的滑动操作,确定截取后的素材片段的目标起始点或目标结束点;
    根据所述目标起始点或目标结束点对所述片段预览窗口当前显示的素材片段进行截取,并在所述片段预览窗口显示截取后的素材片段。
  21. 根据权利要求20所述的视频编辑方法,其特征在于,所述时间轴滑条用于显示所述片段预览窗口当前显示的素材片段的时间轴。
  22. 根据权利要求20所述的视频编辑方法,其特征在于,所述方法还包括:
    在截取后的素材片段与目标片段坑位的时间长度不同时,输出预设提示信息,以提示用户截取后的素材片段与所述目标片段的时间长度不同。
  23. 一种终端设备,其特征在于,所述终端设备包括存储器、处理器和显 示装置;
    所述存储器用于存储计算机程序;
    所述处理器,用于执行所述计算机程序并在执行所述计算机程序时,实现如下步骤:
    通过所述显示装置显示视频编辑页面,所述视频编辑页面包括目标视频模板、所述目标视频模板的多个片段替换图标;
    响应于用户对一个所述片段编辑图标的触发操作,显示片段编辑页面,所述片段编辑页面包括片段切换控件、片段预览窗口和确认控件;
    响应于用户对所述片段切换控件的触发操作,切换所述片段预览窗口显示的素材片段;
    响应于用户对所述确认控件的触发操作,根据所述片段预览窗口当前显示的素材片段,对所述目标视频模板进行编辑。
  24. 根据权利要求23所述的终端设备,其特征在于,所述片段替换图标与所述目标视频模板中的片段坑位一一对应。
  25. 根据权利要求23所述的终端设备,其特征在于,所述片段替换图标上显示有与所述片段替换图标对应的片段坑位的时间长度。
  26. 根据权利要求23所述的终端设备,其特征在于,每个所述片段替换图标的显示尺寸相同。
  27. 根据权利要求23所述的终端设备,其特征在于,所述片段替换图标的显示尺寸是根据对应的片段坑位的时间长度确定的。
  28. 根据权利要求23所述的终端设备,其特征在于,所述片段切换控件包括多个素材片段缩略图,所述素材片段与所述素材片段缩略图一一对应,所述多个素材片段缩略图中的相邻所述素材片段缩略图重叠显示。
  29. 根据权利要求28所述的终端设备,其特征在于,所述多个素材片段缩略图能够基于感测到用户对所述片段切换控件的触发操作而发生变化。
  30. 根据权利要求28所述的终端设备,其特征在于,所述多个素材片段缩略图的显示尺寸能够基于用户对所述片段切换控件的触发操作而发生变化。
  31. 根据权利要求28所述的终端设备,其特征在于,所述多个素材片段缩略图中的相邻所述素材片段缩略图的显示尺寸不同。
  32. 根据权利要求31所述的终端设备,其特征在于,所述片段切换控件中的各所述素材片段缩略图之间的尺寸变化关系满足预设尺寸变化关系。
  33. 根据权利要求32所述的终端设备,其特征在于,所述预设尺寸变化关 系包括如下至少一种:
    由第一预设尺寸渐变为第二预设尺寸,再由第二预设尺寸渐变为第一预设尺寸,且第一预设尺寸小于第二预设尺寸,且相邻的两个所述素材片段缩略图之间的尺寸比例等于预设尺寸比例;
    由第一预设尺寸渐变为第二预设尺寸,且第一预设尺寸小于第二预设尺寸,且相邻的两个所述素材片段缩略图之间的尺寸比例等于预设尺寸比例;
    由第二预设尺寸渐变为第一预设尺寸,且第一预设尺寸小于第二预设尺寸,且相邻的两个所述素材片段缩略图之间的尺寸比例等于预设尺寸比例。
  34. 根据权利要求28所述的终端设备,其特征在于,所述片段预览窗口显示的素材片段与位于所述片段切换控件中央的素材片段缩略图相对应;
    或者,所述片段预览窗口显示的素材片段与位于所述片段切换控件的第一端的素材片段缩略图相对应;
    或者,所述片段预览窗口显示的素材片段与位于所述片段切换控件的第二端的素材片段缩略图相对应。
  35. 根据权利要求23-34中任一项所述的终端设备,其特征在于,所述处理器实现响应于用户对所述片段切换控件的触发操作,切换所述片段预览窗口显示的素材片段时,用于实现:
    响应于用户对所述片段切换控件的触发操作,确定用户选择的素材片段,并将所述片段预览窗口显示的素材片段切换为用户选择的素材片段。
  36. 根据权利要求35所述的终端设备,其特征在于,所述处理器实现响应于用户对所述片段切换控件的触发操作,确定用户选择的素材片段时,用于实现:
    响应于用户对所述片段切换控件的第一触发操作,将位于所述片段切换控件中央的素材片段缩略图对应的素材片段确定为用户选择的素材片段;
    或者
    响应于用户对所述片段切换控件的第一触发操作,将位于所述片段切换控件的第一端的素材片段缩略图对应的素材片段确定为用户选择的素材片段;
    或者
    响应于用户对所述片段切换控件的第一触发操作,将位于所述片段切换控件的第二端的素材片段缩略图对应的素材片段确定为用户选择的素材片段。
  37. 根据权利要求35所述的终端设备,其特征在于,所述处理器实现响应于用户对所述片段切换控件的触发操作,确定用户选择的素材片段时,用于实 现:
    响应于用户对所述片段切换控件的第二触发操作,将初始素材片段确定为用户选择的素材片段,其中,所述初始素材片段包括用户首次触发所述片段切换控件时所确定的素材片段。
  38. 根据权利要求23所述的终端设备,其特征在于,所述片段切换控件包括多个素材片段缩略图,所述多个素材片段缩略图中的相邻所述素材片段缩略图间隔预设距离显示。
  39. 根据权利要求38所述的终端设备,其特征在于,所述多个素材片段缩略图的显示尺寸相同,且所述多个素材片段缩略图的显示尺寸不会基于用户对所述片段切换控件的触发操作而发生变化。
  40. 根据权利要求23-34中任一项所述的终端设备,其特征在于,所述处理器实现根据所述片段预览窗口当前显示的素材片段,对所述目标视频模板进行编辑时,用于实现:
    获取所述片段预览窗口当前显示的素材片段的第一时间长度,并获取与被触发的所述片段编辑图标对应的目标片段坑位的第二时间长度;
    若所述第一时间长度与所述第二时间长度相等,则将所述片段预览窗口当前显示的素材片段填充至所述目标片段坑位中。
  41. 根据权利要求40所述的终端设备,其特征在于,所述处理器还用于实现以下步骤:
    若所述第一时间长度与所述第二时间长度不相等,则对所述片段预览窗口当前显示的素材片段进行处理,得到目标素材片段;
    将所述目标素材片段填充至所述目标片段坑位中,其中,所述目标素材片段的时间长度与所述第二时间长度相等。
  42. 根据权利要求23-34中任一项所述的终端设备,其特征在于,所述片段编辑页面还包括时间轴滑条和位于所述时间轴滑条上的片段截取线段,所述片段截取线段用于确定素材片段的起始点或结束点,所述处理器还用于实现以下步骤:
    响应于用户对所述片段截取线段的滑动操作,确定截取后的素材片段的目标起始点或目标结束点;
    根据所述目标起始点或目标结束点对所述片段预览窗口当前显示的素材片段进行截取,并在所述片段预览窗口显示截取后的素材片段。
  43. 根据权利要求42所述的终端设备,其特征在于,所述时间轴滑条用于 显示所述片段预览窗口当前显示的素材片段的时间轴。
  44. 根据权利要求42所述的终端设备,其特征在于,所述处理器还用于实现以下步骤:
    在截取后的素材片段与目标片段坑位的时间长度不同时,输出预设提示信息,以提示用户截取后的素材片段与所述目标片段的时间长度不同。
  45. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现如权利要求1-22中任一项所述的视频编辑方法的步骤。
PCT/CN2020/137795 2020-12-18 2020-12-18 视频编辑方法、终端设备及计算机可读存储介质 WO2022126664A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/137795 WO2022126664A1 (zh) 2020-12-18 2020-12-18 视频编辑方法、终端设备及计算机可读存储介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/137795 WO2022126664A1 (zh) 2020-12-18 2020-12-18 视频编辑方法、终端设备及计算机可读存储介质

Publications (1)

Publication Number Publication Date
WO2022126664A1 true WO2022126664A1 (zh) 2022-06-23

Family

ID=82060015

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/137795 WO2022126664A1 (zh) 2020-12-18 2020-12-18 视频编辑方法、终端设备及计算机可读存储介质

Country Status (1)

Country Link
WO (1) WO2022126664A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024056023A1 (zh) * 2022-09-14 2024-03-21 北京字跳网络技术有限公司 一种视频编辑方法、装置、设备及存储介质
US20240105232A1 (en) * 2021-06-04 2024-03-28 Beijing Zitiao Network Technology Co., Ltd. Video editing method and apparatus, and device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5801685A (en) * 1996-04-08 1998-09-01 Tektronix, Inc. Automatic editing of recorded video elements sychronized with a script text read or displayed
CN110494833A (zh) * 2018-05-28 2019-11-22 深圳市大疆创新科技有限公司 一种多媒体编辑方法及智能终端
CN111357277A (zh) * 2018-11-28 2020-06-30 深圳市大疆创新科技有限公司 视频剪辑控制方法、终端设备和系统
CN112073649A (zh) * 2020-09-04 2020-12-11 北京字节跳动网络技术有限公司 多媒体数据的处理方法、生成方法及相关设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5801685A (en) * 1996-04-08 1998-09-01 Tektronix, Inc. Automatic editing of recorded video elements sychronized with a script text read or displayed
CN110494833A (zh) * 2018-05-28 2019-11-22 深圳市大疆创新科技有限公司 一种多媒体编辑方法及智能终端
CN111357277A (zh) * 2018-11-28 2020-06-30 深圳市大疆创新科技有限公司 视频剪辑控制方法、终端设备和系统
CN112073649A (zh) * 2020-09-04 2020-12-11 北京字节跳动网络技术有限公司 多媒体数据的处理方法、生成方法及相关设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20240105232A1 (en) * 2021-06-04 2024-03-28 Beijing Zitiao Network Technology Co., Ltd. Video editing method and apparatus, and device and storage medium
WO2024056023A1 (zh) * 2022-09-14 2024-03-21 北京字跳网络技术有限公司 一种视频编辑方法、装置、设备及存储介质

Similar Documents

Publication Publication Date Title
US20230022781A1 (en) User interfaces for viewing and accessing content on an electronic device
US10156974B2 (en) Information processing apparatus, display control method, and display control program
US11698721B2 (en) Managing an immersive interface in a multi-application immersive environment
KR101867644B1 (ko) 멀티-애플리케이션 환경
US9933935B2 (en) Device, method, and graphical user interface for editing videos
US9244584B2 (en) Device, method, and graphical user interface for navigating and previewing content items
US10140301B2 (en) Device, method, and graphical user interface for selecting and using sets of media player controls
US20170024110A1 (en) Video editing on mobile platform
US20230168805A1 (en) Configuration of application execution spaces and sub-spaces for sharing data on a mobile touch screen device
US20100318939A1 (en) Method for providing list of contents and multimedia apparatus applying the same
KR20140126327A (ko) 애플리케이션의 썸네일-이미지 선택 기법
WO2019015582A1 (zh) 信息提示方法及移动终端
WO2022126664A1 (zh) 视频编辑方法、终端设备及计算机可读存储介质
WO2016008410A1 (zh) 视频播放方法及系统
WO2022143525A1 (zh) 视频播放方法、装置及电子设备
WO2023030306A1 (zh) 视频编辑方法、装置及电子设备
CN113918522A (zh) 一种文件生成方法、装置及电子设备
WO2020057241A1 (zh) 应用程序显示的方法、装置及终端设备
WO2022017090A1 (zh) 一种信息显示方法、电子设备和存储介质
CN107526505B (zh) 一种数据处理的方法及电子设备
WO2024046266A1 (zh) 视频管理方法、装置、电子设备及可读存储介质
WO2023185701A1 (zh) 一种显示方法及其装置、电子设备和可读存储介质
WO2023179539A1 (zh) 视频编辑方法、装置及电子设备
US10368137B2 (en) System for presenting video information and method therefor
TWI741198B (zh) 視頻展示方法及裝置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20965677

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20965677

Country of ref document: EP

Kind code of ref document: A1