WO2019042217A1 - Video editing method and terminal - Google Patents

Video editing method and terminal Download PDF

Info

Publication number
WO2019042217A1
WO2019042217A1 PCT/CN2018/102014 CN2018102014W WO2019042217A1 WO 2019042217 A1 WO2019042217 A1 WO 2019042217A1 CN 2018102014 W CN2018102014 W CN 2018102014W WO 2019042217 A1 WO2019042217 A1 WO 2019042217A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
unit
time
clipped
start time
Prior art date
Application number
PCT/CN2018/102014
Other languages
French (fr)
Chinese (zh)
Inventor
陈瑞
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2019042217A1 publication Critical patent/WO2019042217A1/en

Links

Images

Classifications

    • 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/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • 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/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • H04N21/4343Extraction or processing of packetized elementary streams [PES]
    • 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
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • 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

Definitions

  • the present disclosure relates to, but is not limited to, multimedia technologies, such as methods and terminals related to a video clip.
  • a user when a user performs video editing through a mobile terminal (including a mobile phone, a tablet, and a video player, etc.), it is often only selected from the head and/or the tail of the video for simple editing (including: clipping the head of the video, cutting out the video) The tail, or part of the video and part of the tail are cut off).
  • a mobile terminal including a mobile phone, a tablet, and a video player, etc.
  • the embodiment of the present invention provides a video clip method and a terminal, which can implement cutting of multiple video segments on a mobile terminal to improve user experience.
  • An embodiment of the present application provides a video clip, including: determining a start time and an end time of at least two video clips to be clipped in a video file respectively; according to the determined start times of at least two video clips to be clipped The video file is cut at the end time.
  • the embodiment of the present application further provides a terminal, including: a time determining unit and a cutting unit; wherein the time determining unit is configured to: determine a start time and an ending time of at least two video clips to be clipped in the video file; The method is configured to: cut the video file according to the determined start time and end time of at least two video clips to be clipped.
  • the embodiment of the present application further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are set to execute the video clip.
  • the embodiment of the present application further provides a terminal, including: a memory and a processor; wherein the processor is configured to execute a program instruction in the memory; and when the program instruction is read and executed by the processor, the following operations are performed: determining the video file separately a start time and an end time of at least two video clips to be clipped; cutting the video file according to the determined start time and end time of at least two video clips to be clipped.
  • FIG. 1 is a flowchart of a method for video clips of an embodiment of the present application
  • FIG. 2 is a schematic diagram of a first user interaction interface according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a second user interaction interface according to an embodiment of the present application.
  • FIG. 4 is a structural block diagram of a terminal according to an embodiment of the present application.
  • FIG. 5 is a flowchart of a method for applying an example of the present application.
  • FIG. 6 is a schematic diagram showing a divided unit video segment according to an application example of the present application.
  • FIG. 1 is a flowchart of a method for video clips according to an embodiment of the present application. As shown in FIG. 1, the method includes: step 100 and step 101.
  • step 100 a start time and an end time of at least two video clips to be clipped in the video file are respectively determined.
  • the embodiment of the present application determines that the start time and the end time of at least two video segments to be edited may be through a preset interaction interface, and the interaction interface may be designed according to an existing implementation manner of the related art.
  • the embodiment of the present application further includes: acquiring time point information of the plurality of video frames included in the video file; and according to the preset unit duration and the time point information of the multiple video frames,
  • the video file is divided into a plurality of unit video segments to determine a start time and an end time of at least two video clips to be clipped according to the divided plurality of unit video segments; wherein the time point information includes: the plurality of videos The start and end times of the frame.
  • determining, by the embodiment of the present application, a start time and an end time of at least two video clips to be clipped in the video file including: displaying, by using a preset interaction unit, on the preset first user interaction interface a unit video segment; determining, by the preset interaction unit, a unit video segment in which the starting position of each video segment to be clipped is located, starting from a unit video segment in which the starting position of each video segment to be clipped is located a start time as the start time; determining, by the preset interaction unit, a unit video segment in which the end position of each video clip to be clipped is located, and a unit video clip in which the end position of each video clip to be clipped is located
  • the termination time is taken as the termination time.
  • FIG. 2 is a schematic diagram of a first user interaction interface according to an embodiment of the present application.
  • a divided unit video segment is displayed on an interaction unit, and the displayed unit video segments may be arranged in chronological order and displayed on the display unit by clicking.
  • the unit video segment can select a unit video segment; when it is necessary to determine the starting position of the video segment to be edited, click the unit video segment where the starting position of the video segment to be clipped is displayed, and the first user interaction interface can be displayed.
  • Click on the unit video clip (the unit video clip m shown in Figure 2) to determine the starting position of the video clip to be clipped; when it is necessary to determine the end position of the video clip to be clipped, click the end position of the video clip to be clipped.
  • the unit video segment can display the clicked unit video segment (the unit video segment n displayed as shown in FIG. 2) on the first user interaction interface, and determine the end position of the video segment to be clipped.
  • the unit video segments may be numbered or differentiated to distinguish them, so that the click to select the unit video segments is more subjective and accurate.
  • the embodiment of the present application may determine a smaller unit video segment for the video file obtained by the clip after completing the editing of the video file; and re-recover the video file with insufficient start time and end time by the determined smaller unit video segment.
  • the process may further define a smaller unit video clip in the video clip to be clipped directly after determining the start time and the end time of the video clip for the first time, and by the same interaction unit as described above. The way to determine a more accurate start and end time.
  • the embodiment of the present application determines that at least two video segment start time and end time to be clipped include:
  • the start time and the end time of the at least two video clips to be clipped are received through a preset second user interaction interface.
  • the second user interaction interface may be a text input box interface including an addition start time and an end time.
  • the corresponding start time and end time may be input multiple times.
  • FIG. 3 is a schematic diagram of a second user interaction interface according to an embodiment of the present application.
  • a text input box for adding a start time and an end time is included on the second user interaction interface, and the start time and the end time may be divided. The numbers are separated; confirmation of a clipped video clip can be achieved by a set of text input boxes containing the start and end times.
  • step 101 the video file is cropped according to the determined start time and end time of at least two video clips to be clipped.
  • the clipping and splicing of the video clips may be implemented by using methods in the related art, and details are not described herein.
  • the embodiment of the present application further includes: splicing the at least two video clips to be clipped obtained by cutting according to a chronological order to obtain a clipped video file.
  • the method in the embodiment of the present application further includes: sorting the plurality of unit video clips according to a preset rule, and determining each unit according to the length of the preset unit duration. Determining a start time and a stop time of the video segment; determining, according to the determined start time and end time of each unit video segment, and start time and end time of the plurality of video frames, determining that each unit video segment includes Video frame to cut the video file after determining the start time and end time of at least two video clips to be clipped.
  • the embodiment of the present application provides a video clip method, by determining a start time and an end time of at least two video clips to be clipped in a video file; according to the determined start of each video clip to be clipped The video file is cut by time and end time.
  • the embodiment of the present application implements cutting a plurality of video segments on a mobile terminal, thereby improving the user experience.
  • FIG. 4 is a structural block diagram of a terminal according to an embodiment of the present application. As shown in FIG. 4, the method includes: a time determining unit and a cutting unit.
  • the time determining unit is configured to determine a start time and an end time of at least two video clips to be clipped in the video file, respectively.
  • the cropping unit is configured to: cut the video file according to the determined start time and end time of at least two video clips to be clipped.
  • the terminal of the embodiment of the present application further includes a splicing unit configured to splice the at least two video clips to be clipped obtained by cutting according to a chronological order to obtain a clipped video file.
  • the terminal of the embodiment of the present application further includes an obtaining unit and a dividing unit.
  • the acquiring unit is configured to: acquire time point information of the plurality of video frames included in the video file.
  • the dividing unit is configured to: divide the video file into a plurality of unit video segments according to a preset unit duration and time point information of the plurality of video frames, to determine at least two to be clipped according to the divided plurality of unit video segments The start time and end time of the video clip.
  • the time point information includes: a start time and a stop time of the multiple video frames.
  • the terminal of the embodiment of the present application further includes a frame determining unit, configured to: sort the plurality of unit video segments according to a preset rule, and determine each unit video according to a length of time of the preset unit duration. Determining a start time and a stop time of the segment; determining, according to the determined start time and end time of each unit video segment, and a start time and a stop time of the plurality of video frames, determining that each of the unit video segments is included Video frames to crop the video file after determining the start time and end time of at least two video clips to be clipped.
  • a frame determining unit configured to: sort the plurality of unit video segments according to a preset rule, and determine each unit video according to a length of time of the preset unit duration. Determining a start time and a stop time of the segment; determining, according to the determined start time and end time of each unit video segment, and a start time and a stop time of the plurality of video frames, determining that each of the unit video segments is
  • the time determining unit is further configured to: display the plurality of unit video segments by using a preset interaction unit on the preset first user interaction interface; and determine each to-be-waited by the preset interaction unit a unit video segment in which the start position of the video clip is located, the start time of the unit video segment in which the start position of each video clip to be clipped is located as the start time; through the preset interaction unit Determining a unit video segment in which the end position of each video clip to be clipped is located, and terminating the end time of the unit video segment in which the end position of each of the video clips to be clipped is located as the end time.
  • the embodiment of the present application may determine a smaller unit video segment for the video file obtained by the clip after completing the editing of the video file; the start time and the end time are not accurate enough by the determined smaller unit video segment.
  • the video file is re-edited; of course, the process can also define a smaller unit video segment directly defined in the video segment to be clipped after determining the start time and the end time of the video segment for the first time, and The interactive unit determines the more accurate start and end times in the same way.
  • the time determining unit of the embodiment of the present application is further configured to: receive a start time and an end time of the at least two video clips to be clipped through a preset second user interaction interface.
  • the embodiment of the present application further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are set to execute the video clip.
  • the embodiment of the present application further provides a terminal, including: a memory and a processor; wherein the processor is configured to execute program instructions in the memory.
  • the program instructions when being read and executed by the processor, perform the following operations: respectively determining a start time and an end time of at least two video clips to be clipped in the video file; according to the determined start time of the at least two video clips to be clipped The video file is cut at the end time.
  • FIG. 5 is a flowchart of a method for applying an example of the present application. As shown in FIG. 5, the method includes: Step 500 to Step 508.
  • step 500 the total duration of the video file is obtained.
  • This application example assumes that the total length of the video file is 1 minute.
  • step 501 the video file is divided into two or more unit video segments.
  • the video file is equally divided into two or more unit video segments, and the duration of each unit video segment is the number of unit video segments whose total duration is divided; it is assumed that the video file of the total duration is equally divided. 60 equal parts, then each aliquot has a duration of 1000 milliseconds.
  • step 502 the divided two or more unit video segments are numbered in chronological order.
  • This application example divides the video file of the total duration into 60 equal parts of the video segment, and numbers the 1-1000 millisecond segment number to 1,1001-2000 millisecond segment number 2, and so on, numbered from 1 to 60.
  • step 503 time point information of a plurality of video frames included in each unit video segment is determined.
  • the time point information includes: a start time and a stop time of the multiple video frames.
  • step 504 the start and end times of each unit video segment are determined.
  • each unit video segment is determined.
  • the application example determines the start time of the first video frame of each unit video segment to determine the end time of the unit video segment, for example, 1 millisecond, 1001 millisecond, 2001 millisecond, 3001 millisecond, 58001 millisecond, respectively. After a video frame of 59001 milliseconds, it can be determined that the termination time of the first unit video segment is 1001 milliseconds before the video frame.
  • step 505 the divided unit video segments are sequentially listed on the first user interaction interface.
  • FIG. 6 is a schematic diagram showing a divided unit video segment according to an application example of the present application. As shown in FIG. 6, a unit video segment numbered 1 to 60 is displayed on the interaction unit.
  • step 506 a click operation of the user is received, and a start unit video segment and a termination unit video segment of the plurality of video clips to be clipped are determined as the start position and the end position of the video clip to be clipped.
  • the user selects the video clips to be edited with numbers 3 to 6, 17 to 18, and 40 to 42.
  • the unit video clip numbered 3 is clicked, the unit video clip numbered 3 is numbered from 3 to 6 to be clipped.
  • the starting position, the unit video segment numbered 6 is the ending position of the video clip to be clipped from 3 to 6; the video clips 17 to 18 to be clipped, the starting positions of the video clips 40 to 42 to be clipped, and the same are determined in the same manner. End position.
  • step 507 the determined video clip to be clipped is clipped.
  • the video frame with the start time of 2001 milliseconds and the termination time of 6000 milliseconds is cut, and the video frame with the start time of 1601 milliseconds and the termination time of 18000 milliseconds is cut, and the start time is 39001 milliseconds, and A video frame with a termination time of 42000 milliseconds is clipped.
  • step 508 the cut video clips to be clipped are sorted in chronological order and then stitched to obtain a video file to be clipped.
  • This application example generates a video file to be edited by splicing a video clip to be clipped by a video container existing in the related art.
  • a program to instruct related hardware e.g., a processor
  • a computer readable storage medium such as a read only memory, disk or optical disk. Wait.
  • all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits.
  • each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, being executed by a processor and stored in a memory. Programs/instructions to implement their respective functions.
  • This application is not limited to any specific combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

A video editing method and terminal comprising: determining in a video file start and end times respectively of at least two video segments for editing; execute editing on the video file in accordance with the start and end times of the at least two determined video segments for editing.

Description

视频剪辑的方法及终端Video clip method and terminal
本申请要求在2017年08月31日提交中国专利局、申请号为201710772780.5的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。The present application claims the priority of the Chinese Patent Application, filed on Aug. 31, 2017, the entire disclosure of which is hereby incorporated by reference.
技术领域Technical field
本公开涉及但不限于多媒体技术,例如涉及一种视频剪辑的方法及终端。The present disclosure relates to, but is not limited to, multimedia technologies, such as methods and terminals related to a video clip.
背景技术Background technique
目前,用户通过移动终端(包括手机、平板、以及视频播放器等终端)进行视频剪辑时,往往只选择视频的头部和/或尾部进行简单的剪辑(包括:剪除视频的头部、剪除视频的尾部、或对视频的部分头部和部分尾部均进行剪除处理)。At present, when a user performs video editing through a mobile terminal (including a mobile phone, a tablet, and a video player, etc.), it is often only selected from the head and/or the tail of the video for simple editing (including: clipping the head of the video, cutting out the video) The tail, or part of the video and part of the tail are cut off).
仅选择视频的头部和/或尾部进行剪辑,对于需要对视频进行复杂剪辑(对视频文件中多个片段进行剪切并对拼接)的用户而言,用户体验较差。Selecting only the head and/or tail of the video for editing, the user experience is poor for users who need to make complex edits to the video (cut and splicing multiple clips in the video file).
发明内容Summary of the invention
本申请实施例提供一种视频剪辑的方法及终端,能够在移动终端上实现多个视频片段的剪切,提升用户体验。The embodiment of the present invention provides a video clip method and a terminal, which can implement cutting of multiple video segments on a mobile terminal to improve user experience.
本申请实施例提供了一种视频剪辑的方法,包括:分别确定视频文件中至少两个待剪辑视频片段的起始时间和终止时间;根据确定的至少两个待剪辑视频片段的起始时间和终止时间对所述视频文件进行剪切。An embodiment of the present application provides a video clip, including: determining a start time and an end time of at least two video clips to be clipped in a video file respectively; according to the determined start times of at least two video clips to be clipped The video file is cut at the end time.
本申请实施例还提供一种终端,包括:时间确定单元和剪切单元;其中,时间确定单元设置为:确定视频文件中至少两个待剪辑视频片段的起始时间和终止时间;剪切单元设置为:根据确定的至少两个待剪辑视频片段的起始时间和终止时间对所述视频文件进行剪切。The embodiment of the present application further provides a terminal, including: a time determining unit and a cutting unit; wherein the time determining unit is configured to: determine a start time and an ending time of at least two video clips to be clipped in the video file; The method is configured to: cut the video file according to the determined start time and end time of at least two video clips to be clipped.
本申请实施例还提供一种计算机存储介质,计算机存储介质中存储有计算机可执行指令,计算机可执行指令设置为执行上述视频剪辑的方法。The embodiment of the present application further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are set to execute the video clip.
本申请实施例还提供一种终端,包括:存储器和处理器;其中,处理器被配置为执行存储器中的程序指令;程序指令在被处理器读取并执行时实现以下操作:分别确定视频文件中至少两个待剪辑视频片段的起始时间和终止时间; 根据确定的至少两个待剪辑视频片段的起始时间和终止时间对所述视频文件进行剪切。The embodiment of the present application further provides a terminal, including: a memory and a processor; wherein the processor is configured to execute a program instruction in the memory; and when the program instruction is read and executed by the processor, the following operations are performed: determining the video file separately a start time and an end time of at least two video clips to be clipped; cutting the video file according to the determined start time and end time of at least two video clips to be clipped.
附图概述BRIEF abstract
附图用来提供对本申请技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本申请的技术方案,并不构成对本申请技术方案的限制。The drawings are used to provide a further understanding of the technical solutions of the present application, and constitute a part of the specification, which is used together with the embodiments of the present application to explain the technical solutions of the present application, and does not constitute a limitation of the technical solutions of the present application.
图1为本申请实施例视频剪辑的方法的流程图;1 is a flowchart of a method for video clips of an embodiment of the present application;
图2为本申请实施例第一用户交互界面的示意图;2 is a schematic diagram of a first user interaction interface according to an embodiment of the present application;
图3为本申请实施例第二用户交互界面的示意图;3 is a schematic diagram of a second user interaction interface according to an embodiment of the present application;
图4为本申请实施例终端的结构框图;4 is a structural block diagram of a terminal according to an embodiment of the present application;
图5为本申请应用示例的方法流程图;FIG. 5 is a flowchart of a method for applying an example of the present application; FIG.
图6为本申请应用示例显示划分的单位视频片段的示意图。FIG. 6 is a schematic diagram showing a divided unit video segment according to an application example of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚明白,下文中将结合附图对本申请的实施例进行详细说明。In order to make the objects, technical solutions and advantages of the present application more clear, the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机***中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The steps illustrated in the flowchart of the figures may be executed in a computer system such as a set of computer executable instructions. Also, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
图1为本申请实施例视频剪辑的方法的流程图,如图1所示,包括:步骤100和步骤101。FIG. 1 is a flowchart of a method for video clips according to an embodiment of the present application. As shown in FIG. 1, the method includes: step 100 and step 101.
在步骤100中,分别确定视频文件中至少两个待剪辑视频片段的起始时间和终止时间。在一实施例中,本申请实施例确定至少两个待剪辑的视频片段的起始时间和终止时间可以通过预设的交互界面,交互界面可以参照相关技术已有的实现方式进行设计。In step 100, a start time and an end time of at least two video clips to be clipped in the video file are respectively determined. In an embodiment, the embodiment of the present application determines that the start time and the end time of at least two video segments to be edited may be through a preset interaction interface, and the interaction interface may be designed according to an existing implementation manner of the related art.
在一实施例中,本申请实施例在步骤100之前还包括:获取视频文件包含的多个视频帧的时间点信息;按照预设单位时长以及所述多个视频帧的时间点信息,将所述视频文件划分为多个单位视频片段,以根据划分的多个单位视频片段确定至少两个待剪辑视频片段的起始时间和终止时间;其中,所述时间点信息包括:所述多个视频帧的起始时刻和终止时刻。In an embodiment, before the step 100, the embodiment of the present application further includes: acquiring time point information of the plurality of video frames included in the video file; and according to the preset unit duration and the time point information of the multiple video frames, The video file is divided into a plurality of unit video segments to determine a start time and an end time of at least two video clips to be clipped according to the divided plurality of unit video segments; wherein the time point information includes: the plurality of videos The start and end times of the frame.
在一实施例中,本申请实施例确定视频文件中至少两个待剪辑视频片段的起始时间和终止时间包括:在预设的第一用户交互界面上通过预设的交互单元显示所述多个单位视频片段;通过所述预设的交互单元确定每一个待剪辑视频片段的起始位置所在的单位视频片段,将所述每一个待剪辑视频片段的起始位置所在的单位视频片段的起始时刻作为所述起始时间;通过所述预设的交互单元确定每一个待剪辑视频片段的终止位置所在的单位视频片段,将所述每一个待剪辑视频片段的终止位置所在的单位视频片段的终止时刻作为所述终止时间。In an embodiment, determining, by the embodiment of the present application, a start time and an end time of at least two video clips to be clipped in the video file, including: displaying, by using a preset interaction unit, on the preset first user interaction interface a unit video segment; determining, by the preset interaction unit, a unit video segment in which the starting position of each video segment to be clipped is located, starting from a unit video segment in which the starting position of each video segment to be clipped is located a start time as the start time; determining, by the preset interaction unit, a unit video segment in which the end position of each video clip to be clipped is located, and a unit video clip in which the end position of each video clip to be clipped is located The termination time is taken as the termination time.
图2为本申请实施例第一用户交互界面的示意图,如图2所示,在交互单元上显示划分的单位视频片段,显示的单位视频片段可以按照时间顺序排列,通过点击在显示单元上显示的单位视频片段,可以对单位视频片段进行选择;当需要确定待剪辑视频片段的起始位置时,点击待剪辑视频片段的起始位置所在的单位视频片段,在第一用户交互界面上可以显示点击的单位视频片段(如图2所示显示的单位视频片段m),确定待剪辑视频片段的起始位置;当需要确定待剪辑视频片段的终止位置时,点击待剪辑视频片段的终止位置所在的单位视频片段,在第一用户交互界面上可以显示点击的单位视频片段(如图2所示显示的单位视频片段n),确定待剪辑视频片段的终止位置。本申请实施例还可以对单位视频片段进行编号或采用区分标识进行区分,以便于点击选择单位视频片段时更为主观和准确。另外,本申请实施例可以在完成视频文件的剪辑之后,对剪辑获得的视频文件确定更小单位视频片段;通过确定的更小的单位视频片段对起始时间和终止时间不够准确的视频文件重新进行剪辑;当然,该过程还可以在第一次确定视频片段的起始时间和终止时间之后,直接确定的待剪辑的视频片段中定义更小的单位视频片段,并通过与上述交互单元相同的方式确定更为准确的起始时间和终止时间。2 is a schematic diagram of a first user interaction interface according to an embodiment of the present application. As shown in FIG. 2, a divided unit video segment is displayed on an interaction unit, and the displayed unit video segments may be arranged in chronological order and displayed on the display unit by clicking. The unit video segment can select a unit video segment; when it is necessary to determine the starting position of the video segment to be edited, click the unit video segment where the starting position of the video segment to be clipped is displayed, and the first user interaction interface can be displayed. Click on the unit video clip (the unit video clip m shown in Figure 2) to determine the starting position of the video clip to be clipped; when it is necessary to determine the end position of the video clip to be clipped, click the end position of the video clip to be clipped. The unit video segment can display the clicked unit video segment (the unit video segment n displayed as shown in FIG. 2) on the first user interaction interface, and determine the end position of the video segment to be clipped. In the embodiment of the present application, the unit video segments may be numbered or differentiated to distinguish them, so that the click to select the unit video segments is more subjective and accurate. In addition, the embodiment of the present application may determine a smaller unit video segment for the video file obtained by the clip after completing the editing of the video file; and re-recover the video file with insufficient start time and end time by the determined smaller unit video segment. Performing a clip; of course, the process may further define a smaller unit video clip in the video clip to be clipped directly after determining the start time and the end time of the video clip for the first time, and by the same interaction unit as described above. The way to determine a more accurate start and end time.
在一实施例中,本申请实施例确定至少两个待剪辑的视频片段起始时间和终止时间包括:In an embodiment, the embodiment of the present application determines that at least two video segment start time and end time to be clipped include:
通过预设的第二用户交互界面接收所述至少两个待剪辑视频片段的起始时间和终止时间。The start time and the end time of the at least two video clips to be clipped are received through a preset second user interaction interface.
这里,第二用户交互界面可以是包含添加起始时间和终止时间的文本输入框界面,包含多个待剪辑的视频片段时,可以多次输入相应的起始时间和终止时间。Here, the second user interaction interface may be a text input box interface including an addition start time and an end time. When a plurality of video clips to be clipped are included, the corresponding start time and end time may be input multiple times.
图3为本申请实施例第二用户交互界面的示意图,如图3所示,在第二用 户交互界面上包含添加起始时间和终止时间的文本输入框,起始时间和终止时间可以通过分号分开;通过一组包含添加起始时间和终止时间的文本输入框可以实现对一个带剪辑的视频片段的确认。3 is a schematic diagram of a second user interaction interface according to an embodiment of the present application. As shown in FIG. 3, a text input box for adding a start time and an end time is included on the second user interaction interface, and the start time and the end time may be divided. The numbers are separated; confirmation of a clipped video clip can be achieved by a set of text input boxes containing the start and end times.
在步骤101中,根据确定的至少两个待剪辑视频片段的起始时间和终止时间对所述视频文件进行剪切。In step 101, the video file is cropped according to the determined start time and end time of at least two video clips to be clipped.
在一实施例中,对视频片段进行剪切和拼接可以采用相关技术中已有的方法实现,在此不做赘述。In an embodiment, the clipping and splicing of the video clips may be implemented by using methods in the related art, and details are not described herein.
在一实施例中,本申请实施例对视频文件进行剪切之后,还包括:对剪切获得的所述至少两个待剪辑视频片段,根据时间先后顺序进行拼接,以获得剪辑的视频文件。In an embodiment, after the video file is cut, the embodiment of the present application further includes: splicing the at least two video clips to be clipped obtained by cutting according to a chronological order to obtain a clipped video file.
在一实施例中,剪切待剪辑的视频片段之前,本申请实施例方法还包括:对多个单位视频片段按照预设规则进行排序,并结合预设单位时长的时间长度,确定每个单位视频片段的起始时刻和终止时刻;根据确定的所述每个单位视频片段的起始时刻和终止时刻,及多个视频帧的起始时刻和终止时刻,确定所述每个单位视频片段包含的视频帧,以在确定至少两个待剪辑视频片段的起始时间和终止时间后对所述视频文件进行剪切。In an embodiment, before the video clip to be clipped is cut, the method in the embodiment of the present application further includes: sorting the plurality of unit video clips according to a preset rule, and determining each unit according to the length of the preset unit duration. Determining a start time and a stop time of the video segment; determining, according to the determined start time and end time of each unit video segment, and start time and end time of the plurality of video frames, determining that each unit video segment includes Video frame to cut the video file after determining the start time and end time of at least two video clips to be clipped.
与相关技术相比,本申请实施例提供了一种视频剪辑的方法,通过确定视频文件中至少两个待剪辑视频片段的起始时间和终止时间;根据确定的各待剪辑视频片段的起始时间和终止时间对所述视频文件进行剪切。本申请实施例实现了在移动终端上进行多个视频片段的剪切,提升了用户体验。Compared with the related art, the embodiment of the present application provides a video clip method, by determining a start time and an end time of at least two video clips to be clipped in a video file; according to the determined start of each video clip to be clipped The video file is cut by time and end time. The embodiment of the present application implements cutting a plurality of video segments on a mobile terminal, thereby improving the user experience.
图4为本申请实施例终端的结构框图,如图4所示,包括:时间确定单元和剪切单元。4 is a structural block diagram of a terminal according to an embodiment of the present application. As shown in FIG. 4, the method includes: a time determining unit and a cutting unit.
时间确定单元设置为:分别确定视频文件中至少两个待剪辑视频片段的起始时间和终止时间。The time determining unit is configured to determine a start time and an end time of at least two video clips to be clipped in the video file, respectively.
剪切单元设置为:根据确定的至少两个待剪辑视频片段的起始时间和终止时间对所述视频文件进行剪切。The cropping unit is configured to: cut the video file according to the determined start time and end time of at least two video clips to be clipped.
在一实施例中,本申请实施例终端还包括拼接单元,设置为对剪切获得的所述至少两个待剪辑视频片段,根据时间先后顺序进行拼接,以获得剪辑的视频文件。In an embodiment, the terminal of the embodiment of the present application further includes a splicing unit configured to splice the at least two video clips to be clipped obtained by cutting according to a chronological order to obtain a clipped video file.
在一实施例中,本申请实施例终端还包括获取单元和划分单元;其中,获取单元设置为:获取所述视频文件包含的多个视频帧的时间点信息。划分单元 设置为:按照预设单位时长以及所述多个视频帧的时间点信息,将所述视频文件划分为多个单位视频片段,以根据划分的多个单位视频片段确定至少两个待剪辑视频片段的起始时间和终止时间。In an embodiment, the terminal of the embodiment of the present application further includes an obtaining unit and a dividing unit. The acquiring unit is configured to: acquire time point information of the plurality of video frames included in the video file. The dividing unit is configured to: divide the video file into a plurality of unit video segments according to a preset unit duration and time point information of the plurality of video frames, to determine at least two to be clipped according to the divided plurality of unit video segments The start time and end time of the video clip.
其中,所述时间点信息包括:所述多个视频帧的起始时刻和终止时刻。The time point information includes: a start time and a stop time of the multiple video frames.
在一实施例中,本申请实施例终端还包括帧确定单元,设置为:对所述多个单位视频片段按照预设规则进行排序,并结合预设单位时长的时间长度,确定每个单位视频片段的起始时刻和终止时刻;根据确定的所述每个单位视频片段的起始时刻和终止时刻,及多个视频帧的起始时刻和终止时刻,确定所述每个单位视频片段包含的视频帧,以在确定至少两个待剪辑视频片段的起始时间和终止时间后对所述视频文件进行剪切。In an embodiment, the terminal of the embodiment of the present application further includes a frame determining unit, configured to: sort the plurality of unit video segments according to a preset rule, and determine each unit video according to a length of time of the preset unit duration. Determining a start time and a stop time of the segment; determining, according to the determined start time and end time of each unit video segment, and a start time and a stop time of the plurality of video frames, determining that each of the unit video segments is included Video frames to crop the video file after determining the start time and end time of at least two video clips to be clipped.
在一实施例中,时间确定单元还设置为:在预设的第一用户交互界面上通过预设的交互单元显示所述多个单位视频片段;通过所述预设的交互单元确定每一个待剪辑视频片段的起始位置所在的单位视频片段,将所述每一个待剪辑视频片段的起始位置所在的单位视频片段的起始时刻作为所述起始时间;通过所述预设的交互单元确定每一个待剪辑视频片段的终止位置所在的单位视频片段,将所述每一个待剪辑视频片段的终止位置所在的单位视频片段的终止时刻作为所述终止时间。In an embodiment, the time determining unit is further configured to: display the plurality of unit video segments by using a preset interaction unit on the preset first user interaction interface; and determine each to-be-waited by the preset interaction unit a unit video segment in which the start position of the video clip is located, the start time of the unit video segment in which the start position of each video clip to be clipped is located as the start time; through the preset interaction unit Determining a unit video segment in which the end position of each video clip to be clipped is located, and terminating the end time of the unit video segment in which the end position of each of the video clips to be clipped is located as the end time.
在一实施例中,本申请实施例可以在完成视频文件的剪辑之后,对剪辑获得的视频文件确定更小单位视频片段;通过确定的更小的单位视频片段对起始时间和终止时间不够准确的视频文件重新进行剪辑;当然,该过程还可以在第一次确定视频片段的起始时间和终止时间之后,直接确定的待剪辑的视频片段中定义更小的单位视频片段,并通过与上述交互单元相同的方式确定更为准确的起始时间和终止时间。In an embodiment, the embodiment of the present application may determine a smaller unit video segment for the video file obtained by the clip after completing the editing of the video file; the start time and the end time are not accurate enough by the determined smaller unit video segment. The video file is re-edited; of course, the process can also define a smaller unit video segment directly defined in the video segment to be clipped after determining the start time and the end time of the video segment for the first time, and The interactive unit determines the more accurate start and end times in the same way.
在一实施例中,本申请实施例时间确定单元还设置为:通过预设的第二用户交互界面接收所述至少两个待剪辑视频片段的起始时间和终止时间。In an embodiment, the time determining unit of the embodiment of the present application is further configured to: receive a start time and an end time of the at least two video clips to be clipped through a preset second user interaction interface.
本申请实施例还提供一种计算机存储介质,计算机存储介质中存储有计算机可执行指令,计算机可执行指令设置为执行上述视频剪辑的方法。The embodiment of the present application further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are set to execute the video clip.
本申请实施例还提供一种终端,包括:存储器和处理器;其中,处理器被配置为执行存储器中的程序指令。程序指令在被处理器读取并执行时实现以下操作:分别确定视频文件中至少两个待剪辑视频片段的起始时间和终止时间;根据确定的至少两个待剪辑视频片段的起始时间和终止时间对所述视频文件进 行剪切。The embodiment of the present application further provides a terminal, including: a memory and a processor; wherein the processor is configured to execute program instructions in the memory. The program instructions, when being read and executed by the processor, perform the following operations: respectively determining a start time and an end time of at least two video clips to be clipped in the video file; according to the determined start time of the at least two video clips to be clipped The video file is cut at the end time.
以下通过应用示例对本申请实施例进行清楚详细的说明,应用示例仅用于陈述本申请,并不用于限定本申请的保护范围。The embodiments of the present application are described in detail below with reference to the application examples. The application examples are only used to describe the present application, and are not intended to limit the scope of the present application.
应用示例Application example
图5为本申请应用示例的方法流程图,如图5所示,包括:步骤500至步骤508。FIG. 5 is a flowchart of a method for applying an example of the present application. As shown in FIG. 5, the method includes: Step 500 to Step 508.
在步骤500中,获取视频文件的总时长。In step 500, the total duration of the video file is obtained.
本应用示例假设视频文件的总时长为1分钟。This application example assumes that the total length of the video file is 1 minute.
在步骤501中,将视频文件划分为两个或两个以上单位视频片段。In step 501, the video file is divided into two or more unit video segments.
即根据视频文件,将视频文件等分为两个或两个以上单位视频片段,每个单位视频片段的时长为总时长处于划分的单位视频片段的个数;假设将总时长的视频文件平分为60等份,那么每个等份的时长为1000毫秒。That is, according to the video file, the video file is equally divided into two or more unit video segments, and the duration of each unit video segment is the number of unit video segments whose total duration is divided; it is assumed that the video file of the total duration is equally divided. 60 equal parts, then each aliquot has a duration of 1000 milliseconds.
在步骤502中,对划分的两个或两个以上单位视频片段,按照时间先后顺序进行编号。In step 502, the divided two or more unit video segments are numbered in chronological order.
本应用示例对将总时长的视频文件平分为60等份的单位视频片段,把1-1000毫秒段编号为1,1001-2000毫秒段编号为2,依次类推,编号从1到60。This application example divides the video file of the total duration into 60 equal parts of the video segment, and numbers the 1-1000 millisecond segment number to 1,1001-2000 millisecond segment number 2, and so on, numbered from 1 to 60.
在步骤503中,确定每一个单位视频片段包含的多个视频帧的时间点信息。In step 503, time point information of a plurality of video frames included in each unit video segment is determined.
其中,所述时间点信息包括:所述多个视频帧的起始时刻和终止时刻。The time point information includes: a start time and a stop time of the multiple video frames.
在步骤504中,确定每一个单位视频片段的起始时刻和终止时刻。In step 504, the start and end times of each unit video segment are determined.
即确定每一个单位视频片段包含的视频帧。本应用示例确定每一个单位视频片段的第一个视频帧的起始时刻即可确定该单位视频片段的终止时刻,例如、分别确定1毫秒、1001毫秒、2001毫秒、3001毫秒…58001毫秒、以及59001毫秒的视频帧后,可以确定第一个单位视频片段的终止时刻为1001毫秒视频帧之前一个视频帧。That is, the video frame contained in each unit video segment is determined. The application example determines the start time of the first video frame of each unit video segment to determine the end time of the unit video segment, for example, 1 millisecond, 1001 millisecond, 2001 millisecond, 3001 millisecond, 58001 millisecond, respectively. After a video frame of 59001 milliseconds, it can be determined that the termination time of the first unit video segment is 1001 milliseconds before the video frame.
在步骤505中,在第一用户交互界面上依次列出划分的单位视频片段。In step 505, the divided unit video segments are sequentially listed on the first user interaction interface.
图6为本申请应用示例显示划分的单位视频片段的示意图,如图6所示,在交互单元上显示了编号为1~60的单位视频片段。FIG. 6 is a schematic diagram showing a divided unit video segment according to an application example of the present application. As shown in FIG. 6, a unit video segment numbered 1 to 60 is displayed on the interaction unit.
在步骤506中,接收用户的点击操作,确定多个待剪辑视频片段的起始单位视频片段和终止单位视频片段,作为待剪辑视频片段的起始位置和终止位置。In step 506, a click operation of the user is received, and a start unit video segment and a termination unit video segment of the plurality of video clips to be clipped are determined as the start position and the end position of the video clip to be clipped.
假设用户选择了编号3~6、17~18、40~42的待剪辑视频片段,则点击编号为3的单位视频片段时,编号为3的单位视频片段作为编号从3~6待剪辑视频 片段的起始位置,编号为6的单位视频片段作为编号从3~6待剪辑视频片段的终止位置;按照相同方式确定待剪辑视频片段17~18、待剪辑视频片段40~42的起始位置和终止位置。Suppose the user selects the video clips to be edited with numbers 3 to 6, 17 to 18, and 40 to 42. When the unit video clip numbered 3 is clicked, the unit video clip numbered 3 is numbered from 3 to 6 to be clipped. The starting position, the unit video segment numbered 6 is the ending position of the video clip to be clipped from 3 to 6; the video clips 17 to 18 to be clipped, the starting positions of the video clips 40 to 42 to be clipped, and the same are determined in the same manner. End position.
在步骤507中,对确定的待剪辑视频片段进行剪切。In step 507, the determined video clip to be clipped is clipped.
即对起始时刻为2001毫秒、终止时刻为6000毫秒的视频帧进行剪切、对起始时刻为16001毫秒、终止时刻为18000毫秒的视频帧进行剪切、对起始时刻为39001毫秒、以及终止时刻为42000毫秒的视频帧进行剪切。That is, the video frame with the start time of 2001 milliseconds and the termination time of 6000 milliseconds is cut, and the video frame with the start time of 1601 milliseconds and the termination time of 18000 milliseconds is cut, and the start time is 39001 milliseconds, and A video frame with a termination time of 42000 milliseconds is clipped.
在步骤508中,对剪切的待剪辑视频片段按照时间顺序进行排序后进行拼接,获得待剪辑的视频文件。In step 508, the cut video clips to be clipped are sorted in chronological order and then stitched to obtain a video file to be clipped.
本应用示例通过相关技术中已有的视频容器进行待剪辑视频片段的拼接,生成待剪辑的视频文件。本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的每个模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本申请不限制于任何特定形式的硬件和软件的结合。This application example generates a video file to be edited by splicing a video clip to be clipped by a video container existing in the related art. One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware (e.g., a processor), which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, being executed by a processor and stored in a memory. Programs/instructions to implement their respective functions. This application is not limited to any specific combination of hardware and software.

Claims (14)

  1. 一种视频剪辑的方法,包括:A method of video editing, comprising:
    分别确定视频文件中至少两个待剪辑视频片段的起始时间和终止时间;Determining a start time and an end time of at least two video clips to be clipped in the video file, respectively;
    根据确定的至少两个待剪辑视频片段的起始时间和终止时间对所述视频文件进行剪切。The video file is cut according to the determined start time and end time of at least two video clips to be clipped.
  2. 根据权利要求1所述的方法,在所述对视频文件进行剪切之后,还包括:The method of claim 1, after the cutting the video file, further comprising:
    对剪切获得的所述至少两个待剪辑视频片段,根据时间先后顺序进行拼接,以获得剪辑的视频文件。The at least two video clips to be clipped obtained by the cut are spliced according to chronological order to obtain a video file of the clip.
  3. 根据权利要求1所述的方法,在所述分别确定视频文件中至少两个待剪辑视频片段的起始时间和终止时间之前,还包括:The method according to claim 1, further comprising: before determining the start time and the end time of the at least two video clips to be clipped in the video file, respectively:
    获取所述视频文件包含的多个视频帧的时间点信息;Obtaining time point information of multiple video frames included in the video file;
    按照预设单位时长以及所述多个视频帧的时间点信息,将所述视频文件划分为多个单位视频片段,以根据划分的多个单位视频片段确定所述至少两个待剪辑视频片段的起始时间和终止时间;Decoding the video file into a plurality of unit video segments according to a preset unit duration and time point information of the plurality of video frames, to determine the at least two video clips to be clipped according to the divided plurality of unit video segments. Start time and end time;
    其中,所述时间点信息包括:所述多个视频帧的起始时刻和终止时刻。The time point information includes: a start time and a stop time of the multiple video frames.
  4. 根据权利要求3所述的方法,其中,所述确定视频文件中至少两个待剪辑视频片段的起始时间和终止时间包括:The method according to claim 3, wherein said determining a start time and an end time of at least two video clips to be clipped in the video file comprises:
    在预设的第一用户交互界面上通过预设的交互单元显示所述多个单位视频片段;Displaying the plurality of unit video segments by a preset interaction unit on a preset first user interaction interface;
    通过所述预设的交互单元确定每一个待剪辑视频片段的起始位置所在的单位视频片段,将所述每一个待剪辑视频片段的起始位置所在的单位视频片段的起始时刻作为所述起始时间;Determining, by the preset interaction unit, a unit video segment in which a starting position of each video clip to be clipped is located, and starting a unit video segment in which the starting position of each video clip to be clipped is located Starting time
    通过所述预设的交互单元确定每一个待剪辑视频片段的终止位置所在的单位视频片段,将所述每一个待剪辑视频片段的终止位置所在的单位视频片段的终止时刻作为所述终止时间。Determining, by the preset interaction unit, a unit video segment in which the end position of each video clip to be clipped is located, and using a termination time of the unit video segment where the end position of each video clip to be clipped is located as the end time.
  5. 根据权利要求3或4所述的方法,在所述对视频文件进行剪切之前,还包括:The method according to claim 3 or 4, before the cutting the video file, further comprising:
    对所述多个单位视频片段按照预设规则进行排序,并结合所述预设单位时长的时间长度,确定每个单位视频片段的起始时刻和终止时刻;And sorting the plurality of unit video segments according to a preset rule, and determining a start time and a termination time of each unit video segment according to the length of time of the preset unit duration;
    根据确定的所述每个单位视频片段的起始时刻和终止时刻,及所述多个视频帧的起始时刻和终止时刻,确定所述每个单位视频片段包含的视频帧,以在确定所述至少两个待剪辑视频片段的起始时间和终止时间后对所述视频文件进 行剪切。Determining, according to the determined start time and end time of each unit video segment, and the start time and the end time of the plurality of video frames, the video frame included in each unit video segment to determine The video file is clipped after the start time and the end time of at least two video clips to be clipped.
  6. 根据权利要求1~4任一项所述的方法,其中,所述确定至少两个待剪辑视频片段的起始时间和终止时间包括:The method according to any one of claims 1 to 4, wherein the determining the start time and the end time of the at least two video clips to be clipped comprises:
    通过预设的第二用户交互界面接收所述至少两个待剪辑视频片段的起始时间和终止时间。The start time and the end time of the at least two video clips to be clipped are received through a preset second user interaction interface.
  7. 一种视频剪辑的终端,包括:时间确定单元和剪切单元;其中,A terminal for a video clip, comprising: a time determining unit and a cutting unit; wherein
    时间确定单元设置为:分别确定视频文件中至少两个待剪辑视频片段的起始时间和终止时间;The time determining unit is configured to: respectively determine a start time and an end time of the at least two video clips to be clipped in the video file;
    剪切单元设置为:根据确定的至少两个待剪辑视频片段的起始时间和终止时间对所述视频文件进行剪切。The cropping unit is configured to: cut the video file according to the determined start time and end time of at least two video clips to be clipped.
  8. 根据权利要求7所述的终端,还包括拼接单元,设置为对剪切获得的所述至少两个待剪辑视频片段,根据时间先后顺序进行拼接,以获得剪辑的视频文件。The terminal according to claim 7, further comprising a tiling unit configured to splice the at least two video clips to be clipped obtained by splicing according to chronological order to obtain a video file of the clip.
  9. 根据权利要求7所述的终端,还包括获取单元和划分单元;其中,The terminal according to claim 7, further comprising an obtaining unit and a dividing unit; wherein
    获取单元设置为:获取所述视频文件包含的多个视频帧的时间点信息;The obtaining unit is configured to: acquire time point information of multiple video frames included in the video file;
    划分单元设置为:按照预设单位时长以及所述多个视频帧的时间点信息,将所述视频文件划分为多个单位视频片段,以根据划分的多个单位视频片段确定至少两个待剪辑视频片段的起始时间和终止时间;The dividing unit is configured to: divide the video file into a plurality of unit video segments according to a preset unit duration and time point information of the plurality of video frames, to determine at least two to be clipped according to the divided plurality of unit video segments The start time and end time of the video clip;
    其中,所述时间点信息包括:所述多个视频帧的起始时刻和终止时刻。The time point information includes: a start time and a stop time of the multiple video frames.
  10. 根据权利要求9所述的终端,其中,所述时间确定单元还设置为:The terminal according to claim 9, wherein the time determining unit is further configured to:
    在预设的第一用户交互界面上通过预设的交互单元显示所述多个单位视频片段;Displaying the plurality of unit video segments by a preset interaction unit on a preset first user interaction interface;
    通过所述预设的交互单元确定每一个待剪辑视频片段的起始位置所在的单位视频片段,将所述每一个待剪辑视频片段的起始位置所在的单位视频片段的起始时刻作为所述起始时间;Determining, by the preset interaction unit, a unit video segment in which a starting position of each video clip to be clipped is located, and starting a unit video segment in which the starting position of each video clip to be clipped is located Starting time
    通过所述预设的交互单元确定每一个待剪辑视频片段的终止位置所在的单位视频片段,将所述每一个待剪辑视频片段的终止位置所在的单位视频片段的终止时刻作为所述终止时间。Determining, by the preset interaction unit, a unit video segment in which the end position of each video clip to be clipped is located, and using a termination time of the unit video segment where the end position of each video clip to be clipped is located as the end time.
  11. 根据权利要求9或10所述的终端,还包括帧确定单元,设置为:The terminal according to claim 9 or 10, further comprising a frame determining unit, configured to:
    对所述多个单位视频片段按照预设规则进行排序,并结合所述预设单位时长的时间长度,确定每个单位视频片段的起始时刻和终止时刻;And sorting the plurality of unit video segments according to a preset rule, and determining a start time and a termination time of each unit video segment according to the length of time of the preset unit duration;
    根据确定的所述每个单位视频片段的起始时刻和终止时刻,及所述多个视频帧的起始时刻和终止时刻,确定所述每个单位视频片段包含的视频帧,以在确定所述至少两个待剪辑视频片段的起始时间和终止时间后对所述视频文件进行剪切。Determining, according to the determined start time and end time of each unit video segment, and the start time and the end time of the plurality of video frames, the video frame included in each unit video segment to determine The video file is clipped after the start time and the end time of at least two video clips to be clipped.
  12. 根据权利要求7~10所述的终端,其中,所述时间确定单元还设置为:The terminal according to any one of claims 7 to 10, wherein the time determining unit is further configured to:
    通过预设的第二用户交互界面接收所述至少两个待剪辑视频片段的起始时间和终止时间。The start time and the end time of the at least two video clips to be clipped are received through a preset second user interaction interface.
  13. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,计算机可执行指令设置为执行如权利要求1~6任一项所述视频剪辑的方法。A computer storage medium having stored therein computer executable instructions, the computer executable instructions being arranged to perform the method of the video clip of any one of claims 1 to 6.
  14. 一种终端,包括:存储器和处理器;其中,A terminal includes: a memory and a processor; wherein
    所述处理器被配置为执行存储器中的程序指令;The processor is configured to execute program instructions in a memory;
    所述程序指令在被处理器读取并执行时实现以下操作:The program instructions, when read and executed by the processor, do the following:
    分别确定视频文件中至少两个待剪辑视频片段的起始时间和终止时间;Determining a start time and an end time of at least two video clips to be clipped in the video file, respectively;
    根据确定的至少两个待剪辑视频片段的起始时间和终止时间对所述视频文件进行剪切。The video file is cut according to the determined start time and end time of at least two video clips to be clipped.
PCT/CN2018/102014 2017-08-31 2018-08-23 Video editing method and terminal WO2019042217A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710772780.5 2017-08-31
CN201710772780.5A CN109429093B (en) 2017-08-31 2017-08-31 Video editing method and terminal

Publications (1)

Publication Number Publication Date
WO2019042217A1 true WO2019042217A1 (en) 2019-03-07

Family

ID=65505545

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/102014 WO2019042217A1 (en) 2017-08-31 2018-08-23 Video editing method and terminal

Country Status (2)

Country Link
CN (1) CN109429093B (en)
WO (1) WO2019042217A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111711861B (en) * 2020-05-15 2022-04-12 北京奇艺世纪科技有限公司 Video processing method and device, electronic equipment and readable storage medium
CN111666446B (en) * 2020-05-26 2023-07-04 珠海九松科技有限公司 Method and system for judging automatic video editing material of AI
CN111739128B (en) * 2020-07-29 2021-08-31 广州筷子信息科技有限公司 Target video generation method and system
CN113810766B (en) * 2021-11-17 2022-02-08 深圳市速点网络科技有限公司 Video clip combination processing method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1902935A (en) * 2004-01-15 2007-01-24 三星电子株式会社 Apparatus and method for searching for a video clip
US20120210218A1 (en) * 2011-02-16 2012-08-16 Colleen Pendergast Keyword list view
CN105142029A (en) * 2015-08-10 2015-12-09 北京彩云动力教育科技有限公司 Interactive video clipping system and interactive video clipping method
CN105578260A (en) * 2015-12-18 2016-05-11 无锡天脉聚源传媒科技有限公司 Video editing method and device
CN106375872A (en) * 2015-07-24 2017-02-01 三亚中兴软件有限责任公司 Method and device for video editing

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101909161B (en) * 2009-12-17 2013-12-25 新奥特(北京)视频技术有限公司 Video clipping method and device
CN103606158A (en) * 2013-11-29 2014-02-26 深圳市龙视传媒有限公司 Preprocessing method and terminal for video clipping
CN105657537B (en) * 2015-12-23 2018-06-19 小米科技有限责任公司 Video clipping method and device
CN106303669B (en) * 2016-08-17 2019-08-09 深圳鑫联迅科技有限公司 A kind of video clipping method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1902935A (en) * 2004-01-15 2007-01-24 三星电子株式会社 Apparatus and method for searching for a video clip
US20120210218A1 (en) * 2011-02-16 2012-08-16 Colleen Pendergast Keyword list view
CN106375872A (en) * 2015-07-24 2017-02-01 三亚中兴软件有限责任公司 Method and device for video editing
CN105142029A (en) * 2015-08-10 2015-12-09 北京彩云动力教育科技有限公司 Interactive video clipping system and interactive video clipping method
CN105578260A (en) * 2015-12-18 2016-05-11 无锡天脉聚源传媒科技有限公司 Video editing method and device

Also Published As

Publication number Publication date
CN109429093B (en) 2022-08-19
CN109429093A (en) 2019-03-05

Similar Documents

Publication Publication Date Title
WO2019042217A1 (en) Video editing method and terminal
US9852768B1 (en) Video editing using mobile terminal and remote computer
US9549121B2 (en) Image acquiring method and electronic device
US20100070860A1 (en) Animated cloud tags derived from deep tagging
CN106303723B (en) Video processing method and device
CN110691276B (en) Method and device for splicing multimedia segments, mobile terminal and storage medium
US20220206994A1 (en) Method and Apparatus for Generating Multimedia File
CN106804003B (en) Video editing method and device based on ffmpeg
WO2017014800A1 (en) Video editing on mobile platform
CN106412708A (en) Video screenshot method and video screenshot device
US9836180B2 (en) Systems and methods for performing content aware video editing
US10062413B2 (en) Media-production system with social media content interface feature
US11941728B2 (en) Previewing method and apparatus for effect application, and device, and storage medium
EP4329283A1 (en) Image processing method and apparatus, and device and storage medium
CN110915224A (en) Video editing method, device, equipment and storage medium
CN111835985A (en) Video editing method, device, apparatus and storage medium
US9773524B1 (en) Video editing using mobile terminal and remote computer
CN109164966A (en) Screen capture method and device
CN104994404A (en) Method and device for obtaining keywords for video
CN111246289A (en) Video generation method and device, electronic equipment and storage medium
WO2023284567A1 (en) Video editing method and device
CN104093090B (en) A kind of method for processing video frequency and device
US20240221788A1 (en) Audio publishing method, apparatus, and computer-readable storage medium
CN111970560B (en) Video acquisition method and device, electronic equipment and storage medium
US11003467B2 (en) Visual history for content state changes

Legal Events

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

Ref document number: 18850391

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 07.09.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18850391

Country of ref document: EP

Kind code of ref document: A1