WO2024104468A1 - 视频剪辑方法及装置 - Google Patents

视频剪辑方法及装置 Download PDF

Info

Publication number
WO2024104468A1
WO2024104468A1 PCT/CN2023/132373 CN2023132373W WO2024104468A1 WO 2024104468 A1 WO2024104468 A1 WO 2024104468A1 CN 2023132373 W CN2023132373 W CN 2023132373W WO 2024104468 A1 WO2024104468 A1 WO 2024104468A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
editing
segment
clip
user
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/CN2023/132373
Other languages
English (en)
French (fr)
Other versions
WO2024104468A9 (zh
Inventor
王佳昕
林宜静
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
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 Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to EP23821100.7A priority Critical patent/EP4401398A4/en
Priority to JP2023578857A priority patent/JP7652945B2/ja
Priority to KR1020257012744A priority patent/KR20250067938A/ko
Priority to US18/391,411 priority patent/US12154596B2/en
Publication of WO2024104468A1 publication Critical patent/WO2024104468A1/zh
Anticipated expiration legal-status Critical
Publication of WO2024104468A9 publication Critical patent/WO2024104468A9/zh
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/02Editing, e.g. varying the order of information signals recorded on, or reproduced from, record carriers
    • G11B27/031Electronic editing of digitised analogue information signals, e.g. audio or video signals
    • G11B27/036Insert-editing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/02Editing, e.g. varying the order of information signals recorded on, or reproduced from, record carriers
    • G11B27/031Electronic editing of digitised analogue information signals, e.g. audio or video signals
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/10Indexing; Addressing; Timing or synchronising; Measuring tape travel
    • G11B27/34Indicating arrangements 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44016Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters

Definitions

  • the present disclosure relates to the field of video processing technology, and in particular to a video editing method and device.
  • video editing applications provide users with video editing templates. Users only need to import the video materials they want to edit, and then they can use the editing operations indicated by the video editing template to edit and integrate the video materials into a complete video.
  • video editing applications for editing it is usually necessary to import all the video materials required by the video editing template and then enter the template editing page to preview the editing effect.
  • the preview flexibility is low, which is extremely inconvenient for users and the editing experience is poor.
  • the present disclosure provides a video editing method and device.
  • the present disclosure provides a video editing method, comprising:
  • the video editing template is used to indicate that a specified editing operation is applied to at least one specified video segment, the segment identifier corresponds to the specified video segment one by one, and the segment identifier is used to prompt a user to import a video material for the specified video segment corresponding to the segment identifier;
  • a video clip obtained by applying the specified clipping operation to the target video material is presented. Editing result; wherein, the target video material corresponds to the designated video clip one by one; the target video material is used to import the designated video clip corresponding to the target video material to form the editing result; if the designated video clip includes a first video clip, the target video material corresponding to the first video clip is a preset video material, and the first video clip is a designated video clip into which the user has not imported the video material in response to the trigger operation.
  • it also includes: if the designated video clip includes a second video clip, the target video material corresponding to the second video clip is the video material imported by the user for the second video clip, and the second video clip is the designated video clip into which the user has imported the video material in response to the trigger operation.
  • it also includes:
  • the preview control When it is detected that a designated video segment corresponding to at least one of the segment identifiers is successfully imported into the video material, the preview control is switched from an inoperable state to an operable state; wherein the preview control in the operable state is used to trigger the presentation of the editing result.
  • displaying the segment identifier based on the video editing template includes: displaying a material aggregation display page based on the video editing template, and displaying the preview control in the material aggregation display page; or, displaying a shooting page based on the video editing template, and displaying the preview control in the shooting page.
  • it also includes: in the process of presenting the editing result obtained by applying the specified editing operation on the target video material, responding to the trigger operation of the segment identifier corresponding to the specified video segment, importing the video material into the selected specified video track or replacing the imported video material in the selected specified video segment.
  • displaying the fragment identifiers based on the video clip template includes: displaying the multiple fragment identifiers in a tiled manner based on the video clip template; the method also includes: displaying the multiple fragment identifiers in a layered manner when it is detected that a switching condition is met.
  • the method further includes: including the first video clip, and when the user has imported video materials into all designated video clips except the first video clip, the captured video material is obtained, and in response to a confirmation use instruction for the captured video material, presentation of the editing result is triggered, wherein the confirmation use instruction is used to confirm that the captured video material is the target video material on the first video clip.
  • it also includes: when the designated video clip includes one of the first video clips, and the user has imported video materials into all designated video clips except the first video clip, obtaining video materials from the album, responding to a confirmation upload instruction for the video materials obtained from the album, triggering the presentation of the editing result, and the confirmation upload instruction is used to confirm that the captured video material is the target video material on the first video clip.
  • the present disclosure provides a video editing device, comprising:
  • An acquisition module used to acquire a video clip template
  • a processing module used for generating a segment identifier based on the video clip template
  • the video clip template is used to indicate that a specified clipping operation is applied to at least one specified video segment, the segment identifier corresponds to the specified video segment one by one, and the segment identifier is used to prompt the user to import video material for the specified video segment corresponding to the segment identifier;
  • a display module used for displaying the fragment identifier
  • the processing module is further used for applying the editing result obtained by the specified editing operation to the target video material based on the target video material and the specified editing operation in response to a trigger operation for presenting the editing result; wherein the target video material corresponds to the specified video segment one by one; the target video material is used to import the specified video segment corresponding to the target video material to form the editing result; if the specified video segment includes a first video segment, the target video material corresponding to the first video segment is a preset video material, and the first video segment is a specified video segment into which the user has not imported the video material in response to the trigger operation;
  • the display module is also used to present the editing results.
  • the present disclosure provides an electronic device, including: a memory and a processor;
  • the processor is configured to execute the computer program instructions so that the electronic device implements the video editing method described in the first aspect and any one of the first aspects.
  • the present disclosure provides a readable storage medium, comprising: computer program instructions; an electronic device executes the computer program instructions, so that the electronic device implements the video editing method described in the first aspect and any one of the first aspects.
  • the present disclosure provides a computer program product, and an electronic device runs the computer program product, so that the electronic device implements the video editing method described in the first aspect and any one of the first aspects.
  • the disclosed embodiment provides a video editing method and device, wherein, in a scenario where a video editing template is used for video editing, a segment identifier corresponding to a video segment indicated by the video editing template is displayed based on the video editing template to prompt the user to import video material for the designated video segment corresponding to the segment identifier; in response to a trigger operation for presenting an editing result, an editing result obtained by applying the designated editing operation indicated by the video editing template to a target video material is presented; wherein the target video material corresponds to the designated video segment one-to-one; the target video material is used to import the corresponding designated video segment to form an editing result; if the designated video segment includes a first video segment for which the user has not imported a video material, a preset video material is added to the first video segment.
  • This method can facilitate users to flexibly preview the editing result when the video segment indicated by the video editing template has not completely imported a video material, thereby improving the video editing experience.
  • FIG1 is a flow chart of a video editing method provided by an embodiment of the present disclosure.
  • FIG2 is a flow chart of a video editing method provided by another embodiment of the present disclosure.
  • 3A to 3I are schematic diagrams of human-computer interaction interfaces provided by the present disclosure.
  • FIG4 is a structural diagram of a video editing device provided by an embodiment of the present disclosure.
  • FIG5 is a structural diagram of an electronic device provided by an embodiment of the present disclosure.
  • the video editing method provided by the present disclosure can be implemented by a video editing device, which can be implemented by software and/or hardware, and can generally be integrated in an electronic device.
  • the electronic device can be, but is not limited to, a tablet computer, a mobile phone (such as a folding screen mobile phone, a large screen mobile phone, etc.), a wearable device, an augmented reality (AR)/virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), and other electronic devices.
  • the present disclosure does not impose any restrictions on the specific types of electronic devices.
  • FIG1 is a flow chart of a video editing method provided by an embodiment of the present disclosure. Referring to FIG1 , the method of this embodiment includes:
  • S101 obtaining a video editing template, and displaying a segment identifier based on the video editing template; wherein the video editing template is used to indicate applying a specified editing to at least one specified video segment.
  • the segment identifier corresponds to the specified video segment one by one, and the segment identifier is used to prompt the user to import video material for the specified video segment corresponding to the segment identifier.
  • a video editing application (hereinafter referred to as the application) can be installed in the electronic device.
  • the application After the application is started, the user can browse the template videos edited by using different video editing templates.
  • the template videos mentioned here are videos created by the creator using the video editing template and published in the application.
  • the playback page of the template video may include a usage entrance of the video editing template.
  • the user inputs a trigger operation for the usage entrance to trigger the use of the video editing template for video editing.
  • the trigger operation for the usage entrance can be but is not limited to single-click, double-click, long press, slide, and other types of operations.
  • the application responds to the trigger operation of the use entry of the video clip template and obtains the video clip template.
  • the video clip template may include: information such as the number, sequence, and duration of the specified video clips, information of the specified clipping operation, information of the video material on which the specified clipping operation is applied, etc.
  • the specified video clip may be understood as a video track clip indicated by the video clip template without adding video material.
  • the number of the specified video clips may be one or more, which is not limited in the present disclosure; the specified clipping operation may include but is not limited to one or more operations such as special effect operation, filter operation, music operation, text operation, music clip operation, etc.
  • the application can display the segment identifiers corresponding to each specified video segment based on the specified video segment indicated by the video editing template, where the segment identifiers can be implemented by any method, for example, a combination of one or more methods such as text, icons, and pictures, and the present disclosure does not limit this.
  • the application can respond to a trigger operation for the use entrance of the video editing template, and jump from the playback page of the template video to the material aggregation display page, which is used to aggregate and display image materials in the album.
  • image materials may include photos and videos taken in advance by the user, images and videos downloaded from the Internet, screenshots obtained through screen capture operations, etc.; the segment identifiers corresponding to the video segments indicated by the video editing template are displayed on the material aggregation display page, and the user can select the image material from the material aggregation display page to generate the target video material and import it into the specified video segment.
  • the clip mark corresponding to the specified video clip of the video material can display the thumbnail of the imported video material, and the clip mark corresponding to the video clip of the video material not imported can display the preset image and the duration of the video clip.
  • the application can respond to the trigger operation of the use entrance of the video clip template, jump from the play page of the template video to the shooting page, and display the segment identification corresponding to the video segment indicated by the video clip template in the shooting page.
  • the user can shoot the video material through the camera, and when the user confirms to use the video material, the video material is added to the specified video segment as the target video material.
  • the user can add the target video material to the specified video segment corresponding to different segment identifications by repeatedly performing the operation of shooting and confirming to use the video material obtained by shooting.
  • the shooting page can also be set to enter the material aggregation display page.
  • the user can select the image material in the album to generate the target video material and add it to the specified video segment.
  • the target video material added to the specified video segment can be obtained in whole or in part by shooting with the camera, or can be imported in whole or in part through the material aggregation display page, or can also include both the video material obtained by shooting and the material in the album imported through the material aggregation page.
  • this step by displaying the segment identifiers corresponding to the video segments to the user, the user can clearly understand how many video materials need to be imported, to which designated video segment the imported video materials are added, and clearly understand which designated video segments have imported video materials and which designated video segments have not imported video materials.
  • the material aggregation display page or shooting page from the template video playback page when entering the material aggregation display page or shooting page from the template video playback page, it can be positioned by default to a pre-set segment identifier, for example, the first segment identifier by default, and the user can switch the selected segment identifier through operations (such as clicking, sliding, etc.), and import the video material to the specified video segment corresponding to the selected segment identifier.
  • This method is convenient for users to flexibly choose the order of importing video materials according to their own needs.
  • the user can also delete or replace the video materials on the specified video segment.
  • S102 In response to a trigger operation for presenting an editing result, based on a target video material and a designated editing operation, present an editing result obtained by applying the designated editing operation to the target video material; wherein the target video material corresponds one-to-one to the designated video clip; the target video material is used to import the designated video clip corresponding to the target video material to form the editing result; if the designated video clip includes a first video clip, the target video material corresponding to the first video clip is a preset video material, and the first video clip is a designated video clip into which the user has not imported the video material in response to the trigger operation.
  • the designated video clip can be divided into two types: the first video clip and the second video clip according to whether the user imports video materials into the designated video clip.
  • the first video clip is the designated video clip into which the user has not imported video materials when responding to the trigger operation
  • the second video clip is the designated video clip into which the user has imported video materials when responding to the trigger operation.
  • the designated video clips indicated by the video editing template can be divided into several situations: Situation 1, only the first video clip (that is, the user has not imported video materials into any designated video clip); Situation 2, only the second video clip (that is, the user has imported video materials into all designated video clips); Situation 3, both the first video clip and the second video clip (that is, the user has imported video materials into some designated video clips, and some other designated video clips have not imported video materials).
  • a preset video material can be added to the first video segment, and the preset video material is used as the target video material on the first video segment to form the editing result and present it to the user.
  • the video material imported by the user since the video material imported by the user exists on all designated video segments, the video material imported by the user is used as the target video material to form the editing result and present it to the user. In the above manner, it can be ensured that regardless of whether the user imports a sufficient number of video materials, each designated video segment indicated by the video editing template has video materials, which meets the requirements of the video editing template.
  • the preset video material may be, but is not limited to, generated based on a preset image, or may be a video material segment that is captured from a pre-specified video material and has the same duration as the first video segment; the present disclosure does not limit the image content, size, resolution, and other parameters of the preset image.
  • it can be a solid color background image, such as gray, black, white, etc.; the present disclosure does not limit the video content, duration, resolution and other parameters of the pre-specified video material.
  • it can be a blank content video with a solid color background, such as gray, black, white, etc.
  • the application responds to the trigger operation and applies the specified editing operation to the target video material on the corresponding specified video clip to obtain the editing result.
  • the editing result can be an editing draft formed by importing the target video material into the specified video clip indicated by the video editing template, and the editing draft can also include information about the specified editing operation, etc.; or, the editing result can also be the target video exported after the user imports the imported target video material into the specified video clip indicated by the video editing template, and applies the specified editing operation indicated by the video editing template to the target video material corresponding to the corresponding specified video clip.
  • the method of presenting the editing draft is to render based on the target video material and the specified editing operation, and play the video frames one by one in chronological order; the method of presenting the target video is to play each frame image included in the target video in chronological order.
  • a video editing template corresponds to 4 specified video segments, and there are 4 segment identifiers.
  • the user imports 2 video materials obtained by shooting into specified video segment 1 and specified video segment 2 respectively, and no video materials are imported into specified video segment 3 and specified video segment 4.
  • the specified editing operations indicated by the video editing template are text operations and music operations, and are applied globally, when the editing results are triggered to be presented, the video materials with added text and music are played in the time period corresponding to specified video segment 1 and specified video segment 2, and the gray background video with added text and music is played in the time period corresponding to specified video segment 3 and specified video segment 4.
  • a video editing template corresponds to 4 designated video segments, and there are 4 segment identifiers.
  • the user imports 2 video materials obtained by shooting into designated video segments 1 to 2, respectively, and imports two videos from the album into designated video segments 3 and 4, respectively.
  • the designated editing operations indicated by the video editing template are text operations and music operations, and are applied globally, since there is no first video segment into which the user has not imported video materials, there is no need to add preset video materials.
  • the presentation of the editing result is triggered, the video clips with added text and music are played in the time period corresponding to designated video segments 1 and 4.
  • Video materials imported by users are described by users.
  • the application provides a preview page, in which the rendered video frame image is displayed.
  • the video can be positioned to the start position of the timeline by default and start playing from the start position.
  • the video can be automatically looped, or automatically paused after one playback, and then start playing again from the start position of the timeline based on the user's operation to trigger playback. This is not limited in the present disclosure.
  • the method provided in this embodiment in a scenario where a video clip template is used for video clipping, displays a clip identifier corresponding to the video clip indicated by the video clip template based on the video clip template, so as to prompt the user to import video material for the designated video clip corresponding to the clip identifier; in response to a trigger operation for presenting the clipping result, presents the clipping result obtained by applying the designated clipping operation indicated by the video clip template to the target video material; wherein the target video material corresponds to the designated video clip one-to-one; the target video material is used to import the corresponding designated video clip to form the clipping result; if the designated video clip includes a first video clip for which the user has not imported video material, a preset video material is added to the first video clip.
  • This method can facilitate users to flexibly preview the clipping result when the video clip indicated by the video clip template has not completely imported the video material, thereby improving the video clipping experience.
  • the user may trigger the presentation of the editing result through an operable control (hereinafter referred to as a preview control) in the user interface provided by the application.
  • a preview control an operable control
  • the preview control may always be in an operable state, and the editing result may be previewed regardless of whether the user has imported video material into the specified video segment.
  • the preview controls when no video material to be edited is added to all designated video clips, the preview controls are in an inoperable state. When it is detected that the user has imported video material into at least one designated video clip, the preview controls are switched from an inoperable state to an operable state.
  • the application can use different display styles to allow the user to clearly distinguish whether the preview control is operable. For example, one or more methods such as different display colors, different brightness, different fonts, and different icons can be used to distinguish whether the preview control is operable.
  • This embodiment presents a visual operation entrance to the user, which is convenient for the user to trigger the preview. It can effectively improve the user's editing experience.
  • the number of clip identifiers corresponding to the designated video clips is also multiple, which is consistent with the number of designated video clips.
  • the playback page of the template video is jumped to the material aggregation display page/shooting page, and multiple clip identifiers are displayed in the material aggregation display page/shooting page.
  • the application supports displaying multiple clip identifiers in a tiled manner and a stacked manner, and repeatedly switches between the two display styles of tiled manner and stacked manner when the switching condition is detected to be met.
  • multiple segment identifiers can be displayed in a tiled manner by default.
  • the tiled manner is switched to the stacked manner.
  • the first switching condition can be that no click operation is detected within a preset time.
  • the second switching condition can be that a click operation is detected.
  • FIG2 is a flow chart of a video editing method provided by another embodiment of the present disclosure. Referring to FIG2 , the method of this embodiment is based on the embodiment shown in FIG1 , and after step S102, further includes:
  • the segment identifier corresponding to the specified video segment indicated by the video editing template can be displayed in the preview page, and the segment identifier is in an operable state.
  • the user can import the video material to the first video segment by operating the segment identifier to replace the currently used preset video material.
  • the user can also replace the currently used preset video material by operating the segment identifier. Replace the user-imported video material that already exists in the second video clip.
  • the application responds to the user's trigger operation on any segment identifier in the preview page, such as single-click, double-click, long press, etc., to enter the material editing page.
  • the material editing page can display the shooting entrance and the upload entrance to the user.
  • the user can import video material into the first video segment and replace the user-imported video material that already exists in the second video segment by shooting or uploading.
  • the default location is the specified video segment corresponding to the segment identifier operated by the user.
  • the user can also switch the selected specified video segment in the material editing page.
  • the method of this embodiment allows the user to add or update the video material on the specified video segment corresponding to the segment identifier by operating the segment identifier in the preview page, without the user having to return to the previous level page to add or update.
  • the operation is simple and can effectively improve the user editing experience.
  • the method further includes:
  • S104 updating the editing result based on the video material imported into the designated video track selected by the user or based on the replacement video material imported into the designated video segment selected by the user, and presenting the updated editing result.
  • the video material imported by the user into the selected designated video track should be understood as the designated video clip being the first video clip, and its corresponding target video material being the preset video material.
  • the first video clip can be updated to the second video clip by using the video material imported by the user as the target video material to replace the preset video material.
  • the replacement video material imported by the user into the selected designated video track should be understood as the designated video clip being the second video clip, and the replacement video material imported by the user is used as the target video material to replace the video material originally imported into the second video clip.
  • the application can regenerate the editing result based on the newly imported target video material or the replaced target video material, the target video material on other unoperated specified video clips, and the specified editing operation, and present it to the user through the preview page when the user returns to the preview page, or obtain the edited target video based on the export instruction input by the user and play it.
  • the editing result is presented to the user.
  • the method provided by the present disclosure also supports automatically entering the preview page to present the editing result when the video material is imported into the last first video clip.
  • the last first video segment may be understood as follows: the designated video segments indicated by the video editing template include a first video segment, and the user has imported video materials into all designated video segments except the first video segment.
  • the user can start the camera to shoot, obtain the video material obtained by shooting, and display the video confirmation page to the user.
  • the user can enter the confirmation use instruction through the video confirmation page, respond to the confirmation use instruction for the video material obtained by shooting, import the video material obtained by shooting into the first video clip and trigger the presentation of the editing result, and the confirmation use instruction is used to confirm that the video material obtained by shooting is the target video material on the first video clip.
  • the video confirmation page may include a reshoot control and a confirmation use control, and the user can enter the confirmation use instruction by operating the confirmation use control; in addition, the user can also shoot again by operating the reshoot control, and after shooting is completed, operate the confirmation use control in the video confirmation page again to enter the confirmation use instruction.
  • the confirmation upload control can be displayed in the material aggregation display page.
  • the user can enter the confirmation upload instruction by operating the confirmation upload control.
  • the upload instruction should be confirmed, the video material generated based on the image material selected by the user should be imported into the first video segment and the presentation of the editing result should be triggered.
  • the client installed in the mobile phone includes a video editing application (referred to as Application 1)
  • the template video currently browsed by the user is the template video corresponding to the video editing template 1 (referred to as Template 1)
  • Template 1 indicates that 4 video clips correspond, that is, 4 video materials need to be used for editing.
  • Application 1 the specific implementation process of the video editing method provided by the present disclosure is introduced in detail.
  • Figures 3A-3I are schematic diagrams of human-computer interaction interfaces provided by embodiments of the present disclosure.
  • application 1 can display the user interface 11 shown in Figure 3A on the mobile phone.
  • the user interface 11 is used to display a playback page in application 1, which can play multimedia content, such as the template video corresponding to template 1.
  • the user interface 11 is also used to display relevant information of template 1, such as the nickname of the publisher of template 1 (such as using "@+publisher's nickname” to display the publisher of the template video), the theme of template 1, the topics involved in template 1, the number of video materials required for template 1, and other information.
  • the user interface 11 may further include: a control 101.
  • the control 101 is used to trigger the use of the template 1.
  • the control 101 may be displayed in a text form, for example, in the form of "go to use” or “go to shoot", and different texts may be used to enter different pages.
  • the user can jump from the template video playback page to the material aggregation display page, and the user can select the image pixel through the material aggregation display page.
  • the image material selected by the user can be a photo, an image or a video. If the image material selected by the user is a photo or an image, the application 1 can automatically generate a video material based on the selected photo or image, and the generated video material is the video material in the video clip that the user wants to import into the template 1. The duration of the generated video material matches the duration indicated by the corresponding video clip.
  • the video template's playback page can be redirected to the shooting page.
  • the shooting page can obtain the video material to be edited by real-time acquisition, from application 1, or from a storage module other than application 1.
  • application 1 may display a user interface 12 as shown in FIG. 3B on the mobile phone, wherein user interface 12 is mainly used to display a shooting page.
  • user interface 12 is mainly used to display a shooting page.
  • the present disclosure does not limit the specific implementation of user interface 12.
  • shooting tool icons may be displayed on the shooting page, for example, one or more of a shooting button, a lens exposure, a timer, a flash, props, a template video display switch, a speed increase, a video shooting mode button, a photo mode button, a lens ratio adjustment, etc.
  • the shooting button may be arranged near the bottom of the entire shooting page, and other shooting tool icons may be arranged in a concentrated manner near the edge of the entire shooting page, so as not to block the shooting screen as much as possible.
  • the shooting page supports users to switch between video shooting mode and photo mode by operating the video shooting mode button and the photo mode button; in some embodiments, when entering the shooting page, the video shooting mode can be set by default, and the front camera can be selected by default for shooting; in some embodiments, if the material to be added to the video clip corresponding to the currently selected clip identifier is a photo, it can be positioned in the photo mode. If the user switches to the video shooting mode, a prompt message can be displayed at the top of the shooting page to prompt the user that the effect corresponding to the video clip only supports photos.
  • the shooting page allows users to adjust the lens ratio, thereby enlarging or reducing the image captured by the phone's camera.
  • reducing the lens ratio can ensure that images with a larger viewing angle are captured in the front selfie scene.
  • the template video can be displayed in a small window style on the shooting page, and the small window position Movable, refer to FIG3B , area 102 is a small window area for playing the template video.
  • Area 102 can decide whether to use a horizontal screen style or a vertical screen style according to the aspect ratio of the template video. If area 102 cannot be filled, it can be filled with a black border.
  • the video material on the currently shot video clip is displayed in area 102.
  • the currently shot video material is the first video material to be edited, and "1" or "Clip 1" can be displayed.
  • Area 102 can also include a zoom-out button, and the user can click the zoom-out button to zoom out area 102 to a preset ratio.
  • the user can switch the template video screen and the shooting screen in area 102 by clicking anywhere on the template video screen in area 102.
  • the user interface 12 also includes: areas 103 to 106, where area 103 is used to display the segment identifier 1 corresponding to the video segment 1, area 104 is used to display the segment identifier 2 corresponding to the video segment 2, area 105 is used to display the segment identifier 3 corresponding to the video segment 3, and area 106 is used to display the segment identifier 4 corresponding to the video segment 4.
  • Areas 103 to 106 can be arranged from left to right to correspond to the order of video segments 1 to 4. The user can click on any one of the areas 103 to 106 to select one of the four video segments, or can switch the selected video segment by clicking on different areas.
  • the segment identifiers corresponding to the selected video segments and the segment identifiers corresponding to the unselected video segments use different display styles to facilitate the user to clearly distinguish them. For example, as shown in FIG. 3B , the shooting icon is displayed in area 103 corresponding to the video segment 1 currently in the selected state, and the duration information of the video segments is displayed in areas 104 to 106 corresponding to the unselected video segments 2 to 4, respectively.
  • a video thumbnail is displayed in the area corresponding to the second video segment, and the duration information of the corresponding video segment is displayed in the area corresponding to the first video segment.
  • all segment identifiers may be displayed in a tiled display style by default. If a switching condition is detected, the display style may be switched to a stacked display style in the order of the video segments.
  • the switching condition may be, for example, that no click operation is detected within a preset time.
  • the preset time may be, but is not limited to, 2 seconds, 3 seconds, etc., and may be set as required. For example, assuming that when the application 1 displays the shooting page, as shown in FIG3B , the default display style is tiled.
  • the plurality of segment identifiers are displayed in a tiled display style. If no click operation is detected for more than 2 seconds, the user interface 13 shown in FIG. 3C may be displayed, and the plurality of segment identifiers may be displayed in a stacked display manner.
  • the video material shot is the video material on the video clip corresponding to the selected clip identifier; if you click upload, you can enter the material aggregation display page to select image materials, and obtain video materials based on the selected image materials and import the video clip corresponding to the selected clip identifier.
  • the clip identifier and area 102 need to be located to the clip identifier corresponding to the current first video clip, so that users can continue shooting or uploading directly without manually switching to the first video clip.
  • the video clip of the imported video material supports deleting the imported video material, wherein a delete button can be displayed in the area displaying the clip identifier corresponding to the video clip, and the user deletes the imported video material in the video clip by clicking the corresponding delete button in the area.
  • the video clips of the imported video materials support editing the imported video materials.
  • the editing button can be displayed in the area where the clip logo corresponding to the video clip is displayed, and the user enters the editing page by clicking the corresponding editing button in the area. If the duration of the imported video material is greater than the duration of the video clip, the clip can be selected by dragging on the editing page. If the duration of the imported video material is less than or equal to the duration of the video clip, the screen can be zoomed in or out and the position can be adjusted on the editing page; if the imported video material is generated based on photos/images, the screen can be zoomed in or out and the position can be adjusted on the editing page.
  • the user interface 12 also includes a control 107, which is used to enter the preview page.
  • the control 107 has two states: an operable state and an inoperable state.
  • the states of the control 107 can be distinguished by different colors. Of course, they can also be distinguished by other methods, which are not limited by the present disclosure. For example, when the control 107 is in an inoperable state, it can be displayed in "gray background + dark gray font". When the control 107 is in an operable state, it can be displayed in other colors, such as "white background + black font”. As shown in FIG. 3B , none of the four video clips currently have video materials imported. Therefore, the control 107 is displayed in "gray background + dark gray font" and is in an inoperable state.
  • the current user interface 12 shows the situation where none of the four video clips have been imported into the video material. Assuming that the user selects the clip identifier 1, that is, selects the video clip 1, and clicks the shooting button to shoot, when shooting, a countdown can be performed based on the setting of the timer, and shooting starts when the countdown ends. After shooting starts, the shooting tool icons on the side can be hidden to minimize the occlusion of these shooting tool icons on the shooting screen, and usually the user rarely clicks the shooting tool icon during the shooting process, so hiding the display will not cause a poor user experience.
  • the progress bar displays the video shooting progress according to the length of the video material required for the current slot; the shooting duration can be displayed in real time according to the time when the shooting has started; and multiple shooting is supported; when shooting, the shooting can be paused by clicking the shooting button, and the shooting can be continued when the shooting button is clicked again; this solution also supports text editing in the shooting preview and deleting the last shot.
  • the video confirmation page can provide "Confirm Use Controls" and "Reshoot Controls".
  • the video confirmation page you can use an area to play the complete video synthesized by the shot video and text. If the user operates the confirmation control, you can jump back to the page described in Figure 3D, locate the segment identifier 2, select video segment 2, and continue shooting video segment 2.
  • the relevant animation effects added to the video segment 1 by the video material can be displayed. If the user operates the reshoot control, it will return to the shooting page of the previous video material and clear the content of the last shot.
  • the video confirmation page also supports saving the current synthesized complete video to the local album, and the user can save it by checking the relevant option. It should be understood that if the user does not edit the text during the shooting process, the shot video will be played on the video confirmation page. The video you received can be used.
  • video material 1 is imported into video clip 1.
  • application 1 detects that video material has been imported into at least one video clip, it can display user interface 14 as shown in FIG3D. Please refer to user interface 14, where the video thumbnail of video material 1 is displayed in area 103 corresponding to clip identifier 1, and control 107 is in an operable state.
  • application 1 detects the user's trigger operation on control 107, application 1 can display user interface 15 as shown in FIG3E on the mobile phone, and user interface 15 is used to display the preview page.
  • the user interface 15 includes an area 108 and an area 109 to an area 112 .
  • Area 108 is used to play the editing result.
  • video segments 2 to 4 are filled with a black screen and display the original effects and sounds of template 1.
  • a playback progress bar can also be displayed in area 108, and the user can drag the progress bar to adjust the playback progress of the editing result.
  • the display area for displaying the template video can be closed by default.
  • the corresponding template video display switch can be set in the preview page.
  • the area for displaying the template video can be opened to play against the editing results.
  • Areas 109 to 112 are areas for displaying segment identifiers corresponding to video segments, which are similar to the aforementioned areas 103 to 106, and can be referred to the aforementioned description.
  • the area displaying the segment identifier corresponding to the video segment can display a playback animation, and the user can determine which video segment the current playback position is by observing the playback animation.
  • the user interface 15 may further include a control 113 and a control 114 .
  • control 113 is used to enter the template editing page, in which the target video materials imported on the 4 video clips can be edited, and text, music, etc. can be edited.
  • the control 114 is used to export the target video obtained by editing each video material according to the editing operation indicated by the video editing template.
  • the control 114 for exporting is set in the preview page, which is convenient for users to export with one key and simple operation.
  • controls 113 and 114 include: an operable state and an inoperable state, and the two states can be distinguished by different display styles, for example, different colors.
  • controls 113 and 114 can be set to be in an operable state when video materials are imported into all video clips; and in an inoperable state when there are one or more first video clips. For example, as shown in FIG3E, since video clips 2 to 4 are the first video clips, controls 113 and 114 are both displayed with "gray background + gray text" and are both in an inoperable state.
  • the area displaying the segment identifier is operable.
  • the material editing page can be entered.
  • the video material can be played in the playback area of the material editing page, and can be played in a loop; if the video segment corresponding to the segment identifier clicked by the user has no video material imported, the preset video material, for example, a video of a black screen, can be played in the playback area of the material editing page.
  • application 1 receives a trigger operation from the user for area 109 corresponding to segment identifier 1
  • application 1 exemplarily displays a user interface 16 as shown in FIG3F on the mobile phone, and user interface 16 is used to display a material editing page.
  • the user interface 16 includes: area 115, area 116, entrance 117 and entrance 118.
  • area 115 is used to play the screen of the video material;
  • area 116 is used to display the elongated track of the video material corresponding to each video clip, and different tracks are arranged in order, for example, 4 tracks are arranged horizontally from left to right, which is consistent with the order of video clips 1 to 4.
  • the user can switch to the track of the video material corresponding to other video clips by sliding horizontally.
  • On the track there is a progress mark to show the playback progress. For example, as shown in Figure 3F, the current position is on the elongated track of the video material corresponding to video clip 1.
  • entry 117 is a shooting entry for entering the shooting page; entry 118 is an upload entry for entering the material aggregation display page.
  • the user selecting a stretched track of a video material in the user interface 16 is equivalent to selecting the corresponding video clip.
  • the user can enter the shooting page through entry 117 to upload the video clip to the video clip.
  • the application 1 supports the user to crop the video material selected for upload, and after obtaining the instruction to confirm the upload of the cropped video material, the cropped video material is added to the corresponding video clip.
  • the user After the user confirms to use the captured video material or confirms to use the uploaded video material, the user can jump back to the shooting page, such as the user interface 16 shown in FIG. 3D , and display the related animation effects of importing the video material into the video clip.
  • a template video playback switch may also be provided.
  • the regional comparison playback of the template video may be turned on.
  • the application 1 when the application 1 supports importing video materials into the last first video clip by shooting or uploading, it can automatically jump to the preview page to play the editing result.
  • the user can import video materials into the last first video clip through the entrance of any page, and the present disclosure does not limit this. For example, it can be imported by shooting/uploading in sequence through the interface shown in Figure 3B, or it can be imported by shooting/uploading through the material editing page.
  • application 1 receives the user's trigger operation for "confirm use of control", and automatically jumps to the preview page, such as the user interface 15 described in FIG3E, the difference is that the video material is imported into all video clips. If the video material on the last first video clip is imported by uploading, application 1 automatically jumps to the preview page after receiving the instruction to confirm the upload, such as the user interface 15 described in FIG3E, the difference is that the video material is imported into all video clips.
  • 3A to 3F mainly show how to jump from the playing page of the template video to the shooting page to import the video material into the video clip indicated by the video clip template, and then enter Detailed introduction to the preview page and material editing page.
  • the method provided by the present disclosure also supports jumping from the template video playback page shown in Figure 3A to the material aggregation display page to import video materials into the video clip indicated by the video editing template, and then entering the preview page and the material editing page.
  • control 101 in the user interface 11 shown in Figure 3A is implemented using the text "go to use"
  • the application 1 receives a trigger operation for the control 101
  • it can exemplarily display the user interface 17 shown in Figure 3G on the mobile phone, and the user interface 17 is used to display the material aggregation display page.
  • the user interface 17 may include area 119, which is a material aggregation display area.
  • Area 119 may include multiple display areas, each display area is used to display a thumbnail of an image material, and can identify the selected state of the image material. The selected image material can be added to multiple slots in the order of selection.
  • the duration of the video material can also be displayed so that the user can select a video material with a suitable duration to import.
  • the duration information can be displayed at the edge of the display area corresponding to the video material, without blocking the thumbnail of the video material, such as the lower right corner.
  • the duration information of the video material is not shown in Figures 3G to 3I.
  • more information related to the image material can also be displayed in the display area of the image material, such as the name added by the user to the image material, etc.
  • the user interface 17 may further include an area 120, which is used to display a segment identifier corresponding to the video segment indicated by the template 1.
  • the segment identifier corresponding to the video segment may display the duration of the video segment.
  • the area 120 is similar to the aforementioned areas 103 to 106, and can be referred to the above description, which will not be repeated here.
  • the user interface 17 also includes a control 121, and the control 121 is used to enter a preview page.
  • the preview page can refer to the detailed description of the user interface 16 shown in FIG. 3E, which will not be repeated here.
  • control 121 since no image material is selected, the control 121 is in an inoperable state and the preview page cannot be entered at this time.
  • Application 1 responds to the user's selection operation on one of the video materials in the material aggregation display area 119, and adds the selected video material 1 as the video material to be edited to video segment 1. Since at least one video segment has imported the video material, the control 121 switches from an inoperable state to an operable state. For example, as shown in the user interface 18 shown in FIG. 3H , the display style of the control 121 is different from the display style in FIG. 3G , and the user can clearly distinguish whether the control 121 is operable.
  • the user can enter the preview page through the operation control 121, and enter the material editing page through the preview page.
  • the implementation method is similar to the embodiments shown in Figures 3D to 3F, and will not be repeated here.
  • the multiple segment identifiers of multiple video segments can also be repeatedly switched between the two display styles of tiled display and stacked display.
  • the switching conditions are similar to those described above and are not repeated here. For example, referring to the user interface 19 shown in FIG3I, assuming that on the basis of the user interface 17 shown in FIG3G, no click operation is detected for a preset time, the user interface 19 is displayed, and multiple segment identifiers are stacked.
  • a clip identifier corresponding to the video clip indicated by the video clip template is displayed based on the video clip template to prompt the user to import video material for the designated video clip corresponding to the clip identifier; in response to a trigger operation for presenting the clipping result, the clipping result obtained by applying the designated clipping operation indicated by the video clip template to the target video material is presented; wherein the target video material corresponds to the designated video clip one-to-one; the target video material is used to import the corresponding designated video clip to form the clipping result; if the designated video clip includes a first video clip into which the user has not imported the video material, a preset video material is added to the first video clip.
  • This method can facilitate users to flexibly preview the clipping results when the video clip indicated by the video clip template has not been fully imported into the video material, thereby improving the video clipping experience.
  • the display style of the clip identifier can be switched, which increases the fun and helps to improve the visual effect.
  • the present disclosure also provides a video editing device.
  • FIG4 is a structural diagram of a video editing device provided by an embodiment of the present disclosure. As shown in FIG. 4 , the video editing device 400 provided in this embodiment includes:
  • An acquisition module 401 is used to acquire a video clip template
  • a processing module 402 is used to generate a segment identifier based on the video clip template
  • the video clip template is used to indicate that a specified clipping operation is applied to at least one specified video segment, the segment identifier corresponds to the specified video segment one by one, and the segment identifier is used to prompt the user to import video material for the specified video segment corresponding to the segment identifier;
  • the processing module 402 is further used for applying the editing result obtained by the specified editing operation to the target video material based on the target video material and the specified editing operation in response to a trigger operation for presenting the editing result; wherein the target video material corresponds to the specified video segment one by one; the target video material is used to import the specified video segment corresponding to the target video material to form the editing result; if the specified video segment includes a first video segment, the target video material corresponding to the first video segment is a preset video material, and the first video segment is a specified video segment into which the user has not imported the video material in response to the trigger operation;
  • the display module 403 is also used to present the editing result.
  • the target video material corresponding to the second video clip is the video material imported by the user for the second video clip
  • the second video clip is the designated video clip into which the user has imported the video material in response to the trigger operation.
  • the display module 403 is further used to display a preview control.
  • the preview control is in an inoperable state.
  • the processing module 402 is further used to detect whether there is a video material successfully imported into the designated video segment corresponding to at least one of the segment identifiers, and when it is detected that the video material is successfully imported into the designated video segment corresponding to at least one of the segment identifiers, the preview control is switched from an inoperable state to an operable state through the display module 403; wherein, The preview control in an operable state is used to trigger the presentation of the editing result.
  • the display module 403 is specifically used to display a material aggregation display page based on the video editing template, and display the preview control in the material aggregation display page; or, display a shooting page based on the video editing template, and display the preview control in the shooting page.
  • the processing module 402 is also used to import video material into the selected specified video track or replace the imported video material in the selected specified video clip in response to a trigger operation of a clip identifier corresponding to the specified video clip during the process of presenting the editing result obtained by applying the specified editing operation to the target video material.
  • the display module 403 is specifically configured to display the multiple segment identifiers in a tiled manner based on the video clip template.
  • the processing module 402 is further configured to detect whether a switching condition is satisfied, and when it is detected that the switching condition is satisfied, the display module 403 displays the multiple segment identifiers in a stacked manner.
  • the processing module 402 is further used to obtain the captured video material when the designated video segment includes the first video segment and the user has imported video materials into all designated video segments except the first video segment, and to trigger the presentation of the editing result in response to a confirmation use instruction for the captured video material, wherein the confirmation use instruction is used to confirm that the captured video material is the target video material on the first video segment.
  • the processing module 402 is also used to obtain video materials from the album when the designated video clips include the first video clip and the user has imported video materials into all designated video clips except the first video clip, and to trigger the presentation of the editing result in response to a confirmation upload instruction for the video materials obtained from the album, wherein the confirmation upload instruction is used to confirm that the video material obtained by shooting is the target video material on the first video clip.
  • the video editing device provided in this embodiment can be used to execute any of the aforementioned method embodiments.
  • the technical solution has similar implementation principles and technical effects, and can be referred to the detailed description of the method embodiment above. For the sake of brevity, it will not be repeated here.
  • FIG5 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure.
  • the electronic device 500 provided by the present embodiment includes: a memory 501 and a processor 502 .
  • the memory 501 may be an independent physical unit, and may be connected to the processor 502 via a bus 503.
  • the memory 501 and the processor 502 may also be integrated together and implemented via hardware.
  • the memory 501 is used to store program instructions, and the processor 502 calls the program instructions to execute the operations of any of the above method embodiments.
  • the above electronic device 500 may also only include a processor 502.
  • the memory 501 for storing programs is located outside the electronic device 500, and the processor 502 is connected to the memory through circuits/wires to read and execute the programs stored in the memory.
  • Processor 502 can be a central processing unit (CPU), a network processor (NP), or a combination of CPU and NP.
  • CPU central processing unit
  • NP network processor
  • the processor 502 may further include a hardware chip.
  • the hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof.
  • the PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.
  • the memory 501 may include a volatile memory (volatile memory), such as a random-access memory (RAM); the memory may also include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory), a hard disk drive (HDD) or a solid-state drive (SSD); the memory may also include a combination of the above types of memory.
  • volatile memory such as a random-access memory (RAM)
  • non-volatile memory such as a flash memory (flash memory), a hard disk drive (HDD) or a solid-state drive (SSD)
  • flash memory flash memory
  • HDD hard disk drive
  • SSD solid-state drive
  • the present disclosure also provides a readable storage medium, including: computer program instructions; when the computer program instructions are executed by at least one processor of the electronic device, any of the above The video editing method shown in the method embodiment.
  • the present disclosure also provides a computer program product, which includes computer program instructions.
  • the computer program instructions are stored in a readable storage medium.
  • At least one processor of the electronic device can read the computer program instructions from the readable storage medium.
  • the at least one processor executes the computer program instructions so that the electronic device implements the video editing method shown in any of the above method embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Tourism & Hospitality (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Television Signal Processing For Recording (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)
  • Studio Devices (AREA)

Abstract

本公开提供一种视频剪辑方法及装置,其中,在利用视频剪辑模板进行视频剪辑的场景中,基于视频剪辑模板展示与视频剪辑模板所指示的视频片段一一对应的片段标识,以提示用户为片段标识对应的指定视频片段导入视频素材;响应于呈现剪辑结果的触发操作,呈现在目标视频素材上施加视频剪辑模板所指示的指定剪辑操作得到的剪辑结果;其中,目标视频素材与指定视频片段一一对应;目标视频素材用于导入相应的指定视频片段以形成剪辑结果;若指定视频片段中包括用户未导入视频素材的第一视频片段,为第一视频片段添加预设视频素材。该方法可以在视频剪辑模板所指示的视频片段未完全导入视频素材的情况下方便用户灵活预览剪辑结果,提高视频剪辑体验。

Description

视频剪辑方法及装置
本申请要求于2022年11月17日提交中国国家知识产权局、申请号为202211440612.3、发明名称为“视频剪辑方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本公开涉及视频处理技术领域,尤其涉及一种视频剪辑方法及装置。
背景技术
随着互联网技术不断快速发展,越来越多的用户喜欢采用视频的形式记录生活,且用户常常喜欢将多个视频素材剪辑成一个视觉效果丰富的视频。为了方便用户剪辑且降低对用户的视频剪辑技能的要求,一些视频剪辑类应用程序向用户提供了视频剪辑模板,用户只需导入想到剪辑的视频素材,便可可以用视频剪辑模板所指示的剪辑操作将视频素材剪辑整合成一个完整的视频。然而,在利用视频剪辑类应用程序进行剪辑时,通常需要导入视频剪辑模板所需的所有视频素材之后进入模板编辑页面中可以预览剪辑效果,预览灵活性较低,对于用户来说极其不便,剪辑体验较差。
发明内容
为了解决上述技术问题,本公开提供了一种视频剪辑方法及装置。
第一方面,本公开提供了一种视频剪辑方法,包括:
获取视频剪辑模板,并基于所述视频剪辑模板展示片段标识;其中,所述视频剪辑模板用于指示在至少一个指定视频片段上施加指定剪辑操作,所述片段标识与所述指定视频片段一一对应,所述片段标识用于提示用户为所述片段标识对应的指定视频片段导入视频素材;
响应于呈现剪辑结果的触发操作,基于目标视频素材和所述指定剪辑操作,呈现在所述目标视频素材上施加所述指定剪辑操作得到的 剪辑结果;其中,所述目标视频素材与所述指定视频片段一一对应;所述目标视频素材用于导入所述目标视频素材对应的指定视频片段以形成所述剪辑结果;若所述指定视频片段中包括第一视频片段,所述第一视频片段对应的目标视频素材为预设视频素材,所述第一视频片段为在响应到所述触发操作的情况下用户未导入视频素材的指定视频片段。
在一些实施例中,还包括:若所述指定视频片段中包括第二视频片段,所述第二视频片段对应的目标视频素材为用户针对所述第二视频片段导入的视频素材,所述第二视频片段为在响应到所述触发操作的情况下用户已导入视频素材的指定视频片段。
在一些实施例中,还包括:
展示预览控件,在用户未向任一所述片段标识对应的指定视频片段导入视频素材时,所述预览控件为不可操作状态;
在检测到至少一个所述片段标识对应的指定视频片段成功导入视频素材时,将所述预览控件由不可操作状态切换为可操作状态;其中,处于可操作状态下的所述预览控件用于触发呈现所述剪辑结果。
在一些实施例中,所述基于所述视频剪辑模板展示片段标识,包括:基于所述视频剪辑模板显示素材聚合展示页面,并在所述素材聚合展示页面中展示所述预览控件;或者,基于所述视频剪辑模板显示拍摄页面,并在所述拍摄页面中展示所述预览控件。
在一些实施例中,还包括:呈现在所述目标视频素材上施加所述指定剪辑操作得到的剪辑结果的过程中,响应针对所述指定视频片段对应的片段标识的触发操作,向选中的所述指定视频轨道中导入视频素材或者替换选中的所述指定视频片段中已导入的视频素材。
在一些实施例中,若所述片段标识为多个,所述基于所述视频剪辑模板展示片段标识,包括:基于所述视频剪辑模板平铺展示所述多个片段标识;所述方法还包括:检测到满足切换条件时,层叠展示所述多个片段标识。
在一些实施例中,还包括:在所述指定视频片段包括一个所述第一 视频片段,且用户向除所述第一视频片段之外的所有指定视频片段均已导入视频素材的情况下,获取拍摄得到的视频素材,响应针对所述拍摄得到的视频素材的确认使用指令,触发呈现所述剪辑结果,所述确认使用指令用于确认拍摄得到的视频素材为所述第一视频片段上的目标视频素材。
在一些实施例中,还包括:在所述指定视频片段包括一个所述第一视频片段,且用户向除所述第一视频片段之外的所有指定视频片段均已导入视频素材的情况下,从相册中获取视频素材,响应针对从相册获取的视频素材的确认上传指令,触发呈现所述剪辑结果,所述确认上传指令用于确认拍摄得到的视频素材为所述第一视频片段上的目标视频素材。
第二方面,本公开提供了一种视频剪辑装置,包括:
获取模块,用于获取视频剪辑模板;
处理模块,用于基于所述视频剪辑模板生成片段标识;
其中,所述视频剪辑模板用于指示在至少一个指定视频片段上施加指定剪辑操作,所述片段标识与所述指定视频片段一一对应,所述片段标识用于提示用户为所述片段标识对应的指定视频片段导入视频素材;
展示模块,用于展示所述片段标识;
所述处理模块,还用于响应于呈现剪辑结果的触发操作,基于目标视频素材和所述指定剪辑操作,在所述目标视频素材上施加所述指定剪辑操作得到的剪辑结果;其中,所述目标视频素材与所述指定视频片段一一对应;所述目标视频素材用于导入所述目标视频素材对应的指定视频片段以形成所述剪辑结果;若所述指定视频片段中包括第一视频片段,所述第一视频片段对应的目标视频素材为预设视频素材,所述第一视频片段为在响应到所述触发操作的情况下用户未导入视频素材的指定视频片段;
所述展示模块,还用于呈现剪辑结果。
第三方面,本公开提供一种电子设备,包括:存储器和处理器;
所述存储器被配置为存储计算机程序指令;
所述处理器被配置为执行所述计算机程序指令,使得所述电子设备实现第一方面以及第一方面任一项所述的视频剪辑方法。
第四方面,本公开提供了一种可读存储介质,包括:计算机程序指令;电子设备执行所述计算机程序指令,使得所述电子设备实现第一方面以及第一方面任一项所述的视频剪辑方法。
第五方面,本公开提供了一种计算机程序产品,电子设备运行所述计算机程序产品,使得所述电子设备实现第一方面以及第一方面任一项所述的视频剪辑方法。
本公开实施例提供一种视频剪辑方法及装置,其中,在利用视频剪辑模板进行视频剪辑的场景中,基于视频剪辑模板展示与视频剪辑模板所指示的视频片段一一对应的片段标识,以提示用户为所述片段标识对应的指定视频片段导入视频素材;响应于呈现剪辑结果的触发操作,呈现在目标视频素材上施加视频剪辑模板所指示的指定剪辑操作得到的剪辑结果;其中,目标视频素材与指定视频片段一一对应;目标视频素材用于导入相应的指定视频片段以形成剪辑结果;若指定视频片段中包括用户未导入视频素材的第一视频片段,为第一视频片段添加预设视频素材。该方法可以在视频剪辑模板所指示的视频片段未完全导入视频素材的情况下方便用户灵活预览剪辑结果,提高视频剪辑体验。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提 下,还可以根据这些附图获得其他的附图。
图1为本公开一实施例提供的视频剪辑方法的流程图;
图2为本公开另一实施例提供的视频剪辑方法的流程图;
图3A至图3I为本公开提供的人机交互界面示意图;
图4为本公开一实施例提供的视频剪辑装置的结构图;
图5为本公开一实施例提供的电子设备的结构图。
具体实施方式
为了能够更清楚地理解本公开的上述目的、特征和优点,下面将对本公开的方案进行进一步描述。需要说明的是,在不冲突的情况下,本公开的实施例及实施例中的特征可以相互组合。
在下面的描述中阐述了很多具体细节以便于充分理解本公开,但本公开还可以采用其他不同于在此描述的方式来实施;显然,说明书中的实施例只是本公开的一部分实施例,而不是全部的实施例。
示例性地,本公开提供的视频剪辑方法可以由视频剪辑装置实现,视频剪辑装置可以通过软件和/或硬件的方式实现,一般可以集成在电子设备中。其中,电子设备可以但不限于为:平板电脑、手机(如折叠屏手机、大屏手机等)、可穿戴设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等电子设备,本公开对电子设备的具体类型不作任何限制。
下述实施例中,以电子设备为例,结合附图和应用场景,对本公开提供的视频剪辑方法进行详细阐述。
图1为本公开一实施例提供的视频剪辑方法的流程图。请参阅图1所示,本实施例的方法包括:
S101、获取视频剪辑模板,并基于视频剪辑模板展示片段标识;其中,视频剪辑模板用于指示在至少一个指定视频片段上施加指定剪辑 操作,片段标识与指定视频片段一一对应,片段标识用于提示用户为片段标识对应的指定视频片段导入视频素材。
其中,电子设备中可以安装视频剪辑类应用程序(以下简称为应用),启动应用程序,用户可以浏览采用不同视频剪辑模板剪辑得到的模板视频,此处提及的模板视频为创作者利用视频剪辑模板进行创作得到并发布在应用程序中的视频,在模板视频的播放页面中可以包括视频剪辑模板的使用入口,用户输入针对使用入口的触发操作触发使用该视频剪辑模板进行视频剪辑,其中,针对使用入口的触发操作可以但不限于为单击、双击、长按、滑动等等类型操作。
应用程序响应针对视频剪辑模板的使用入口的触发操作,获取视频剪辑模板,视频剪辑模板可以包括:指定视频片段的数量、顺序、时长等信息、指定剪辑操作的信息、指定剪辑操作是施加在哪个视频片段上的视频素材的信息等等。其中,指定视频片段可以理解为是视频剪辑模板所指示的未添加视频素材的视频轨道片段,指定视频片段的数量可以为一个或多个,本公开对此不做限定;指定剪辑操作可以包括但不限于特效操作、滤镜操作、音乐操作、文字操作、音乐剪辑操作等等一种或多种操作。
应用程序可以基于视频剪辑模板所指示的指定视频片段展示各指定视频片段对应的片段标识,其中,片段标识可以通过任意方法实现,例如,文字、图标、图片等一种或多种方式结合实现,本公开对此不做限定。
在一些实施例中,应用程序可以响应针对视频剪辑模板的使用入口的触发操作,由模板视频的播放页面跳转至素材聚合展示页面,素材聚合展示页面用于聚合展示相册中的图像素材,这些图像素材可以包括用户预先拍摄好的照片、视频,从网络上下载的图像、视频,通过截屏操作得到的截图等;在素材聚合展示页面中展示与视频剪辑模板所指示的视频片段一一对应的片段标识,用户可以从素材聚合展示页面中选中图像素材生成目标视频素材并导入指定视频片段中,导入了视 频素材的指定视频片段对应的片段标识中可以显示所导入的视频素材的缩略图,未导入视频素材的视频片段对应的片段标识中可以显示预设图像以及视频片段的时长。
在一些实施例中,应用程序可以响应针对视频剪辑模板的使用入口的触发操作,由模板视频的播放页面跳转至拍摄页面,并在拍摄页面中展示与视频剪辑模板所指示的视频片段一一对应的片段标识,用户可以通过拍摄器进行拍摄得到视频素材,当用户确认使用该视频素材,则将该视频素材作为目标视频素材添加至指定视频片段上,用户可以通过反复执行拍摄以及确认使用拍摄得到的视频素材的操作,向不同片段标识对应的指定视频片段中添加目标视频素材。其中,为了方便用户灵活添加视频素材,在拍摄页面也可以设置进入素材聚合展示页面的入口,通过该入口用户可以选择相册中的图像素材生成目标视频素材添加在指定视频片段上。采用该方式时,添加至指定视频片段中的目标视频素材可以全部或者部分是通过拍摄器拍摄得到,也可以全部或者部分是通过素材聚合展示页面导入的,或者,还可以既包含拍摄得到的视频素材也包括通过素材聚合页面导入的相册中的素材。
本步骤,通过向用户展示视频片段对应的片段标识,用户可以清楚了解到需要导入几个视频素材、导入的视频素材是添加在哪个指定视频片段中以及清楚了解哪些指定视频片段导入了视频素材哪些指定视频片段未导入视频素材等信息。
此外,由模板视频的播放页面进入素材聚合展示页面或者拍摄页面时,可以默认定位至预先设定的某个片段标识上,例如,默认定位至第一个片段标识,用户可以通过操作(如点击、滑动等操作)切换选中的片段标识,并向选中的片段标识所对应的指定视频片段中导入视频素材。通过该方式方便用户按照自身需求灵活选择导入视频素材的顺序。
此外,为了满足用户的视频剪辑需求,用户向某个指定视频片段导入视频素材之后,还可以删除或者替换该指定视频片段上的视频素材。
S102、响应于呈现剪辑结果的触发操作,基于目标视频素材和指定剪辑操作,呈现在目标视频素材上施加指定剪辑操作得到的剪辑结果;其中,目标视频素材与指定视频片段一一对应;目标视频素材用于导入目标视频素材对应的指定视频片段以形成所述剪辑结果;若指定视频片段中包括第一视频片段,第一视频片段对应的目标视频素材为预设视频素材,第一视频片段为在响应到触发操作的情况下用户未导入视频素材的指定视频片段。
本方案中,按照用户是否向指定视频片段导入视频素材可以将指定视频片段分为第一视频片段和第二视频片段两种类型,第一视频片段为响应触发操作时用户未导入视频素材的指定视频片段,第二视频片段为响应触发操作时用户导入了视频素材的指定视频片段。
基于用户导入视频素材,视频剪辑模板指示的指定视频片段可以分成几种情形:情形1、只有第一视频片段(即用户未向任何一个指定视频片段中导入视频素材);情形2、只有第二视频片段(即用户向所有指定视频片段中均导入了视频素材);情形3、既有第一视频片段也有第二视频片段(即用户向部分指定视频片段导入了视频素材,还有部分指定视频片段未导入视频素材)。
针对情形1和情形3,由于存在未导入视频素材的第一视频片段,为了实现预览,则可以向第一视频片段中添加预设视频素材,将预设视频素材作为第一视频片段上的目标视频素材用于形成剪辑结果并呈现给用户。针对情形2,由于所有的指定视频片段上均存在用户导入的视频素材,则将用户导入的视频素材作为目标视频素材用于形成剪辑结果并呈现给用户。通过上述方式,可以保证无论用户是否导入足够数量的视频素材,视频剪辑模板所指示的每个指定视频片段上均有视频素材,满足视频剪辑模板的要求。
其中,预设视频素材可以但不限于为基于预设图像生成,也可以是从预先指定的视频素材中截取的与第一视频片段时长一致的视频素材片段;本公开对于预设图像的图像内容、尺寸、分辨率等等参数不做限 定,例如,可以为纯色背景图,如灰色、黑色、白色等等;本公开对于预先指定的视频素材的视频内容、时长、分辨率等等参数不做限定,例如,可以为纯色背景的空白内容视频,如灰色、黑色、白色等等。
其中,应用程序响应触发操作,将指定剪辑操作施加在对应的指定视频片段上的目标视频素材得到剪辑结果。其中,剪辑结果可以为将目标视频素材导入视频剪辑模板所指示的指定视频片段中而形成的剪辑草稿,该剪辑草稿中还可以包括指定剪辑操作的信息等等;或者,剪辑结果还可以为用户将导入目标视频素材导入视频剪辑模板所指示的指定视频片段中,并将视频剪辑模板所指示的指定剪辑操作施加在对应的指定视频片段对应的目标视频素材上之后导出的目标视频。需要说明的是,呈现剪辑草稿的方式是基于目标视频素材和指定剪辑操作进行渲染,按照时间顺序逐个视频帧进行播放;呈现目标视频的方式是按照时间顺序播放目标视频包括的各帧图像。
例如,视频剪辑模板对应4个指定视频片段,则有4个片段标识,用户向指定视频片段1和指定视频片段2上分别导入了拍摄得到的2个视频素材,指定视频片段3和指定视频片段4中未导入视频素材,假设视频剪辑模板所指示的指定剪辑操作为文字操作和音乐操作,且全局应用,在触发呈现剪辑结果时,指定视频片段1和指定视频片段2对应的时间段内播放添加了文字和音乐的视频素材,在指定视频片段3和指定视频片段4对应的时间段内播放添加了文字和音乐的灰色背景视频。
又如,视频剪辑模板对应4个指定视频片段,则有4个片段标识,用户向指定视频片段1至指定视频片段2上分别导入了拍摄得到的2个视频素材,向指定视频片段3和指定视频片段4上分别导入了相册中的两段视频,假设视频剪辑模板所指示的指定剪辑操作为文字操作和音乐操作,且全局应用,由于不存在用户未导入视频素材的第一视频片段,因此,无需添加预设视频素材,则在触发呈现剪辑结果时,指定视频片段1和指定视频片段4对应的时间段内播放添加了文字和音乐 的用户导入的视频素材。
其中,当剪辑结果以剪辑草稿的方式呈现时,应用程序提供一预览页面,在预览页面中显示渲染后的视频帧图像。此外,进入预览页面时,可以默认定位至时间轴的起始位置,并从起始位置开始播放。在预览页面中可以自动循环播放,也可以在一遍播放结束后自动暂停,再次基于用户触发播放的操作,从时间轴的起始位置再次开始播放,本公开对此不作限定。
本实施例提供的方法,在利用视频剪辑模板进行视频剪辑的场景中,基于视频剪辑模板展示与视频剪辑模板所指示的视频片段一一对应的片段标识,以提示用户为所述片段标识对应的指定视频片段导入视频素材;响应于呈现剪辑结果的触发操作,呈现在目标视频素材上施加视频剪辑模板所指示的指定剪辑操作得到的剪辑结果;其中,目标视频素材与指定视频片段一一对应;目标视频素材用于导入相应的指定视频片段以形成剪辑结果;若指定视频片段中包括用户未导入视频素材的第一视频片段,为第一视频片段添加预设视频素材。该方法可以在视频剪辑模板所指示的视频片段未完全导入视频素材的情况下方便用户灵活预览剪辑结果,提高视频剪辑体验。
在图1所示实施例的基础上,用户可以通过应用程序提供的用户界面中的可操作控件(下述简称为预览控件)触发呈现剪辑结果。
在一些实施例中,预览控件可以始终处于可操作状态,无论用户是否向指定视频片段中导入了视频素材,均可以预览剪辑结果。
在另一些实施例中,在所有指定视频片段中均未添加待剪辑视频素材时,预览控件均处于不可操作状态,当检测到用户向至少一个指定视频片段中导入视频素材时,将预览控件由不可操作状态切换为可操作状态。其中,应用程序可通过不同的显示样式使得用户清楚区分预览控件是否可操作。例如,可以通过不同显示颜色、不同亮度、不同字体、不同图标等一种或多种方式区分预览控件是否可操作。
本实施例通过向用户呈现可视化操作入口,方便用户触发预览,能 够有效提升用户的剪辑体验。
此外,在图1所示实施例的基础上,若视频剪辑模板所指示的指定视频片段数量为多个,与指定视频片段对应的片段标识的数量也为多个,与指定视频片段数量保持一致。由模板视频的播放页面跳转至素材聚合展示页面/拍摄页面,素材聚合展示页面/拍摄页面中会展示多个片段标识,其中,应用程序支持采用平铺方式和层叠方式展示多个片段标识,并在检测到满足切换条件时平铺方式和层叠方式这两种显示样式之间反复切换。
一些实施例中,进入素材聚合展示页面/拍摄页面中可以默认采用平铺方式展示多个片段标识,在检测到满足第一切换条件时,由平铺方式切换为层叠方式展示,第一切换条件可以为预设时长内未检测到点击操作。接下来,若检测到满足第二切换条件时,由层叠方式切换为平铺方式展示,第二切换条件可以为检测到点击操作。通过切换片段标识的显示样式,提升视觉感受,也能够增加用户利用应用程序进行剪辑过程中的趣味性。
图2为本公开另一实施例提供的视频剪辑方法的流程图。请参阅图2所示,本实施例的方法在图1所示实施例的基础上,步骤S102之后,还包括:
S103、呈现在目标视频素材上施加所述指定剪辑操作得到的剪辑结果的过程中,响应针对指定视频片段对应的片段标识的触发操作,向选中的指定视频轨道中导入视频素材或者替换选中的所述指定视频片段中已导入的视频素材。
在应用程序通过预览页面呈现剪辑草稿,播放渲染得到的视频帧图像的过程中,为了满足用户的剪辑需求,可以在预览页面中可以显示视频剪辑模板所指示的指定视频片段对应的片段标识,且片段标识处于可操作状态,用户通过操作片段标识向第一视频片段中导入视频素材替换当前所使用的预设视频素材,用户也可以通过操作片段标识替 换第二视频片段中已存在的用户导入的视频素材。
在一些实施例中,应用程序响应用户对预览页面中任一片段标识的触发操作,如单击、双击、长按等操作,可以进入素材编辑页面,在素材编辑页面可以向用户展示拍摄入口和上传入口,用户可以通过拍摄或者上传的方式,向第一视频片段中导入视频素材以及替换第二视频片段中已存在的用户导入的视频素材。
其中,进入素材编辑页面默认定位至用户所操作的片段标识对应的指定视频片段上,用户还可以在素材编辑页面中切换选中的指定视频片段。
本实施例的方法,用户可以通过操作预览页面中的片段标识,添加或者更新片段标识对应的指定视频片段上的视频素材,无需用户返回至前一级页面再进行添加或者更新,操作简便,能够有效提升用户剪辑体验。
在图2所示实施例的基础上,可选地,还包括:
S104、基于用户向选中的指定视频轨道中导入的视频素材或者基于用户选中的指定视频片段中导入的替换视频素材更新剪辑结果并呈现所述更新后的剪辑结果。
用户向选中的指定视频轨道中导入的视频素材,应理解为该指定视频片段为第一视频片段,其对应的目标视频素材为预设视频素材,利用用户导入的视频素材作为目标视频素材替换预设视频素材,该第一视频片段即可更新为第二视频片段。
用户向选中的指定视频轨道中导入的替换视频素材,应理解为该指定视频片段为第二视频片段,利用用户导入的替换视频素材作为目标视频素材替换该第二视频片段上原先导入的视频素材。
应用程序可基于新导入的目标视频素材或者替换后的目标视频素材、其他未操作的指定视频片段上的目标视频素材以及指定剪辑操作重新生成剪辑结果,并在用户返回至预览页面时通过预览页面呈现给用户,或者,基于用户输入的导出指令得到剪辑好的目标视频并播放以 将剪辑结果呈现给用户。
在图1以及图2所示实施例的基础上,传统方式中,用户向所有指定视频片段均导入视频素材之后,需要用户执行多个操作步骤才能够预览剪辑结果,这对用户来说极其不便。为了解决该问题,更加方便用户预览且减少用户操作步骤,本公开提供的方法还支持在向最后一个第一视频片段中导入视频素材时自动进入预览页面呈现剪辑结果。
其中,最后一个第一视频片段可以理为:视频剪辑模板所指示的指定视频片段中包括一个第一视频片段,且用户向除第一视频片段之外的所有指定视频片段均已导入视频素材。
若通过拍摄的方式向最后一个第一视频片段中导入,用户可以启动拍摄器进行拍摄,获取拍摄得到的视频素材,并向用户展示视频确认页面,用户可以通过视频确认页面输入确认使用指令,响应针对所述拍摄得到的视频素材的确认使用指令,将拍摄得到的视频素材导入第一视频片段并触发呈现所述剪辑结果,确认使用指令用于确认拍摄得到的视频素材为第一视频片段上的目标视频素材。其中,视频确认页面中可以包括重拍控件和确认使用控件,用户通过操作确认使用控件可以输入确认使用指令;此外,用户也可以通过操作重拍控件再次拍摄,并在拍摄完成后再次操作视频确认页面中的确认使用控件输入确认使用指令。
传统方式中,用户操作确认使用控件后,会先返回拍摄页面,用户需要在拍摄页面中操作预览控件,才能够触发呈现剪辑结果。采用本方案,用户在确认使用拍摄的视频素材时,可以自动进入预览页面预览剪辑结果,无需返回拍摄页面进行操作,有效减少用户操作步骤。
若通过上传的方式向最后一个第一视频片段中导入,可以通过拍摄页面中的上传入口进入素材聚合展示页面,选择要上传的图像素材,基于选中的图像素材获取视频素材,在素材聚合展示页面中可以显示确认上传控件,用户可以通过操作确认上传控件输入确认上传指令,响 应确认上传指令,将基于用户选中的图像素材生成的视频素材导入第一视频片段并触发呈现所述剪辑结果。
传统方式中,用户操作确认上传控件后,会先返回拍摄页面或者其他页面,用户需要在拍摄页面中操作预览控件,才能够触发呈现剪辑结果。采用本方案,用户在确认使用拍摄的视频素材时,可以自动进入预览页面预览剪辑结果,无需返回拍摄页面进行操作,有效减少用户操作步骤。
接下来,基于前述描述,结合图3A-图3I,以电子设备为手机,且手机中安装有的客户端包括视频剪辑类应用程序(简称为应用1),用户当前浏览的模板视频为视频剪辑模板1(简称为模板1)对应的模板视频,模板1指示对应4个视频片段,即需要使用4个视频素材进行剪辑为例,详细介绍本公开提供的视频剪辑方法的具体实现过程。
请参阅图3A-图3I,图3A-图3I为本公开实施例提供的人机交互界面示意图。
以手机处于竖屏状态为例,应用1可以在手机上显示图3A所示的用户界面11,用户界面11用于显示应用1中的一个播放页面,该播放页面中可播放多媒体内容,例如,模板1对应的模板视频。
用户界面11还用于显示模板1的相关信息,例如,模板1的发布者的昵称(如采用“@+发布者的昵称”对模板视频的发布者进行展示)、模板1的主题、模板1参与的话题、模板1需要使用的视频素材的数量等等信息。
其中,用户界面11中还可以包括:控件101。控件101,用于触发使用模板1。控件101可以采用文字的方式进行展示,例如,采用“去使用”或者“去拍摄”展示,采用不同文字展示时,可以对应进入不同的页面。
如,控件101采用“去使用”展示,则可以由模板视频的播放页面跳转至素材聚合展示页面,用户可通过素材聚合展示页面选择图像素 材,用户选择的图像素材可以为照片、图像或者视频,如用户选择的图像素材为照片或者图像,应用1可以基于选中的照片或者图像自动生成一段视频素材,生成的视频素材即为用户要导入至模板1的视频片段中的视频素材。其中,生成的视频素材的时长与相对应的视频片段所指示的时长匹配。
如,控件101采用“去拍摄”展示,则可以由模板视频的播放页面跳转至拍摄页面。拍摄页面中可采用如实时采集、从应用1中、从除了应用1之外的存储模块中等方式,获取待剪辑视频素材。
示例性地,应用1在接收到用户对控件101的触发操作,应用1可以在手机上显示如图3B所示的用户界面12,其中,用户界面12主要用于展示拍摄页面。本公开对用户界面12的具体实现方式不做限定。
参阅图3B所示,在拍摄页面中可以展示拍摄工具图标,例如,拍摄按钮、露出镜头、定时器、闪光灯、道具、模板视频展示开关、倍速、视频拍摄模式按钮、拍照模式按钮、镜头比例调节等等中的一个或多个,例如,拍摄按钮可以设置在整个拍摄页面靠近底部的位置,其他拍摄工具图标可以集中设置在整个拍摄页面靠近边缘的位置,尽量不遮挡拍摄画面。
其中,拍摄页面支持用户通过操作视频拍摄模式按钮和拍照模式按钮以在视频拍摄模式和拍照模式之间切换;一些实施例中,进入拍摄页面时,可以默认定位置视频拍摄模式,且默认选择前置摄像头进行拍摄;一些实施例中,若在当前选中的片段标识对应的视频片段中需要添加的素材为照片,则可以定位至拍照模式,若用户切换至视频拍摄模式,拍摄页面顶部可以显示提示消息,提示用户视频片段对应的效果仅支持照片。
其中,拍摄页面支持用户调节镜头比例,从而放大或者缩小手机的摄像头采集的画面。在用户使用前置摄像头拍摄时,缩小镜头比例,能够保证在前置自拍场景中采集到更大视角内的图像。
此外,拍摄页面中还可以通过小窗样式显示模板视频,且小窗位置 可移动,参阅图3B所示,区域102为小窗区域,用于播放模板视频。区域102可以根据模板视频的横竖比决定采用横屏样式或者竖屏样式,若无法填满区域102,可以采用黑边填满。在区域102中显示当前拍摄第几个视频片段上的视频素材,如图3B所示,当前拍摄的是第1个待剪辑视频素材,可以显示“1”或者“片段1”。区域102还可以包括缩小按钮,用户可以通过点击缩小按钮,将区域102缩小至预设比例。此外,用户可以通过点击区域102中的模板视频画面的任意位置,切换区域102中的模板视频画面和拍摄画面。
用户界面12还包括:区域103至区域106,区域103用于显示视频片段1对应的片段标识1,区域104用于显示视频片段2对应的片段标识2,区域105用于显示视频片段3对应的片段标识3,区域106用于显示视频片段4对应的片段标识4,区域103至区域106可以按照从左向右的顺序排列,以对应视频片段1至4的先后顺序。用户可以点击区域103至区域106中任意一个选中4个视频片段中的一个视频片段,也可以通过点击不同区域,切换选中的视频片段。其中,处于选中状态的视频片段对应的片段标识和未选中的视频片段对应的片段标识采用不同显示样式,以便用户清楚区分。例如,图3B所示,当前处于选中状态的视频片段1对应区域103中显示拍摄图标,未选中的视频片段2至4分别对应的区域104至区域106中显示视频片段的时长信息。
此外,为了方便用户区分第二视频片段和第一视频片段,第二视频片段对应的区域中以显示视频缩略图,第一视频片段对应的区域中显示对应的视频片段的时长信息。
一些情况下,进入拍摄页面时,所有片段标识可以默认采用平铺的显示样式展示,假设检测到满足切换条件时,可以切换至按照视频片段的顺序层叠显示的显示样式。切换条件,例如,可以为预设时长内未检测到点击操作,预设时长可以但不限于为2秒、3秒等等,可根据需求设定。示例性地,假设应用1在显示拍摄页面时,如图3B所示默认采 用平铺的显示样式显示多个片段标识,在超过2秒未检测到点击操作,可以显示如图3C所示的用户界面13,采用层叠的显示方式显示多个片段标识。
在本方案中,区域102中所展示的模板视频与视频片段1至视频片段4之间具有对应关系,当点击某个片段标识对应的区域,该片段标识对应的视频片段会被选中,若此时区域102处于打开状态,则区域102中对应播放模板视频中与选中视频片段对应的原始视频片段。
在进入拍摄页面后,可以通过拍摄或者上传的方式向视频片段中导入视频素材。其中,若点击拍摄按钮,则拍摄得到的视频素材即为选中的片段标识对应的视频片段上的视频素材;若点击上传,则可以进入素材聚合展示页面选择图像素材,并基于选择的图像素材得到视频素材并导入选中的片段标识对应的视频片段。当拍摄或者上传完成后,返回拍摄页面,可以展示片段标识对应的视频片段被填充的相关动效,以增加趣味性,接下来,片段标识和区域102均需定位至当前第一个第一视频片段对应的片段标识,方便用户可以直接继续拍摄或者上传,无需手动切换至第一视频片段。
已导入视频素材的视频片段支持删除已导入的视频素材,其中,在展示视频片段对应的片段标识的区域中可以展示删除按钮,用户通过点击区域内对应的删除按钮,删除视频片段中已导入的视频素材。
已导入视频素材的视频片段支持编辑导入的视频素材。其中,在展示视频片段对应的片段标识的区域中可以展示编辑按钮,用户通过点击区域内对应的编辑按钮进入编辑页面。若导入的视频素材的时长大于视频片段的时长,则在编辑页面可以通过拖动的方式选择片段,若导入的视频素材的时长小于或等于视频片段的时长,则在编辑页面可以对画面进行放大或者缩小以及调整位置;若导入的视频素材是基于照片/图像生成,则在编辑页面可以对画面进行放大或者缩小以及调整位置。
用户界面12还包括:控件107,控件107用于进入预览页面。其 中,控件107有两种状态:可操作状态和不可操作状态,可通过不同颜色区分控件107的状态,当然也可以通过其他方式区分,本公开对此不做限定。如,控件107为不可操作状态时,可以采用“灰色背景+深灰色字体”显示,控件107为可操作状态时,可以采用其他颜色显示,如“白色背景+黑色字体”。如图3B所示,当前4个视频片段均未导入视频素材,因此,控件107采用“灰色背景+深灰色字体”显示,处于不可操作状态。
结合前述介绍并参照图3B,当前用户界面12中示出的是4个视频片段均未导入视频素材的情况,假设用户选中片段标识1,即选中视频片段1,并点击拍摄按钮进行拍摄,在拍摄时,可基于定时器的设置进行倒计时,倒计时结束则开始拍摄,开始拍摄后,可以隐藏侧边的拍摄工具图标,以尽量减小这些拍摄工具图标对拍摄画面的遮挡,且通常在拍摄过程中用户极少会去点击拍摄工具图标,因此,隐藏显示并不会造成用户体验差的问题。在拍摄过程中,进度条根据当前槽位所需的视频素材的时长展示视频拍摄进度;拍摄时长可根据已开始拍摄时间实时展示;且支持多段拍摄;在拍摄时,可以通过点击拍摄按钮可以暂停拍摄,当再次点击拍摄按钮可以继续拍摄;本方案还支持拍摄预览中的文字编辑以及删除上一次拍摄的片段。
当拍摄结束,可以由拍摄页面跳转至视频确认页面,视频确认页面可以提供“确认使用控件”以及“重拍控件”,在视频确认页面中可以通过一区域播放拍摄的视频与文字合成得到的完整视频。若用户操作确认使用控件,则可以跳转回图3D所述的页面,定位至片段标识2,选中视频片段2,继续视频片段2的拍摄,且在由视频确认页面返回至图3D所示的页面时,可以展示视频素材添加至视频片段1中的相关动效。若用户操作重拍控件,则回退到上一个视频素材的拍摄页面,并清空上一次拍摄的内容。此外,在视频确认页面还支持将当前合成得到的完整视频保存至本地相册,用户可以通过勾选相关选项进行保存。应理解,若拍摄过程中,用户未编辑文字,则在视频确认页面中播放拍摄得 到的视频即可。
在拍摄完一段视频,并确认使用,则4个视频片段中会有一个视频片段上导入了视频素材,例如视频片段1上导入了视频素材1,是应用1检测到至少一个视频片段上已导入视频素材时,可以显示如图3D所示的用户界面14,请参阅用户界面14所示,片段标识1对应的区域103中显示视频素材1的视频缩略图,且控件107为可操作状态。应用1在检测到用户针对控件107的触发操作,应用1可以在手机上显示如图3E所示的用户界面15,用户界面15用于展示预览页面。
用户界面15包括:区域108、区域109至区域112。
区域108,用于播放剪辑结果。其中,在播放剪辑结果的过程中,视频片段2至4,采用黑屏画面填充,并显示模板1原有的效果和声音。区域108中还可以显示播放进度条,用户可以拖动进度条调整剪辑结果播放进度。
其中,进入预览页面,可以默认关闭展示模板视频的显示区域,在预览页面中可以设置相应模板视频展示开关,当用户点击模板视频展示开关可以打开展示模板视频的区域对照剪辑结果播放。
区域109至区域112均为展示视频片段对应的片段标识的区域,与前述区域103至区域106类似,可参照前述描述。其中,在预览页面播放剪辑结果的过程中,播放某个视频片段时,展示该视频片段对应的片段标识的区域中可以展示播放动效,用户可以通过观察播放动效确定当前播放位置为哪个视频片段。
用户界面15还可以包括:控件113以及控件114。
其中,控件113用于进入模板编辑页面,在模板编辑页面中可以对4个视频片段上导入的目标视频素材进行编辑,可以编辑文字、音乐等等。
控件114,用于导出各视频素材按照视频剪辑模板所指示的剪辑操作被剪辑得到的目标视频。在预览页面中设置用于导出的控件114,方便用户一键导出,操作简单。
本方案中,控件113以及控件114的状态均包含:可操作状态和不可操作状态,可以通过不同显示样式区分两种状态,例如,颜色不同。一些实施例中,可以设置当所有视频片段上均导入了视频素材时,控件113以及控件114为可操作状态;当存在一个或多个第一视频片段时,控件113以及控件114为不可操作状态。例如,图3E所示,由于视频片段2至4为第一视频片段,因此,控件113以及控件114均采用“灰色背景+灰色文字”显示,均处于不可操作状态。
在图3E所示实施例基础上,显示片段标识的区域可操作。当点击任一片段标识对应的区域,可以进入素材编辑页面。其中,若用户选中的片段标识对应的视频片段上导入了视频素材,则可以在素材编辑页面的播放区域中播放该视频素材,且可以循环播放;若用户点击的片段标识对应的视频片段上未导入视频素材,则可以在素材编辑页面的播放区域中播放预设视频素材,例如,黑屏画面的视频。
示例性的,假设在图3E所示实施例的基础上,应用1接收到用户针对片段标识1对应的区域109的触发操作,应用1在手机上示例性的显示如图3F所示的用户界面16,用户界面16用于显示素材编辑页面。
用户界面16包括:区域115、区域116、入口117以及入口118。其中,区域115用于播放视频素材的画面;区域116中用于显示各视频片段对应的视频素材的拉长轨道,且不同轨道按照顺序排列,例如4个轨道按照从左向右顺序水平横向排列,与视频片段1至4的先后顺序保持一致,用户可以通过横向滑动切换至其他视频片段对应的视频素材的轨道,在轨道上,有进度标识可以显示播放进度。例如,图3F所示,当前定位至视频片段1对应的视频素材的拉长轨道上。
此外,入口117为拍摄入口,用于进入拍摄页面;入口118为上传入口,用于进入素材聚合展示页面。应理解,用户在用户界面16中选中某个视频素材的拉长轨道相当于选中了相对应的视频片段,针对当前选中的视频片段,可以通过入口117进入拍摄页面向该视频片段中 添加视频素材或者替换视频片段中原先已导入的视频素材,其中,若是替换视频片段中已有的视频素材,应用1可以向用户显示一弹窗,弹窗中可以展示文字内容“确认是否重拍”,并基于用户输入的确认重拍操作确认删除并重拍。或者,也可以通过入口118,进入素材聚合展示页面向该视频片段中添加视频素材或者替换视频片段中原先已导入的视频素材,其中,在上传时,应用1支持用户对选择上传的视频素材进行裁剪处理,并在获得确认上传裁剪后的视频素材的指令后,将裁剪后的视频素材添加至相应视频片段中。
其中,用户确认使用拍摄得到的视频素材或者确定使用上传的视频素材之后,可以跳转回拍摄页面,例如图3D所示的用户界面16,并展示导入视频素材至视频片段的相关动效。
其中,在图3F所示的用户界面16中,还可以设置模板视频播放开关,当用户点击模板视频展示开关可以打开展示模板视频的区域对照播放。
此外,应用1支持通过拍摄或上传的方式向最后一个第一视频片段导入视频素材时,可以自动跳转至预览页面播放剪辑结果。其中,用户可以通过任意页面的入口向最后一个第一视频片段导入视频素材,本公开对此不做限定,例如,可以通过图3B所示的界面依次拍摄导入/上传导入,也可以通过素材编辑页面拍摄导入/上传导入。
具体地,若最后一个第一视频片段上的视频素材是通过拍摄的方式导入,在拍摄视频素材的视频确认页面,应用1接收到用户针对“确认使用控件”的触发操作,则自动跳转至预览页面,例如图3E所述的用户界面15,区别在于所有视频片段中均导入了视频素材。若最后一个第一视频片段上的视频素材是通过上传的方式导入,应用1接收到确认上传的指令之后,自动跳转至预览页面,例如图3E所述的用户界面15,区别在于所有视频片段中均导入了视频素材。
前述图3A至图3F主要示出了通过模板视频的播放页面跳转至拍摄同页面向视频剪辑模板所指示的视频片段中导入视频素材,再进入 预览页面以及素材编辑页面的详细介绍。
本公开提供的方法,还支持由图3A所示模板视频播放页跳转至素材聚合展示页面向视频剪辑模板所指示的视频片段中导入视频素材,再进入预览页面以及素材编辑页面。
示例性地,假设图3A所示的用户界面11中控件101采用文字“去使用”实现时,应用1在接收到针对控件101的触发操作,可以在手机上示例性地显示如图3G所示的用户界面17,用户界面17用于展示素材聚合展示页面。
其中,用户界面17可以包括区域119,区域119为素材聚合展示区域,区域119中可以包括多个展示区域,每个展示区域用于展示一个图像素材的缩略图,且可以标识图像素材的选中状态,选中的图像素材可以按照选中的顺序依次添加至多个槽位中。在区域119中,若展示视频素材,还可以显示视频素材的时长,以便用户从中选择时长合适的视频素材导入。时长信息可以显示在视频素材对应的展示区域的边缘,不遮挡视频素材的缩略图,例如右下角位置,图3G至图3I中未示出视频素材的时长信息。当然,图像素材的展示区域中还可以显示更多与图像素材相关的信息,例如,用户为图像素材添加的名称等等。
此外,用户界面17中还可以包括区域120,区域120用于显示模板1所指示的视频片段对应的片段标识。在视频片段中未导入视频素材时,视频片段对应的片段标识可以显示视频片段的时长。区域120与前述区域103至区域106类似,可参照前文描述,此处不再赘述。
用户界面17中还包括控件121,控件121用于进入预览页面,预览页面可以参照图3E所示的用户界面16的详细描述,此处不再赘述。
参阅图3G所示,由于未选中任何一个图像素材,因此,控件121为不可操作状态,此时无法进入预览页面。
应用1响应用户针对素材聚合展示区域119中其中一个视频素材的选中操作,将选中的视频素材1作为待剪辑视频素材添加至视频片段1中,由于满足至少一个视频片段上导入了视频素材,因此,控件 121由不可操作状态切换为可操作状态,示例性地,可如图3H所示的用户界面18所示,控件121的显示样式与图3G中的显示样式不同,用户可以清楚区分控件121是否可以操作。
接下来,用户可以通过操作控件121进入预览页面,并通过预览页面进入素材编辑页面,实现方式与图3D至图3F所示实施例类似,此处不再赘述。
在一些情况下,若用户通过图3G至图3H所示的方式进入预览页面,若用户通过预览页面返回,则可以返回至图3H所示的素材聚合展示页面,且各选中的图像素材保持选中状态。
此外,在素材聚合展示页面展示多个视频片段的片段标识时,多个片段标识也可以在平铺显示和层叠显示两种显示样式之间反复切换,切换条件与前述类似,此处不再赘述。示例性地,参阅图3I所示的用户界面19,假设在图3G所示的用户界面17的基础上,预设时长未检测到点击操作,则显示用户界面19,多个片段标识层叠显示。
通过如上图3A至图3I所示实施例,在利用视频剪辑模板进行视频剪辑的场景中,基于视频剪辑模板展示与视频剪辑模板所指示的视频片段一一对应的片段标识,以提示用户为所述片段标识对应的指定视频片段导入视频素材;响应于呈现剪辑结果的触发操作,呈现在目标视频素材上施加视频剪辑模板所指示的指定剪辑操作得到的剪辑结果;其中,目标视频素材与指定视频片段一一对应;目标视频素材用于导入相应的指定视频片段以形成剪辑结果;若指定视频片段中包括用户未导入视频素材的第一视频片段,为第一视频片段添加预设视频素材。该方法可以在视频剪辑模板所指示的视频片段未完全导入视频素材的情况下方便用户灵活预览剪辑结果,提高视频剪辑体验。此外,当检测到满足切换条件时,可以切换片段标识的显示样式,增加了趣味性,有利于提升视觉效果。
示例性地,本公开还提供一种视频剪辑装置。
图4为本公开一实施例提供的视频剪辑装置的结构图。请参阅图 4所示,本实施例提供的视频剪辑装置400包括:
获取模块401,用于获取视频剪辑模板;
处理模块402,用于基于所述视频剪辑模板生成片段标识;
其中,所述视频剪辑模板用于指示在至少一个指定视频片段上施加指定剪辑操作,所述片段标识与所述指定视频片段一一对应,所述片段标识用于提示用户为所述片段标识对应的指定视频片段导入视频素材;
展示模块403,用于展示所述片段标识;
所述处理模块402,还用于响应于呈现剪辑结果的触发操作,基于目标视频素材和所述指定剪辑操作,在所述目标视频素材上施加所述指定剪辑操作得到的剪辑结果;其中,所述目标视频素材与所述指定视频片段一一对应;所述目标视频素材用于导入所述目标视频素材对应的指定视频片段以形成所述剪辑结果;若所述指定视频片段中包括第一视频片段,所述第一视频片段对应的目标视频素材为预设视频素材,所述第一视频片段为在响应到所述触发操作的情况下用户未导入视频素材的指定视频片段;
所述展示模块403,还用于呈现剪辑结果。
在一些实施例中,若所述指定视频片段中包括第二视频片段,所述第二视频片段对应的目标视频素材为用户针对所述第二视频片段导入的视频素材,所述第二视频片段为在响应到所述触发操作的情况下用户已导入视频素材的指定视频片段。
在一些实施例中,所述展示模块403,还用于展示预览控件,在用户未向任一所述片段标识对应的指定视频片段导入视频素材时,所述预览控件为不可操作状态;
所述处理模块402,还用于检测是否存在至少一个所述片段标识对应的指定视频片段上成功导入了视频素材,以及,在检测到至少一个所述片段标识对应的指定视频片段成功导入视频素材时,通过所述展示模块403,将所述预览控件由不可操作状态切换为可操作状态;其中, 处于可操作状态下的所述预览控件用于触发呈现所述剪辑结果
在一些实施例中,所述展示模块403,具体用于基于所述视频剪辑模板显示素材聚合展示页面,并在所述素材聚合展示页面中展示所述预览控件;或者,基于所述视频剪辑模板显示拍摄页面,并在所述拍摄页面中展示所述预览控件。
在一些实施例中,所述处理模块402,还用于在呈现在所述目标视频素材上施加所述指定剪辑操作得到的剪辑结果的过程中,响应针对所述指定视频片段对应的片段标识的触发操作,向选中的所述指定视频轨道中导入视频素材或者替换选中的所述指定视频片段中已导入的视频素材。
在一些实施例中,若所述片段标识为多个,所述展示模块403,具体用于基于所述视频剪辑模板平铺展示所述多个片段标识。
所述处理模块402,还用于检测是否满足切换条件,并在检测到满足所述切换条件时,通过所述展示模块403层叠展示所述多个片段标识。
所述处理模块402,还用于在所述指定视频片段包括一个所述第一视频片段,且用户向除所述第一视频片段之外的所有指定视频片段均已导入视频素材的情况下,获取拍摄得到的视频素材,响应针对所述拍摄得到的视频素材的确认使用指令,触发呈现所述剪辑结果,所述确认使用指令用于确认拍摄得到的视频素材为所述第一视频片段上的目标视频素材。
所述处理模块402,还用于在所述指定视频片段包括一个所述第一视频片段,且用户向除所述第一视频片段之外的所有指定视频片段均已导入视频素材的情况下,从相册中获取视频素材,响应针对从相册获取的视频素材的确认上传指令,触发呈现所述剪辑结果,所述确认上传指令用于确认拍摄得到的视频素材为所述第一视频片段上的目标视频素材。
本实施例提供的视频剪辑装置可以用于执行前述任一方法实施例 的技术方案,其实现原理以及技术效果类似,可参照前文方法实施例的详细描述,简明起见,此处不再赘述。
图5为本公开一实施例提供的电子设备的结构示意图。参照图5所示,本实施例提供的电子设备500,包括:存储器501和处理器502。
其中,存储器501可以是独立的物理单元,与处理器502可以通过总线503连接。存储器501、处理器502也可以集成在一起,通过硬件实现等。
存储器501用于存储程序指令,处理器502调用该程序指令,执行以上任一方法实施例的操作。
可选地,当上述实施例的方法中的部分或全部通过软件实现时,上述电子设备500也可以只包括处理器502。用于存储程序的存储器501位于电子设备500之外,处理器502通过电路/电线与存储器连接,用于读取并执行存储器中存储的程序。
处理器502可以是中央处理器(central processing unit,CPU),网络处理器(network processor,NP)或者CPU和NP的组合。
处理器502还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。
存储器501可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器也可以包括非易失性存储器(non-volatile memory),例如快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器还可以包括上述种类的存储器的组合。
本公开实施例还提供一种可读存储介质,包括:计算机程序指令;计算机程序指令被电子设备的至少一个处理器执行时,实现上述任一 方法实施例所示的视频剪辑方法。
本公开实施例还提供一种计算机程序产品,所述计算机程序产品包括计算机程序指令,所述计算机程序指令存储在可读存储介质中,所述电子设备的至少一个处理器可以从所述可读存储介质中读取所述计算机程序指令,所述至少一个处理器执行所述计算机程序指令使得所述电子设备实现如上述任一方法实施例所示的视频剪辑方法。
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
以上所述仅是本公开的具体实施方式,使本领域技术人员能够理解或实现本公开。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本公开的精神或范围的情况下,在其它实施例中实现。因此,本公开将不会被限制于本文所述的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。

Claims (12)

  1. 一种视频剪辑方法,其特征在于,包括:
    获取视频剪辑模板,并基于所述视频剪辑模板展示片段标识;其中,所述视频剪辑模板用于指示在至少一个指定视频片段上施加指定剪辑操作,所述片段标识与所述指定视频片段一一对应,所述片段标识用于提示用户为所述片段标识对应的指定视频片段导入视频素材;
    响应于呈现剪辑结果的触发操作,基于目标视频素材和所述指定剪辑操作,呈现在所述目标视频素材上施加所述指定剪辑操作得到的剪辑结果;其中,所述目标视频素材与所述指定视频片段一一对应;所述目标视频素材用于导入所述目标视频素材对应的指定视频片段以形成所述剪辑结果;若所述指定视频片段中包括第一视频片段,所述第一视频片段对应的目标视频素材为预设视频素材,所述第一视频片段为在响应到所述触发操作的情况下用户未导入视频素材的指定视频片段。
  2. 根据权利要求1所述的方法,其特征在于,还包括:
    若所述指定视频片段中包括第二视频片段,所述第二视频片段对应的目标视频素材为用户针对所述第二视频片段导入的视频素材,所述第二视频片段为在响应到所述触发操作的情况下用户已导入视频素材的指定视频片段。
  3. 根据权利要求1所述的方法,其特征在于,还包括:
    展示预览控件,在用户未向任一所述片段标识对应的指定视频片段导入视频素材时,所述预览控件为不可操作状态;
    在检测到至少一个所述片段标识对应的指定视频片段成功导入视频素材时,将所述预览控件由不可操作状态切换为可操作状态;其中,处于可操作状态下的所述预览控件用于触发呈现所述剪辑结果。
  4. 根据权利要求3所述的方法,其特征在于,所述基于所述视频剪辑模板展示片段标识,包括:
    基于所述视频剪辑模板显示素材聚合展示页面,并在所述素材聚 合展示页面中展示所述预览控件;或者,
    基于所述视频剪辑模板显示拍摄页面,并在所述拍摄页面中展示所述预览控件。
  5. 根据权利要求1所述的方法,其特征在于,还包括:
    呈现在所述目标视频素材上施加所述指定剪辑操作得到的剪辑结果的过程中,响应针对所述指定视频片段对应的片段标识的触发操作,向选中的所述指定视频轨道中导入视频素材或者替换选中的所述指定视频片段中已导入的视频素材。
  6. 根据权利要求1所述的方法,其特征在于,若所述片段标识为多个,所述基于所述视频剪辑模板展示片段标识,包括:基于所述视频剪辑模板平铺展示所述多个片段标识;
    所述方法还包括:检测到满足切换条件时,层叠展示所述多个片段标识。
  7. 根据权利要求1所述的方法,其特征在于,还包括:
    在所述指定视频片段包括一个所述第一视频片段,且用户向除所述第一视频片段之外的所有指定视频片段均已导入视频素材的情况下,获取拍摄得到的视频素材,响应针对所述拍摄得到的视频素材的确认使用指令,触发呈现所述剪辑结果,所述确认使用指令用于确认拍摄得到的视频素材为所述第一视频片段上的目标视频素材。
  8. 根据权利要求1所述的方法,其特征在于,还包括:
    在所述指定视频片段包括一个所述第一视频片段,且用户向除所述第一视频片段之外的所有指定视频片段均已导入视频素材的情况下,从相册中获取视频素材,响应针对从相册获取的视频素材的确认上传指令,触发呈现所述剪辑结果,所述确认上传指令用于确认拍摄得到的视频素材为所述第一视频片段上的目标视频素材。
  9. 一种视频剪辑装置,其特征在于,包括:
    获取模块,用于获取视频剪辑模板;
    处理模块,用于基于所述视频剪辑模板生成片段标识;
    其中,所述视频剪辑模板用于指示在至少一个指定视频片段上施加指定剪辑操作,所述片段标识与所述指定视频片段一一对应,所述片段标识用于提示用户为所述片段标识对应的指定视频片段导入视频素材;
    展示模块,用于展示所述片段标识;
    所述处理模块,还用于响应于呈现剪辑结果的触发操作,基于目标视频素材和所述指定剪辑操作,在所述目标视频素材上施加所述指定剪辑操作得到的剪辑结果;其中,所述目标视频素材与所述指定视频片段一一对应;所述目标视频素材用于导入所述目标视频素材对应的指定视频片段以形成所述剪辑结果;若所述指定视频片段中包括第一视频片段,所述第一视频片段对应的目标视频素材为预设视频素材,所述第一视频片段为在响应到所述触发操作的情况下用户未导入视频素材的指定视频片段;
    所述展示模块,还用于呈现剪辑结果。
  10. 一种电子设备,其特征在于,包括:存储器和处理器;
    所述存储器被配置为存储计算机程序指令;
    所述处理器被配置为执行所述计算机程序指令,使得所述电子设备实现如权利要求1至8任一项所述的视频剪辑方法。
  11. 一种可读存储介质,其特征在于,包括:计算机程序指令;
    电子设备的至少一个处理器执行所述计算机程序指令,使得所述电子设备实现如权利要求1至8任一项所述的视频剪辑方法。
  12. 一种计算机程序产品,其特征在于,电子设备运行所述计算机程序产品,使得所述电子设备实现如权利要求1至8任一项所述的视频剪辑方法。
PCT/CN2023/132373 2022-11-17 2023-11-17 视频剪辑方法及装置 Ceased WO2024104468A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
EP23821100.7A EP4401398A4 (en) 2022-11-17 2023-11-17 VIDEO EDITING METHOD AND DEVICE
JP2023578857A JP7652945B2 (ja) 2022-11-17 2023-11-17 映像編集の方法及び装置
KR1020257012744A KR20250067938A (ko) 2022-11-17 2023-11-17 비디오 편집 방법 및 디바이스
US18/391,411 US12154596B2 (en) 2022-11-17 2023-12-20 Video editing method and apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211440612.3A CN118055199A (zh) 2022-11-17 2022-11-17 视频剪辑方法及装置
CN202211440612.3 2022-11-17

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/391,411 Continuation US12154596B2 (en) 2022-11-17 2023-12-20 Video editing method and apparatus

Publications (2)

Publication Number Publication Date
WO2024104468A1 true WO2024104468A1 (zh) 2024-05-23
WO2024104468A9 WO2024104468A9 (zh) 2025-07-03

Family

ID=89430058

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/132373 Ceased WO2024104468A1 (zh) 2022-11-17 2023-11-17 视频剪辑方法及装置

Country Status (6)

Country Link
US (1) US12154596B2 (zh)
EP (1) EP4401398A4 (zh)
JP (1) JP7652945B2 (zh)
KR (1) KR20250067938A (zh)
CN (1) CN118055199A (zh)
WO (1) WO2024104468A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4525459A4 (en) * 2023-07-26 2025-07-09 Beijing Zitiao Network Technology Co Ltd VIDEO EDITING METHOD AND APPARATUS, AND DEVICE AND MEDIUM
USD1119940S1 (en) * 2023-11-03 2026-03-24 Beijing Zitiao Network Technology Co., Ltd. Display screen or portion thereof with a graphical user interface
CN119202279B (zh) * 2024-11-25 2025-03-11 济南科明数码技术股份有限公司 一种地震科普多媒体内容集成系统及方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100119203A1 (en) * 2006-10-09 2010-05-13 Philip Charles Lewis Process for editing and producing videos
CN108363534A (zh) * 2018-01-30 2018-08-03 优视科技新加坡有限公司 可编辑对象的全局预览方法、装置及电子设备
CN111357277A (zh) * 2018-11-28 2020-06-30 深圳市大疆创新科技有限公司 视频剪辑控制方法、终端设备和系统
CN113439277A (zh) * 2019-02-25 2021-09-24 国际商业机器公司 用于机器学习的动态音频片段填充
CN114268748A (zh) * 2021-12-24 2022-04-01 北京达佳互联信息技术有限公司 视频剪辑方法及装置

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100820828B1 (ko) * 2006-05-02 2008-04-10 엘지전자 주식회사 녹화물 편집 기능을 구비한 영상기기 및 그 제어방법
JP4519805B2 (ja) 2006-05-25 2010-08-04 日本電信電話株式会社 映像編集方法及び装置
KR20100003912A (ko) 2008-07-02 2010-01-12 삼성전자주식회사 동일 포맷의 미디어 파일 간에 미디어 정보 호환이 가능한미디어 파일을 생성하는 방법 및 장치와 미디어 파일을실행하는 방법 및 장치
US8555169B2 (en) * 2009-04-30 2013-10-08 Apple Inc. Media clip auditioning used to evaluate uncommitted media content
KR102141155B1 (ko) * 2013-04-22 2020-08-04 삼성전자주식회사 모바일 장치의 상태에 대응하는 변경된 숏컷 아이콘을 제공하는 모바일 장치 및 그 제어 방법
JP7055297B2 (ja) * 2018-04-12 2022-04-18 株式会社フレイ・スリー 映像作品を作成するための装置、方法、及びプログラム
BR112021023849A2 (pt) 2019-05-28 2022-01-04 Wix Com Ltd Sistema de construção de site da web e método para um sistema de construção de site da web
CN112073649B (zh) * 2020-09-04 2022-12-13 北京字节跳动网络技术有限公司 多媒体数据的处理方法、生成方法及相关设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100119203A1 (en) * 2006-10-09 2010-05-13 Philip Charles Lewis Process for editing and producing videos
CN108363534A (zh) * 2018-01-30 2018-08-03 优视科技新加坡有限公司 可编辑对象的全局预览方法、装置及电子设备
CN111357277A (zh) * 2018-11-28 2020-06-30 深圳市大疆创新科技有限公司 视频剪辑控制方法、终端设备和系统
CN113439277A (zh) * 2019-02-25 2021-09-24 国际商业机器公司 用于机器学习的动态音频片段填充
CN114268748A (zh) * 2021-12-24 2022-04-01 北京达佳互联信息技术有限公司 视频剪辑方法及装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4401398A4 *

Also Published As

Publication number Publication date
JP2024546545A (ja) 2024-12-26
CN118055199A (zh) 2024-05-17
EP4401398A1 (en) 2024-07-17
JP7652945B2 (ja) 2025-03-27
EP4401398A4 (en) 2026-01-14
WO2024104468A9 (zh) 2025-07-03
US20240170025A1 (en) 2024-05-23
KR20250067938A (ko) 2025-05-15
US12154596B2 (en) 2024-11-26

Similar Documents

Publication Publication Date Title
CN112153288B (zh) 用于发布视频或图像的方法、装置、设备和介质
WO2024104468A1 (zh) 视频剪辑方法及装置
US20170024110A1 (en) Video editing on mobile platform
JP7719212B2 (ja) ビデオ生成方法、装置、機器および記憶媒体
WO2022126664A1 (zh) 视频编辑方法、终端设备及计算机可读存储介质
US20240119971A1 (en) Video material editing method and apparatus
US11941728B2 (en) Previewing method and apparatus for effect application, and device, and storage medium
JP2024522757A (ja) ビデオ処理方法、装置、機器及びコンピュータプログラム
CN103699621A (zh) 一种在移动设备摄录到的素材上记录图文信息的方法
JP7671927B2 (ja) コンテンツ撮影のための方法、装置、デバイス、及び記憶媒体
CN114282022A (zh) 多媒体编辑方法、装置、电子设备及存储介质
JP2024502754A (ja) シミュレートされた撮影用特殊効果の生成方法、装置、機器及び媒体
WO2024131648A1 (zh) 视频剪辑方法、装置、电子设备及可读存储介质
WO2025077527A1 (zh) 媒体内容的生成方法、装置、电子设备和可读存储介质
US12125503B2 (en) Method, apparatus, electronic device, and readable storage medium for video editing
US20240386915A1 (en) Video generation method and apparatus, electronic device, and readable storage medium
JP7732632B2 (ja) ビデオ生成方法、装置、機器及び記憶媒体
CN111951353A (zh) 电子相册的合成方法、装置、设备及存储介质
WO2024230571A1 (zh) 截图文件控制方法、装置、电子设备及存储介质
JP7794859B2 (ja) 映像生成方法、装置、デバイス及び記憶媒体
CN115334242B (zh) 视频录制方法、装置、电子设备及介质
WO2020186816A1 (zh) 页面元素突出显示方法、装置、设备及存储介质
WO2026067792A1 (zh) 视频编辑处理方法、装置、设备及存储介质

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 2023578857

Country of ref document: JP

ENP Entry into the national phase

Ref document number: 2023821100

Country of ref document: EP

Effective date: 20231218

WWE Wipo information: entry into national phase

Ref document number: 202527032784

Country of ref document: IN

ENP Entry into the national phase

Ref document number: 20257012744

Country of ref document: KR

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 1020257012744

Country of ref document: KR

WWP Wipo information: published in national office

Ref document number: 202527032784

Country of ref document: IN

WWP Wipo information: published in national office

Ref document number: 1020257012744

Country of ref document: KR

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112025009720

Country of ref document: BR

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 11202503354T

Country of ref document: SG

WWP Wipo information: published in national office

Ref document number: 11202503354T

Country of ref document: SG

ENP Entry into the national phase

Ref document number: 112025009720

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20250515