CN116634233A - Media editing method, device, equipment and storage medium - Google Patents
Media editing method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN116634233A CN116634233A CN202310389160.9A CN202310389160A CN116634233A CN 116634233 A CN116634233 A CN 116634233A CN 202310389160 A CN202310389160 A CN 202310389160A CN 116634233 A CN116634233 A CN 116634233A
- Authority
- CN
- China
- Prior art keywords
- media
- target
- frame
- full
- editing
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47205—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/858—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
- H04N21/8586—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Management Or Editing Of Information On Record Carriers (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种媒体编辑方法、装置、设备和存储介质。The present invention relates to the technical field of communication, in particular to a media editing method, device, equipment and storage medium.
背景技术Background technique
在现行的媒体编辑软件中,用户在执行对媒体的编辑处理时,以处理视频媒体为例,通常会在编辑区对媒体添加分割命令删除一些废弃的视频片段,再对保留的视频片段进行编辑,,或者新增一些视频片段进行合成,然后再对保留的视频片段进行编辑,但是当待编辑的媒体片段成为多个媒体片段后,接下来需要对待编辑视频片段视为一个整体添加非时序全帧控制命令(例如调整声音变速、添加滤镜等)处理时,如果直接对其中某一视频片段添加全帧控制命令,则只可以作用于该选中的视频片段,而并非整个保留的视频片段,In the current media editing software, when the user performs editing processing on the media, taking video media as an example, he usually adds a split command to the media in the editing area to delete some discarded video clips, and then edits the reserved video clips ,, or add some video clips for synthesis, and then edit the reserved video clips, but when the media clips to be edited become multiple media clips, then you need to treat the edited video clips as a whole and add non-timing full When processing frame control commands (such as adjusting sound speed, adding filters, etc.), if you directly add a full-frame control command to one of the video clips, it can only act on the selected video clip, not the entire reserved video clip.
如果需要对其中一些视频片段添加非时序全帧控制命令,就需要先将这些视频片段先导出来合并为一个新的视频再添加后重新导入到编辑区,或者是对所有的视频片段分别添加非时序全帧命令,操作繁琐,浪费用户编辑时间,对用户非常不友好。If you need to add non-sequential full-frame control commands to some of the video clips, you need to export these video clips first and merge them into a new video, then add them and re-import them into the editing area, or add non-sequential to all video clips separately Full-frame commands are cumbersome to operate, waste user editing time, and are very unfriendly to users.
发明内容Contents of the invention
本发明实施例提供一种媒体编辑方法,用以高效地实现对媒体内容进行编辑。An embodiment of the present invention provides a media editing method for efficiently editing media content.
第一方面,本发明实施例提供一种媒体编辑方法,应用于编辑终端,所述编辑终端的图像用户界面中展示的内容至少包括对象展示区域和编辑区域,所述对象展示区域用于展示每一待编辑的媒体片段每一帧的内容,所述编辑区域用于对所述每一待编辑的媒体片段的媒体帧进行编辑,所述编辑区域至少包括用于加载所述每一待编辑的媒体片段的媒体帧的编辑行所述方法包括:In the first aspect, an embodiment of the present invention provides a media editing method, which is applied to an editing terminal. The content displayed in the graphical user interface of the editing terminal includes at least an object display area and an editing area, and the object display area is used to display each The content of each frame of a media segment to be edited, the editing area is used to edit the media frame of each media segment to be edited, and the editing area at least includes a The methods described in the editing line of the media frame of the media segment include:
响应于获取到对所述媒体帧编辑行的目标媒体片段的任一帧位置的目标全帧命令为非时序全帧命令,以及获取到将所述目标全帧命令应用于与所述目标媒体片段同源的媒体片段的指示;其中,所述非全帧命令为作用于所述目标媒体片段的每一帧、且与时序无关的控制命令,所述目标媒体片段为待编辑的媒体片段集合中的任一个媒体片段,所述待编辑的媒体片段集合为在所述媒体帧编辑行加载的全部媒体片段,所述待编辑的媒体片段集合在所述媒体帧编辑行具有排列顺序;In response to obtaining the target full frame command of any frame position of the target media segment in the edit row of the media frame is a non-sequential full frame command, and obtaining the target full frame command applied to the target media segment An indication of a media segment of the same source; wherein, the non-full-frame command is a control command that acts on each frame of the target media segment and has nothing to do with timing, and the target media segment is in the set of media segments to be edited Any one of the media segments, the set of media segments to be edited is all the media segments loaded in the media frame editing line, and the set of media segments to be edited has an arrangement order in the media frame editing line;
根据所述目标媒体片段的第一源标识符,在所述待编辑的媒体片段集合中获取与所述目标媒体片段具有第一源标识符的目标媒体片段集合,其中,所述第一源标识符为用于标识与所述目标媒体片段同源的媒体片段的标识符;According to the first source identifier of the target media segment, obtain a target media segment set having a first source identifier with the target media segment in the set of media segments to be edited, wherein the first source identifier The symbol is an identifier for identifying a media segment homologous to the target media segment;
在所述媒体帧的编辑行中,按照所述待编辑的媒体片段集合中所述目标媒体片段集合的排列顺序,获取所述目标全帧命令作用的目标位置;In the editing line of the media frame, according to the arrangement order of the target media segment set in the media segment set to be edited, the target position of the target full frame command is obtained;
在所述编辑区,对应于所述目标位置添加所述目标全帧命令。In the editing area, add the target full-frame command corresponding to the target position.
第二方面,本发明实施例提供一种媒体编辑装置,所述编辑终端的图像用户界面中展示的内容至少包括对象展示区域和编辑区域,所述对象展示区域用于展示每一待编辑的媒体片段每一帧的内容,所述编辑区域用于对所述每一待编辑的媒体片段的媒体帧进行编辑,所述编辑区域至少包括用于加载所述每一待编辑的媒体片段的媒体帧编辑行、所述装置包括:In the second aspect, an embodiment of the present invention provides a media editing device, the content displayed in the graphical user interface of the editing terminal at least includes an object display area and an editing area, and the object display area is used to display each media to be edited The content of each frame of the segment, the editing area is used to edit the media frame of each media segment to be edited, and the editing area includes at least the media frame for loading the media segment of each media segment to be edited Edit line, said means include:
获取模块,其用于响应于获取到对所述媒体帧编辑行的目标媒体片段的任一帧位置的目标全帧命令为非时序全帧命令,以及获取到将所述目标全帧命令应用于与所述目标媒体片段同源的媒体片段的指示;其中,所述非全帧命令为作用于所述目标媒体片段的每一帧、且与时序无关的控制命令,所述目标媒体片段为待编辑的媒体片段集合中的任一个媒体片段,所述待编辑的媒体片段集合为在所述媒体帧编辑行加载的全部媒体片段,所述待编辑的媒体片段集合在所述媒体帧编辑行具有排列顺序;An acquisition module, which is used to respond to acquisition of the target full frame command of any frame position of the target media segment in the edit line of the media frame is a non-sequential full frame command, and to obtain the target full frame command applied to An indication of a media segment homologous to the target media segment; wherein the non-full frame command is a control command that acts on each frame of the target media segment and has nothing to do with timing, and the target media segment is to be Any one media segment in the edited media segment set, the media segment set to be edited is all media segments loaded in the media frame edit line, the media segment set to be edited has Order;
根据所述目标媒体片段的第一源标识符,在所述待编辑的媒体片段集合中获取与所述目标媒体片段具有第一源标识符的目标媒体片段集合,其中,所述第一源标识符为用于标识与所述目标媒体片段同源的媒体片段的标识符;According to the first source identifier of the target media segment, obtain a target media segment set having a first source identifier with the target media segment in the set of media segments to be edited, wherein the first source identifier The symbol is an identifier for identifying a media segment homologous to the target media segment;
添加模块,其用于在所述媒体帧的编辑行中,按照所述待编辑的媒体片段集合中所述目标媒体片段集合的排列顺序,获取所述目标全帧命令作用的目标位置;Adding a module, which is used to acquire the target position of the target full frame command according to the sequence of the target media segment set in the media segment set to be edited in the edit line of the media frame;
在所述编辑区,对应于所述目标位置添加所述目标全帧命令。In the editing area, add the target full-frame command corresponding to the target position.
第三方面,本发明实施例提供一种电子设备,包括:存储器、处理器、通信接口;其中,所述存储器上存储有可执行代码,当所述可执行代码被所述处理器执行时,使所述处理器至少可以实现如第一方面所述的媒体编辑方法。In a third aspect, an embodiment of the present invention provides an electronic device, including: a memory, a processor, and a communication interface; wherein, executable code is stored in the memory, and when the executable code is executed by the processor, The processor can at least implement the media editing method as described in the first aspect.
第四方面,本发明实施例提供了一种非暂时性机器可读存储介质,所述非暂时性机器可读存储介质上存储有可执行代码,当所述可执行代码被电子设备的处理器执行时,使所述处理器至少可以实现如第一方面所述的媒体编辑方法。In a fourth aspect, an embodiment of the present invention provides a non-transitory machine-readable storage medium, where executable code is stored on the non-transitory machine-readable storage medium, and when the executable code is executed by a processor of an electronic device During execution, the processor can at least implement the media editing method as described in the first aspect.
在本发明实施例提供的方案中,响应于获取到对所述媒体帧编辑行的目标媒体片段的任一帧位置的目标全帧命令为非时序全帧命令,以及获取到将所述目标全帧命令应用于与所述目标媒体片段同源的媒体片段的指示;根据所述目标媒体片段的第一源标识符,在所述待编辑的媒体片段集合中获取与所述目标媒体片段具有第一源标识符的目标媒体片段集合,在所述媒体帧的编辑行中,按照所述待编辑的媒体片段集合中所述目标媒体片段集合的排列顺序,获取所述目标全帧命令作用的目标位置;在所述编辑区,对应于所述目标位置添加所述目标全帧命令。基于本发明实施例提供的方案,可以大大简化编辑操作步骤,节省用户编辑时间。In the solution provided by the embodiment of the present invention, in response to obtaining the target full frame command of any frame position of the target media segment in the edit line of the media frame is a non-sequential full frame command, and obtaining the target full frame An indication that the frame command is applied to a media segment of the same source as the target media segment; according to the first source identifier of the target media segment, obtain the first source identifier of the target media segment in the set of media segments to be edited A set of target media fragments with a source identifier, in the editing line of the media frame, according to the arrangement order of the target media fragment set in the set of media fragments to be edited, obtain the target of the target full frame command position; in the editing area, add the target full-frame command corresponding to the target position. Based on the solution provided by the embodiment of the present invention, the editing operation steps can be greatly simplified, and the user's editing time can be saved.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.
图1A为本发明实施例提供的应用图3A-图3C示出的各方法流程图的种媒体终端的图像用户界面应用示意图;FIG. 1A is a schematic diagram of an image user interface application of a media terminal applying the flow charts of the methods shown in FIGS. 3A-3C according to an embodiment of the present invention;
图1B为本发明实施例提供的应用图3A-图3C示出的各方法流程图的媒体终端的又一图像用户界面应用示意图;FIG. 1B is a schematic diagram of another graphical user interface application of a media terminal applying the flow charts of the methods shown in FIGS. 3A-3C according to an embodiment of the present invention;
图2为本发明实施例提供的各示例中的媒体片段示意图;FIG. 2 is a schematic diagram of media fragments in each example provided by an embodiment of the present invention;
图3A为本发明实施例提供的各种媒体编辑方法流程图;FIG. 3A is a flowchart of various media editing methods provided by an embodiment of the present invention;
图3B为本发明实施例提供的各种媒体编辑方法流程图;FIG. 3B is a flow chart of various media editing methods provided by an embodiment of the present invention;
图3C为本发明实施例提供的各种媒体编辑方法流程图;FIG. 3C is a flow chart of various media editing methods provided by an embodiment of the present invention;
图3D为本发明实施例提供的各种媒体编辑方法流程图;FIG. 3D is a flow chart of various media editing methods provided by an embodiment of the present invention;
图4为本发明实施例提供的一种媒体编辑装置的结构示意图;FIG. 4 is a schematic structural diagram of a media editing device provided by an embodiment of the present invention;
图5为与图4所示实施例提供的媒体编辑装置对应的电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device corresponding to the media editing apparatus provided in the embodiment shown in FIG. 4 .
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义,“多种”一般包含至少两种,但是不排除包含至少一种的情况。Terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates otherwise, "multiple" Generally, at least two kinds are included, but the case of including at least one kind is not excluded.
应当理解,本文中使用的术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the term "and/or" used herein is only an association relationship describing associated objects, which means that there may be three relationships, for example, A and/or B, which may mean that A exists alone, and A and B exist simultaneously. B, there are three situations of B alone. In addition, the character "/" in this article generally indicates that the contextual objects are an "or" relationship.
取决于语境,如在此所使用的词语“如果”、“若”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。Depending on the context, the words "if", "if" as used herein may be interpreted as "at" or "when" or "in response to determining" or "in response to detecting". Similarly, depending on the context, the phrases "if determined" or "if detected (the stated condition or event)" could be interpreted as "when determined" or "in response to the determination" or "when detected (the stated condition or event) )" or "in response to detection of (a stated condition or event)".
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的商品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种商品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的商品或者系统中还存在另外的相同要素。It should also be noted that the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a good or system comprising a set of elements includes not only those elements but also includes items not expressly listed. other elements of the product, or elements inherent in the commodity or system. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the article or system comprising said element.
另外,下述各方法实施例中的步骤时序仅为一种举例,而非严格限定。In addition, the sequence of steps in the following method embodiments is only an example, rather than a strict limitation.
本发明实施例提供的媒体编辑方法可以由一电子设备来执行,该电子设备可以是诸如PC机、笔记本电脑、智能手机等终端设备,也可以是服务器。该服务器可以是包含一独立主机的物理服务器,或者也可以为虚拟服务器,或者也可以为云端服务器或服务器集群。The media editing method provided by the embodiment of the present invention can be executed by an electronic device, and the electronic device can be a terminal device such as a PC, a notebook computer, a smart phone, or a server. The server may be a physical server including an independent host, or may also be a virtual server, or may also be a cloud server or server cluster.
如附图1A中的图1M为本发明实施例提供一种媒体终端的图像用户界面,编辑终端的图像用户界面中展示的内容至少包括对象展示区域101和编辑区域102,所述对象展示区域101用于展示每一待编辑的媒体片段每一帧的内容,所述编辑区域用于对所述每一待编辑的媒体片段的媒体帧进行编辑,本实施例的一种媒体编辑方法如附图3A-附图3D所示,对象展示区域101动态展示每一待编辑的媒体片段每一帧的内容,相应的在编辑区域内有相应的媒体帧的编辑行103,用于每一待编辑的媒体片段的每一帧进行编辑,在对象展示区101可以展示待编辑的媒体片段编辑后的效果。As shown in Fig. 1M in accompanying drawing 1A, the embodiment of the present invention provides a kind of image user interface of media terminal, the content shown in the image user interface of editing terminal includes at least object display area 101 and editing area 102, and described object display area 101 It is used to display the content of each frame of each media segment to be edited, and the editing area is used to edit the media frame of each media segment to be edited. A media editing method in this embodiment is shown in the accompanying drawing 3A-shown in accompanying drawing 3D, the object display area 101 dynamically displays the content of each frame of each media segment to be edited, and correspondingly there is an edit line 103 of a corresponding media frame in the editing area, which is used for each to-be-edited Each frame of the media segment is edited, and the edited effect of the media segment to be edited can be displayed in the object display area 101 .
在一实施例中,应用于上述媒体终端,可以包括如下步骤,具体流程图如附图3A所示。In an embodiment, it is applied to the above-mentioned media terminal, and may include the following steps, and a specific flowchart is shown in FIG. 3A .
步骤301、响应于获取到对所述媒体帧的编辑行的目标媒体片段的任一帧位置的目标全帧命令为非时序全帧命令,以及获取到将所述目标全帧命令应用于与所述目标媒体片段同源的媒体片段的指示,Step 301, in response to obtaining the target full-frame command at any frame position of the target media segment in the edit line of the media frame is a non-sequential full-frame command, and obtaining the target full-frame command applied to the an indication of a media segment of the same origin as the target media segment,
根据所述目标媒体片段的第一源标识符,在所述待编辑的媒体片段集合中获取与所述目标媒体片段具有第一源标识符的目标媒体片段集合,其中,所述第一源标识符为用于标识与所述目标媒体片段同源的媒体片段的标识符;According to the first source identifier of the target media segment, obtain a target media segment set having a first source identifier with the target media segment in the set of media segments to be edited, wherein the first source identifier The symbol is an identifier for identifying a media segment homologous to the target media segment;
本实施例中的全帧命令包括时序全帧命令和非时序全帧命令。其中,时序全帧命令为作用于所述目标媒体片段的每一帧、且与时序有关的控制命令(例如:添加特定音乐的控制命令);非全帧命令为作用于所述目标媒体片段的每一帧、且与时序无关的控制命令;示例性的,例如变速命令,视频流的滤镜命令等;所述目标媒体片段为待编辑的媒体片段集合中的任一个媒体片段,所述待编辑的媒体片段集合为在所述媒体帧编辑行加载的全部媒体片段,所述待编辑的媒体片段集合在所述媒体帧编辑行具有排列顺序;在本实施例中,待编辑的媒体片段集合是随着用户实时的分割媒体片段或者添加新媒体片段实时变化的,待编辑的媒体片段集合可以是对一个完整的源媒体片段添加分割命令后得到的同源的多个媒体片段的组合,在分割后得到的各个媒体片段在媒体帧的编辑行按照默认分割顺序排列;也可以是从本地图库中按顺序加载到编辑区域的不同源的多个媒体片段的组合,在新增媒体片段后,新增媒体片段在媒体帧的编辑行按照默认新增顺序向后排列,排列顺序可以由用户手动调整。The full-frame commands in this embodiment include time-sequential full-frame commands and non-sequential full-frame commands. Wherein, the timing full-frame command is a control command that acts on each frame of the target media segment and is related to timing (for example: a control command that adds specific music); the non-full-frame command is a control command that acts on the target media segment A control command for each frame that has nothing to do with timing; exemplary, such as a speed change command, a video stream filter command, etc.; the target media segment is any media segment in the set of media segments to be edited. The edited media segment set is all media segments loaded in the media frame edit line, and the media segment set to be edited has an arrangement order in the media frame edit line; in this embodiment, the media segment set to be edited It changes in real time as the user splits media segments or adds new media segments in real time. The set of media segments to be edited can be a combination of multiple media segments of the same source obtained after adding a split command to a complete source media segment. The media clips obtained after splitting are arranged in the editing line of the media frame according to the default split order; it can also be a combination of multiple media clips from different sources loaded in sequence from the local library to the editing area. After adding a new media clip, The newly added media clips are arranged backwards in the edit line of the media frame according to the default order of adding, and the arrangement order can be manually adjusted by the user.
响应于接收到对源媒体片段添加分割命令,此时待编辑的至少一个媒体片段是同源的多个媒体片段组合,在执行所述分割命令切割所述源媒体片段时,对每一同源媒体片段设置第一源标识符。In response to receiving the addition of a split command to the source media segment, at least one media segment to be edited at this time is a combination of multiple media segments of the same source, and when the source media segment is cut by the split command, each homologous The media segment sets the first source identifier.
示例性地,在第一示例中,如附图2中的帧2a所示,接收到对源媒体片段A添加分割命令后,获取到多个按顺序排列的媒体片段A1,A2,A3,此时可以对A1,A2,A3,分别设置第一源标识符a,来分别标识各个同源媒体片段A1a,A2a,A3a。Exemplarily, in the first example, as shown in frame 2a in the accompanying drawing 2, after receiving the source media segment A adding division command, a plurality of sequentially arranged media segments A1, A2, A3 are obtained, where At this time, the first source identifier a can be set for A1, A2, A3 respectively to identify each homologous media segment A1a, A2a, A3a respectively.
响应于接收到对任一源媒体片段添加新增媒体片段的添加命令,此时待编辑的至少一个媒体片段是不同源的多个媒体片段组合,在执行所述添加命令添加所述新增媒体片段时,对源媒体片段和新增媒体片段组成的不同源媒体片段设置第二源标识符。In response to receiving an add command for adding a new media segment to any source media segment, at least one media segment to be edited at this time is a combination of multiple media segments from different sources, and adding the new media after executing the add command When a segment is used, the second source identifier is set for different source media segments composed of the source media segment and the newly added media segment.
示例性地,在第二示例中,如附图2中的帧2b所示,接收到对源媒体片段A添加新增媒体片段B和新增媒体片段C的添加命令,获取到多个按顺序排列的媒体片段A,B,C,此时可以对A,B,C,分别设置第二源标识符b,来分别标识各个不同源媒体片段Ab,Bb,Cb。Exemplarily, in the second example, as shown in frame 2b in the accompanying drawing 2, an add command to add a new media segment B and a new media segment C to the source media segment A is received, and multiple sequential For the arranged media fragments A, B, and C, at this time, a second source identifier b can be set for A, B, and C respectively to identify each different source media fragments Ab, Bb, and Cb.
当待编辑的至少一个媒体片段包括同源的多个媒体片段组合和不同源的多个媒体片段组合时,响应于接收到对源媒体片段添加分割命令,在执行所述分割命令切割所述源媒体片段时,对每一同源媒体片段设置第一源标识符,以及响应于接收到对任一源媒体片段添加新增媒体片段的添加命令,在执行所述添加命令添加所述新增媒体片段时,对源媒体片段和新增媒体片段组成的不同源媒体片段设置第二源标识符。When at least one media segment to be edited includes a plurality of media segment combinations of the same source and a plurality of media segment combinations of different sources, in response to receiving an add split command to the source media segment, the source is cut after executing the split command In the case of media fragments, set the first source identifier for each homologous media fragment, and in response to receiving an add command to add a new media fragment to any source media fragment, add the new media when executing the add command When a segment is used, the second source identifier is set for different source media segments composed of the source media segment and the newly added media segment.
示例性地,在第三示例中,如附图2中的帧2c所示,接收到对源媒体片段A添加分割命令后,获取到多个按顺序排列的媒体片段A1,A2,A3,此时可以对A1,A2,A3,分别设置第一源标识符a,来分别标识各个同源媒体片段A1a,A2a,A3a,再添加新增媒体片段B和新增媒体片段C的添加命令,则按顺序排列的媒体片段为A1a,A2a,A3a,B,C,以及对A1a,A2a,A3a,B,C再设置第二源标识符b,来分别标识各个同源媒体片段A1ab,A2ab,A3ab,Bb,Cb。Exemplarily, in the third example, as shown in frame 2c in the accompanying drawing 2, after receiving the source media fragment A adding segmentation command, a plurality of sequentially arranged media fragments A1, A2, A3 are obtained. When A1, A2, A3 can be respectively set the first source identifier a to identify each homologous media segment A1a, A2a, A3a respectively, and then add the addition command of the newly added media segment B and the newly added media segment C, then The media fragments arranged in order are A1a, A2a, A3a, B, C, and the second source identifier b is set for A1a, A2a, A3a, B, C to identify each homologous media fragment A1ab, A2ab, A3ab respectively , Bb, Cb.
具体地,当待编辑的媒体片段全部是同源媒体片段时,此时全部同源媒体片段都具有第一源标识符,则其他待编辑的媒体片段是与目标媒体片段具有相应的第一源标识符的媒体片段,则可以根据所述第一源标识符提取其他待编辑的媒体片段;Specifically, when all media fragments to be edited are homologous media fragments, all homologous media fragments have the first source identifier, and then other media fragments to be edited have corresponding first source identifiers with the target media fragment. identifier, then other media fragments to be edited can be extracted according to the first source identifier;
示例性地,接着上述第一示例,如附图2中的帧2a所示,接收到对源媒体片段A添加分割命令后,获取到多个按顺序排列的媒体片段A1,A2,A3,此时可以对A1,A2,A3,分别设置第一源标识符a,来分别标识各个同源媒体片段A1a,A2a,A3a,当A1是目标媒体片段,可以根据第一源标识符a,提取到其他待编辑的媒体片段A2,A3.Exemplarily, following the above-mentioned first example, as shown in frame 2a in the accompanying drawing 2, after receiving the source media segment A adding division command, a plurality of sequentially arranged media segments A1, A2, A3 are obtained. When A1, A2, and A3, the first source identifier a can be set respectively to identify each homologous media segment A1a, A2a, A3a. When A1 is the target media segment, it can be extracted according to the first source identifier a. Other media clips to be edited A2, A3.
当待编辑的媒体片段全部是不同源媒体片段时,此时全部不同源媒体片段都具有第二源标识符,则其他待编辑的媒体片段是与目标媒体具有相应的第二源标识符的媒体片段,则可以根据所述第二源标识符提取其他待编辑的媒体片段;When the media fragments to be edited are all different source media fragments, all the different source media fragments have a second source identifier at this moment, then other media fragments to be edited are media with corresponding second source identifiers with the target media segment, other media segments to be edited can be extracted according to the second source identifier;
示例性地,接着上述第二示例,如附图2中的帧2b所示,接收到对源媒体片段A添加新增媒体片段B和新增媒体片段C的添加命令,获取到多个按顺序排列的媒体片段A,B,C,此时可以对A,B,C,分别设置第二源标识符b,来分别标识各个同源媒体片段Ab,Bb,Cb,当A是目标媒体片段,可以根据第二源标识符b,提取到其他待编辑的媒体片段B,C。Exemplarily, following the above-mentioned second example, as shown in frame 2b in FIG. 2, an add command for adding a new media segment B and a new media segment C to the source media segment A is received, and multiple sequential Arranged media fragments A, B, and C. At this time, the second source identifier b can be set respectively for A, B, and C to identify each homologous media fragment Ab, Bb, and Cb. When A is the target media fragment, Other media segments B and C to be edited can be extracted according to the second source identifier b.
当待编辑的媒体片段既包括同源媒体片段也包括不同源媒体片段时,全部同源媒体片段具有第一源标识符,不同源媒体片段具有第二源标识符,其他待编辑的媒体片段是与目标媒体具有相应的第一源标识符的媒体片段和第二源标识符的媒体片段,则可以根据第一源标识符和/或第二源标识符提取其他待编辑的媒体片段;When the media fragments to be edited include both homologous media fragments and different source media fragments, all homologous media fragments have the first source identifier, different source media fragments have the second source identifier, and other media fragments to be edited are Have the media fragment of corresponding first source identifier and the media fragment of second source identifier with target media, then can extract other media fragments to be edited according to first source identifier and/or second source identifier;
示例性地,接着上述第三示例,如附图2中的帧2c所示,接收到对源媒体片段A添加分割命令后,获取到多个按顺序排列的媒体片段A1,A2,A3,此时可以对A1,A2,A3,分别设置第一源标识符a,来分别标识各个同源媒体片段A1a,A2a,A3a,再添加新增媒体片段B和新增媒体片段C的添加命令,则按顺序排列的媒体片段为A1a,A2a,A3a,B,C,以及对A1a,A2a,A3a,B,C再设置第二源标识符b,来分别标识各个同源媒体片段和不同源媒体片段A1ab,A2ab,A3ab,Bb,Cb。Exemplarily, following the above-mentioned third example, as shown in frame 2c in accompanying drawing 2, after receiving the source media fragment A adding division command, obtain a plurality of media fragments A1, A2, A3 arranged in order, here When A1, A2, A3 can be respectively set the first source identifier a to identify each homologous media segment A1a, A2a, A3a respectively, and then add the addition command of the newly added media segment B and the newly added media segment C, then The media fragments arranged in order are A1a, A2a, A3a, B, C, and the second source identifier b is set for A1a, A2a, A3a, B, C to identify each homologous media fragment and different source media fragment respectively A1ab, A2ab, A3ab, Bb, Cb.
那么,当A1是目标媒体片段,可以根据第一源标识符a和/或第二源标识符b,提取到其他待编辑的媒体片段A2ab,A3ab,Bb,Cb。Then, when A1 is the target media segment, other media segments A2ab, A3ab, Bb, and Cb to be edited can be extracted according to the first source identifier a and/or the second source identifier b.
示例性地,在第四示例中,如附图2中的帧2ea所示,接收到对源媒体片段A添加分割命令后,获取到多个按顺序排列的媒体片段A1,A2,A3,此时可以对A1,A2,A3,分别设置第三源标识符c,来分别标识各个同源媒体片段A1c,A2c,A3c,再添加新增媒体片段B和新增媒体片段C的添加命令,则按顺序排列的媒体片段为A1c,A2c,A3c,B,C,此时对新增的媒体片段B,C再设置第三源标识符c即可,获取到多个按顺序排列的媒体片段A1c,A2c,A3c,Bc,Cc。Exemplarily, in the fourth example, as shown in frame 2ea in accompanying drawing 2, after receiving the addition division command to source media fragment A, obtain a plurality of media fragments A1, A2, A3 arranged in order, here When A1, A2, A3 can be respectively set the third source identifier c to identify each homologous media segment A1c, A2c, A3c respectively, and then add the addition command of the newly added media segment B and the newly added media segment C, then The media fragments arranged in order are A1c, A2c, A3c, B, and C. At this time, the third source identifier c can be set for the newly added media fragments B and C, and multiple media fragments A1c arranged in order can be obtained. , A2c, A3c, Bc, Cc.
那么,当A1c是目标媒体片段,可以根据第三源标识符c,提取到其他待编辑的媒体片段A2c,A3c,Bc,Cc。Then, when A1c is the target media segment, other media segments A2c, A3c, Bc, and Cc to be edited can be extracted according to the third source identifier c.
示例性地,在第五示例中,如附图2中的帧2eb所示,接收到对源媒体片段A添加新增媒体片段B和新增媒体片段C的添加命令,获取到多个按顺序排列的媒体片段A,B,C,此时对A,B,C分别设置第三源标识符c,来分别标识各个同源媒体片段Ac,Bc,Cc,又接收到对媒体片段B添加分割命令后,此时只需要对媒体片段B的分割片段B1,B2,B3保留第三源标识符c即可,获取到多个按顺序排列的媒体片段Ac,B1c,B2c,B3c,Cc,Exemplarily, in the fifth example, as shown in frame 2eb in the accompanying drawing 2, an addition command to add a new media segment B and a new media segment C to the source media segment A is received, and multiple sequential Arranged media fragments A, B, and C. At this time, set the third source identifier c for A, B, and C respectively to identify each homologous media fragment Ac, Bc, and Cc, and receive the addition of segmentation to media fragment B After the command, it is only necessary to reserve the third source identifier c for the segmented segments B1, B2, and B3 of the media segment B, and obtain a plurality of media segments Ac, B1c, B2c, B3c, and Cc arranged in sequence.
那么,当Ac是目标媒体片段,可以根据第三源标识符c,提取到其他待编辑的媒体片段Ac,B1c,B2c,B3c,Cc。Then, when Ac is the target media segment, other media segments Ac, B1c, B2c, B3c, and Cc to be edited can be extracted according to the third source identifier c.
步骤302,在所述媒体帧的编辑行中,按照所述待编辑的媒体片段集合中所述目标媒体片段集合的排列顺序,获取所述目标全帧命令作用的目标位置;Step 302, in the editing row of the media frame, according to the arrangement order of the target media segment set in the media segment set to be edited, obtain the target position of the target full frame command;
在所述编辑区,对应于所述目标位置添加所述目标全帧命令。In the editing area, add the target full-frame command corresponding to the target position.
在所述媒体帧的编辑行中,按照所述待编辑的媒体片段集合中所述目标媒体片段集合的排列顺序,获取所述目标全帧命令作用的目标位置;具体地,可以获取所述目标媒体片段集合每一媒体片段的每一帧的位置作为所述目标位置;或以所述目标媒体片段的所述任一帧位置为起始帧,以及按照所述待编辑的媒体片段集合中所述目标媒体片段集合的排列顺序,在所述媒体帧编辑行中获取所述目标媒体片段集合中、所述起始帧的位置后的每一媒体片段的每一帧的位置作为所述目标位置。In the editing line of the media frame, according to the arrangement order of the target media segment set in the media segment set to be edited, obtain the target position of the target full frame command; specifically, the target can be obtained The position of each frame of each media segment in the media segment collection is used as the target position; The order of arrangement of the target media segment set, in the media frame editing line, obtain the position of each frame of each media segment in the target media segment set after the position of the start frame as the target position .
通过本发明的实施例,在编辑多段同源媒体片段和多段不同源媒体片段的时候,可以根据本实施例的方法,可以灵活地自动获取到多段同源媒体片段,对该多段同源媒体片段添加非时序全帧命令,节省了用户编辑时间,提高了媒体编辑效率。Through the embodiments of the present invention, when editing multiple homologous media segments and multiple different source media segments, according to the method of this embodiment, multiple homologous media segments can be flexibly and automatically acquired. Add non-sequential full-frame command, which saves user editing time and improves media editing efficiency.
示例性地,接着上述第一示例,接收到对源媒体片段A添加分割命令后,获取到多个按顺序排列的媒体片段A1,A2,A3,此时可以对A1,A2,A3,分别设置第一源标识符a,来分别标识各个同源媒体片段A1a,A2a,A3a,当A1a是目标媒体片段,可以根据第一源标识符a,提取到A1a的同源媒体片段A2a,A3a;Exemplarily, following the above-mentioned first example, after receiving the add division command to the source media segment A, a plurality of media segments A1, A2, and A3 arranged in order are obtained, and at this time, A1, A2, and A3 can be respectively set The first source identifier a is used to identify each homologous media segment A1a, A2a, A3a respectively. When A1a is the target media segment, the homologous media segment A2a, A3a of A1a can be extracted according to the first source identifier a;
示例性地,A1作为目标媒体片段,包括多个媒体帧集合:A11,A12,A13,A14,A15,A16;则上述设置了第一源标识符a的媒体片段,按顺序排列为A11a,A12a,A13a,A14a,A15a,A16a,A2a,A3a;示例性地,在任一帧A14 a的位置获取到全帧命令,可以获取任一帧A14 a的目标媒体片段为A1,根据目标媒体片段A1的第一源标识符a获取到具有第一源标识符a的目标媒体片段集合为A1a,A2a,A3a;Exemplarily, A1 is used as a target media segment, including a plurality of media frame sets: A1 1 , A1 2 , A1 3 , A1 4 , A1 5 , A1 6 ; then the media segment with the first source identifier a set above, press The sequence is A1 1 a, A1 2 a, A1 3 a, A1 4 a, A1 5 a, A1 6 a, A2a, A3a; for example, if the full frame command is obtained at the position of A1 4 a in any frame, it can be Acquiring the target media segment of any frame A14a is A1, and obtaining the target media segment set with the first source identifier a according to the first source identifier a of the target media segment A1 is A1a, A2a, A3a;
示例性地,如附图2中的帧2fa所示,可以以目标媒体片段集合(示例性的媒体片段A1a,A2a,A3a)每一媒体片段的每一帧的位置作为所述目标位置,即以媒体片段A1中的每一帧A11a,A12a,A13a,A14a,A15a,A16a,以及媒体片段A2a中的每一帧,媒体片段A3a中的每一帧作为所述目标位置,在编辑区对应于所述目标位置添加所述目标全帧命令;具体地,可以是直接在媒体帧的编辑行中,直接对应于所述目标位置添加所述目标全帧命令,也可以是在所述目标全帧命令的编辑行中,对应于所述目标位置添加所述目标全帧命令。Exemplarily, as shown in frame 2fa in accompanying drawing 2, the position of each frame of each media fragment of target media fragment collection (exemplary media fragment A1a, A2a, A3a) can be used as described target position, namely Take each frame A1 1 a, A1 2 a, A1 3 a, A1 4 a, A1 5 a, A1 6 a in the media segment A1, and each frame in the media segment A2a, and each frame in the media segment A3a frame as the target position, add the target full-frame command in the editing area corresponding to the target position; specifically, directly in the editing line of the media frame, directly add the target full-frame command corresponding to the target position The frame command may also be to add the target full-frame command corresponding to the target position in the edit line of the target full-frame command.
示例性地,如附图2中的帧2fb所示,可以以所述目标媒体片段A1a的所述任一帧A14 a位置为起始帧,以及按照所述待编辑的媒体片段集合中所述目标媒体片段集合(示例性的媒体片段A1a,A2a,A3a)的排列顺序,在所述媒体帧编辑行中获取所述目标媒体片段集合(示例性的媒体片段A1a,A2a,A3a)中、起始帧A14 a的位置后的每一媒体片段的每一帧的位置作为所述目标位置,即以媒体片段A1中、起始帧A14 a的位置后的每一帧A14a,A15a,A16a,以及媒体片段A2a中的每一帧,媒体片段A3a中的每一帧作为所述目标位置,在编辑区对应于所述目标位置添加所述目标全帧命令;具体地,可以是直接在媒体帧的编辑行中,直接对应于所述目标位置添加所述目标全帧命令,也可以是在所述目标全帧命令的编辑行中,对应于所述目标位置添加所述目标全帧命令。Exemplarily, as shown in frame 2fb in the accompanying drawing 2, the position of any frame A1 4 a of the target media segment A1a can be used as the starting frame, and according to the set of media segments to be edited The order of arrangement of the target media segment set (exemplary media segment A1a, A2a, A3a), in the media frame editing line to obtain the target media segment set (exemplary media segment A1a, A2a, A3a), The position of each frame of each media segment after the position of the initial frame A14a is used as the target position, that is, each frame A14a after the position of the initial frame A14a in the media segment A1, A1 5 a, A1 6 a, and each frame in the media segment A2a, each frame in the media segment A3a as the target position, add the target full frame command corresponding to the target position in the editing area; specifically Alternatively, the target full-frame command can be directly added in the edit line of the media frame corresponding to the target position, or it can be added in the edit line of the target full-frame command corresponding to the target position The target full frame command.
示例性地,接着上述第二示例,接收到对源媒体片段A添加新增媒体片段B和新增媒体片段C的添加命令,获取到多个按顺序排列的媒体片段A,B,C,此时可以对A,B,C,分别设置第二源标识符b,来分别标识各个同源媒体片段,当A是目标媒体片段,可以根据第二源标识符b,提取到其他待编辑的媒体片段B,C。Exemplarily, following the above-mentioned second example, an add command for adding a new media segment B and a new media segment C to the source media segment A is received, and a plurality of media segments A, B, and C arranged in order are obtained, and the The second source identifier b can be set for A, B, and C respectively to identify each homologous media segment. When A is the target media segment, other media to be edited can be extracted according to the second source identifier b Fragment B, C.
示例性地,Ab作为目标媒体片段,包括多个媒体帧集合:A1b,A2b,A3b,A4b,A5b,A6b;则上述设置了第二源标识符b的媒体片段,按顺序排列为A1b,A2b,A3b,A4b,A5b,A6b,Bb,Cb;示例性地,在任一帧A4b的位置获取到全帧命令,可以获取任一帧A4b的目标媒体片段为Ab,根据目标媒体片段Ab的第二源标识符b获取到具有第二源标识符b的目标媒体片段集合为Ab,Bb,Cb;Exemplarily, Ab is used as a target media segment, including multiple sets of media frames: A 1 b, A 2 b, A 3 b, A 4 b, A 5 b, A 6 b; then the second source identifier is set above The media fragments of b are arranged in order as A 1 b, A 2 b, A 3 b, A 4 b, A 5 b, A 6 b, Bb, Cb; for example, it can be acquired at the position of any frame A 4 b To the full frame command, the target media segment of any frame A 4 b can be obtained as Ab, and the set of target media segments with the second source identifier b obtained according to the second source identifier b of the target media segment Ab is Ab, Bb ,Cb;
示例性地,如附图2中的帧2ga所示,可以以目标媒体片段集合(示例性的媒体片段Ab,Bb,Cb)每一媒体片段的每一帧的位置作为所述目标位置,即以媒体片段Ab中的每一帧A1b,A2b,A3b,A4b,A5b,A6b,以及媒体片段Bb中的每一帧,媒体片段Cb中的每一帧作为所述目标位置,在编辑区对应于所述目标位置添加所述目标全帧命令;具体地,可以是直接在媒体帧的编辑行中,直接对应于所述目标位置添加所述目标全帧命令,也可以是在所述目标全帧命令的编辑行中,对应于所述目标位置添加所述目标全帧命令。Exemplarily, as shown in frame 2ga in accompanying drawing 2, the position of each frame of each media segment of target media segment set (exemplary media segment Ab, Bb, Cb) can be used as the target position, namely Take each frame A 1 b, A 2 b, A 3 b, A 4 b, A 5 b, A 6 b in the media segment Ab, and each frame in the media segment Bb, and each frame in the media segment Cb frame as the target position, add the target full-frame command in the editing area corresponding to the target position; specifically, directly in the editing line of the media frame, directly add the target full-frame command corresponding to the target position The frame command may also be to add the target full-frame command corresponding to the target position in the edit line of the target full-frame command.
示例性地,如附图2中的帧2gb所示,可以以所述目标媒体片段Ab的所述任一帧A4b位置为起始帧,以及按照所述待编辑的媒体片段集合中所述目标媒体片段集合(示例性的媒体片段Ab,Bb,Cb)的排列顺序,在所述媒体帧编辑行中获取所述目标媒体片段集合(示例性的媒体片段Ab,Bb,Cb)中、起始帧A4b的位置后的每一媒体片段的每一帧的位置作为所述目标位置,即以媒体片段Ab中、起始帧A4b的位置后的每一帧A4b,A5b,A6b,以及媒体片段Bb中的每一帧,媒体片段Cb中的每一帧作为所述目标位置,在编辑区对应于所述目标位置添加所述目标全帧命令;具体地,可以是直接在媒体帧的编辑行中,直接对应于所述目标位置添加所述目标全帧命令,也可以是在所述目标全帧命令的编辑行中,对应于所述目标位置添加所述目标全帧命令。Exemplarily, as shown in frame 2gb in the accompanying drawing 2, the position of any frame A4b of the target media segment Ab can be used as the starting frame, and according to the target position in the set of media segments to be edited The order of arrangement of the media segment set (exemplary media segment Ab, Bb, Cb), in the media frame editing line to obtain the target media segment set (exemplary media segment Ab, Bb, Cb), start The position of each frame of each media fragment after the position of frame A4b is used as the target position, that is, each frame A4b, A5b, A6b, and media fragment Bb in the media fragment Ab, after the position of the initial frame A4b Each frame in the media segment Cb is used as the target position, and the target full-frame command is added corresponding to the target position in the editing area; specifically, it can be directly in the editing line of the media frame , add the target full-frame command directly corresponding to the target position, or add the target full-frame command corresponding to the target position in the edit line of the target full-frame command.
在一实施例中,应用于上述媒体终端,可以包括如下步骤,具体流程图如附图3B所示:In one embodiment, it is applied to the above-mentioned media terminal, and may include the following steps, and the specific flow chart is shown in Figure 3B:
步骤401,响应于所述目标全帧命令为非时序全帧命令,以及获取到将所述目标全帧命令应用于所述目标媒体片段后的待编辑的媒体片段的指示,获取所述待编辑的媒体片段集合;Step 401, in response to the target full-frame command being a non-sequential full-frame command and an indication of the media segment to be edited after the target full-frame command is applied to the target media segment, obtain the to-be-edited A collection of media fragments;
步骤402,在所述媒体帧的编辑行中,按照所述待编辑的媒体片段集合的排列顺序,获取所述目标全帧命令作用的目标位置,在编辑区对应于所述目标位置添加所述目标全帧命令;具体地,可以是直接在媒体帧的编辑行中,直接对应于所述目标位置添加所述目标全帧命令,也可以是在所述编辑区的目标全帧命令的编辑行中,对应于所述目标位置添加所述目标全帧命令。Step 402, in the editing line of the media frame, according to the arrangement order of the set of media fragments to be edited, obtain the target position of the target full frame command, and add the target position corresponding to the target position in the editing area The target full-frame command; specifically, it may be directly in the edit line of the media frame, directly corresponding to the target position to add the target full-frame command, or it may be the edit line of the target full-frame command in the edit area , add the target full-frame command corresponding to the target position.
具体地,可以按照所述待编辑的媒体片段集合的排列顺序,在所述媒体帧编辑行中获取待编辑的媒体片段集合的每一媒体片段的每一帧的位置作为所述目标位置;或Specifically, the position of each frame of each media segment of the media segment set to be edited may be acquired in the media frame editing line according to the arrangement sequence of the media segment set to be edited as the target position; or
以所述目标媒体片段的所述任一帧位置为起始帧,以及按照所述待编辑的媒体片段集合的排列顺序,在所述媒体帧编辑行中获取待编辑的媒体片段集合中、所述起始帧的位置后的每一媒体片段的每一帧的位置作为所述目标位置;Taking the any frame position of the target media segment as the starting frame, and according to the order of arrangement of the media segment set to be edited, in the media frame editing line, obtain the media segment set to be edited, all The position of each frame of each media segment after the position of the start frame is used as the target position;
其中,所述待编辑的媒体片段集合为根据所述目标媒体片段的第一源标识符和/或第二源标识符获取,或根据所述目标媒体片段的第三源标识符获取,所述第一源标识符为用于标识与所述目标媒体片段同源的媒体片段的标识符,所述第二源标识符为用于标识与所述目标媒体片段不同源的媒体片段的标识符,所述第三源标识符为用于标识与所述目标媒体片段同源的媒体片段和/或不同源的媒体片段的标识符;示例性地,接着上述第三示例,接收到对源媒体片段A添加分割命令后,获取到多个按顺序排列的媒体片段A1,A2,A3,此时可以对A1,A2,A3,分别设置第一源标识符a,来分别标识各个同源媒体片段A1a,A2a,A3a,再添加新增媒体片段B和新增媒体片段C的添加命令,则按顺序排列的媒体片段为A1a,A2a,A3a,B,C,以及对A1a,A2a,A3a,B,C再设置第二源标识符b,来分别标识各个同源媒体片段和不同源媒体片段A1ab,A2ab,A3ab,Bb,Cb。那么,当A1a是目标媒体片段,可以根据第一源标识符a和/或第二源标识符b,提取到其他待编辑的媒体片段A2,A3,B,C,即获取到待编辑的媒体片段集合为A1ab,A2ab,A3ab,Bb,Cb。Wherein, the set of media segments to be edited is obtained according to the first source identifier and/or the second source identifier of the target media segment, or obtained according to the third source identifier of the target media segment, the The first source identifier is an identifier for identifying a media segment of the same source as the target media segment, and the second source identifier is an identifier for identifying a media segment of a source different from the target media segment, The third source identifier is an identifier for identifying a media segment of the same source as the target media segment and/or a media segment of a different source; exemplarily, following the third example above, the source media segment is received After adding the segmentation command, A obtains a plurality of media segments A1, A2, and A3 arranged in order. At this time, the first source identifier a can be set for A1, A2, and A3 respectively to identify each homologous media segment A1a , A2a, A3a, and then add the addition command of the new media segment B and the new media segment C, the media segments arranged in order are A1a, A2a, A3a, B, C, and A1a, A2a, A3a, B, C further sets the second source identifier b to respectively identify each homologous media segment and different source media segment A1ab, A2ab, A3ab, Bb, Cb. Then, when A1a is the target media segment, other media segments A2, A3, B, and C to be edited can be extracted according to the first source identifier a and/or the second source identifier b, that is, the media to be edited is obtained The set of fragments is A1ab, A2ab, A3ab, Bb, Cb.
示例性地,A1a作为目标媒体片段,包括多个媒体帧集合:A11,A12,A13,A14,A15,A16;则上述设置了第一源标识符a和/或第二源标识符b的媒体片段,按顺序排列为A11ab,A12ab,A13ab,A14 ab,A15ab,A16ab,A2ab,A3ab,Bb,Cb;示例性地,在任一帧A14 a的位置获取到全帧命令,可以获取任一帧A14 a的目标媒体片段为A1,根据目标媒体片段A1的第一源标识符a和或第二源标识符b获取到具有第一源标识符a和或具有第一源标识符b的待编辑的媒体片段集合为A1a,A2a,A3a,Bb,Cb;Exemplarily, A1a is used as a target media segment, including a plurality of media frame sets: A1 1 , A1 2 , A1 3 , A1 4 , A1 5 , A1 6 ; then the first source identifier a and/or the second The media segments of source identifier b are arranged in order as A1 1 ab, A1 2 ab, A1 3 ab, A1 4 ab, A1 5 ab, A1 6 ab, A2ab, A3ab, Bb, Cb; The position of the frame A1 4 a has obtained the full frame command, and the target media segment of any frame A1 4 a can be obtained as A1, and according to the first source identifier a and or the second source identifier b of the target media segment A1, the The first source identifier a and or the set of media segments to be edited with the first source identifier b are A1a, A2a, A3a, Bb, Cb;
示例性地,如附图2中的帧2ha所示,可以按照待编辑的媒体片段集合为A1a,A2a,A3a,Bb,Cb的排列顺序,在所述媒体帧编辑行中获取待编辑的媒体片段集合的每一媒体片段的每一帧的位置作为所述目标位置,即以媒体片段A1中的每一帧A11ab,A12ab,A13ab,A14ab,A15ab,A16ab,以及媒体片段A2ab中的每一帧,以及媒体片段A3ab中的每一帧,以及媒体片段Bb中的每一帧,以及媒体片段Cb中的每一帧作为所述目标位置,在编辑区对应于所述目标位置添加所述目标全帧命令;具体地,可以是直接在媒体帧的编辑行中,直接对应于所述目标位置添加所述目标全帧命令,也可以是在所述目标全帧命令的编辑行中,对应于所述目标位置添加所述目标全帧命令。Exemplarily, as shown in frame 2ha in accompanying drawing 2, can according to the arrangement sequence that the media segment set to be edited is A1a, A2a, A3a, Bb, Cb, obtain the media to be edited in the edit line of described media frame The position of each frame of each media segment in the segment set is used as the target position, that is, each frame in the media segment A1 is A1 1 ab, A1 2 ab, A1 3 ab, A1 4 ab, A1 5 ab, A1 6 ab, and each frame in the media segment A2ab, and each frame in the media segment A3ab, and each frame in the media segment Bb, and each frame in the media segment Cb as the target position, when editing area corresponding to the target position to add the target full-frame command; specifically, it can be directly in the editing line of the media frame, directly corresponding to the target position to add the target full-frame command, or it can be in the In the editing line of the target full-frame command, add the target full-frame command corresponding to the target position.
示例性地,如附图2中的帧2hb所示,可以所述目标媒体片段的所述任一帧位置为起始帧,以及按照所述待编辑的媒体片段集合的排列顺序A11ab,A12ab,A13ab,A14 ab,A15ab,A16ab,A2ab,A3ab,Bb,Cb,在所述媒体帧编辑行中获取待编辑的媒体片段集合中、所述起始帧A14 ab的位置后的每一媒体片段的每一帧的位置作为所述目标位置,即以媒体片段A1中、起始帧A14 ab的位置后的每一帧A14 ab,A15ab,A16ab,以及媒体片段A2ab中的每一帧,以及媒体片段A3ab中的每一帧,以及媒体片段Bb中的每一帧,以及媒体片段Cb中的每一帧作为所述目标位置,在编辑区对应于所述目标位置添加所述目标全帧命令;具体地,可以是直接在媒体帧的编辑行中,直接对应于所述目标位置添加所述目标全帧命令,也可以是在所述目标全帧命令的编辑行中,对应于所述目标位置添加所述目标全帧命令。Exemplarily, as shown in frame 2hb in the accompanying drawing 2, any frame position of the target media segment can be used as the starting frame, and according to the sequence A1 1 ab of the set of media segments to be edited, A1 2 ab, A1 3 ab, A1 4 ab, A1 5 ab, A1 6 ab, A2ab, A3ab, Bb, Cb, in the media frame editing line, obtain the set of media segments to be edited, the start frame The position of each frame of each media segment after the position of A1 4 ab is used as the target position, that is, each frame A1 4 ab and A1 5 ab after the position of the starting frame A1 4 ab in the media segment A1 , A1 6 ab, and each frame in the media segment A2ab, and each frame in the media segment A3ab, and each frame in the media segment Bb, and each frame in the media segment Cb as the target position, Add the target full-frame command in the editing area corresponding to the target position; specifically, it may be directly in the editing line of the media frame, directly corresponding to the target position to add the target full-frame command, or in In the editing line of the target full-frame command, add the target full-frame command corresponding to the target position.
在一个实施例中,响应于接收到对源媒体片段添加分割命令,在执行所述分割命令切割所述源媒体片段时,对每一同源媒体片段设置第三源标识符,以及接收到对任一源媒体片段添加新增媒体片段的添加命令,在执行所述添加命令添加所述新增媒体片段时,对新增媒体片段也设置第三源标识符。In one embodiment, in response to receiving a split command to add a source media segment, when executing the split command to cut the source media segment, a third source identifier is set for each homologous media segment, and the An add command for adding a new media segment to any source media segment, when the add command is executed to add the new media segment, a third source identifier is also set for the new media segment.
当待编辑的至少一个媒体片段既包括同源媒体片段也包括不同源媒体片段时,则可以根据第三源标识符提取待编辑的媒体片段集合。When at least one media segment to be edited includes both media segments of the same source and media segments of different sources, the set of media segments to be edited may be extracted according to the third source identifier.
示例性地,接着上述第四示例,接收到对源媒体片段A添加分割命令后,获取到多个按顺序排列的媒体片段A1,A2,A3,此时可以对A1,A2,A3,分别设置第三源标识符c,来分别标识各个同源媒体片段A1c,A2c,A3c,再添加新增媒体片段B和新增媒体片段C的添加命令,则按顺序排列的媒体片段为A1c,A2c,A3c,B,C,此时对新增的媒体片段B,C再设置第三源标识符c即可,获取到多个按顺序排列的媒体片段A1c,A2c,A3c,Bc,Cc。Exemplarily, following the above-mentioned fourth example, after receiving the add division command to the source media segment A, a plurality of media segments A1, A2, and A3 arranged in sequence are obtained, and at this time, A1, A2, and A3 can be respectively set The third source identifier c, to respectively identify each homologous media segment A1c, A2c, A3c, and then add the addition command of the new media segment B and the new media segment C, the media segments arranged in order are A1c, A2c, A3c, B, C, at this time, just set the third source identifier c for the newly added media fragments B, C, and obtain multiple media fragments A1c, A2c, A3c, Bc, Cc arranged in sequence.
那么,当A1c是目标媒体片段,可以根据第三源标识符c,提取到其他待编辑的媒体片段A2c,A3c,Bc,Cc,即获取到待编辑的媒体片段集合为A1c,A2c,A3c,Bc,Cc。Then, when A1c is the target media segment, other media segments A2c, A3c, Bc, and Cc to be edited can be extracted according to the third source identifier c, that is, the set of media segments to be edited is A1c, A2c, A3c, Bc, Cc.
示例性地,A1作为目标媒体片段,包括多个媒体帧集合:A11,A12,A13,A14,A15,A16;则上述设置了第三源标识符c的媒体片段,按顺序排列为A11c,A12c,A13c,A14c,A15c,A16c,A2c,A3c,Bc,Cc。示例性地,Exemplarily, A1 is used as a target media segment, including a plurality of media frame sets: A1 1 , A1 2 , A1 3 , A1 4 , A1 5 , A1 6 ; The sequence is A1 1 c, A1 2 c, A1 3 c, A1 4 c, A1 5 c, A1 6 c, A2c, A3c, Bc, Cc. Exemplarily,
示例性地,在任一帧A14c的位置获取到全帧命令,可以获取任一帧A14c的目标媒体片段为A1,根据目标媒体片段A1的第三源标识符c获取到具有第三源标识符c的待编辑的媒体片段集合为A1c,A2c,A3c,Bc,Cc;Exemplarily, if the full frame command is obtained at the position of any frame A1 4 c, the target media segment of any frame A1 4 c can be obtained as A1, according to the third source identifier c of the target media segment A1, the source identifier c with the third The set of media segments to be edited with source identifier c is A1c, A2c, A3c, Bc, Cc;
示例性地,如附图2中的帧2ka所示,可以按照待编辑的媒体片段集合为A1c,A2c,A3c,Bc,Cc的排列顺序,在所述媒体帧编辑行中获取待编辑的媒体片段集合的每一媒体片段的每一帧的位置作为所述目标位置,即以媒体片段A1中的每一帧A11c,A12c,A13c,A14c,A15c,A16c,以及媒体片段A2c中的每一帧,以及媒体片段A3c中的每一帧,以及媒体片段Bc中的每一帧,以及媒体片段Cc中的每一帧作为所述目标位置,在编辑区对应于所述目标位置添加所述目标全帧命令;具体地,可以是直接在媒体帧的编辑行中,直接对应于所述目标位置添加所述目标全帧命令,也可以是在所述目标全帧命令的编辑行中,对应于所述目标位置添加所述目标全帧命令。Exemplarily, as shown in frame 2ka in accompanying drawing 2, according to the arrangement sequence that the media segment set to be edited is A1c, A2c, A3c, Bc, Cc, obtain the media to be edited in the edit row of the media frame The position of each frame of each media segment in the segment set is used as the target position, that is, each frame in the media segment A1 is A1 1 c, A1 2 c, A1 3 c, A1 4 c, A1 5 c, A1 6 c, and each frame in the media segment A2c, and each frame in the media segment A3c, and each frame in the media segment Bc, and each frame in the media segment Cc as the target position, in the editing area corresponding to the target position to add the target full-frame command; specifically, it can be directly in the editing line of the media frame, directly corresponding to the target position to add the target full-frame command, or it can be in the In the editing line of the target full-frame command, add the target full-frame command corresponding to the target position.
示例性地,如附图2中的帧2kb所示,可以所述目标媒体片段的所述任一帧位置为起始帧,以及按照所述待编辑的媒体片段集合的排列顺序A11c,A12c,A13c,A14c,A15c,A16c,A2c,A3c,Bc,Cc,在所述媒体帧编辑行中获取待编辑的媒体片段集合中、所述起始帧A14 c的位置后的每一媒体片段的每一帧的位置作为所述目标位置,即以媒体片段A1中、起始帧A14 c的位置后的每一帧A14 c,A15c,A16c,以及媒体片段A2c中的每一帧,以及媒体片段A3c中的每一帧,以及媒体片段Bb中的每一帧,以及媒体片段Cc中的每一帧作为所述目标位置,在编辑区对应于所述目标位置添加所述目标全帧命令;具体地,可以是直接在媒体帧的编辑行中,直接对应于所述目标位置添加所述目标全帧命令,也可以是在所述目标全帧命令的编辑行中,对应于所述目标位置添加所述目标全帧命令。Exemplarily, as shown in frame 2kb in the accompanying drawing 2, any frame position of the target media segment can be used as the starting frame, and according to the sequence A1 1 c of the set of media segments to be edited, A1 2 c, A1 3 c, A1 4 c, A1 5 c, A1 6 c, A2c, A3c, Bc, Cc, in the media frame editing line, obtain the start frame in the set of media segments to be edited The position of each frame of each media segment after the position of A1 4 c is used as the target position, that is, each frame A1 4 c and A1 5 c after the position of the starting frame A1 4 c in the media segment A1 , A1 6 c, and each frame in the media segment A2c, and each frame in the media segment A3c, and each frame in the media segment Bb, and each frame in the media segment Cc as the target position, Add the target full-frame command in the editing area corresponding to the target position; specifically, it may be directly in the editing line of the media frame, directly corresponding to the target position to add the target full-frame command, or in In the editing line of the target full-frame command, add the target full-frame command corresponding to the target position.
通过本发明的实施例,在编辑多段同源媒体片段和多段不同源媒体片段的时候,可以根据本实施例的方法,可以灵活地自动获取到全部的待编辑的媒体片段,对全部的待编辑的媒体片段添加非时序全帧命令,节省了用户编辑时间,提高了媒体编辑效率。Through the embodiments of the present invention, when editing multiple homologous media segments and multiple different source media segments, all media segments to be edited can be flexibly and automatically obtained according to the method of this embodiment, and all media segments to be edited can be flexibly and automatically acquired. Add non-sequential full-frame commands to media clips, which saves user editing time and improves media editing efficiency.
在一实施例中,应用于上述媒体终端,可以包括如下步骤,具体流程图如附图3C所示:In one embodiment, it is applied to the above-mentioned media terminal, and may include the following steps, and the specific flow chart is shown in Figure 3C:
步骤501、响应于所述目标全帧命令为非时序全帧命令,以及未获取到将所述目标全帧命令应用于与所述目标媒体片段同源的媒体片段的指示、以及未获取到将所述目标全帧命令应用于所述目标媒体片段后的待编辑的媒体片段的指示,Step 501, responding to the fact that the target full-frame command is a non-sequence full-frame command, and an indication of applying the target full-frame command to a media segment of the same source as the target media segment is not obtained, and the target full-frame command is not obtained. an indication of the media segment to be edited after the target full frame command is applied to the target media segment,
步骤502,在所述媒体帧的编辑行中,根据所述目标媒体片段获取所述目标全帧命令作用的目标位置;在编辑区对应于所述目标位置添加所述目标全帧命令;具体地,可以是直接在媒体帧的编辑行中,直接对应于所述目标位置添加所述目标全帧命令,也可以是在所述编辑区的目标全帧命令的编辑行中,对应于所述目标位置添加所述目标全帧命令。Step 502, in the editing line of the media frame, obtain the target position of the target full-frame command according to the target media segment; add the target full-frame command in the editing area corresponding to the target position; specifically , can be directly in the edit line of the media frame, directly corresponding to the target position to add the target full frame command, or in the edit line of the target full frame command in the edit area, corresponding to the target position to add the target full frame command.
具体地,可以获取所述目标媒体片段的每一帧的位置作为所述目标位置;或Specifically, the position of each frame of the target media segment may be obtained as the target position; or
以所述目标媒体片段的任一帧位置作为起始帧,在所述媒体帧编辑行中获取所述目标媒体片段中、起始帧的位置后的每一帧的位置作为所述目标位置。Taking any frame position of the target media segment as the starting frame, acquiring the position of each frame in the target media segment after the position of the starting frame in the media frame editing line as the target position.
示例性地,接着上述第一示例,接收到对源媒体片段A添加分割命令后,获取到多个按顺序排列的媒体片段A1,A2,A3,此时可以对A1,A2,A3,分别设置第一源标识符a,来分别标识各个同源媒体片段A1a,A2a,A3a;Exemplarily, following the above-mentioned first example, after receiving the add division command to the source media segment A, a plurality of media segments A1, A2, and A3 arranged in order are obtained, and at this time, A1, A2, and A3 can be respectively set The first source identifier a is used to identify each homologous media segment A1a, A2a, A3a respectively;
示例性地,A1作为目标媒体片段,包括多个媒体帧集合:A11,A12,A13,A14,A15,A16;上述设置了第一源标识符a的媒体片段,按顺序排列为A11a,A12a,A13a,A14 a,A15a,A16a,A2a,A3a;Exemplarily, A1 is used as the target media segment, including a plurality of media frame sets: A1 1 , A1 2 , A1 3 , A1 4 , A1 5 , A1 6 ; the above-mentioned media segment with the first source identifier a set, in order The arrangement is A1 1 a, A1 2 a, A1 3 a, A1 4 a, A1 5 a, A1 6 a, A2a, A3a;
示例性地,如附图2中的帧2ma所示,在任一帧A14 a的位置获取到全帧命令,可以获取任一帧A14 a的目标媒体片段为A1,可以获取所述目标媒体片段A1的每一帧A11a,A12a,A13a,A14 a,A15a,A16a的位置作为所述目标位置;在所述目标全帧命令的编辑行中,对应于所述目标位置添加所述目标全帧命令。Exemplarily, as shown in frame 2ma in accompanying drawing 2, a full-frame command is obtained at the position of any frame A1 4 a, and the target media segment of any frame A1 4 a can be obtained as A1, and the target media segment can be obtained The position of each frame A1 1 a, A1 2 a, A1 3 a, A1 4 a, A1 5 a, A1 6 a of the segment A1 is used as the target position; in the editing line of the target full frame command, the corresponding Adding the target full frame command at the target location.
示例性地,如附图2中的帧2mb所示,在任一帧A14 a的位置获取到全帧命令,可以目标媒体片段A1的任一帧A14 a位置作为起始帧,在所述媒体帧编辑行中获取所述目标媒体片段中、起始帧的位置后的每一帧A14 a,A15a,A16a,的位置作为所述目标位置,在所述目标全帧命令的编辑行中,对应于所述目标位置添加所述目标全帧命令。Exemplarily, as shown in the frame 2mb in the accompanying drawing 2, the full frame command is obtained at the position of any frame A1 4 a, and any frame A1 4 a position of the target media segment A1 can be used as the starting frame, in the Get the position of each frame A1 4 a, A1 5 a, A1 6 a in the target media segment after the position of the start frame in the media frame editing line as the target position, and in the target full frame command In the edit line, add the target full frame command corresponding to the target position.
示例性地,接着上述第二示例,接收到对源媒体片段A添加新增媒体片段B和新增媒体片段C的添加命令,获取到多个按顺序排列的媒体片段A,B,C,此时可以对A,B,C,分别设置第二源标识符b,来分别标识各个同源媒体片段Ab,Bb,Cb,当A是目标媒体片段,可以根据第二源标识符b,提取到其他待编辑的媒体片段B,C;示例性地,A作为目标媒体片段,包括多个媒体帧集合:A1,A2,A3,A4,A5,A6;上述设置了第二源标识符b的媒体片段,按顺序排列为A1b,A2b,A3b,A4 b,A5b,A6b,Bb,Cb;Exemplarily, following the above-mentioned second example, an add command for adding a new media segment B and a new media segment C to the source media segment A is received, and a plurality of media segments A, B, and C arranged in order are obtained, and the When A, B, and C can be respectively provided with a second source identifier b to identify each homologous media segment Ab, Bb, Cb respectively, when A is a target media segment, it can be extracted according to the second source identifier b Other media segments B and C to be edited; Exemplarily, A is used as a target media segment, including a plurality of media frame sets: A 1 , A 2 , A 3 , A 4 , A 5 , A 6 ; Media fragments with source identifier b, arranged in order as A 1 b, A 2 b, A 3 b, A 4 b, A 5 b, A 6 b, Bb, Cb;
示例性地,如附图2中的帧2na所示,在任一帧A14 a的位置获取到全帧命令,可以获取任一帧A14 a的目标媒体片段为A1,可以获取所述目标媒体片段A1的每一帧A1b,A2b,A3b,A4 b,A5b,A6b的位置作为所述目标位置;在编辑区对应于所述目标位置添加所述目标全帧命令;具体地,可以是直接在媒体帧的编辑行中,直接对应于所述目标位置添加所述目标全帧命令,也可以是在所述目标全帧命令的编辑行中,对应于所述目标位置添加所述目标全帧命令。Exemplarily, as shown in frame 2na in accompanying drawing 2, the full-frame command is obtained at the position of any frame A1 4 a, and the target media segment of any frame A1 4 a can be obtained as A1, and the target media can be obtained The position of each frame A 1 b, A 2 b, A 3 b, A 4 b, A 5 b, A 6 b of the fragment A1 is used as the target position; add the target corresponding to the target position in the editing area A full-frame command; specifically, it can be directly in the edit line of the media frame, directly corresponding to the target position to add the target full-frame command, or it can be in the edit line of the target full-frame command, corresponding to The target position is added to the target full frame command.
示例性地,如附图2中的帧2nb所示,在任一帧A4b的位置获取到全帧命令,可以目标媒体片段A1的任一帧A4b位置作为起始帧,在所述媒体帧编辑行中获取所述目标媒体片段中、起始帧的位置后的每一帧A4b,A5b,A6b,的位置作为所述目标位置,在编辑区对应于所述目标位置添加所述目标全帧命令;具体地,可以是直接在媒体帧的编辑行中,直接对应于所述目标位置添加所述目标全帧命令,也可以是在所述目标全帧命令的编辑行中,对应于所述目标位置添加所述目标全帧命令。Exemplarily, as shown in frame 2nb in the accompanying drawing 2, the full frame command is obtained at the position of any frame A 4 b, any frame A 4 b position of the target media segment A1 can be used as the starting frame, in the Get the position of each frame A 4 b, A 5 b, A 6 b in the target media segment after the position of the starting frame in the media frame edit row as the target position, corresponding to the Add the target full-frame command at the target position; specifically, it may be directly in the editing line of the media frame, directly corresponding to the target position to add the target full-frame command, or it may be in the target full-frame command In the edit line, add the target full frame command corresponding to the target position.
示例性地,接着上述第三示例,接收到对源媒体片段A添加分割命令后,获取到多个按顺序排列的媒体片段A1,A2,A3,此时可以对A1,A2,A3,分别设置第一源标识符a,来分别标识各个同源媒体片段A1a,A2a,A3a,再添加新增媒体片段B和新增媒体片段C的添加命令,则按顺序排列的媒体片段为A1a,A2a,A3a,B,C,以及对A1a,A2a,A3a,B,C再设置第二源标识符b,来分别标识各个同源媒体片段和不同源媒体片段A1ab,A2ab,A3ab,Bb,Cb。那么,当A1a是目标媒体片段,可以根据第一源标识符a和/或第二源标识符b,提取到其他待编辑的媒体片段A2,A3,B,C,即获取到待编辑的媒体片段集合为A1ab,A2ab,A3ab,Bb,Cb。Exemplarily, following the above-mentioned third example, after receiving the add division command to the source media segment A, a plurality of media segments A1, A2, and A3 arranged in order are obtained, and at this time, A1, A2, and A3 can be respectively set The first source identifier a is to identify each homologous media segment A1a, A2a, A3a respectively, and then add the addition command of the new media segment B and the new media segment C, then the media segments arranged in order are A1a, A2a, A3a, B, C, and set the second source identifier b for A1a, A2a, A3a, B, C to identify each homologous media segment and different source media segment A1ab, A2ab, A3ab, Bb, Cb respectively. Then, when A1a is the target media segment, other media segments A2, A3, B, and C to be edited can be extracted according to the first source identifier a and/or the second source identifier b, that is, the media to be edited is obtained The set of fragments is A1ab, A2ab, A3ab, Bb, Cb.
示例性地,A1a作为目标媒体片段,包括多个媒体帧集合:A11,A12,A13,A14,A15,A16;则上述设置了第一源标识符a和/或第二源标识符b的媒体片段,按顺序排列为A11ab,A12ab,A13ab,A14 ab,A15ab,A16ab,A2ab,A3ab,Bb,Cb;示例性地,在任一帧A14 a的位置获取到全帧命令,可以获取任一帧A14 a的目标媒体片段为A1,根据目标媒体片段A1的第一源标识符a和或第二源标识符b获取到具有第一源标识符a和或具有第一源标识符b的待编辑的媒体片段集合为A1a,A2a,A3a,Bb,Cb;Exemplarily, A1a is used as a target media segment, including a plurality of media frame sets: A1 1 , A1 2 , A1 3 , A1 4 , A1 5 , A1 6 ; then the first source identifier a and/or the second The media segments of source identifier b are arranged in order as A1 1 ab, A1 2 ab, A1 3 ab, A1 4 ab, A1 5 ab, A1 6 ab, A2ab, A3ab, Bb, Cb; The position of the frame A1 4 a has obtained the full frame command, and the target media segment of any frame A1 4 a can be obtained as A1, and according to the first source identifier a and or the second source identifier b of the target media segment A1, the The first source identifier a and or the set of media segments to be edited with the first source identifier b are A1a, A2a, A3a, Bb, Cb;
示例性地,如附图2中的帧2pa所示,在任一帧A14 ab,的位置获取到全帧命令,可以获取任一帧A14 ab的目标媒体片段为A1,可以获取所述目标媒体片段A1的每一帧A11ab,A12ab,A13ab,A14 ab,A15ab,A16ab的位置作为所述目标位置;在编辑区对应于所述目标位置添加所述目标全帧命令;具体地,可以是直接在媒体帧的编辑行中,直接对应于所述目标位置添加所述目标全帧命令,也可以是在所述目标全帧命令的编辑行中,对应于所述目标位置添加所述目标全帧命令。Exemplarily, as shown in frame 2pa in accompanying drawing 2, at the position of any frame A1 4 ab, a full frame command can be obtained, and the target media fragment of any frame A1 4 ab can be obtained as A1, and the target can be obtained The position of each frame A1 1 ab, A1 2 ab, A1 3 ab, A1 4 ab, A1 5 ab, A1 6 ab of the media segment A1 is used as the target position; in the editing area corresponding to the target position, add the A target full-frame command; specifically, it may be directly in the edit line of the media frame, directly corresponding to the target position to add the target full-frame command, or in the edit line of the target full-frame command, corresponding to Adding the target full frame command at the target location.
示例性地,如附图2中的帧2pb所示,在任一帧A4b的位置获取到全帧命令,可以目标媒体片段A1的任一帧A14 ab位置作为起始帧,在所述媒体帧编辑行中获取所述目标媒体片段中、起始帧的位置后的每一帧A14 ab,A15ab,A16ab的位置作为所述目标位置,在编辑区对应于所述目标位置添加所述目标全帧命令;具体地,可以是直接在媒体帧的编辑行中,直接对应于所述目标位置添加所述目标全帧命令,也可以是在所述目标全帧命令的编辑行中,对应于所述目标位置添加所述目标全帧命令。Exemplarily, as shown in the frame 2pb in the accompanying drawing 2, the full frame command is obtained at the position of any frame A 4 b, and the position of any frame A1 4 ab of the target media segment A1 can be used as the starting frame, in the In the media frame editing row, obtain the position of each frame A1 4 ab, A1 5 ab, and A1 6 ab in the target media segment after the position of the starting frame as the target position, corresponding to the target in the editing area position to add the target full-frame command; specifically, it may be directly in the editing line of the media frame, directly corresponding to the target position to add the target full-frame command, or it may be in the edit of the target full-frame command line, add the target full frame command corresponding to the target position.
示例性地,接着上述第四示例,接收到对源媒体片段A添加分割命令后,获取到多个按顺序排列的媒体片段A1,A2,A3,此时可以对A1,A2,A3,分别设置第三源标识符c,来分别标识各个同源媒体片段A1c,A2c,A3c,再添加新增媒体片段B和新增媒体片段C的添加命令,则按顺序排列的媒体片段为A1c,A2c,A3c,B,C,此时对新增的媒体片段B,C再设置第三源标识符c即可,获取到多个按顺序排列的媒体片段A1c,A2c,A3c,Bc,Cc。Exemplarily, following the above-mentioned fourth example, after receiving the add division command to the source media segment A, a plurality of media segments A1, A2, and A3 arranged in sequence are obtained, and at this time, A1, A2, and A3 can be respectively set The third source identifier c, to respectively identify each homologous media segment A1c, A2c, A3c, and then add the addition command of the new media segment B and the new media segment C, the media segments arranged in order are A1c, A2c, A3c, B, C, at this time, just set the third source identifier c for the newly added media fragments B, C, and obtain multiple media fragments A1c, A2c, A3c, Bc, Cc arranged in sequence.
示例性地,A1c作为目标媒体片段,可以根据第三源标识符c,提取到其他待编辑的媒体片段A2c,A3c,Bc,Cc。A1作为目标媒体片段,包括多个媒体帧:A11,A12,A13,A14,A15,A16;上述设置了第三源标识符c的媒体片段,按顺序排列为A11c,A12c,A13c,A14c,A15c,A16c,A2c,A3c,Bc,Cc。Exemplarily, A1c is used as the target media segment, and other media segments A2c, A3c, Bc, and Cc to be edited can be extracted according to the third source identifier c. A1 is used as the target media segment, including multiple media frames: A1 1 , A1 2 , A1 3 , A1 4 , A1 5 , A1 6 ; the media segment with the third source identifier c set above is arranged in order as A1 1 c , A1 2 c, A1 3 c, A1 4 c, A1 5 c, A1 6 c, A2c, A3c, Bc, Cc.
示例性地,如附图2中的帧2ra所示,在任一帧A14c的位置获取到全帧命令,可以直接获取到任一帧A14c的目标媒体片段为A1c,可以获取所述目标媒体片段A1c的每一帧A11c,A12c,A13c,A14c,A15c,A16c的位置作为所述目标位置;在编辑区对应于所述目标位置添加所述目标全帧命令;具体地,可以是直接在媒体帧的编辑行中,直接对应于所述目标位置添加所述目标全帧命令,也可以是在所述目标全帧命令的编辑行中,对应于所述目标位置添加所述目标全帧命令。Exemplarily, as shown in frame 2ra in accompanying drawing 2, a full-frame command is obtained at the position of any frame A1 4 c, and the target media segment of any frame A1 4 c can be directly obtained as A1c, and the Each frame A1 1 c of target media segment A1c, A1 2 c , A1 3 c, A1 4 c, A1 5 c, the position of A1 6 c as described target position; The target full-frame command; specifically, it may be directly in the editing line of the media frame, directly corresponding to the target position to add the target full-frame command, or in the editing line of the target full-frame command, Adding the target full frame command corresponding to the target position.
示例性地,如附图2中的帧2rb所示,在任一帧A14c的位置获取到全帧命令,可以目标媒体片段A1c的任一帧A14c位置作为起始帧,在所述媒体帧编辑行中获取所述目标媒体片段中、起始帧的位置后的每一帧A14c,A15c,A16c,的位置作为所述目标位置,在编辑区对应于所述目标位置添加所述目标全帧命令;具体地,可以是直接在媒体帧的编辑行中,直接对应于所述目标位置添加所述目标全帧命令,也可以是在所述目标全帧命令的编辑行中,对应于所述目标位置添加所述目标全帧命令。Exemplarily, as shown in frame 2rb in the accompanying drawing 2, a full frame command is obtained at any frame A1 4 c position, any frame A1 4 c position of the target media segment A1c can be used as the starting frame, in the In the media frame editing line, the position of each frame A1 4 c, A1 5 c, A1 6 c after the position of the starting frame in the target media segment is obtained as the target position, corresponding to the Add the target full-frame command at the target position; specifically, it may be directly in the editing line of the media frame, directly corresponding to the target position to add the target full-frame command, or it may be in the target full-frame command In the edit line, add the target full frame command corresponding to the target position.
通过本发明的实施例,在编辑多段同源媒体片段和多段不同源媒体片段的时候,可以根据本实施例的方法,可以灵活地自动获取到正在编辑的媒体片段,仅对正在编辑的媒体片段添加非时序全帧命令,节省了用户编辑时间,提高了媒体编辑效率。Through the embodiments of the present invention, when editing multiple homologous media segments and multiple different source media segments, according to the method of this embodiment, the media segment being edited can be flexibly and automatically obtained, and only the media segment being edited Add non-sequential full-frame command, which saves user editing time and improves media editing efficiency.
在一实施例中,可以在图像用户界面中设计提示控件,用来接收用户通过手动操作的触发信号,来获取到将所述目标全帧命令应用于与所述目标媒体片段同源的媒体片段的指示,或者是应用于所述目标媒体片段后的待编辑的媒体片段的指示,或者是仅应用于本段目标媒体片段的指示,下面将结合图像用户界面图示来具体说明通过提示控件接收人工触发的各种指示。In an embodiment, a prompt control can be designed in the graphical user interface, which is used to receive a trigger signal manually operated by the user to obtain the application of the target full-frame command to a media segment of the same origin as the target media segment , or the indication applied to the media segment to be edited after the target media segment, or the indication applied only to the target media segment of this segment, the following will specifically illustrate receiving through the prompt control in conjunction with the graphic user interface diagram Various indications triggered manually.
如附图1A中的界面1M所示的图像用户界面,媒体帧的编辑行103展示有按顺序排列的待编辑的媒体片段集合,其中阴影标识的媒体片段为同源媒体片段;在获取到对所述媒体帧的编辑行103的目标媒体片段的任一帧位置的全帧命令105后,可以在编辑区展示提示控件106,如附图1A中界面1Aa所示的图像用户界面提示用户是否将该全帧命令应用至全部媒体片段,此时,给出了用户两个选项,可以暂时不添加全帧命令编辑行,在用户通过提示控件106选择不将该全帧命令应用至全部的媒体片段后,切换至如附图1A中界面1Ab所示的图像用户界面;As in the graphical user interface shown in the interface 1M among the accompanying drawings 1A, the editing line 103 of the media frame shows a set of media fragments to be edited in order, wherein the media fragments marked by shadows are homologous media fragments; After the full-frame command 105 of any frame position of the target media segment in the editing line 103 of the media frame, a prompt control 106 can be displayed in the editing area, as shown in the image user interface shown in the interface 1Aa in the accompanying drawing 1A, prompting the user whether to The full-frame command is applied to all media segments. At this time, the user is given two options, the full-frame command edit line can not be added temporarily, and the user selects not to apply the full-frame command to all media segments through the prompt control 106 Afterwards, switch to the graphical user interface as shown in interface 1Ab in accompanying drawing 1A;
再进一步如附图1A中界面1Ab所示,进一步地通过提示控件107提示是否将该全帧命令应用至全帧命令105作用的媒体片段同源的其他媒体片段,此时在如附图1A中的界面1Ab所示的界面中,设置的提示项为“应用至同源媒体”,在附图1A中界面1Ab所示的界面中,显示的是默认用户没有触发提示控件107,则表示在所述目标全帧命令为非时序全帧命令时,未获取到将所述目标全帧命令应用于与所述目标媒体片段同源的媒体片段的指示、以及未获取到将所述目标全帧命令应用于所述目标媒体片段后的待编辑的媒体片段的指示,则执行本实施例的步骤501-步骤502所记载的媒体编辑方法,获取目标全帧命令作用的目标位置;在编辑区对应于所述目标位置添加所述目标全帧命令;本实施例中给出的示例是新建的全帧命令的编辑行104,在所述编辑区的目标全帧命令的编辑行104中,对应于所述目标位置添加所述目标全帧命令,即在全帧命令编辑行104中将该全帧命令仅应用至全帧命令105作用的目标媒体片段;此外,还可以是直接在媒体帧的编辑行中,直接对应于所述目标位置添加所述目标全帧命令,在本示例中没有示出;As shown in the interface 1Ab in the accompanying drawing 1A, it is further prompted by the prompt control 107 whether to apply the full frame command to other media segments of the same source as the media segment of the full frame command 105 effect. In the interface shown in the interface 1Ab, the prompt item set is "apply to the same source media". When the target full-frame command is a non-sequence full-frame command, an indication of applying the target full-frame command to a media segment homologous to the target media segment is not obtained, and the target full-frame command is not obtained After being applied to the instruction of the media segment to be edited after the target media segment, the media editing method described in step 501-step 502 of this embodiment is executed to obtain the target position of the target full-frame command; in the editing area corresponding to The target position is added with the target full-frame command; the example given in this embodiment is the edit line 104 of the new full-frame command, and in the edit line 104 of the target full-frame command in the edit area, corresponding to the Add the target full-frame command at the target position, that is, apply the full-frame command only to the target media segment of the full-frame command 105 in the full-frame command edit line 104; in addition, it can also be directly in the edit line of the media frame , add the target full frame command directly corresponding to the target position, which is not shown in this example;
如果用户触发附图1A中界面1Ab提示控件107,则将该全帧命令应用至全帧命令105作用的媒体片段同源的其他媒体片段,则表示获取到对所述媒体帧的编辑行的目标媒体片段的任一帧位置的目标全帧命令为非时序全帧命令,以及获取到将所述目标全帧命令应用于与所述目标媒体片段同源的媒体片段的指示,执行本实施例的步骤301-步骤302所记载的媒体编辑方法,切换至如附图1A中界面1N所示的编辑界面;If the user triggers the interface 1Ab prompt control 107 in the accompanying drawing 1A, then this full frame command is applied to other media segments of the same source as the media segment that the full frame command 105 acts on, then it means that the target of the edit row to the media frame has been obtained The target full-frame command at any frame position of the media segment is a non-sequential full-frame command, and an indication of applying the target full-frame command to a media segment of the same source as the target media segment is obtained, and the method of this embodiment is executed The media editing method described in step 301-step 302 is switched to the editing interface shown in interface 1N in Figure 1A;
再进一步如附图1A中界面1N所示,在媒体帧的编辑行103中,按照所述待编辑的媒体片段集合中目标媒体片段集合的排列顺序,获取所述目标全帧命令作用的目标位置;在编辑区对应于所述目标位置添加所述目标全帧命令;本实施例中给出的示例是在所述编辑区的目标全帧命令的编辑行104中,对应于所述目标位置添加所述目标全帧命令。此外,还可以是直接在媒体帧的编辑行中,直接对应于所述目标位置添加所述目标全帧命令,在本示例中没有示出。Further as shown in the interface 1N in the accompanying drawing 1A, in the editing line 103 of the media frame, according to the arrangement order of the target media segment set in the media segment set to be edited, obtain the target position of the target full frame command effect ; Add the target full-frame command corresponding to the target position in the editing area; the example given in this embodiment is in the editing line 104 of the target full-frame command in the editing area, add corresponding to the target position The target full frame command. In addition, it is also possible to directly add the target full-frame command in the editing line of the media frame corresponding to the target position, which is not shown in this example.
其中,附附图1B中界面1M的图像用户界面跳转至附图1B中界面1Ea的图像用户界面、附图1B中界面1Eb的图像用户界面再跳转至附图1B中界面1K的图像用户界面的流程与上述附图1A中界面1M的图像用户界面跳转至附图1A中界面1Aa的图像用户界面、附图1A中界面1Ab的图像用户界面再跳转至附图1A中界面1N的图像用户界面的流程相似,区别仅在定位全帧命令的起始位置不同,关于如何定位全帧命令起始帧,在其他实施例中已经说明,此处不多赘述。Wherein, the graphic user interface of interface 1M in the accompanying drawing 1B jumps to the graphic user interface of the interface 1Ea in the accompanying drawing 1B, and the graphic user interface of the interface 1Eb in the accompanying drawing 1B jumps to the graphic user interface of the interface 1K in the accompanying drawing 1B The flow of the interface is the same as that of the above-mentioned graphic user interface of interface 1M in the accompanying drawing 1A jumps to the graphic user interface of the interface 1Aa in the accompanying drawing 1A, and the graphic user interface of the interface 1Ab in the accompanying drawing 1A then jumps to the interface 1N in the accompanying drawing 1A The process of the graphical user interface is similar, and the difference is only in the positioning of the starting position of the full-frame command. About how to locate the starting frame of the full-frame command, it has been described in other embodiments and will not be repeated here.
在一实施例中,如附图1A中界面1M所示的图像用户界面,媒体帧的编辑行103展示有按顺序排列的待编辑的媒体片段集合,其中阴影标识的媒体片段为同源媒体片段;在获取到对所述媒体帧的编辑行103的目标媒体片段的任一帧位置的全帧命令105后,切换到如附图1A中界面1Ba所示的图像用户界面,在该图像用户界面中可以在编辑区展示提示控件106,该提示控件106用于提示用户不将该全帧命令应用至全部媒体片段;In one embodiment, as shown in the graphical user interface shown in the interface 1M in the accompanying drawing 1A, the editing line 103 of the media frame shows a set of media fragments to be edited in order, wherein the media fragments identified by the shade are homologous media fragments ; After obtaining the full frame command 105 of any frame position of the target media segment of the editing row 103 of the media frame, switch to the graphical user interface shown in interface 1Ba in the accompanying drawing 1A, in this graphical user interface In the editing area, a prompt control 106 can be displayed, and the prompt control 106 is used to prompt the user not to apply the full frame command to all media segments;
附图1A中界面1Ba中给出提示控件106未被触发的一种实现方式,在附图1A中界面1Ba中的提示控件106未被触发时,则表示所述目标全帧命令为非时序全帧命令,以及获取到将该全帧命令应用至全部待编辑的媒体片段,即将所述目标全帧命令应用于所述目标媒体片段后的待编辑的媒体片段,在获取到对所述媒体帧的编辑行103的目标媒体片段的任一帧位置的全帧命令105后,切换到如附图1A中界面1Ba所示的图像用户界面,在附图1A中界面1Ba中默认的是将该全帧命令应用目标媒体片段后的待编辑的媒体片段,在获取到对所述媒体帧的编辑行103的目标媒体片段的任一帧位置的全帧命令105后,可以直接以目标媒体片段的起始帧为目标位置,在编辑区对应于所述目标位置添加所述目标全帧命令;本实施例中给出的示例是新建的全帧命令的编辑行104,在所述编辑区的目标全帧命令的编辑行104中,对应于所述目标位置后续位置无限添加所述目标全帧命令,如附图1A中界面1Ba中目标全帧命令的编辑行104所示;此外,还可以是直接在媒体帧的编辑行中,直接对应于所述目标位置添加所述目标全帧命令,在本示例中没有示出;Provided in the interface 1Ba of accompanying drawing 1A is a kind of implementation mode that prompt control 106 is not triggered, when the prompt control 106 in the interface 1Ba of accompanying drawing 1A is not triggered, it means that the target full frame command is a non-sequential full frame command. frame command, and obtain the full frame command applied to all media segments to be edited, that is, apply the target full frame command to the media segment to be edited after the target media segment, after obtaining the media frame After the full-frame command 105 of any frame position of the target media segment of the editing row 103, switch to the graphical user interface shown in interface 1Ba in accompanying drawing 1A, default in the interface 1Ba in accompanying drawing 1A is to set the full frame The media segment to be edited after the frame command applies the target media segment, after obtaining the full frame command 105 of any frame position of the target media segment in the editing row 103 of the media frame, can directly start with the target media segment The initial frame is the target position, and the target full-frame command is added corresponding to the target position in the editing area; the example given in this embodiment is the edit row 104 of the new full-frame command, and the target full-frame command in the editing area is In the editing row 104 of frame command, the target full frame command is added infinitely corresponding to the subsequent position of the target position, as shown in the editing row 104 of the target full frame command in interface 1Ba among the accompanying drawings 1A; in addition, it can also be directly In the editing line of the media frame, add the target full frame command directly corresponding to the target position, which is not shown in this example;
在附图1A中界面1Ba中的提示控件106被触发时,则表示不将该全帧命令应用至全部媒体片段,此时切换到如附图1A中界面1Bb所示的图像用户界面,在该图像用户界面中可以在编辑区展示提示控件107,该提示控件107用于提示用户是否该全帧命令应用至同源媒体片段;When the prompt control 106 in the interface 1Ba among the accompanying drawings 1A is triggered, it means that the full-frame command is not applied to all media segments, and now switches to the graphical user interface shown in the interface 1Bb among the accompanying drawings 1A, in this In the graphical user interface, a prompt control 107 can be displayed in the editing area, and the prompt control 107 is used to prompt the user whether the full-frame command is applied to the same-source media segment;
在附图1A中界面1Bb中的提示控件107未被触发,则表示所述目标全帧命令为非时序全帧命令,以及未获取到将所述目标全帧命令应用于与所述目标媒体片段同源的媒体片段的指示、以及未获取到将所述目标全帧命令应用于所述目标媒体片段后的待编辑的媒体片段的指示;可以执行本实施例的步骤501-步骤502所记载的媒体编辑方法,在所述媒体帧的编辑行103中,根据所述目标媒体片段(附图1A中界面1Bb中的第一段阴影片段)获取所述目标全帧命令作用的目标位置;在编辑区对应于所述目标位置添加所述目标全帧命令;本实施例中给出的示例是在所述编辑区的目标全帧命令的编辑行104中,对应于所述目标位置添加所述目标全帧命令。此外,还可以是直接在媒体帧的编辑行中,直接对应于所述目标位置添加所述目标全帧命令,在本示例中没有示出;If the prompt control 107 in the interface 1Bb in the accompanying drawing 1A is not triggered, it means that the target full frame command is a non-sequential full frame command, and it is not obtained to apply the target full frame command to the target media segment The indication of the media segment of the same source, and the indication of the media segment to be edited after applying the target full frame command to the target media segment is not obtained; the steps described in step 501-step 502 of this embodiment can be executed Media editing method, in the edit row 103 of described media frame, obtain the target position of described target full-frame order effect according to described target media segment (the first segment shadow segment in interface 1Bb among the accompanying drawings 1A); area corresponding to the target position to add the target full-frame command; the example given in this embodiment is to add the target corresponding to the target position in the editing line 104 of the target full-frame command in the edit area Full frame command. In addition, it is also possible to directly add the target full-frame command directly corresponding to the target position in the editing line of the media frame, which is not shown in this example;
在附图1A中界面1Bb中的提示控件107被触发,则将该全帧命令应用至全帧命令105作用的媒体片段同源的其他媒体片段,则表示获取到对所述媒体帧的编辑行的目标媒体片段的任一帧位置的目标全帧命令为非时序全帧命令,以及获取到将所述目标全帧命令应用于与所述目标媒体片段同源的媒体片段的指示,执行本实施例的步骤301-步骤302所记载的媒体编辑方法,切换至如附图1A中界面1N所示的编辑界面,When the prompt control 107 in the interface 1Bb in the accompanying drawing 1A is triggered, then the full frame command is applied to other media segments of the same source as the media segment that the full frame command 105 acts on, then it means that the edit line to the media frame is obtained The target full-frame command at any frame position of the target media segment is a non-sequential full-frame command, and an instruction to apply the target full-frame command to a media segment with the same source as the target media segment is obtained, and this implementation The media editing method described in steps 301-step 302 of the example is switched to the editing interface shown in interface 1N in the accompanying drawing 1A,
再进一步如附图1A中界面1N所示,在媒体帧的编辑行103中,按照所述待编辑的媒体片段集合中目标媒体片段集合的排列顺序,获取所述目标全帧命令作用的目标位置;在编辑区对应于所述目标位置添加所述目标全帧命令;本实施例中给出的示例是在所述编辑区的目标全帧命令的编辑行104中,对应于所述目标位置添加所述目标全帧命令;此外,还可以是直接在媒体帧的编辑行中,直接对应于所述目标位置添加所述目标全帧命令,在本示例中没有示出;Further as shown in the interface 1N in the accompanying drawing 1A, in the editing line 103 of the media frame, according to the arrangement order of the target media segment set in the media segment set to be edited, obtain the target position of the target full frame command effect ; Add the target full-frame command corresponding to the target position in the editing area; the example given in this embodiment is in the editing line 104 of the target full-frame command in the editing area, add corresponding to the target position The target full-frame command; in addition, the target full-frame command can also be added directly in the edit line of the media frame directly corresponding to the target position, which is not shown in this example;
其中,附图1B中界面1M的图像用户界面跳转至附图1B中界面1Fa的图像用户界面、附图1B中界面1Fb的图像用户界面再跳转至附图1B中界面1K的图像用户界面的流程与上述附图1A中界面1M的图像用户界面跳转至附图1A中界面1Ba的图像用户界面、附图1A中界面1Bb的图像用户界面再跳转至附图1A中界面1N的图像用户界面的流程相似,区别仅在定位全帧命令的起始位置不同,关于如何定位全帧命令起始帧,在其他实施例中已经说明,此处不多赘述。Wherein, the graphical user interface of interface 1M in the accompanying drawing 1B jumps to the graphical user interface of the interface 1Fa in the accompanying drawing 1B, and the graphical user interface of the interface 1Fb in the accompanying drawing 1B jumps to the graphical user interface of the interface 1K in the accompanying drawing 1B again The process and the above-mentioned graphic user interface of interface 1M in the accompanying drawing 1A jump to the image user interface of the interface 1Ba in the accompanying drawing 1A, and the image user interface of the interface 1Bb in the accompanying drawing 1A jumps to the image of the interface 1N in the accompanying drawing 1A The flow of the user interface is similar, and the difference is only in locating the start position of the full-frame command. As for how to locate the start frame of the full-frame command, it has been described in other embodiments, and will not be repeated here.
附图1A中界面1Ca中给出提示控件106未被触发的另一种实现方式,在附图1A中界面1Ca中提示控件106未被触发时,在附图1A中界面1Ca中默认的是将该全帧命令应用至全部媒体片段,如附图1A中界面1Ca所示,在获取到对所述媒体帧的编辑行103的目标媒体片段的任一帧位置的全帧命令105后,可以执行本实施例的步骤401-步骤402所记载的媒体编辑方法,获取目标全帧命令作用的目标位置;在编辑区对应于所述目标位置添加所述目标全帧命令;本实施例中给出的示例是新建的全帧命令的编辑行104,在所述编辑区的目标全帧命令的编辑行104中,对应于所述目标位置添加所述目标全帧命令,即在全帧命令编辑行104中将该全帧命令应用至目标媒体片段后的待编辑的媒体片段,如附图1A中界面1Ca中目标全帧命令的编辑行104所示;此外,还可以是直接在媒体帧的编辑行中,直接对应于所述目标位置添加所述目标全帧命令,在本示例中没有示出;In the interface 1Ca in the accompanying drawing 1A, there is another implementation mode in which the prompt control 106 is not triggered. The full frame command is applied to all media segments, as shown in the interface 1Ca in the accompanying drawing 1A, after obtaining the full frame command 105 of any frame position of the target media segment in the editing row 103 of the media frame, it can be executed The media editing method described in step 401-step 402 of the present embodiment obtains the target position of the target full-frame command effect; adds the target full-frame command in the editing area corresponding to the target position; provided in the present embodiment Example is the edit line 104 of the new full-frame command, in the edit line 104 of the target full-frame command in the editing area, add the target full-frame command corresponding to the target position, that is, in the full-frame command edit line 104 The media segment to be edited after the full frame command is applied to the target media segment, as shown in the editing line 104 of the target full frame command in the interface 1Ca among the accompanying drawings 1A; in addition, it can also be directly in the editing line of the media frame , add the target full frame command directly corresponding to the target position, which is not shown in this example;
在附图1A中界面1Ca中的提示控件106被触发时,则表示不将该全帧命令应用至全部媒体片段,此时切换到如附图1A中界面1Cb所示的图像用户界面,在该图像用户界面中可以在编辑区展示提示控件107,该提示控件107用于提示用户是否该全帧命令应用至同源媒体片段;When the prompt control 106 in the interface 1Ca in the accompanying drawing 1A is triggered, it means that the full frame command is not applied to all media segments, and now switch to the graphical user interface shown in the interface 1Cb in the accompanying drawing 1A, in this In the graphical user interface, a prompt control 107 can be displayed in the editing area, and the prompt control 107 is used to prompt the user whether the full-frame command is applied to the same-source media segment;
在附图1A中界面1Cb中的提示控件107未被触发,则表示所述目标全帧命令为非时序全帧命令,以及未获取到将所述目标全帧命令应用于与所述目标媒体片段同源的媒体片段的指示、以及未获取到将所述目标全帧命令应用于所述目标媒体片段后的待编辑的媒体片段的指示;可以执行本实施例的步骤501-步骤502所记载的媒体编辑方法,在所述媒体帧的编辑行103中,根据所述目标媒体片段(附图1A中界面1Cb中的第一段阴影片段)获取所述目标全帧命令作用的目标位置;在编辑区对应于所述目标位置添加所述目标全帧命令;本实施例中给出的示例是在所述编辑区的目标全帧命令的编辑行104中,对应于所述目标位置添加所述目标全帧命令。此外,还可以是直接在媒体帧的编辑行中,直接对应于所述目标位置添加所述目标全帧命令,在本示例中没有示出;If the prompt control 107 in the interface 1Cb in the accompanying drawing 1A is not triggered, it means that the target full frame command is a non-sequential full frame command, and it is not obtained to apply the target full frame command to the target media segment The indication of the media segment of the same source, and the indication of the media segment to be edited after applying the target full frame command to the target media segment is not obtained; the steps described in step 501-step 502 of this embodiment can be executed Media editing method, in the edit line 103 of described media frame, obtain the target position of described target full-frame order effect according to described target media segment (the first segment shadow segment in interface 1Cb among the accompanying drawings 1A); area corresponding to the target position to add the target full-frame command; the example given in this embodiment is to add the target corresponding to the target position in the editing line 104 of the target full-frame command in the edit area Full frame command. In addition, it is also possible to directly add the target full-frame command directly corresponding to the target position in the editing line of the media frame, which is not shown in this example;
在附图1A中界面1Cb中的提示控件107被触发,则将该全帧命令应用至全帧命令105作用的媒体片段同源的其他媒体片段,则表示获取到对所述媒体帧的编辑行的目标媒体片段的任一帧位置的目标全帧命令为非时序全帧命令,以及获取到将所述目标全帧命令应用于与所述目标媒体片段同源的媒体片段的指示,执行本实施例的步骤301-步骤302所记载的媒体编辑方法,切换至如附图1A中界面1N所示的编辑界面,When the prompt control 107 in the interface 1Cb in the accompanying drawing 1A is triggered, then the full frame command is applied to other media segments of the same source as the media segment that the full frame command 105 acts on, then it means that the edit line to the media frame has been obtained The target full-frame command at any frame position of the target media segment is a non-sequential full-frame command, and an instruction to apply the target full-frame command to a media segment with the same source as the target media segment is obtained, and this implementation The media editing method described in steps 301-step 302 of the example is switched to the editing interface shown in interface 1N in the accompanying drawing 1A,
再进一步如附图1A中界面1N所示,在媒体帧的编辑行103中,按照所述待编辑的媒体片段集合中目标媒体片段集合的排列顺序,获取所述目标全帧命令作用的目标位置;在编辑区对应于所述目标位置添加所述目标全帧命令;本实施例中给出的示例是在所述编辑区的目标全帧命令的编辑行104中,对应于所述目标位置添加所述目标全帧命令。此外,还可以是直接在媒体帧的编辑行中,直接对应于所述目标位置添加所述目标全帧命令,在本示例中没有示出;Further as shown in the interface 1N in the accompanying drawing 1A, in the editing line 103 of the media frame, according to the arrangement order of the target media segment set in the media segment set to be edited, obtain the target position of the target full frame command effect ; Add the target full-frame command corresponding to the target position in the editing area; the example given in this embodiment is in the editing line 104 of the target full-frame command in the editing area, add corresponding to the target position The target full frame command. In addition, it is also possible to directly add the target full-frame command directly corresponding to the target position in the editing line of the media frame, which is not shown in this example;
其中,附图1B中界面1M的图像用户界面跳转至附图1B中界面1Ga的图像用户界面、附图1B中界面1Gb的图像用户界面再跳转至附图1B中界面1K的图像用户界面的流程与上述附图1A中界面1M的图像用户界面跳转至附图1A中界面1Ca的图像用户界面、附图1A中界面1Cb的图像用户界面再跳转至附图1A中界面1N的图像用户界面的流程相似,区别仅在定位全帧命令的起始位置不同,关于如何定位全帧命令起始帧,在其他实施例中已经说明,此处不多赘述。Wherein, the graphical user interface of interface 1M in the accompanying drawing 1B jumps to the graphical user interface of the interface 1Ga in the accompanying drawing 1B, and the graphical user interface of the interface 1Gb in the accompanying drawing 1B jumps to the graphical user interface of the interface 1K in the accompanying drawing 1B again The process and the above-mentioned graphical user interface of interface 1M in the accompanying drawing 1A jump to the graphical user interface of the interface 1Ca in the accompanying drawing 1A, the graphical user interface of the interface 1Cb in the accompanying drawing 1A jumps to the image of the interface 1N in the accompanying drawing 1A The flow of the user interface is similar, and the difference is only in locating the start position of the full-frame command. As for how to locate the start frame of the full-frame command, it has been described in other embodiments, and will not be repeated here.
采用本发明的上述实施例的方案,对于在待编辑的媒体片段分别来自不同的源媒体时,比如用户在即拍摄的一段素材,在编辑器中剪辑为多段同源媒体片段,同时又添加了一段电视剧的媒体片段用于合成,此时需要对同源媒体片段添加滤镜效果(示例性地非时序的全帧命令),利用本实施例的方案可以灵活地对同源媒体片段添加非时序的全帧命令,节省了用户的编辑时间,提高了编辑效率。Adopt the scheme of the above-mentioned embodiment of the present invention, when the media segment to be edited respectively comes from different source media, such as a piece of material that the user is about to shoot, it is edited into multiple segments of the same source media segment in the editor, and a segment is added at the same time. The media segment of the TV series is used for synthesis. At this time, it is necessary to add a filter effect (exemplarily a non-sequential full-frame command) to the same-source media segment. The solution of this embodiment can flexibly add a non-sequential command to the same-source media segment. Full-frame commands save users' editing time and improve editing efficiency.
同时采用本发明的上述实施例的方案,在设计提示控件时,采用单一提示控件设计(如附图1A中界面1Ba中的提示控件106,如附图1A中界面1Bc中的提示控件107等),在用户未触发提示控件时给出一种默认结果(如附图1A中界面1Ba中的全帧命令编辑行104,如附图1A中界面1Bc中的全帧命令编辑行104等),节省了用户获取该项结果前的触发选择操作。Adopt the scheme of above-mentioned embodiment of the present invention simultaneously, when designing prompt control, adopt single prompt control design (as the prompt control 106 in the interface 1Ba among the accompanying drawings 1A, as the prompt control 107 etc. in the interface 1Bc among the accompanying drawings 1A) , when the user does not trigger the prompt control, a default result is given (such as the full-frame command edit line 104 in the interface 1Ba among the accompanying drawings 1A, such as the full-frame command edit line 104 in the interface 1Bc among the accompanying drawings 1A, etc.), saving The trigger selection operation before the user obtains the result.
在另一实施例中,可以不必在图像用户界面中设计提示控件,用来接收用户通过手动操作的触发信号,而是直接依靠人工智能技术对待编辑的媒体片段集合进行自动化识别,根据待编辑的媒体片段集合的各项特征,判断出来是将所述目标全帧命令应用于与所述目标媒体片段同源的媒体片段、或者是应用于所述目标媒体片段后的待编辑的媒体片段,或者是仅应用于本段目标媒体片段,从而进一步自动化地给出指示。In another embodiment, it is not necessary to design a prompt control in the graphical user interface to receive the trigger signal manually operated by the user, but directly rely on artificial intelligence technology to automatically identify the set of media clips to be edited, according to the The various characteristics of the media segment set determine that the target full frame command is applied to a media segment of the same source as the target media segment, or is applied to a media segment to be edited after the target media segment, or is only applied to this segment of the target media segment, thereby further automatically giving the indication.
示例性地,当识别出待编辑的媒体片段集合存在与所述目标媒体片段同源的媒体片段,以及存在与所述目标媒体片段非同源的媒体片段,且与所述目标媒体片段同源的媒体片段均为原创媒体片段,非同源的媒体片段为非原创媒体片段;可以自动触发将所述目标全帧命令应用于与所述目标媒体片段同源的媒体片段的指示;其中原创媒体片段可以是在媒体库中不存在与其相同或者相关联的媒体片段(例如:某个未发布的自行拍摄片段),非原创媒体片段可以是在媒体库中存在与其相同或者相关联的媒体片段(例如:某个电视剧的剪辑片段);Exemplarily, when it is identified that there is a media segment homologous to the target media segment in the set of media segments to be edited, and there is a media segment non-homologous to the target media segment and homologous to the target media segment The media fragments are all original media fragments, and the non-homologous media fragments are non-original media fragments; the instruction to apply the target full frame command to the media fragments of the same source as the target media fragment can be automatically triggered; the original media A segment may be a media segment that is not identical or associated with it in the media library (for example: an unpublished self-shooting segment), and a non-original media segment may be a media segment that is identical or associated with it in the media library ( For example: a clip from a TV series);
示例性地,当识别出待编辑的媒体片段集合存在与所述目标媒体片段同源的媒体片段、以及存在与所述目标媒体片段非同源的媒体片段,且均为原创媒体片段,可以自动触发将所述目标全帧命令应用于所述目标媒体片段后的待编辑的媒体片段;Exemplarily, when it is recognized that there are media segments homologous to the target media segment and media segments non-homologous to the target media segment in the set of media segments to be edited, both of which are original media segments, it may be automatically triggering the application of the target full frame command to the media segment to be edited after the target media segment;
示例性地,当识别出待编辑的媒体片段集合中不存在与所述目标媒体片段同源的媒体片段,可以自动触发将所述目标全帧命令应用于与所述目标媒体片段的指示。Exemplarily, when it is identified that there is no media segment homologous to the target media segment in the set of media segments to be edited, an instruction to apply the target full frame command to the target media segment may be automatically triggered.
采用本发明的上述实施例的方案,对于在待编辑的媒体片段即包括多段同源媒体片段,也包括多段不同的源媒体片段时,可以灵活地选择是对同源媒体片段添加非时序的全帧命令,还是对全部媒体片段添加非时序的全帧命令,亦或者是对正在编辑的本段媒体片段添加非时序的全帧命令,提高了编辑软件的灵活可用性,节省了用户的编辑时间,提高了编辑效率。Adopt the solution of the above-mentioned embodiment of the present invention, when the media segment to be edited promptly includes multiple segments of the same source media segment, and also includes multiple segments of different source media segments, it can be flexibly selected to add a non-chronological full sequence to the same source media segment. Frame commands, or add non-sequential full-frame commands to all media segments, or add non-sequential full-frame commands to the current media segment being edited, which improves the flexibility and usability of editing software and saves users' editing time. Editing efficiency has been improved.
在一实施例中,应用于上述媒体终端,可以包括如下步骤,具体流程图如附图3d所示:In one embodiment, the application to the above-mentioned media terminal may include the following steps, and the specific flow chart is shown in Figure 3d:
步骤601、响应于所述目标全帧命令为时序全帧命令,其中所述时序全帧命令为作用于所述目标媒体片段的每一帧、且与时序有关的控制命令,Step 601, in response to the target full-frame command being a timing full-frame command, wherein the timing full-frame command is a timing-related control command that acts on each frame of the target media segment,
以所述目标媒体片段的所述任一帧位置为起始帧,或以所述目标媒体片段的第一帧位置为起始帧;以及Start with the arbitrary frame position of the target media segment, or use the first frame position of the target media segment as the start frame; and
按照所述待编辑的媒体片段集合的排列顺序,在所述媒体帧编辑行中获取待编辑的媒体片段集合中、所述起始帧的位置后的每一媒体片段的每一帧的位置作为目标位置;According to the order of arrangement of the media segment set to be edited, the position of each frame of each media segment after the position of the start frame in the media frame edit row is acquired as target location;
步骤602、在所述编辑区的全帧命令的编辑行中,对应于所述目标位置以及所述目标位置后续位置无限添加所述全帧命令。本发明的实施例,除了可以在对非时序全帧命令的作用范围灵活选择时,还可以配合时序性全帧命令一并用于编辑,提高了编辑软件的灵活可用性,节省了用户的编辑时间,提高了编辑效率。Step 602: In the editing line of the full-frame command in the editing area, infinitely add the full-frame command corresponding to the target position and subsequent positions of the target position. In the embodiment of the present invention, in addition to the flexible selection of the scope of action of the non-sequential full-frame command, it can also be used for editing together with the sequential full-frame command, which improves the flexible usability of the editing software and saves the user's editing time. Editing efficiency has been improved.
示例性地,接着上述第一示例,接收到对源媒体片段A添加分割命令后,获取到多个按顺序排列的媒体片段A1,A2,A3,此时可以对A1,A2,A3,分别设置第一源标识符a,来分别标识各个同源媒体片段A1a,A2a,A3a,当A1a是目标媒体片段,可以根据第一源标识符a,提取到A1a的同源媒体片段A2a,A3a;Exemplarily, following the above-mentioned first example, after receiving the add division command to the source media segment A, a plurality of media segments A1, A2, and A3 arranged in order are obtained, and at this time, A1, A2, and A3 can be respectively set The first source identifier a is used to identify each homologous media segment A1a, A2a, A3a respectively. When A1a is the target media segment, the homologous media segment A2a, A3a of A1a can be extracted according to the first source identifier a;
示例性地,A1作为目标媒体片段,包括多个媒体帧集合:A11,A12,A13,A14,A15,A16;则上述设置了第一源标识符a的媒体片段,按顺序排列为A11a,A12a,A13a,A14a,A15a,A16a,A2a,A3a;示例性地,在任一帧A14 a的位置获取到全帧命令,可以以所述目标媒体片段的所述任一帧A14 a位置为起始帧,按照所述待编辑的媒体片段集合的排列顺序,在所述媒体帧编辑行中获取待编辑的媒体片段集合中、媒体片段A1a中起始帧的位置后的A14a,A15a,A16a,媒体片段A2a每一帧位置,媒体片段A3a的每一帧的位置作为目标位置,Exemplarily, A1 is used as a target media segment, including a plurality of media frame sets: A1 1 , A1 2 , A1 3 , A1 4 , A1 5 , A1 6 ; then the media segment with the first source identifier a set above, press The sequence is A1 1 a, A1 2 a, A1 3 a, A1 4 a, A1 5 a, A1 6 a, A2a, A3a; for example, if the full frame command is obtained at the position of A1 4 a in any frame, it can be Taking the position of any frame A1 4 a of the target media segment as the starting frame, according to the arrangement order of the media segment set to be edited, obtain the set of media segments to be edited in the media frame editing line , A1 4 a, A1 5 a, A1 6 a after the position of the starting frame in the media segment A1a, the position of each frame of the media segment A2a, and the position of each frame of the media segment A3a as the target position,
示例性地,如附图2所示的帧2ta所示,在所述全帧命令的编辑行中,对应于所述目标位置以及所述目标位置后续位置无限添加所述全帧命令。Exemplarily, as shown in frame 2ta shown in FIG. 2 , in the editing line of the full-frame command, the full-frame command is infinitely added corresponding to the target position and subsequent positions of the target position.
示例性地,在任一帧A14 a的位置获取到全帧命令,可以以所述目标媒体片段的第一帧A11a位置为起始帧,按照所述待编辑的媒体片段集合的排列顺序,在所述媒体帧编辑行中获取待编辑的媒体片段集合中、媒体片段A1a中起始帧的位置后的A11a,A12a,A13a,A14a,A15a,A16a,媒体片段A2a每一帧位置,媒体片段A3a的每一帧的位置作为目标位置,Exemplarily, if the full-frame command is obtained at the position of any frame A1 4 a, the first frame A1 1 a position of the target media segment can be used as the starting frame, according to the arrangement order of the set of media segments to be edited , A1 1 a, A1 2 a, A1 3 a, A1 4 a, A1 5 a, A1 after the position of the start frame in the media segment A1a in the set of media segments to be edited are acquired in the media frame editing row 6 a, the position of each frame of the media segment A2a, the position of each frame of the media segment A3a as the target position,
示例性地,如附图2所示的帧2tb所示,在所述全帧命令的编辑行中,对应于所述目标位置以及所述目标位置后续位置无限添加所述全帧命令。Exemplarily, as shown in frame 2tb shown in FIG. 2 , in the editing line of the full-frame command, the full-frame command is infinitely added corresponding to the target position and subsequent positions of the target position.
以下将详细描述本发明的一个或多个实施例的媒体编辑装置。本领域技术人员可以理解,这些装置均可使用市售的硬件组件通过本方案所教导的步骤进行配置来构成。The media editing device of one or more embodiments of the present invention will be described in detail below. Those skilled in the art can understand that these devices can be configured by using commercially available hardware components through the steps taught in this solution.
图4为本发明实施例提供的一种媒体编辑装置的结构示意图,如图4所示,该装置包括:所述装置包括:获取模块11以及添加模块12,FIG. 4 is a schematic structural diagram of a media editing device provided by an embodiment of the present invention. As shown in FIG. 4 , the device includes: the device includes: an acquisition module 11 and an addition module 12,
获取模块11,其用于响应于获取到对所述媒体帧编辑行的目标媒体片段的任一帧位置的目标全帧命令为非时序全帧命令,以及获取到将所述目标全帧命令应用于与所述目标媒体片段同源的媒体片段的指示;其中,所述非全帧命令为作用于所述目标媒体片段的每一帧、且与时序无关的控制命令,所述目标媒体片段为待编辑的媒体片段集合中的任一个媒体片段,所述待编辑的媒体片段集合为在所述媒体帧编辑行加载的全部媒体片段,所述待编辑的媒体片段集合在所述媒体帧编辑行具有排列顺序;Obtaining module 11, which is used to respond to obtaining the target full frame command of any frame position of the target media segment in the edit row of the media frame is a non-sequential full frame command, and obtaining the target full frame command to apply An indication of a media segment homologous to the target media segment; wherein the non-full-frame command is a control command that acts on each frame of the target media segment and has nothing to do with timing, and the target media segment is Any media segment in the set of media segments to be edited, the set of media segments to be edited is all the media segments loaded in the media frame edit line, the set of media segments to be edited is in the media frame edit line have a sort order;
根据所述目标媒体片段的第一源标识符,在所述待编辑的媒体片段集合中获取与所述目标媒体片段具有第一源标识符的目标媒体片段集合,其中,所述第一源标识符为用于标识与所述目标媒体片段同源的媒体片段的标识符;According to the first source identifier of the target media segment, obtain a target media segment set having a first source identifier with the target media segment in the set of media segments to be edited, wherein the first source identifier The symbol is an identifier for identifying a media segment homologous to the target media segment;
添加模块12,其用于在所述媒体帧的编辑行中,按照所述待编辑的媒体片段集合中所述目标媒体片段集合的排列顺序,获取所述目标全帧命令作用的目标位置;Adding module 12, it is used for, in the editing line of described media frame, according to the arrangement order of described target media segment set in the media segment set to be edited, obtain the target position of the effect of described target full frame command;
在所述编辑区的目标全帧命令的编辑行中,对应于所述目标位置添加所述目标全帧命令。In the editing line of the target full-frame command in the editing area, add the target full-frame command corresponding to the target position.
所述添加模块12,具体还用于获取所述目标媒体片段集合每一媒体片段的每一帧的位置作为所述目标位置;或The adding module 12 is also specifically configured to acquire the position of each frame of each media segment in the target media segment set as the target position; or
以所述目标媒体片段的所述任一帧位置为起始帧,以及按照所述待编辑的媒体片段集合中所述目标媒体片段集合的排列顺序,在所述媒体帧编辑行中获取所述目标媒体片段集合中、所述起始帧的位置后的每一媒体片段的每一帧的位置作为所述目标位置。Taking the any frame position of the target media segment as the starting frame, and according to the arrangement order of the target media segment set in the media segment set to be edited, obtain the The position of each frame of each media segment after the position of the start frame in the set of target media segments is used as the target position.
所述获取模块11,还用于响应于所述目标全帧命令为非时序全帧命令,以及获取到将所述目标全帧命令应用于所述目标媒体片段后的待编辑的媒体片段的指示,The obtaining module 11 is also configured to respond to the target full frame command being a non-sequential full frame command, and obtain an indication of the media segment to be edited after the target full frame command is applied to the target media segment ,
获取所述待编辑的媒体片段集合,其中,所述待编辑的媒体片段集合为根据所述目标媒体片段的第一源标识符和/或第二源标识符获取,或根据所述目标媒体片段的第三源标识符获取,所述第一源标识符为用于标识与所述目标媒体片段同源的媒体片段的标识符,所述第二源标识符为用于标识与所述目标媒体片段不同源的媒体片段的标识符,所述第三源标识符为用于标识与所述目标媒体片段同源的媒体片段和/或不同源的媒体片段的标识符;Acquiring the set of media segments to be edited, wherein the set of media segments to be edited is acquired according to the first source identifier and/or the second source identifier of the target media segment, or according to the target media segment The third source identifier is obtained, the first source identifier is an identifier for identifying a media segment that is homologous to the target media segment, and the second source identifier is an identifier for identifying a media segment that is identical to the target media segment An identifier of a media segment of a different source, the third source identifier is an identifier for identifying a media segment of the same source as the target media segment and/or a media segment of a different source;
所述添加模块12,具体还用于在所述媒体帧的编辑行中,按照所述待编辑的媒体片段集合的排列顺序,获取所述目标全帧命令作用的目标位置,The adding module 12 is specifically further configured to acquire the target position of the target full frame command in the edit line of the media frame according to the arrangement order of the set of media segments to be edited,
在所述编辑区的目标全帧命令的编辑行中,对应于所述目标位置添加所述目标全帧命令。In the editing line of the target full-frame command in the editing area, add the target full-frame command corresponding to the target position.
所述添加模块12,具体还用于按照所述待编辑的媒体片段集合的排列顺序,在所述媒体帧编辑行中获取待编辑的媒体片段集合的每一媒体片段的每一帧的位置作为所述目标位置;或The adding module 12 is also specifically configured to obtain the position of each frame of each media segment of the media segment set to be edited in the media frame edit line according to the arrangement order of the media segment set to be edited as the target location; or
以所述目标媒体片段的所述任一帧位置为起始帧,以及按照所述待编辑的媒体片段集合的排列顺序,在所述媒体帧编辑行中获取待编辑的媒体片段集合中、所述起始帧的位置后的每一媒体片段的每一帧的位置作为所述目标位置。Taking the any frame position of the target media segment as the starting frame, and according to the order of arrangement of the media segment set to be edited, in the media frame editing line, obtain the media segment set to be edited, all The position of each frame of each media segment following the position of the start frame is used as the target position.
所述获取模块11,具体还用于响应于所述目标全帧命令为非时序全帧命令,以及未获取到将所述目标全帧命令应用于与所述目标媒体片段同源的媒体片段的指示、以及未获取到将所述目标全帧命令应用于所述目标媒体片段后的待编辑的媒体片段的指示,The obtaining module 11 is also specifically configured to respond to the target full frame command being a non-sequential full frame command, and not obtaining the application of the target full frame command to a media segment homologous to the target media segment an indication, and an indication of the media segment to be edited after the target full frame command is applied to the target media segment is not obtained,
所述添加模块12,具体还用于在所述媒体帧的编辑行中,根据所述目标媒体片段获取所述目标全帧命令作用的目标位置;The adding module 12 is specifically further configured to obtain the target position of the target full frame command according to the target media segment in the edit line of the media frame;
在所述编辑区的目标全帧命令的编辑行中,对应于所述目标位置添加所述目标全帧命令。In the editing line of the target full-frame command in the editing area, add the target full-frame command corresponding to the target position.
所述添加模块12,具体还用于获取所述目标媒体片段的每一帧的位置作为所述目标位置;或The adding module 12 is also specifically configured to obtain the position of each frame of the target media segment as the target position; or
以所述目标媒体片段的任一帧位置作为起始帧,在所述媒体帧编辑行中获取所述目标媒体片段中、起始帧的位置后的每一帧的位置作为所述目标位置。Taking any frame position of the target media segment as the starting frame, acquiring the position of each frame in the target media segment after the position of the starting frame in the media frame editing line as the target position.
所述媒体编辑装置,还包括设置模块13,The media editing device also includes a setting module 13,
所述设置模块13,具体用于响应于在对任一源媒体片段执行分割命令以切割所述源媒体片段,获取到同源媒体片段,对每一同源媒体片段设置所述第一源标识符,The setting module 13 is specifically configured to set the first source identifier for each homologous media segment in response to obtaining a homologous media segment when a split command is executed on any source media segment to segment the source media segment symbol,
响应于在对任一源媒体片段执行添加命令添加新增媒体片段,获取到源媒体片段和新增媒体片段组成的不同源媒体片段,对每一不同源媒体片段设置所述第二源标识符;或In response to adding a new media segment by executing an add command on any source media segment, obtaining different source media segments composed of the source media segment and the newly added media segment, setting the second source identifier for each different source media segment ;or
响应于在对任一源媒体片段执行分割命令以切割所述源媒体片段,获取到同源媒体片段,对每一同源媒体片段设置所述第三源标识符,以及In response to performing a split command on any source media segment to cut said source media segment, obtaining homologous media segments, setting said third source identifier for each homologous media segment, and
响应于在对任一源媒体片段执行添加命令添加新增媒体片段,获取到源媒体片段和新增媒体片段组成的不同源媒体片段,对每一不同源媒体片段设置所述第三源标识符。In response to adding a new media segment by executing an add command on any source media segment, obtaining different source media segments composed of source media segments and new media segments, setting the third source identifier for each different source media segment .
所述获取模块11,具体还用于响应于所述目标全帧命令为时序全帧命令,其中所述时序全帧命令为作用于所述目标媒体片段的每一帧、且与时序有关的控制命令,The acquisition module 11 is also specifically configured to respond to the target full-frame command as a timing full-frame command, wherein the timing full-frame command is a timing-related control that acts on each frame of the target media segment Order,
以所述目标媒体片段的所述任一帧位置为起始帧,或以所述目标媒体片段的第一帧位置为起始帧;以及Start with the arbitrary frame position of the target media segment, or use the first frame position of the target media segment as the start frame; and
按照所述待编辑的媒体片段集合的排列顺序,在所述媒体帧编辑行中获取待编辑的媒体片段集合中、所述起始帧的位置后的每一媒体片段的每一帧的位置作为目标位置;According to the order of arrangement of the media segment set to be edited, the position of each frame of each media segment after the position of the start frame in the media frame edit row is acquired as target location;
所述添加模块12,具体还用于在所述编辑区的全帧命令的编辑行中,对应于所述目标位置以及所述目标位置后续位置无限添加所述全帧命令。The adding module 12 is specifically further configured to infinitely add the full-frame command corresponding to the target position and subsequent positions of the target position in the editing line of the full-frame command in the editing area.
图4所示装置可以执行前述实施例中介绍的步骤,详细的执行过程和技术效果参见前述实施例中的描述,在此不再赘述。The device shown in FIG. 4 can execute the steps described in the foregoing embodiments. For the detailed execution process and technical effects, refer to the descriptions in the foregoing embodiments, and details are not repeated here.
在一个可能的设计中,上述图4所示媒体编辑装置的结构可实现为一电子设备,如图5所示,该电子设备可以包括:存储器21、处理器22、通信接口23。其中,存储器21上存储有可执行代码,当所述可执行代码被处理器22执行时,使处理器22至少可以实现如前述实施例中提供的数据治理方法。In a possible design, the structure of the media editing apparatus shown in FIG. 4 above may be implemented as an electronic device. As shown in FIG. 5 , the electronic device may include: a memory 21 , a processor 22 , and a communication interface 23 . Wherein, executable codes are stored in the memory 21, and when the executable codes are executed by the processor 22, the processor 22 can at least implement the data governance method provided in the foregoing embodiments.
另外,本发明实施例提供了一种非暂时性机器可读存储介质,所述非暂时性机器可读存储介质上存储有可执行代码,当所述可执行代码被电子设备的处理器执行时,使所述处理器至少可以实现如前述实施例中提供的媒体编辑方法。In addition, an embodiment of the present invention provides a non-transitory machine-readable storage medium, the non-transitory machine-readable storage medium stores executable code, and when the executable code is executed by the processor of the electronic device , so that the processor can at least implement the media editing method provided in the foregoing embodiments.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separate. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative efforts.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助加必需的通用硬件平台的方式来实现,当然也可以通过硬件和软件结合的方式来实现。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以计算机产品的形式体现出来,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be realized by means of a general hardware platform plus necessary, and of course, can also be realized by a combination of hardware and software. Based on such an understanding, the above-mentioned technical solution can be embodied in the form of computer products in essence or in other words, the part that contributes to the prior art, and the present invention can adopt computer-usable media (including but not limited to disk storage, CD-ROM, optical storage, etc.) embodied in the form of a computer program product.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims (10)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311648150.9A CN117499745B (en) | 2023-04-12 | 2023-04-12 | Media editing method, device, equipment and storage medium |
| CN202310389160.9A CN116634233B (en) | 2023-04-12 | 2023-04-12 | Media editing method, device, equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310389160.9A CN116634233B (en) | 2023-04-12 | 2023-04-12 | Media editing method, device, equipment and storage medium |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311648150.9A Division CN117499745B (en) | 2023-04-12 | 2023-04-12 | Media editing method, device, equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN116634233A true CN116634233A (en) | 2023-08-22 |
| CN116634233B CN116634233B (en) | 2024-02-09 |
Family
ID=87635525
Family Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311648150.9A Active CN117499745B (en) | 2023-04-12 | 2023-04-12 | Media editing method, device, equipment and storage medium |
| CN202310389160.9A Active CN116634233B (en) | 2023-04-12 | 2023-04-12 | Media editing method, device, equipment and storage medium |
Family Applications Before (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311648150.9A Active CN117499745B (en) | 2023-04-12 | 2023-04-12 | Media editing method, device, equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (2) | CN117499745B (en) |
Citations (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001101838A (en) * | 1999-09-30 | 2001-04-13 | Sony Corp | Editing method and digital recording / reproducing apparatus |
| US20100332979A1 (en) * | 2009-06-25 | 2010-12-30 | Universal Electronics Inc. | System and method for configuration of macro commands in a controlling device |
| WO2013001537A1 (en) * | 2011-06-30 | 2013-01-03 | Human Monitoring Ltd. | Methods and systems of editing and decoding a video file |
| US20130121668A1 (en) * | 2011-11-14 | 2013-05-16 | Brian Meaney | Media editing with multi-camera media clips |
| WO2017176940A1 (en) * | 2016-04-08 | 2017-10-12 | Nightlight Systems Llc | Digital media messages and files |
| CN107438839A (en) * | 2016-10-25 | 2017-12-05 | 深圳市大疆创新科技有限公司 | A multimedia editing method, device and intelligent terminal |
| CN110737435A (en) * | 2019-10-18 | 2020-01-31 | 网易(杭州)网络有限公司 | Multimedia editing method, device, terminal device and storage medium in game |
| CN112541353A (en) * | 2020-12-24 | 2021-03-23 | 北京百度网讯科技有限公司 | Video generation method, device, equipment and medium |
| WO2021259322A1 (en) * | 2020-06-23 | 2021-12-30 | 广州筷子信息科技有限公司 | System and method for generating video |
| US11289127B1 (en) * | 2021-02-11 | 2022-03-29 | Loom, Inc. | Instant video editing and associated methods and systems |
| CN115460448A (en) * | 2022-08-19 | 2022-12-09 | 北京达佳互联信息技术有限公司 | Media resource editing method and device, electronic equipment and storage medium |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| AUPO960197A0 (en) * | 1997-10-03 | 1997-10-30 | Canon Information Systems Research Australia Pty Ltd | Multi-media editing method and apparatus |
| US8910032B2 (en) * | 2011-01-28 | 2014-12-09 | Apple Inc. | Media-editing application with automatic background rendering capabilities |
| US10102593B2 (en) * | 2016-06-10 | 2018-10-16 | Understory, LLC | Data processing system for managing activities linked to multimedia content when the multimedia content is changed |
| CN108337532A (en) * | 2018-02-13 | 2018-07-27 | 腾讯科技(深圳)有限公司 | Perform mask method, video broadcasting method, the apparatus and system of segment |
| CN113453040B (en) * | 2020-03-26 | 2023-03-10 | 华为技术有限公司 | Short video generation method and device, related equipment and medium |
| CN111447489A (en) * | 2020-04-02 | 2020-07-24 | 北京字节跳动网络技术有限公司 | Video processing method and device, readable medium and electronic equipment |
| CN114637890A (en) * | 2020-12-16 | 2022-06-17 | 花瓣云科技有限公司 | Method, terminal device and storage medium for displaying label in image screen |
| CN115879417B (en) * | 2021-09-29 | 2025-11-21 | 深圳市腾讯计算机系统有限公司 | Media editing method, device, computer and readable storage medium |
-
2023
- 2023-04-12 CN CN202311648150.9A patent/CN117499745B/en active Active
- 2023-04-12 CN CN202310389160.9A patent/CN116634233B/en active Active
Patent Citations (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001101838A (en) * | 1999-09-30 | 2001-04-13 | Sony Corp | Editing method and digital recording / reproducing apparatus |
| US20100332979A1 (en) * | 2009-06-25 | 2010-12-30 | Universal Electronics Inc. | System and method for configuration of macro commands in a controlling device |
| WO2013001537A1 (en) * | 2011-06-30 | 2013-01-03 | Human Monitoring Ltd. | Methods and systems of editing and decoding a video file |
| US20130121668A1 (en) * | 2011-11-14 | 2013-05-16 | Brian Meaney | Media editing with multi-camera media clips |
| WO2017176940A1 (en) * | 2016-04-08 | 2017-10-12 | Nightlight Systems Llc | Digital media messages and files |
| CN107438839A (en) * | 2016-10-25 | 2017-12-05 | 深圳市大疆创新科技有限公司 | A multimedia editing method, device and intelligent terminal |
| CN110737435A (en) * | 2019-10-18 | 2020-01-31 | 网易(杭州)网络有限公司 | Multimedia editing method, device, terminal device and storage medium in game |
| WO2021259322A1 (en) * | 2020-06-23 | 2021-12-30 | 广州筷子信息科技有限公司 | System and method for generating video |
| CN112541353A (en) * | 2020-12-24 | 2021-03-23 | 北京百度网讯科技有限公司 | Video generation method, device, equipment and medium |
| US11289127B1 (en) * | 2021-02-11 | 2022-03-29 | Loom, Inc. | Instant video editing and associated methods and systems |
| CN115460448A (en) * | 2022-08-19 | 2022-12-09 | 北京达佳互联信息技术有限公司 | Media resource editing method and device, electronic equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116634233B (en) | 2024-02-09 |
| CN117499745A (en) | 2024-02-02 |
| CN117499745B (en) | 2024-06-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109672922B (en) | Game video editing method and device | |
| US20090203368A1 (en) | Automated recording of virtual device interface | |
| KR20160061349A (en) | Actionable content displayed on a touch screen | |
| CN115442539A (en) | Video editing method, device, equipment and storage medium | |
| EP4111591A1 (en) | Method and system of differential compression | |
| WO2020093876A1 (en) | Video editing method and apparatus, computer device and readable storage medium | |
| CN106325889A (en) | Data processing method and device | |
| CN108446110B (en) | Lua script generation method, Lua script generation device, Lua script generation terminal and computer readable medium | |
| CN111625853B (en) | Snapshot processing method, device and equipment and readable storage medium | |
| CN116634233B (en) | Media editing method, device, equipment and storage medium | |
| CN108093311B (en) | Multimedia file processing method and device, storage medium and electronic equipment | |
| CN114595391A (en) | Data processing method, device and electronic device based on information search | |
| CN109889883A (en) | A kind of Wonderful time video recording method and device | |
| CN112486734A (en) | NTFS deleted file recovery method and device and electronic equipment | |
| CN116708945B (en) | Media editing method, device, equipment and storage medium | |
| CN111077940A (en) | A method and device for automatically creating waveform sequences | |
| WO2017076027A1 (en) | Wallpaper processing method and apparatus | |
| CN111324337A (en) | Software module construction method, system, device and storage medium | |
| CN105446601A (en) | Playlist management method and mobile terminal | |
| CN113238742B (en) | Direct current control page protection program modification playback method, device, terminal and medium | |
| CN117336547A (en) | Media resource processing method, device, electronic equipment and storage medium | |
| CN105373335A (en) | Playlist operating method and mobile terminal | |
| CN106411975B (en) | A data output method, device and computer readable storage medium | |
| CN114885188A (en) | Video processing method, device, equipment and storage medium | |
| CN115470767A (en) | Document processing method and device, electronic equipment and computer readable medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| TA01 | Transfer of patent application right |
Effective date of registration: 20240119 Address after: Building 7, 11th District, No. 188 South Fourth Ring West Road, Fengtai District, Beijing, 100000, all 7 floors, including floors 1 to 8 Applicant after: Beijing Qicai Xingyun Digital Technology Co.,Ltd. Address before: 102100 North 708 Dayushu Village, Dayushu Town, Yanqing District, Beijing Applicant before: Beijing Youbeika Technology Co.,Ltd. |
|
| TA01 | Transfer of patent application right | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A media editing method, device, equipment and storage medium Granted publication date: 20240209 Pledgee: Industrial Bank Co.,Ltd. Beijing Sijiqing Branch Pledgor: Beijing Qicai Xingyun Digital Technology Co.,Ltd. Registration number: Y2025110000192 |