Movatterモバイル変換


[0]ホーム

URL:


CN117097945A - Video processing method and terminal - Google Patents

Video processing method and terminal
Download PDF

Info

Publication number
CN117097945A
CN117097945ACN202311051404.9ACN202311051404ACN117097945ACN 117097945 ACN117097945 ACN 117097945ACN 202311051404 ACN202311051404 ACN 202311051404ACN 117097945 ACN117097945 ACN 117097945A
Authority
CN
China
Prior art keywords
input
video
editing
sub
identification
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.)
Pending
Application number
CN202311051404.9A
Other languages
Chinese (zh)
Inventor
严琪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co LtdfiledCriticalVivo Mobile Communication Co Ltd
Priority to CN202311051404.9ApriorityCriticalpatent/CN117097945A/en
Publication of CN117097945ApublicationCriticalpatent/CN117097945A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The application discloses a video processing method and a terminal, and belongs to the technical field of images. Wherein the method comprises the following steps: receiving a first input of a user on the editing progress bar under the condition that the editing progress bar is displayed on a playing interface of the first video; in response to the first input, displaying a first identification on the editing progress bar, the first identification for determining a first image frame or a first video clip in the first video; receiving a second input from the user; and responding to the second input, editing the first image frame or the first video fragment in the first video to obtain a second video, wherein a playing interface of the second video comprises a second identifier, and the second identifier is used for indicating that the first image frame or the first video fragment is edited.

Description

Translated fromChinese
视频处理方法及终端Video processing method and terminal

技术领域Technical field

本申请属于影像技术领域,具体涉及一种视频处理方法及终端。This application belongs to the field of imaging technology, and specifically relates to a video processing method and terminal.

背景技术Background technique

目前,随着视频技术的发展,观看视频成为用户的主要线上休闲方式。相应地,用户对视频剪辑的兴趣也不断增长。其中,常见的视频剪辑操作包括:对视频文件进行剪切、拼接、添加文字和添加图片等。Currently, with the development of video technology, watching videos has become the main online leisure method for users. Correspondingly, user interest in video clips is also growing. Among them, common video editing operations include: cutting, splicing, adding text and adding pictures to video files, etc.

随着视频剪辑在各个年龄段用户中的不断兴起,很多用户都想参与其中。但是,目前的视频剪辑技术对普通用户来说操作过程太过繁琐。As video clips continue to rise among users of all ages, many users want to get involved. However, the current video editing technology is too cumbersome for ordinary users.

发明内容Contents of the invention

本申请实施例的目的是提供一种视频处理方法及终端,能够解决对视频进行编辑操作时操作繁琐的问题。The purpose of the embodiments of the present application is to provide a video processing method and terminal that can solve the problem of complicated operations when editing videos.

第一方面,本申请实施例提供了一种视频处理方法,该方法包括:In a first aspect, embodiments of the present application provide a video processing method, which method includes:

在第一视频的播放界面显示编辑进度条的情况下,接收用户对编辑进度条的第一输入;When the editing progress bar is displayed on the playback interface of the first video, receive the user's first input to the editing progress bar;

响应于第一输入,在编辑进度条上显示第一标识,第一标识用于确定第一视频中的第一图像帧或第一视频片段;In response to the first input, display a first identification on the editing progress bar, where the first identification is used to determine the first image frame or the first video segment in the first video;

接收用户的第二输入;receive second input from the user;

响应于第二输入,对第一视频中的第一图像帧或第一视频片段进行编辑处理,得到第二视频,第二视频的播放界面包括第二标识,第二标识用于指示对第一图像帧或第一视频片段进行了编辑处理。In response to the second input, the first image frame or the first video clip in the first video is edited to obtain a second video. The playback interface of the second video includes a second identifier, and the second identifier is used to indicate that the first video is edited. The image frame or first video clip is edited.

第二方面,本申请实施例提供了一种终端,该终端包括:In a second aspect, embodiments of the present application provide a terminal, which includes:

接收模块,用于在第一视频的播放界面显示编辑进度条的情况下,接收用户对编辑进度条的第一输入;A receiving module, configured to receive the user's first input to the editing progress bar when the editing progress bar is displayed on the playback interface of the first video;

显示模块,用于响应于第一输入,在编辑进度条上显示第一标识,第一标识用于确定第一视频中的第一图像帧或第一视频片段;A display module, configured to display a first identification on the editing progress bar in response to the first input, where the first identification is used to determine the first image frame or the first video segment in the first video;

接收模块,还用于接收用户的第二输入;The receiving module is also used to receive the user's second input;

编辑模块,用于响应于第二输入,对第一视频中的第一图像帧或第一视频片段进行编辑处理,得到第二视频,第二视频的播放界面包括第二标识,第二标识用于指示对第一图像帧或第一视频片段进行了编辑处理。An editing module, configured to edit the first image frame or the first video clip in the first video in response to the second input to obtain a second video. The playback interface of the second video includes a second identification, and the second identification is Indicates that the first image frame or the first video clip has been edited.

第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, embodiments of the present application provide an electronic device. The electronic device includes a processor and a memory. The memory stores programs or instructions that can be run on the processor. The programs or instructions are processed by the processor. When the processor is executed, the steps of the method described in the first aspect are implemented.

第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, embodiments of the present application provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the programs or instructions are executed by a processor, the steps of the method described in the first aspect are implemented. .

第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, embodiments of the present application provide a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the first aspect. the method described.

第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法。In a sixth aspect, embodiments of the present application provide a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method as described in the first aspect.

在本申请的实施例中,通过显示编辑进度条,便于用户编辑,以及在第一视频的播放界面显示编辑进度条的情况下,接收用户对编辑进度条的第一输入,第一输入用于指示用户想要进行编辑的第一图像帧或第一视频片段,响应于第一输入,在编辑进度条上显示用于确定第一视频中的第一图像帧或第一视频片段的第一标识,便于用户通过第一标识查看和确认想要进行编辑的第一图像帧或第一视频片段,由此,通过第一标识能够直观清晰的确定第一视频中的第一图像帧或第一视频片段,便于用户后续对第一视频中的第一图像帧或第一视频片段进行编辑处理。然后,响应于用户的第二输入,对第一视频中的第一图像帧或第一视频片段进行编辑处理,得到第二视频,这样,能够快速便捷地对第一视频中的第一图像帧或第一视频片段进行编辑处理,降低了视频编辑的繁琐程度和难度。其中,第二视频的播放界面包括用于指示对第一图像帧或第一视频片段进行了编辑处理的第二标识,便于观看者快速直观地了解第二视频是进行了编辑处理的视频。In the embodiment of the present application, the editing progress bar is displayed to facilitate user editing, and when the editing progress bar is displayed on the playing interface of the first video, the user's first input to the editing progress bar is received, and the first input is used to indicating a first image frame or a first video segment that the user wants to edit, and in response to the first input, displaying a first identification for determining the first image frame or the first video segment in the first video on the editing progress bar , it is convenient for the user to view and confirm the first image frame or the first video clip that he wants to edit through the first identification. Therefore, the first image frame or the first video in the first video can be intuitively and clearly determined through the first identification. The segment facilitates the user to subsequently edit the first image frame or first video segment in the first video. Then, in response to the user's second input, the first image frame or the first video segment in the first video is edited to obtain the second video. In this way, the first image frame in the first video can be edited quickly and conveniently. Or the first video clip is edited, which reduces the complexity and difficulty of video editing. Wherein, the playback interface of the second video includes a second identification indicating that the first image frame or the first video clip has been edited, so that the viewer can quickly and intuitively understand that the second video is an edited video.

附图说明Description of the drawings

图1是本申请实施例提供的一种视频处理方法的流程图;Figure 1 is a flow chart of a video processing method provided by an embodiment of the present application;

图2是本申请实施例提供的一种编辑进度条的示意图;Figure 2 is a schematic diagram of an editing progress bar provided by an embodiment of the present application;

图3是本申请实施例提供的一种折叠屏显示界面的示意图;Figure 3 is a schematic diagram of a folding screen display interface provided by an embodiment of the present application;

图4是本申请实施例提供的一种第一标识的示意图;Figure 4 is a schematic diagram of a first identification provided by an embodiment of the present application;

图5是本申请实施例提供的一种第一视频片段的示意图;Figure 5 is a schematic diagram of a first video clip provided by an embodiment of the present application;

图6是本申请实施例提供的一种调整第一标识的示意图;Figure 6 is a schematic diagram of adjusting a first identifier provided by an embodiment of the present application;

图7是本申请实施例提供的一种对图像帧进行编辑处理的示意图;Figure 7 is a schematic diagram of editing an image frame provided by an embodiment of the present application;

图8是本申请实施例提供的一种编辑第一图像帧的示意图;Figure 8 is a schematic diagram of editing a first image frame provided by an embodiment of the present application;

图9是本申请实施例提供的一种编辑视频片段的示意图;Figure 9 is a schematic diagram of editing video clips provided by an embodiment of the present application;

图10是本申请实施例提供的一种复制操作的示意图;Figure 10 is a schematic diagram of a copy operation provided by an embodiment of the present application;

图11是本申请实施例提供的一种取消复制操作的示意图;Figure 11 is a schematic diagram of canceling a copy operation provided by an embodiment of the present application;

图12是本申请实施例提供的一种删除操作的示意图;Figure 12 is a schematic diagram of a deletion operation provided by an embodiment of the present application;

图13是本申请实施例提供的一种删除操作对应的编辑进度条的示意图;Figure 13 is a schematic diagram of an editing progress bar corresponding to a deletion operation provided by an embodiment of the present application;

图14是本申请实施例提供的一种终端的结构图;Figure 14 is a structural diagram of a terminal provided by an embodiment of the present application;

图15是本申请实施例的电子设备的硬件结构示意图之一;Figure 15 is one of the schematic diagrams of the hardware structure of the electronic device according to the embodiment of the present application;

图16是本申请实施例的电子设备的硬件结构示意图之二。Figure 16 is a second schematic diagram of the hardware structure of the electronic device according to the embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例的附图,对本申请实施例的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The technical solutions of the embodiments of the present application will be clearly described below with reference to the accompanying drawings of the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art fall within the scope of protection of this application.

本申请的说明书的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the specification of this application are used to distinguish similar objects, but are not used to describe a specific order or sequence. It is to be understood that the figures so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in orders other than those illustrated or described herein, and that "first," "second," etc. are distinguished Objects are usually of one type, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the related objects are in an "or" relationship.

本申请实施例提供的视频处理方法至少可以应用于下述应用场景中,下面进行说明。The video processing method provided by the embodiment of the present application can be applied to at least the following application scenarios, which will be described below.

目前,随着视频技术的不断发展,视频在播放过程中可以插入的元素越来越丰富,特别是在线播放时,可以通过评论弹幕等形式与同时观影的用户分享观影体验。At present, with the continuous development of video technology, more and more elements can be inserted during video playback. Especially when played online, the viewing experience can be shared with users who are watching the movie at the same time through comment barrages and other forms.

目前,视频播放的方式较为单一,无法满足用户的个性化观看需求。对相关技术出现的问题,本申请实施例提供一种视频处理方法及终端,能够解决相关技术中,对视频进行编辑操作时操作繁琐的问题。At present, the video playback method is relatively simple and cannot meet the personalized viewing needs of users. To address the problems that arise in related technologies, embodiments of the present application provide a video processing method and terminal, which can solve the problem of cumbersome operations when editing videos in related technologies.

下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的视频处理方法进行详细地说明。The video processing method provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios.

图1为本申请实施例提供的一种视频处理方法的流程图。Figure 1 is a flow chart of a video processing method provided by an embodiment of the present application.

如图1所示,该视频处理方法可以包括步骤110-步骤140,该方法应用于终端,具体如下所示:As shown in Figure 1, the video processing method may include steps 110 to 140. The method is applied to the terminal, specifically as follows:

步骤110,在第一视频的播放界面显示编辑进度条的情况下,接收用户对编辑进度条的第一输入。Step 110: When the editing progress bar is displayed on the playback interface of the first video, receive the user's first input to the editing progress bar.

其中,显示编辑进度条,便于用户通过编辑进度条对视频进行编辑处理。Among them, an editing progress bar is displayed to facilitate the user to edit the video through the editing progress bar.

其中,可以响应于用户对第一视频的输入,显示编辑进度条。编辑进度条可以显示在第一视频的播放界面的预设位置。预设位置可以为第一视频的播放界面的底部位置。编辑进度条可以默认隐藏,然后基于用户对视频播放界面的触控输入进行显示。Wherein, the editing progress bar may be displayed in response to the user's input of the first video. The editing progress bar can be displayed at a preset position on the playback interface of the first video. The preset position may be the bottom position of the playback interface of the first video. The editing progress bar can be hidden by default and then displayed based on the user's touch input on the video playback interface.

在一种可能的实施例中,还可以包括以下步骤:In a possible embodiment, the following steps may also be included:

接收用户对编辑进度条的第八输入;响应于第八输入,更新编辑进度条的显示位置或隐藏编辑进度条。Receive an eighth input from the user to the editing progress bar; in response to the eighth input, update the display position of the editing progress bar or hide the editing progress bar.

如图2中(a)所示,第一视频的视频播放界面可以显示播放进度条100和编辑进度条200。用户可以通过播放进度条查看播放进度,基于编辑进度条对视频进行编辑处理。如图2中(b)所示,响应于对编辑进度条200的长按输入,可以将编辑进度条显示为虚线。As shown in (a) of Figure 2, the video playback interface of the first video may display a playback progress bar 100 and an editing progress bar 200. Users can check the playback progress through the playback progress bar and edit the video based on the editing progress bar. As shown in (b) of FIG. 2 , in response to a long press input on the editing progress bar 200 , the editing progress bar 200 may be displayed as a dotted line.

如图2中(b)所示,响应于对编辑进度条的拖拽输入,可以更新编辑进度条的显示位置,随着用户的拖拽输入,可以将显示在第一视频的播放界面的底部位置的编辑进度条移动至其他三个方向对应的位置。其他三个方向对应的位置可以包括:第一视频的播放界面的上部位置、左部位置和右部位置。As shown in (b) of Figure 2, in response to the drag input of the editing progress bar, the display position of the editing progress bar can be updated. With the user's drag input, it can be displayed at the bottom of the playback interface of the first video. The position editing progress bar moves to the corresponding positions in the other three directions. The positions corresponding to the other three directions may include: the upper position, the left position, and the right position of the playback interface of the first video.

当编辑进度条的显示位置靠近屏幕的边缘区域时,编辑进度条会自动吸附,即自动移动到对应的区域210,如图2中(c)所示。When the display position of the editing progress bar is close to the edge area of the screen, the editing progress bar will automatically adsorb, that is, automatically move to the corresponding area 210, as shown in (c) in Figure 2.

对于非折叠电子设备和折叠屏电子设备的外屏,响应于用户对编辑进度条的输入,暂停第一视频的播放;对于折叠屏电子设备,如图3所示,分屏显示第一视频的操作界面310和第一视频的播放界面320,此时,无需暂停第一视频的播放。For the external screen of the non-folding electronic device and the folding screen electronic device, in response to the user's input to the editing progress bar, the playback of the first video is paused; for the folding screen electronic device, as shown in Figure 3, the first video is displayed in split screen The operation interface 310 and the first video playback interface 320, at this time, there is no need to pause the playback of the first video.

步骤120,响应于第一输入,在编辑进度条上显示第一标识,第一标识用于确定第一视频中的第一图像帧或第一视频片段。Step 120: In response to the first input, display a first identification on the editing progress bar, where the first identification is used to determine the first image frame or the first video segment in the first video.

其中,当第一标识用于确定第一视频中的第一图像帧时,如图4所示,编辑进度条的第一标识410上方可以显示第一图像帧的缩略图。When the first identifier is used to determine the first image frame in the first video, as shown in FIG. 4 , a thumbnail of the first image frame may be displayed above the first identifier 410 of the editing progress bar.

当第一标识用于确定第一视频中的第一视频片段时,第三标识和第一标识共同用于指示第一视频中的第一视频片段。When the first identifier is used to determine the first video segment in the first video, the third identifier and the first identifier are jointly used to indicate the first video segment in the first video.

在一种可能的实施例中,在步骤120之后,还可以包括以下步骤:In a possible embodiment, after step 120, the following steps may also be included:

接收用户对编辑进度条的第五输入;响应于第五输入,在编辑进度条上显示第三标识,第三标识的显示位置与第一标识的显示位置不同,第三标识和第一标识指示第一视频中的第一视频片段。Receive a fifth input from the user to the editing progress bar; in response to the fifth input, display a third logo on the editing progress bar, the display position of the third logo is different from the display position of the first logo, and the third logo and the first logo indicate The first video clip in the first video.

其中,第一标识用于确定第一视频片段的起始帧,第三标识用于确定第一视频片段的结束帧;或者,第一标识用于确定第一视频片段的结束帧,第三标识用于确定第一视频片段的起始帧。第一标识和第三标识用于指示第一视频中的第一视频片段。Wherein, the first identifier is used to determine the start frame of the first video segment, and the third identifier is used to determine the end frame of the first video segment; or, the first identifier is used to determine the end frame of the first video segment, and the third identifier is used to determine the end frame of the first video segment. Used to determine the starting frame of the first video segment. The first identifier and the third identifier are used to indicate the first video segment in the first video.

如图5所示,用户在编辑进度条上方进行滑动操作,响应于用户对编辑进度条的第五输入,在编辑进度条上显示第三标识520,时间点A对应第一标识510;时间点B对应第三标识520。As shown in Figure 5, the user performs a sliding operation above the editing progress bar. In response to the user's fifth input to the editing progress bar, a third identification 520 is displayed on the editing progress bar. Time point A corresponds to the first identification 510; time point A B corresponds to the third identifier 520.

在一种可能的实施例中,第一标识包括第一子标识和第二子标识;在步骤120之后,还可以包括以下步骤:In a possible embodiment, the first identification includes a first sub-identification and a second sub-identification; after step 120, the following steps may also be included:

接收用户对第一标识的第四输入;响应于第四输入,更新第一子标识和第二子标识的显示位置。A fourth input from the user to the first identification is received; in response to the fourth input, the display positions of the first sub-identity and the second sub-identity are updated.

如图6所示,第一标识的上下端点可以分别为第一子标识和第二子标识。As shown in Figure 6, the upper and lower endpoints of the first identifier may be the first sub-identifier and the second sub-identifier respectively.

可以理解的是,用户对第一标识的第四输入是对第一子标识610和第二子标识620的第四输入,比如用户的双指同时按住第一子标识610和第二子标识620,并进行旋转,响应于第四输入,更新第一子标识610和第二子标识620的显示位置。It can be understood that the user's fourth input to the first identification is the fourth input to the first sub-identification 610 and the second sub-identification 620. For example, the user simultaneously presses the first sub-identification 610 and the second sub-identification with two fingers. 620, and perform rotation, and in response to the fourth input, update the display positions of the first sub-identity 610 and the second sub-identity 620.

其中,第一子标识用于确定第一标识的当前位置对应的图像帧之前的图像帧;第二子标识用于确定第一标识的当前位置对应的图像帧之后的图像帧。The first sub-identifier is used to determine the image frame before the image frame corresponding to the current position of the first identifier; the second sub-identifier is used to determine the image frame after the image frame corresponding to the current position of the first identifier.

更新第一子标识和第二子标识的显示位置时,也互换了第一子标识和第二子标识对应的功能,即第一子标识用于确定第一标识的当前位置对应的图像帧之后的图像帧;第二子标识用于确定第一标识的当前位置对应的图像帧之前的图像帧。When updating the display positions of the first sub-identity and the second sub-identity, the corresponding functions of the first sub-identity and the second sub-identity are also exchanged, that is, the first sub-identity is used to determine the image frame corresponding to the current position of the first identification. The subsequent image frame; the second sub-identifier is used to determine the image frame before the image frame corresponding to the current position of the first identifier.

步骤130,接收用户的第二输入。Step 130: Receive the second input from the user.

在一种可能的实施例中,第一标识包括第一子标识和第二子标识;在步骤130之前,还可以包括以下步骤:In a possible embodiment, the first identification includes a first sub-identification and a second sub-identification; before step 130, the following steps may also be included:

接收用户对第一子标识或第二子标识的第三输入;receiving a third input from the user to the first sub-identity or the second sub-identity;

响应于第三输入,更新第一标识在编辑进度条上的位置,并更新第一标识指示的第一视频中的图像帧;In response to the third input, update the position of the first identification on the editing progress bar, and update the image frame in the first video indicated by the first identification;

其中,第一子标识和第二子标识对应的功能不同。Among them, the first sub-identity and the second sub-identity correspond to different functions.

其中,第一子标识和第二子标识对应的功能不同,即第一子标识用于确定第一标识的当前位置对应的图像帧之前的图像帧,且第二子标识用于确定第一标识的当前位置对应的图像帧之后的图像帧,反之亦可。Among them, the first sub-identification and the second sub-identification have different corresponding functions, that is, the first sub-identification is used to determine the image frame before the image frame corresponding to the current position of the first identification, and the second sub-identification is used to determine the first identification. The image frame after the image frame corresponding to the current position, and vice versa.

如图6所示,第一标识的上下端点可以分别为第一子标识610和第二子标识620。As shown in FIG. 6 , the upper and lower endpoints of the first identifier may be the first sub-identifier 610 and the second sub-identifier 620 respectively.

响应于用户对第一子标识或第二子标识的第三输入,更新第一标识在编辑进度条上的位置。In response to the user's third input to the first sub-identification or the second sub-identification, the position of the first identification on the editing progress bar is updated.

其中,接收用户对第一子标识的第三输入,更新第一标识在编辑进度条上的位置,由第一位置更新至第二位置,第二位置对应的时间进度在第一位置对应的时间进度之前,反之亦可。并更新第一标识指示的第一视频中的图像帧。Among them, the user's third input to the first sub-identity is received, and the position of the first identification on the editing progress bar is updated from the first position to the second position, and the time progress corresponding to the second position is at the time corresponding to the first position. before progress, and vice versa. and update the image frame in the first video indicated by the first identifier.

第二子标识的响应过程同理。The response process of the second sub-identification is the same.

由此,由于第一子标识或第二子标识对应的显示区域相对于目前视频剪辑中常用的取帧线来说,更容易精准控制,便于用户调整第一标识对应的第一图像帧。其中,取帧线通常显示在进度条上,是用于确定视频帧的线段。通过响应于用户对第一子标识或第二子标识的第三输入,更新第一标识在编辑进度条上的位置,并更新第一标识指示的第一视频中的图像帧,能够快速准确地确定第一标识指示的第一视频中的图像帧。Therefore, since the display area corresponding to the first sub-identity or the second sub-identity is easier to accurately control than the frame line commonly used in current video editing, it is convenient for the user to adjust the first image frame corresponding to the first identification. Among them, the frame line is usually displayed on the progress bar and is a line segment used to determine the video frame. By updating the position of the first identification on the editing progress bar in response to the user's third input to the first sub-identification or the second sub-identification, and updating the image frame in the first video indicated by the first identification, it is possible to quickly and accurately The image frame in the first video indicated by the first identification is determined.

步骤140,响应于第二输入,对第一视频中的第一图像帧或第一视频片段进行编辑处理,得到第二视频,第二视频的播放界面包括第二标识,第二标识用于指示对第一图像帧或第一视频片段进行了编辑处理。Step 140: In response to the second input, edit the first image frame or first video clip in the first video to obtain a second video. The playback interface of the second video includes a second logo, and the second logo is used to indicate The first image frame or the first video clip is edited.

第二标识用于指示对第一视频中的第一图像帧或第一视频片段进行了编辑处理,比如,第二标识可以为编辑者的标识信息,或者编辑者为第二视频编辑的标题。不同的第二视频对应的第二标识的显示参数也不同,第二标识的显示参数包括:颜色、形状和图案等。The second identification is used to indicate that the first image frame or the first video clip in the first video has been edited. For example, the second identification may be identification information of the editor, or a title edited by the editor for the second video. The display parameters of the second logo corresponding to different second videos are also different, and the display parameters of the second logo include: color, shape, pattern, etc.

在一种可能的实施例中,在第一标识用于确定第一视频中的第一图像帧的情况下,第二输入包括第一子输入和第二子输入;步骤140,具体可以包括以下步骤:In a possible embodiment, when the first identifier is used to determine the first image frame in the first video, the second input includes a first sub-input and a second sub-input; step 140 may specifically include the following step:

响应于第一子输入,在第一图像帧的对应区域显示至少一个图像编辑功能;responsive to the first sub-input, displaying at least one image editing function in a corresponding area of the first image frame;

响应于用户对至少一个图像编辑功能中的第一编辑功能的第二子输入,基于第一编辑功能对第一图像帧进行编辑处理。In response to a second sub-input by a user to a first editing function of the at least one image editing function, editing processing is performed on the first image frame based on the first editing function.

如图7所示,第一图像帧的对应区域显示的至少一个图像编辑功能包括:设置选项、涂鸦选项和旋转选项等。As shown in FIG. 7 , at least one image editing function displayed in the corresponding area of the first image frame includes: setting options, graffiti options, rotation options, etc.

响应于用户对至少一个图像编辑功能中的第一编辑功能的第二子输入,根据选中的第一编辑功能,对第一视频中的第一图像帧进行编辑操作,若用户选择的第一编辑功能为旋转选项,则对第一图像帧进行旋转处理,得到旋转后的第一图像帧。In response to the user's second sub-input to the first editing function in the at least one image editing function, an editing operation is performed on the first image frame in the first video according to the selected first editing function. If the first editing function selected by the user If the function is the rotation option, the first image frame is rotated to obtain the rotated first image frame.

具体地,如图8(a)所示,响应于对第一编辑功能的选中输入,进入图片编辑页面,完成编辑后,则保存编辑后的第一图像帧。Specifically, as shown in Figure 8(a), in response to the selection input of the first editing function, the picture editing page is entered, and after the editing is completed, the edited first image frame is saved.

如图8(b)所示,之后在播放第二视频时,当播放到第一图像帧对应的时刻810时,显示的就是编辑后的第一图像帧。As shown in Figure 8(b), when the second video is played later, when the time 810 corresponding to the first image frame is played, the edited first image frame is displayed.

由此,通过响应于用户对至少一个图像编辑功能中的第一编辑功能的第二子输入,能够基于第一编辑功能对第一图像帧进行快速高效地编辑处理。Thus, by responding to the user's second sub-input to the first editing function of the at least one image editing function, the first image frame can be quickly and efficiently edited based on the first editing function.

在一种可能的实施例中,第二输入包括第三子输入和第四子输入;步骤140,具体可以包括以下步骤:In a possible embodiment, the second input includes a third sub-input and a fourth sub-input; step 140 may specifically include the following steps:

响应于用户的第三子输入,显示至少一个视频编辑功能;responsive to the user's third sub-input, displaying at least one video editing function;

响应于用户对至少一个视频编辑功能中的第二编辑功能的第四子输入,基于第二编辑功能对第一视频片段进行编辑处理;In response to a fourth sub-input by the user to a second editing function of the at least one video editing function, performing editing processing on the first video segment based on the second editing function;

其中,视频编辑功能包括以下至少一项:音量调节功能、播放速度调节功能、图像参数调节功能、复制功能和删除功能。Among them, the video editing function includes at least one of the following: volume adjustment function, playback speed adjustment function, image parameter adjustment function, copy function and delete function.

响应于用户的第三子输入,显示至少一个视频编辑功能,以供用户从中选择。In response to the user's third sub-input, at least one video editing function is displayed for the user to select from.

音量调节功能,用于对第一视频片段进行音量调节处理;The volume adjustment function is used to adjust the volume of the first video clip;

播放速度调节功能,用于对第一视频片段进行播放速度调节处理;The playback speed adjustment function is used to adjust the playback speed of the first video clip;

图像参数调节功能,用于对第一视频片段进行图像参数调节处理;The image parameter adjustment function is used to adjust the image parameters of the first video clip;

复制功能,用于对第一视频片段进行复制处理;Copy function, used to copy the first video clip;

删除功能,用于对第一视频片段的至少部分图像帧进行删除处理。A deletion function is used to delete at least part of the image frames of the first video clip.

其中,图像参数调节功能中涉及到的图像参数可以包括:对比度和亮度等图像参数。Among them, the image parameters involved in the image parameter adjustment function may include image parameters such as contrast and brightness.

响应于用户对至少一个视频编辑功能中的第二编辑功能的第四子输入,基于音量调节功能、播放速度调节功能、图像参数调节功能、复制功能和删除功能中的至少一个第二编辑功能对第一视频片段进行编辑处理,以得到第二视频。In response to the user's fourth sub-input to the second editing function of the at least one video editing function, based on at least one of the second editing function of the volume adjustment function, the playback speed adjustment function, the image parameter adjustment function, the copy function and the delete function. The first video clip is edited to obtain the second video.

示例性地,用户的第四子输入选中的第二编辑功能为图像参数调节功能,响应于用户对图像参数调节功能的第四子输入,基于图像参数调节功能对第一视频片段进行编辑处理。Exemplarily, the second editing function selected by the user's fourth sub-input is the image parameter adjustment function. In response to the user's fourth sub-input to the image parameter adjustment function, the first video clip is edited based on the image parameter adjustment function.

由此,通过响应于用户对至少一个视频编辑功能中的第二编辑功能的第四子输入,能够快速便捷地基于第二编辑功能对第一视频片段进行编辑处理,提升视频编辑效率。Thus, by responding to the user's fourth sub-input to the second editing function in at least one video editing function, the first video clip can be edited quickly and conveniently based on the second editing function, thereby improving video editing efficiency.

在一种可能的实施例中,第二输入包括第五子输入,上述涉及到的基于第二视频编辑功能对第一视频片段进行编辑处理的步骤中,具体可以包括以下步骤:In a possible embodiment, the second input includes a fifth sub-input. The above-mentioned steps of editing the first video clip based on the second video editing function may specifically include the following steps:

响应于用户对编辑进度条的第五子输入,根据第五子输入的输入参数对第一视频片段进行编辑处理;其中,输入参数包括以下至少一项:输入方向、输入距离、输入压力。In response to the user's fifth sub-input to the editing progress bar, the first video clip is edited according to the input parameters of the fifth sub-input; wherein the input parameters include at least one of the following: input direction, input distance, and input pressure.

其中,当视频编辑功能为音量调节功能、播放速度调节功能和图像参数调节功能时,向第一方向的输入可以用于指示增大音量、加快播放速度、调大图像参数的图像参数值;向第二方向的输入可以用于指示减小音量、降低播放速度、减小图像参数的图像参数值;图像参数可以包括:对比度和亮度等,相应地,图像参数值可以包括对比度值和亮度值等,第一方向和第二方向相反。Wherein, when the video editing function is a volume adjustment function, a playback speed adjustment function and an image parameter adjustment function, the input to the first direction can be used to indicate increasing the volume, speeding up the playback speed, and increasing the image parameter value of the image parameter; The input in the second direction can be used to instruct image parameter values to reduce the volume, reduce the playback speed, and reduce the image parameters; the image parameters can include: contrast and brightness, etc. Correspondingly, the image parameter values can include contrast values, brightness values, etc. , the first direction and the second direction are opposite.

比如,第一方向的输入为向右滑动,第二方向的输入为向左滑动。For example, the input in the first direction is sliding to the right, and the input in the second direction is sliding to the left.

输入距离用于指示调节音量、播放速度和图像参数值的大小,输入距离与调节音量、播放速度和图像参数的大小成正比。The input distance is used to indicate the size of the volume, playback speed and image parameter values. The input distance is proportional to the size of the volume, playback speed and image parameter values.

输入距离越长,调节后的音量越大、调节后的播放速度越快,调节后的图像参数对应的图像参数值越大;比如,当输入距离为2厘米时,播放速度调节为原播放速度的2倍;当输入距离为3厘米时,播放速度调节为原播放速度的3倍。输入压力用于指示调节音量、播放速度和图像参数的大小,输入压力与调节音量、播放速度和图像参数的大小成正比。The longer the input distance, the louder the adjusted volume, the faster the adjusted playback speed, and the larger the image parameter value corresponding to the adjusted image parameter; for example, when the input distance is 2 cm, the playback speed is adjusted to the original playback speed 2 times; when the input distance is 3 cm, the playback speed is adjusted to 3 times the original playback speed. The input pressure is used to indicate the size of the volume, playback speed and image parameters. The input pressure is proportional to the size of the volume, playback speed and image parameters.

同理,输入压力越大,调节后的音量越大、调节后的播放速度越快、调节后的图像参数对应的图像参数值越大。In the same way, the greater the input pressure, the greater the adjusted volume, the faster the adjusted playback speed, and the greater the image parameter value corresponding to the adjusted image parameter.

比如,第五子输入为向第一方向滑动第一距离的输入,第一距离对应的参数值为10,第一方向为顺着播放进度的方向。则根据第五子输入的输入参数对第一视频片段进行增大10个单位音量的处理。For example, the fifth sub-input is the input of sliding the first distance in the first direction, the parameter value corresponding to the first distance is 10, and the first direction is the direction along the playback progress. Then, the volume of the first video clip is increased by 10 units according to the input parameters of the fifth sub-input.

示例性地,如图9所示,第一输入的输入方向可以是由时间点A滑到时间点B的方向;其中,时间点A对应的音量为0,时间点B对应的音量为100,当由时间点A滑到时间点B时,第一输入的输入距离递增,相应地,调节后的音量也是递增的,同理,由时间点B滑向时间点A时,调节后的音量则是由100至0依次递减。For example, as shown in Figure 9, the input direction of the first input may be the direction of sliding from time point A to time point B; wherein, the volume corresponding to time point A is 0, and the volume corresponding to time point B is 100. When sliding from time point A to time point B, the input distance of the first input increases, and accordingly, the adjusted volume also increases. Similarly, when sliding from time point B to time point A, the adjusted volume is It decreases from 100 to 0.

如果从时间点A到时间点B的滑动距离是预设距离,当第一输入对应的滑动距离是45%×预设距离时,则将第一视频片段的音量调节至45。If the sliding distance from time point A to time point B is the preset distance, when the sliding distance corresponding to the first input is 45%× the preset distance, the volume of the first video clip is adjusted to 45.

同理,对于播放速度,如果从时间点A向时间点B滑动,当第一输入对应的滑动距离是50%×预设距离时,代表播放速度2×,再次滑动,当第一输入对应的滑动距离是100%×预设距离时,代表速率4×。Similarly, for the playback speed, if you slide from time point A to time point B, when the sliding distance corresponding to the first input is 50% × the preset distance, it means that the playback speed is 2×. If you slide again, when the sliding distance corresponding to the first input is 50% When the sliding distance is 100% × preset distance, it represents a rate of 4 ×.

如果是从时间点B向时间点A滑动,当第一输入对应的滑动距离是50%×预设距离时,代表播放速度0.5×,再次滑动,当第一输入对应的滑动距离是100%×预设距离时,代表播放速度0.25×。If you are sliding from time point B to time point A, when the sliding distance corresponding to the first input is 50% × the preset distance, it means the playback speed is 0.5×. If you slide again, when the sliding distance corresponding to the first input is 100% × When the distance is preset, it means the playback speed is 0.25×.

由此,响应于用户对编辑进度条的第五子输入,根据第五子输入的输入参数对第一视频片段进行编辑处理,能够根据第五子输入的输入参数快速便捷地对第一视频片段进行编辑处理,提升视频编辑效率。Therefore, in response to the user's fifth sub-input to the editing progress bar, the first video clip is edited according to the input parameters of the fifth sub-input, and the first video clip can be quickly and easily edited according to the input parameters of the fifth sub-input. Perform editing processing to improve video editing efficiency.

在一种可能的实施例中,在第二编辑功能包括复制功能的情况下,第二输入包括第六子输入,步骤140,具体可以包括以下步骤:In a possible embodiment, when the second editing function includes a copy function, the second input includes a sixth sub-input, step 140 may specifically include the following steps:

响应于第六子输入,对第一视频片段进行复制处理,得到第二视频,第二标识包括复制标识,复制标识指示重复播放第一视频片段中的至少部分图像帧。In response to the sixth sub-input, copy processing is performed on the first video segment to obtain a second video, the second identification includes a copy identification, and the copy identification indicates repeated playback of at least part of the image frames in the first video segment.

对于复制操作,第六子输入可以为长按时间点A进度条区域并滑动至时间点B的输入,如图10所示,显示提示信息“重复播放一次”,则代表重复播放第一视频片段一次。For the copy operation, the sixth sub-input can be the input of long pressing the progress bar area at time point A and sliding to time point B, as shown in Figure 10. If the prompt message "Repeat once" is displayed, it means that the first video clip is played repeatedly. once.

也可设置多次重复播放。响应于第六子输入,对第一视频片段进行复制处理后,由时间点A到时间点B点会出现平行于进度条的复制标识1010,重复几次则出现几个复制标识,复制标识即表示此处存在重复播放编辑。You can also set up multiple repeat playbacks. In response to the sixth sub-input, after the first video clip is copied, a copy logo 1010 parallel to the progress bar will appear from time point A to time point B. If repeated several times, several copy logos will appear. The copy logo is Indicates that there is a repeat edit here.

响应于第六子输入,对第一视频片段进行复制处理,点击空白区域则保存内容修改,得到第二视频。In response to the sixth sub-input, the first video clip is copied and the content modification is saved by clicking on the blank area to obtain the second video.

由此,用户可以在播放视频过程中,通过对编辑进度条进行输入,对第一视频中的第一视频片段进行编辑操作,得到第二视频,将编辑后的第二视频作为独立的视频进行保存,同时仍保留原始的第一视频。Therefore, the user can edit the first video segment in the first video by inputting the editing progress bar during the video playback process to obtain the second video, and then edit the second video as an independent video. Save while still retaining the original first video.

在一种可能的实施例中,在上述涉及到的得到第二视频的步骤之后,还可以包括以下步骤:In a possible embodiment, after the above-mentioned step of obtaining the second video, the following steps may also be included:

接收用户对复制标识的第六输入;receiving a sixth input from the user for the copy identification;

响应于第六输入,取消显示复制标识,并取消对第一视频片段的复制处理,得到第三视频。In response to the sixth input, the display of the copy identification is cancelled, and the copy processing of the first video segment is cancelled, thereby obtaining a third video.

对第一视频片段进行复制操作之后,如果想取消对第一视频片段的复制操作,则可以响应于用户对复制标识的第六输入,取消显示复制标识,并取消对第一视频片段的复制处理,得到第三视频。After the copy operation is performed on the first video clip, if you want to cancel the copy operation on the first video clip, you can cancel the display of the copy identification in response to the user's sixth input of the copy identification, and cancel the copy processing on the first video clip. , get the third video.

如图11所示,可以通过对复制标识1110沿第二方向的第六输入,取消对第一视频片段的复制处理。其中,第二方向为从时间点B滑动至时间点A的方向;其中,第六输入的输入方向和第六子输入的输入方向相反。As shown in FIG. 11 , the copying process of the first video segment can be canceled by a sixth input to the copying indicator 1110 along the second direction. The second direction is the direction of sliding from time point B to time point A; wherein the input direction of the sixth input is opposite to the input direction of the sixth sub-input.

由此,响应于对复制标识的第六输入,能够快速取消对第一视频片段的复制处理,得到第三视频,提升视频编辑效率。Therefore, in response to the sixth input of the copy flag, the copy process of the first video clip can be quickly canceled to obtain the third video, thereby improving the video editing efficiency.

在一种可能的实施例中,在第二编辑功能包括删除功能的情况下,第二输入包括第七子输入,步骤140,具体可以包括以下步骤:In a possible embodiment, when the second editing function includes a delete function, the second input includes a seventh sub-input, step 140 may specifically include the following steps:

响应于第七子输入,删除第一视频片段的至少部分图像帧;responsive to the seventh sub-input, deleting at least a portion of the image frames of the first video segment;

第二标识包括删除标识,删除标识指示不能对第一视频片段中的至少部分图像帧进行编辑处理。The second identification includes a deletion identification indicating that at least part of the image frames in the first video segment cannot be edited.

如图12所示,第七子输入可以为长按时间点A沿编辑进度条移动至选择范围内任意位置的输入,响应于第七子输入,删除第一视频片段的至少部分图像帧;在删除第一视频片段的至少部分图像帧之前,可以显示提示信息,提示信息用于提示用户是否确认删除第一视频片段的至少部分图像帧。As shown in Figure 12, the seventh sub-input can be an input of long pressing time point A and moving along the editing progress bar to any position within the selection range. In response to the seventh sub-input, at least part of the image frames of the first video clip is deleted; Before deleting at least part of the image frames of the first video clip, prompt information may be displayed, and the prompt information is used to prompt the user whether to confirm deletion of at least part of the image frames of the first video clip.

其中,当第七子输入为长按时间点A沿编辑进度条移动时,响应于第七子输入,删除第一视频片段的至少部分图像帧,被删除的第一视频片段的至少部分图像帧为时间点A至时间点B之间的至少部分图像帧。Wherein, when the seventh sub-input is long pressing time point A to move along the editing progress bar, in response to the seventh sub-input, at least part of the image frames of the first video segment is deleted, and at least part of the image frames of the deleted first video segment are It is at least part of the image frames between time point A and time point B.

其中,第二标识包括删除标识,删除标识指示第一视频片段中的至少部分图像帧已经被删除,不能对第一视频片段中的至少部分图像帧进行编辑处理。Wherein, the second identification includes a deletion identification, and the deletion identification indicates that at least some of the image frames in the first video clip have been deleted, and at least some of the image frames in the first video clip cannot be edited.

如图13所示,被删除的第一视频片段中的至少部分图像帧对应的编辑进度条将改变显示方式,如以虚线显示第一视频片段中的至少部分图像帧,用于表示第一视频片段中的至少部分图像帧已被删除,无法进行编辑。As shown in Figure 13, the editing progress bar corresponding to at least part of the image frames in the deleted first video clip will change the display mode, such as displaying at least part of the image frames in the first video clip with a dotted line to represent the first video At least some of the image frames in the clip have been removed and cannot be edited.

之后再播放第二视频时,当播放到第一视频片段对应的时刻时,被删除的第一视频片段中的至少部分图像帧会被跳过,即会播放除了被删除的第一视频片段中的至少部分图像帧之外的图像帧。由此,响应于第七子输入,可以快速删除第一视频片段的至少部分图像帧,操作简单,提升了视频编辑效率。When the second video is played later, when the moment corresponding to the first video clip is played, at least some of the image frames in the deleted first video clip will be skipped, that is, all the image frames except the deleted first video clip will be played. image frames outside at least part of the image frames. Thus, in response to the seventh sub-input, at least part of the image frames of the first video clip can be quickly deleted, which is simple to operate and improves video editing efficiency.

在一种可能的实施例中,步骤140之后,还可以包括以下步骤:In a possible embodiment, after step 140, the following steps may also be included:

接收用户的第七输入;Receive seventh input from the user;

响应于第七输入,生成配置文件,配置文件用于配置第一视频的播放参数。In response to the seventh input, a configuration file is generated, and the configuration file is used to configure playback parameters of the first video.

响应于第七输入,生成用于配置第一视频的播放参数的配置文件,以用于后续可以根据配置文件,确定视频播放参数。In response to the seventh input, a configuration file for configuring the playback parameters of the first video is generated, so that the video playback parameters can be determined later based on the configuration file.

在一种可能的实施例中,配置文件响应于第七输入,生成配置文件的步骤之后,还可以包括以下步骤:In a possible embodiment, after the step of generating the configuration file in response to the seventh input, the configuration file may also include the following steps:

显示至少一个视频标识;display at least one video logo;

接收对至少一个视频标识中的目标视频标识的第九输入;receiving a ninth input to a target video identification of the at least one video identification;

响应于第九输入,播放目标视频标识对应的视频。In response to the ninth input, the video corresponding to the target video identification is played.

在编辑得到视频之后,可以显示第一视频和第一视频对应的至少一个视频标识,一个视频标识对应一个第二视频,第二视频都是对第一视频编辑后得到的视频。After the video is edited, the first video and at least one video identifier corresponding to the first video can be displayed, and one video identifier corresponds to a second video. The second videos are all videos obtained after editing the first video.

视频标识可以为视频标题,视频标题可以为创作者为第二视频编辑的视频标题。The video identification may be a video title, and the video title may be a video title edited by the creator for the second video.

显示至少一个视频标识,可以便于用户从中选中想要观看的编辑后的第一视频。响应于对至少一个视频标识中的目标视频标识的输入,播放目标视频标识对应的视频。Displaying at least one video identifier can facilitate the user to select the edited first video that he or she wants to watch. In response to the input of the target video identification in the at least one video identification, a video corresponding to the target video identification is played.

这里,一个第一视频对应至少一个第二视频,每个第二视频对应不同的编辑效果,便于用户观看经过不同编辑操作的第二视频,能够增加视频播放趣味性。Here, one first video corresponds to at least one second video, and each second video corresponds to a different editing effect, which facilitates users to watch the second video that has undergone different editing operations, and can increase the interest of video playback.

在本申请的实施例中,通过显示编辑进度条,便于用户编辑,以及在第一视频的播放界面显示编辑进度条的情况下,接收用户对编辑进度条的第一输入,第一输入用于指示用户想要进行编辑的第一图像帧或第一视频片段,响应于第一输入,在编辑进度条上显示用于确定第一视频中的第一图像帧或第一视频片段的第一标识,便于用户通过第一标识查看和确认想要进行编辑的第一图像帧或第一视频片段,由此,通过第一标识能够直观清晰的确定第一视频中的第一图像帧或第一视频片段,便于用户后续对第一视频中的第一图像帧或第一视频片段进行编辑处理。然后,响应于用户的第二输入,对第一视频中的第一图像帧或第一视频片段进行编辑处理,得到第二视频,这里,能够快速便捷地对第一视频中的用户想要进行编辑的第一图像帧或第一视频片段进行编辑处理,降低了视频编辑的繁琐程度和难度。其中,第二视频的播放界面包括用于指示对第一图像帧或第一视频片段进行了编辑处理的第二标识,便于观看者快速直观地了解第二视频是进行了编辑处理的视频。In the embodiment of the present application, the editing progress bar is displayed to facilitate user editing, and when the editing progress bar is displayed on the playing interface of the first video, the user's first input to the editing progress bar is received, and the first input is used to indicating a first image frame or a first video segment that the user wants to edit, and in response to the first input, displaying a first identification for determining the first image frame or the first video segment in the first video on the editing progress bar , it is convenient for the user to view and confirm the first image frame or the first video clip that he wants to edit through the first identification. Therefore, the first image frame or the first video in the first video can be intuitively and clearly determined through the first identification. The segment facilitates the user to subsequently edit the first image frame or first video segment in the first video. Then, in response to the user's second input, the first image frame or the first video clip in the first video is edited to obtain the second video, where the user's desired actions in the first video can be quickly and conveniently performed. The edited first image frame or first video clip is edited, which reduces the tediousness and difficulty of video editing. Wherein, the playback interface of the second video includes a second identification indicating that the first image frame or the first video clip has been edited, so that the viewer can quickly and intuitively understand that the second video is an edited video.

本申请实施例提供的视频处理方法,执行主体可以为终端。本申请实施例中以终端执行视频处理方法为例,说明本申请实施例提供的终端。For the video processing method provided by the embodiments of this application, the execution subject may be a terminal. In the embodiments of this application, the video processing method performed by a terminal is used as an example to describe the terminal provided by the embodiments of this application.

图14是本申请实施例提供的一种终端的框图,该终端1400包括:Figure 14 is a block diagram of a terminal provided by an embodiment of the present application. The terminal 1400 includes:

接收模块1410,用于在第一视频的播放界面显示编辑进度条的情况下,接收用户对所述编辑进度条的第一输入;The receiving module 1410 is configured to receive the user's first input to the editing progress bar when the editing progress bar is displayed on the playback interface of the first video;

显示模块1420,用于响应于所述第一输入,在所述编辑进度条上显示第一标识,所述第一标识用于确定所述第一视频中的第一图像帧或第一视频片段;The display module 1420 is configured to display a first identification on the editing progress bar in response to the first input, the first identification being used to determine the first image frame or the first video segment in the first video. ;

所述接收模块1410,还用于接收用户的第二输入;The receiving module 1410 is also used to receive the user's second input;

编辑模块1430,用于响应于所述第二输入,对所述第一视频中的所述第一图像帧或所述第一视频片段进行编辑处理,得到第二视频,所述第二视频的播放界面包括第二标识,所述第二标识用于指示对所述第一图像帧或所述第一视频片段进行了编辑处理。The editing module 1430 is configured to edit the first image frame or the first video clip in the first video in response to the second input to obtain a second video. The playback interface includes a second identification, and the second identification is used to indicate that the first image frame or the first video clip has been edited.

在一种可能的实施例中,第一标识包括第一子标识和第二子标识;In a possible embodiment, the first identification includes a first sub-identification and a second sub-identification;

所述接收模块1410,还用于接收用户对所述第一子标识或所述第二子标识的第三输入;The receiving module 1410 is also configured to receive the user's third input to the first sub-identity or the second sub-identity;

该终端1400还包括:The terminal 1400 also includes:

第一更新模块,用于响应于所述第三输入,更新所述第一标识在所述编辑进度条上的位置,并更新所述第一标识指示的所述第一视频中的图像帧;A first update module, configured to respond to the third input, update the position of the first identification on the editing progress bar, and update the image frame in the first video indicated by the first identification;

其中,所述第一子标识和所述第二子标识对应的功能不同。Wherein, the first sub-identity and the second sub-identity correspond to different functions.

在一种可能的实施例中,接收模块1410,还用于接收用户对所述第一标识的第四输入;In a possible embodiment, the receiving module 1410 is also configured to receive the user's fourth input to the first identification;

该终端1400还包括:The terminal 1400 also includes:

第二更新模块,用于响应于所述第四输入,更新所述第一子标识或所述第二子标识的显示位置。A second update module, configured to update the display position of the first sub-identity or the second sub-identity in response to the fourth input.

在一种可能的实施例中,在第一标识用于确定第一视频中的第一图像帧的情况下,第二输入包括第一子输入和第二子输入;编辑模块1430,具体用于:In a possible embodiment, when the first identifier is used to determine the first image frame in the first video, the second input includes a first sub-input and a second sub-input; the editing module 1430 is specifically used to :

响应于第一子输入,在第一图像帧的对应区域显示至少一个图像编辑功能;responsive to the first sub-input, displaying at least one image editing function in a corresponding area of the first image frame;

响应于用户对至少一个图像编辑功能中的第一编辑功能的第二子输入,基于第一编辑功能对第一图像帧进行编辑处理。In response to a second sub-input by a user to a first editing function of the at least one image editing function, editing processing is performed on the first image frame based on the first editing function.

在一种可能的实施例中,接收模块1410,还用于接收用户对编辑进度条的第五输入;In a possible embodiment, the receiving module 1410 is also configured to receive the user's fifth input to the editing progress bar;

显示模块1420,还用于响应于第五输入,在编辑进度条上显示第三标识,第三标识的显示位置与第一标识的显示位置不同,第三标识和第一标识指示第一视频中的第一视频片段。The display module 1420 is also configured to display a third logo on the editing progress bar in response to the fifth input. The display position of the third logo is different from the display position of the first logo. The third logo and the first logo indicate that in the first video of the first video clip.

在一种可能的实施例中,第二输入包括第三子输入和第四子输入;编辑模块1430,具体用于:In a possible embodiment, the second input includes a third sub-input and a fourth sub-input; the editing module 1430 is specifically used for:

响应于用户的第三子输入,显示至少一个视频编辑功能;responsive to the user's third sub-input, displaying at least one video editing function;

响应于用户对至少一个视频编辑功能中的第二编辑功能的第四子输入,基于第二编辑功能对第一视频片段进行编辑处理;In response to a fourth sub-input by the user to a second editing function of the at least one video editing function, performing editing processing on the first video segment based on the second editing function;

其中,视频编辑功能包括以下至少一项:音量调节功能、播放速度调节功能、图像参数调节功能、复制功能和删除功能。Among them, the video editing function includes at least one of the following: volume adjustment function, playback speed adjustment function, image parameter adjustment function, copy function and delete function.

在一种可能的实施例中,第二输入包括第五子输入,编辑模块1430,具体用于:In a possible embodiment, the second input includes a fifth sub-input, the editing module 1430, specifically used for:

响应于用户对编辑进度条的第五子输入,根据第五子输入的输入参数对第一视频片段进行编辑处理;其中,输入参数包括以下至少一项:输入方向、输入距离、输入压力。In response to the user's fifth sub-input to the editing progress bar, the first video clip is edited according to the input parameters of the fifth sub-input; wherein the input parameters include at least one of the following: input direction, input distance, and input pressure.

在一种可能的实施例中,在第二编辑功能包括复制功能的情况下,第二输入包括第六子输入,编辑模块1430,具体用于:In a possible embodiment, when the second editing function includes a copy function, the second input includes a sixth sub-input, and the editing module 1430 is specifically used for:

响应于第六子输入,对第一视频片段进行复制处理,得到第二视频,第二标识包括复制标识,复制标识指示重复播放第一视频片段中的至少部分图像帧。In response to the sixth sub-input, copy processing is performed on the first video segment to obtain a second video, the second identification includes a copy identification, and the copy identification indicates repeated playback of at least part of the image frames in the first video segment.

在一种可能的实施例中,接收模块1410,还用于接收用户对复制标识的第六输入;In a possible embodiment, the receiving module 1410 is also configured to receive the user's sixth input of the copy identification;

该终端1400还可以包括:The terminal 1400 may also include:

取消模块,用于响应于第六输入,取消显示复制标识,并取消对第一视频片段的复制处理,得到第三视频。A cancellation module, configured to respond to the sixth input, cancel the display of the copy identification, and cancel the copy processing of the first video clip to obtain a third video.

在一种可能的实施例中,在第二编辑功能包括删除功能的情况下,第二输入包括第七子输入,编辑模块1430,具体用于:In a possible embodiment, when the second editing function includes a delete function, the second input includes a seventh sub-input, and the editing module 1430 is specifically used for:

响应于第七子输入,删除第一视频片段的至少部分图像帧;responsive to the seventh sub-input, deleting at least a portion of the image frames of the first video segment;

第二标识包括删除标识,删除标识指示不能对第一视频片段中的至少部分图像帧进行编辑处理。The second identification includes a deletion identification indicating that at least part of the image frames in the first video segment cannot be edited.

在一种可能的实施例中,接收模块1410,还用于接收用户的第七输入;In a possible embodiment, the receiving module 1410 is also used to receive the user's seventh input;

该终端1400还可以包括:The terminal 1400 may also include:

生成模块,用于响应于第七输入,生成配置文件,配置文件用于配置第一视频的播放参数。A generating module, configured to generate a configuration file in response to the seventh input, where the configuration file is used to configure playback parameters of the first video.

在一种可能的实施例中,接收模块1410,还用于接收用户对编辑进度条的第八输入;In a possible embodiment, the receiving module 1410 is also configured to receive the user's eighth input to the editing progress bar;

该终端1400还可以包括:The terminal 1400 may also include:

第三更新模块,用于响应于第八输入,更新编辑进度条的显示位置或隐藏编辑进度条。The third update module is configured to update the display position of the editing progress bar or hide the editing progress bar in response to the eighth input.

在本申请的实施例中,通过显示编辑进度条,便于用户编辑,以及在第一视频的播放界面显示编辑进度条的情况下,接收用户对编辑进度条的第一输入,第一输入用于指示用户想要进行编辑的第一图像帧或第一视频片段,响应于第一输入,在编辑进度条上显示用于确定第一视频中的第一图像帧或第一视频片段的第一标识,便于用户通过第一标识查看和确认想要进行编辑的第一图像帧或第一视频片段,由此,通过第一标识能够直观清晰的确定第一视频中的第一图像帧或第一视频片段,便于用户后续对第一视频中的第一图像帧或第一视频片段进行编辑处理。然后,响应于用户的第二输入,对第一视频中的第一图像帧或第一视频片段进行编辑处理,得到第二视频,这里,能够快速便捷地对第一视频中的用户想要进行编辑的第一图像帧或第一视频片段进行编辑处理,降低了视频编辑的繁琐程度。其中,第二视频的播放界面包括用于指示对第一图像帧或第一视频片段进行了编辑处理的第二标识,便于观看者快速直观的了解第二视频是进行了编辑处理的视频。In the embodiment of the present application, the editing progress bar is displayed to facilitate user editing, and when the editing progress bar is displayed on the playing interface of the first video, the user's first input to the editing progress bar is received, and the first input is used to indicating a first image frame or a first video segment that the user wants to edit, and in response to the first input, displaying a first identification for determining the first image frame or the first video segment in the first video on the editing progress bar , it is convenient for the user to view and confirm the first image frame or the first video clip that he wants to edit through the first identification. Therefore, the first image frame or the first video in the first video can be intuitively and clearly determined through the first identification. The segment facilitates the user to subsequently edit the first image frame or first video segment in the first video. Then, in response to the user's second input, the first image frame or the first video clip in the first video is edited to obtain the second video, where the user's desired actions in the first video can be quickly and conveniently performed. The edited first image frame or first video clip is edited, which reduces the tediousness of video editing. Wherein, the playback interface of the second video includes a second identification indicating that the first image frame or the first video clip has been edited, so that the viewer can quickly and intuitively understand that the second video is an edited video.

本申请实施例中的终端可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(MobileInternet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The terminal in the embodiment of the present application may be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal or other devices other than the terminal. For example, the electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted electronic device, a mobile Internet device (MID), or augmented reality (AR)/virtual reality (VR). Devices, robots, wearable devices, ultra-mobile personal computers (UMPC), netbooks or personal digital assistants (PDA), etc., can also be servers, network attached storage (Network Attached Storage, NAS), etc. ), personal computer (PC), television (TV), teller machine or self-service machine, etc., the embodiments of this application are not specifically limited.

本申请实施例的终端可以为具有动作系统的装置。该动作系统可以为安卓(Android)动作系统,可以为iOS动作系统,还可以为其他可能的动作系统,本申请实施例不作具体限定。The terminal in the embodiment of the present application may be a device with an action system. The action system can be an Android action system, an iOS action system, or other possible action systems, which are not specifically limited in the embodiments of this application.

本申请实施例提供的终端能够实现上述方法实施例实现的各个过程,实现相同的技术效果,为避免重复,这里不再赘述。The terminal provided by the embodiments of this application can implement each process implemented by the above method embodiments and achieve the same technical effect. To avoid duplication, details will not be described here.

可选地,如图15所示,本申请实施例还提供一种电子设备1510,包括处理器1511,存储器1512,存储在存储器1512上并可在处理器1511上运行的程序或指令,该程序或指令被处理器1511执行时实现上述任一视频处理方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in Figure 15, this embodiment of the present application also provides an electronic device 1510, including a processor 1511, a memory 1512, and a program or instructions stored on the memory 1512 and executable on the processor 1511. The program Or when the instruction is executed by the processor 1511, each step of any of the above video processing method embodiments is implemented, and the same technical effect can be achieved. To avoid repetition, the details will not be described here.

需要说明的是,本申请实施例的电子设备包括上述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

图16为实现本申请实施例的一种电子设备的硬件结构示意图。Figure 16 is a schematic diagram of the hardware structure of an electronic device that implements an embodiment of the present application.

该电子设备1600包括但不限于:射频单元1601、网络模块1602、音频输出单元1603、输入单元1604、传感器1605、显示单元1606、用户输入单元1607、接口单元1608、存储器1609、以及处理器1610等部件。The electronic device 1600 includes but is not limited to: radio frequency unit 1601, network module 1602, audio output unit 1603, input unit 1604, sensor 1605, display unit 1606, user input unit 1607, interface unit 1608, memory 1609, processor 1610, etc. part.

本领域技术人员可以理解,电子设备1600还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1610逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图16中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 1600 may also include a power supply (such as a battery) that supplies power to various components. The power supply may be logically connected to the processor 1610 through a power management system, thereby managing charging, discharging, and function through the power management system. Consumption management and other functions. The structure of the electronic device shown in Figure 16 does not constitute a limitation of the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange different components, which will not be described again here. .

其中,用户输入单元1607,用于在第一视频的播放界面显示编辑进度条的情况下,接收用户对编辑进度条的第一输入;Among them, the user input unit 1607 is used to receive the user's first input to the editing progress bar when the editing progress bar is displayed on the playback interface of the first video;

显示单元1606,用于响应于第一输入,在编辑进度条上显示第一标识,第一标识用于确定第一视频中的第一图像帧或第一视频片段;The display unit 1606 is configured to display a first identification on the editing progress bar in response to the first input, where the first identification is used to determine the first image frame or the first video segment in the first video;

用户输入单元1607,还用于接收用户的第二输入;The user input unit 1607 is also used to receive the second input from the user;

处理器1610,用于响应于第二输入,对第一视频中的第一图像帧或第一视频片段进行编辑处理,得到第二视频,第二视频的播放界面包括第二标识,第二标识用于指示对第一图像帧或第一视频片段进行了编辑处理。The processor 1610 is configured to edit the first image frame or the first video clip in the first video in response to the second input to obtain a second video. The playback interface of the second video includes a second logo, and the second logo Used to indicate that the first image frame or first video clip has been edited.

在一些实施方式中,第一标识包括第一子标识和第二子标识;In some embodiments, the first identification includes a first sub-identification and a second sub-identification;

用户输入单元1607,还用于接收用户对第一子标识或第二子标识的第三输入;The user input unit 1607 is also used to receive the user's third input to the first sub-identity or the second sub-identity;

处理器1610,还用于响应于第三输入,更新第一标识在编辑进度条上的位置,并更新第一标识指示的第一视频中的图像帧;The processor 1610 is also configured to respond to the third input, update the position of the first identification on the editing progress bar, and update the image frame in the first video indicated by the first identification;

其中,第一子标识和第二子标识对应的功能不同。Among them, the first sub-identity and the second sub-identity correspond to different functions.

在一些实施方式中,用户输入单元1607,还用于接收用户对第一标识的第四输入;In some implementations, the user input unit 1607 is also used to receive the user's fourth input to the first identification;

处理器1610,还用于响应于第四输入,更新第一子标识和第二子标识的显示位置。The processor 1610 is also configured to update the display positions of the first sub-identity and the second sub-identity in response to the fourth input.

在一些实施方式中,在第一标识用于确定第一视频中的第一图像帧的情况下,第二输入包括第一子输入和第二子输入;显示单元1606,还用于响应于第一子输入,在第一图像帧的对应区域显示至少一个图像编辑功能;In some embodiments, in the case where the first identification is used to determine the first image frame in the first video, the second input includes a first sub-input and a second sub-input; the display unit 1606 is also configured to respond to the first A sub-input, displaying at least one image editing function in the corresponding area of the first image frame;

处理器1610,还用于响应于用户对至少一个图像编辑功能中的第一编辑功能的第二子输入,基于第一编辑功能对第一图像帧进行编辑处理。The processor 1610 is further configured to perform editing processing on the first image frame based on the first editing function in response to the user's second sub-input to the first editing function in the at least one image editing function.

在一些实施方式中,用户输入单元1607,还用于接收用户对编辑进度条的第五输入;In some implementations, the user input unit 1607 is also used to receive the user's fifth input to the editing progress bar;

显示单元1606,还用于响应于第五输入,在编辑进度条上显示第三标识,第三标识的显示位置与第一标识的显示位置不同,第三标识和第一标识指示第一视频中的第一视频片段。The display unit 1606 is also configured to display a third logo on the editing progress bar in response to the fifth input. The display position of the third logo is different from the display position of the first logo. The third logo and the first logo indicate that in the first video of the first video clip.

在一些实施方式中,第二输入包括第三子输入和第四子输入;显示单元1606,还用于响应于用户的第三子输入,显示至少一个视频编辑功能;In some embodiments, the second input includes a third sub-input and a fourth sub-input; the display unit 1606 is further configured to display at least one video editing function in response to the user's third sub-input;

处理器1610,还用于响应于用户对至少一个视频编辑功能中的第二编辑功能的第四子输入,基于第二编辑功能对第一视频片段进行编辑处理;The processor 1610 is further configured to perform editing processing on the first video clip based on the second editing function in response to the user's fourth sub-input to the second editing function in the at least one video editing function;

其中,视频编辑功能包括以下至少一项:音量调节功能、播放速度调节功能、图像参数调节功能、复制功能和删除功能。Among them, the video editing function includes at least one of the following: volume adjustment function, playback speed adjustment function, image parameter adjustment function, copy function and delete function.

在一些实施方式中,第二输入包括第五子输入,处理器1610,还用于响应于用户对编辑进度条的第五子输入,根据第五子输入的输入参数对第一视频片段进行编辑处理;其中,输入参数包括以下至少一项:输入方向、输入距离、输入压力。In some embodiments, the second input includes a fifth sub-input, and the processor 1610 is further configured to edit the first video segment according to the input parameters of the fifth sub-input in response to the user's fifth sub-input to the editing progress bar. Processing; wherein the input parameters include at least one of the following: input direction, input distance, and input pressure.

在一些实施方式中,在第二编辑功能包括复制功能的情况下,第二输入包括第六子输入,处理器1610,还用于响应于第六子输入,对第一视频片段进行复制处理,得到第二视频,第二标识包括复制标识,复制标识指示重复播放第一视频片段中的至少部分图像帧。In some embodiments, in the case where the second editing function includes a copy function, the second input includes a sixth sub-input, and the processor 1610 is further configured to perform copy processing on the first video clip in response to the sixth sub-input, A second video is obtained, the second identification includes a copy identification, and the copy identification indicates repeated playback of at least part of the image frames in the first video segment.

在一些实施方式中,用户输入单元1607,还用于接收用户对复制标识的第六输入;In some implementations, the user input unit 1607 is also used to receive the user's sixth input to the copy identification;

处理器1610,还用于响应于第六输入,取消显示复制标识,并取消对第一视频片段的复制处理,得到第三视频。The processor 1610 is also configured to respond to the sixth input, cancel the display of the copy identification, and cancel the copy processing of the first video segment to obtain the third video.

在一些实施方式中,在第二编辑功能包括删除功能的情况下,第二输入包括第七子输入,处理器1610,还用于响应于第七子输入,删除第一视频片段的至少部分图像帧;In some embodiments, where the second editing function includes a delete function, the second input includes a seventh sub-input, the processor 1610 is further configured to delete at least part of the image of the first video segment in response to the seventh sub-input. frame;

第二标识包括删除标识,删除标识指示不能对第一视频片段中的至少部分图像帧进行编辑处理。The second identification includes a deletion identification indicating that at least part of the image frames in the first video segment cannot be edited.

在一些实施方式中,用户输入单元1607,还用于接收用户的第七输入;In some implementations, the user input unit 1607 is also used to receive the user's seventh input;

处理器1610,还用于响应于第七输入,生成配置文件,配置文件用于配置第一视频的播放参数。The processor 1610 is also configured to generate a configuration file in response to the seventh input, and the configuration file is used to configure the playback parameters of the first video.

在一些实施方式中,用户输入单元1607,还用于接收用户对编辑进度条的第八输入;In some implementations, the user input unit 1607 is also used to receive the user's eighth input to the editing progress bar;

处理器1610,还用于响应于第八输入,更新编辑进度条的显示位置或隐藏编辑进度条。The processor 1610 is also configured to update the display position of the editing progress bar or hide the editing progress bar in response to the eighth input.

在本申请的实施例中,通过显示编辑进度条,便于用户编辑,以及在第一视频的播放界面显示编辑进度条的情况下,接收用户对编辑进度条的第一输入,第一输入用于指示用户想要进行编辑的第一图像帧或第一视频片段,响应于第一输入,在编辑进度条上显示用于确定第一视频中的第一图像帧或第一视频片段的第一标识,便于用户通过第一标识查看和确认想要进行编辑的第一图像帧或第一视频片段,由此,通过第一标识能够直观清晰的确定第一视频中的第一图像帧或第一视频片段,便于用户后续对第一视频中的第一图像帧或第一视频片段进行编辑处理。然后,响应于用户的第二输入,对第一视频中的第一图像帧或第一视频片段进行编辑处理,得到第二视频,这里,能够快速便捷地对第一视频中的用户想要进行编辑的第一图像帧或第一视频片段进行编辑处理,降低了视频编辑的繁琐程度。其中,第二视频的播放界面包括用于指示对第一图像帧或第一视频片段进行了编辑处理的第二标识,便于观看者快速直观的了解第二视频是进行了编辑处理的视频。In the embodiment of the present application, the editing progress bar is displayed to facilitate user editing, and when the editing progress bar is displayed on the playing interface of the first video, the user's first input to the editing progress bar is received, and the first input is used to indicating a first image frame or a first video segment that the user wants to edit, and in response to the first input, displaying a first identification for determining the first image frame or the first video segment in the first video on the editing progress bar , it is convenient for the user to view and confirm the first image frame or the first video clip that he wants to edit through the first identification. Therefore, the first image frame or the first video in the first video can be intuitively and clearly determined through the first identification. The segment facilitates the user to subsequently edit the first image frame or first video segment in the first video. Then, in response to the user's second input, the first image frame or the first video clip in the first video is edited to obtain the second video, where the user's desired actions in the first video can be quickly and conveniently performed. The edited first image frame or first video clip is edited, which reduces the tediousness of video editing. Wherein, the playback interface of the second video includes a second identification indicating that the first image frame or the first video clip has been edited, so that the viewer can quickly and intuitively understand that the second video is an edited video.

应理解的是,本申请实施例中,输入单元1604可以包括图形处理器(GraphicsProcessing Unit,GPU)16041和麦克风16042,图形处理器16041对在视频图像捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频图像的图像数据进行处理。显示单元1606可包括显示面板16061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板16061。用户输入单元1607包括触控面板16071以及其他输入设备16072中的至少一种。触控面板16071,也称为触控屏触控屏。触控面板16071可包括触摸检测装置和触摸控制器两个部分。其他输入设备16072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、动作杆,在此不再赘述。存储器1609可用于存储软件程序以及各种数据,包括但不限于应用程序和动作系统。处理器1610可集成应用处理器和调制解调处理器,其中,应用处理器主要处理动作系统、用户页面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1610中。It should be understood that in the embodiment of the present application, the input unit 1604 may include a graphics processor (Graphics Processing Unit, GPU) 16041 and a microphone 16042. The graphics processor 16041 is responsible for the operation of the image capture device (GPU) in the video image capture mode or the image capture mode. Process the image data of still pictures or video images obtained by a camera (such as a camera). The display unit 1606 may include a display panel 16061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1607 includes a touch panel 16071 and at least one of other input devices 16072. Touch panel 16071, also known as touch screen touch screen. The touch panel 16071 may include two parts: a touch detection device and a touch controller. Other input devices 16072 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and action sticks, which will not be described again here. Memory 1609 may be used to store software programs as well as various data, including but not limited to application programs and action systems. The processor 1610 can integrate an application processor and a modem processor, where the application processor mainly processes action systems, user pages, application programs, etc., and the modem processor mainly processes wireless communications. It can be understood that the above modem processor may not be integrated into the processor 1610.

存储器1609可用于存储软件程序以及各种数据。存储器1609可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器1609可以包括易失性存储器或非易失性存储器,或者,存储器x09可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器1609包括但不限于这些和任意其它适合类型的存储器。Memory 1609 may be used to store software programs as well as various data. The memory 1609 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, Image playback function, etc.) etc. Additionally, memory 1609 may include volatile memory or non-volatile memory, or memory x09 may include both volatile and non-volatile memory. Among them, the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically removable memory. Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM) , SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM). Memory 1609 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.

处理器1610可包括一个或多个处理单元;可选地,处理器1610集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器1610中。The processor 1610 may include one or more processing units; optionally, the processor 1610 integrates an application processor and a modem processor, where the application processor mainly handles operations related to the operating system, user interface, application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the above modem processor may not be integrated into the processor 1610.

本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述视频处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application also provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the program or instructions are executed by a processor, each process of the above video processing method embodiment is implemented, and the same can be achieved. The technical effects will not be repeated here to avoid repetition.

其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disk or optical disk, etc.

本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述视频处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the above video processing method embodiment. Each process can achieve the same technical effect. To avoid duplication, it will not be described again here.

应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-a-chip or system-on-chip, etc.

本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述视频处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application provide a computer program product. The program product is stored in a storage medium. The program product is executed by at least one processor to implement each process of the above video processing method embodiment, and can achieve the same technical effect. , to avoid repetition, will not be repeated here.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the terms "comprising", "comprises" or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in the process, method, article or apparatus. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or apparatus that includes that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, but may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions may be performed, for example, the methods described may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a computer software product that is essentially or contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM, disk , optical disk), including several instructions to cause a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of this application.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Inspired by this application, many forms can be made without departing from the purpose of this application and the scope protected by the claims, all of which fall within the protection of this application.

Claims (15)

Translated fromChinese
1.一种视频处理方法,其特征在于,所述方法包括:1. A video processing method, characterized in that the method includes:在第一视频的播放界面显示编辑进度条的情况下,接收用户对所述编辑进度条的第一输入;When the editing progress bar is displayed on the playback interface of the first video, receiving the user's first input to the editing progress bar;响应于所述第一输入,在所述编辑进度条上显示第一标识,所述第一标识用于确定所述第一视频中的第一图像帧或第一视频片段;In response to the first input, display a first identification on the editing progress bar, the first identification being used to determine the first image frame or the first video segment in the first video;接收用户的第二输入;receive second input from the user;响应于所述第二输入,对所述第一视频中的所述第一图像帧或所述第一视频片段进行编辑处理,得到第二视频,所述第二视频的播放界面包括第二标识,所述第二标识用于指示对所述第一图像帧或所述第一视频片段进行了编辑处理。In response to the second input, the first image frame or the first video clip in the first video is edited to obtain a second video, and the playback interface of the second video includes a second identification , the second identification is used to indicate that the first image frame or the first video clip has been edited.2.根据权利要求1所述的方法,其特征在于,所述第一标识包括第一子标识和第二子标识;2. The method according to claim 1, characterized in that the first identification includes a first sub-identification and a second sub-identification;所述接收用户的第二输入之前,所述方法还包括:Before receiving the second input from the user, the method further includes:接收用户对所述第一子标识或所述第二子标识的第三输入;Receive a third input from the user to the first sub-identity or the second sub-identity;响应于所述第三输入,更新所述第一标识在所述编辑进度条上的位置,并更新所述第一标识指示的所述第一视频中的图像帧;In response to the third input, update the position of the first identification on the editing progress bar, and update the image frame in the first video indicated by the first identification;其中,所述第一子标识和所述第二子标识对应的功能不同。Wherein, the first sub-identity and the second sub-identity correspond to different functions.3.根据权利要求2所述的方法,其特征在于,所述在所述编辑进度条上显示第一标识之后,所述方法还包括:3. The method according to claim 2, characterized in that, after the first identifier is displayed on the editing progress bar, the method further includes:接收用户对所述第一标识的第四输入;Receive a fourth input from the user to the first identification;响应于所述第四输入,更新所述第一子标识和所述第二子标识的显示位置。In response to the fourth input, the display positions of the first sub-identity and the second sub-identity are updated.4.根据权利要求1所述的方法,其特征在于,在所述第一标识用于确定所述第一视频中的第一图像帧的情况下,所述第二输入包括第一子输入和第二子输入;所述响应于所述第二输入,对所述第一视频中的所述第一图像帧或所述第一视频片段进行编辑处理,包括:4. The method of claim 1, wherein when the first identification is used to determine a first image frame in the first video, the second input includes a first sub-input and a second sub-input; in response to the second input, editing the first image frame or the first video clip in the first video includes:响应于所述第一子输入,在所述第一图像帧的对应区域显示至少一个图像编辑功能;In response to the first sub-input, display at least one image editing function in a corresponding area of the first image frame;响应于用户对所述至少一个图像编辑功能中的第一编辑功能的第二子输入,基于所述第一编辑功能对所述第一图像帧进行编辑处理。In response to a second sub-input by a user to a first editing function of the at least one image editing function, editing processing is performed on the first image frame based on the first editing function.5.根据权利要求1所述的方法,其特征在于,所述在所述编辑进度条上显示第一标识之后,所述方法还包括:5. The method according to claim 1, characterized in that, after the first identifier is displayed on the editing progress bar, the method further includes:接收用户对所述编辑进度条的第五输入;Receive a fifth input from the user to the editing progress bar;响应于所述第五输入,在所述编辑进度条上显示第三标识,所述第三标识的显示位置与所述第一标识的显示位置不同,所述第三标识和所述第一标识指示所述第一视频中的第一视频片段。In response to the fifth input, a third logo is displayed on the editing progress bar. The display position of the third logo is different from the display position of the first logo. The third logo and the first logo are Indicates the first video segment in the first video.6.根据权利要求5所述的方法,其特征在于,所述第二输入包括第三子输入和第四子输入;所述响应于所述第二输入,对所述第一视频中的所述第一图像帧或所述第一视频片段进行编辑处理,包括:6. The method of claim 5, wherein the second input includes a third sub-input and a fourth sub-input; and in response to the second input, all the elements in the first video are Editing the first image frame or the first video clip includes:响应于用户的第三子输入,显示至少一个视频编辑功能;responsive to the user's third sub-input, displaying at least one video editing function;响应于用户对所述至少一个视频编辑功能中的第二编辑功能的第四子输入,基于所述第二编辑功能对所述第一视频片段进行编辑处理;In response to a fourth sub-input by a user to a second editing function in the at least one video editing function, performing editing processing on the first video clip based on the second editing function;其中,所述视频编辑功能包括以下至少一项:音量调节功能、播放速度调节功能、图像参数调节功能、复制功能和删除功能。Wherein, the video editing function includes at least one of the following: volume adjustment function, playback speed adjustment function, image parameter adjustment function, copy function and delete function.7.根据权利要求6所述的方法,其特征在于,所述第二输入包括第五子输入,所述基于所述第二视频编辑功能对所述第一视频片段进行编辑处理,包括:7. The method of claim 6, wherein the second input includes a fifth sub-input, and editing the first video clip based on the second video editing function includes:响应于用户对所述编辑进度条的第五子输入,根据所述第五子输入的输入参数对所述第一视频片段进行编辑处理;其中,所述输入参数包括以下至少一项:输入方向、输入距离、输入压力。In response to the user's fifth sub-input to the editing progress bar, the first video clip is edited according to the input parameters of the fifth sub-input; wherein the input parameters include at least one of the following: input direction , input distance, input pressure.8.根据权利要求6所述的方法,其特征在于,在所述第二编辑功能包括复制功能的情况下,所述第二输入包括第六子输入,所述响应于所述第二输入,对所述第一视频中的所述第一图像帧或所述第一视频片段进行编辑处理,得到第二视频,包括:8. The method of claim 6, wherein, in the case where the second editing function includes a copy function, the second input includes a sixth sub-input, and in response to the second input, Edit the first image frame or the first video clip in the first video to obtain a second video, including:响应于所述第六子输入,对所述第一视频片段进行复制处理,得到所述第二视频,所述第二标识包括复制标识,所述复制标识指示重复播放所述第一视频片段中的至少部分图像帧。In response to the sixth sub-input, copy processing is performed on the first video clip to obtain the second video, the second identification includes a copy identification, and the copy identification indicates repeated playback of the first video clip. at least part of the image frame.9.根据权利要求8所述的方法,其特征在于,所述得到所述第二视频之后,所述方法还包括:9. The method according to claim 8, characterized in that after obtaining the second video, the method further includes:接收用户对所述复制标识的第六输入;receiving a sixth input from the user to the copy identification;响应于所述第六输入,取消显示所述复制标识,并取消对所述第一视频片段的复制处理,得到第三视频。In response to the sixth input, the display of the copy identification is cancelled, and the copy processing of the first video clip is canceled to obtain a third video.10.根据权利要求6所述的方法,其特征在于,在所述第二编辑功能包括删除功能的情况下,所述第二输入包括第七子输入,所述响应于所述第二输入,对所述第一视频中的所述第一图像帧或所述第一视频片段进行编辑处理,包括:10. The method of claim 6, wherein, in the case where the second editing function includes a delete function, the second input includes a seventh sub-input, and in response to the second input, Editing the first image frame or the first video clip in the first video includes:响应于所述第七子输入,删除所述第一视频片段的至少部分图像帧;responsive to the seventh sub-input, deleting at least a portion of the image frames of the first video segment;所述第二标识包括删除标识,所述删除标识指示不能对所述第一视频片段中的所述至少部分图像帧进行编辑处理。The second identification includes a deletion identification indicating that the at least part of the image frames in the first video clip cannot be edited.11.根据权利要求1所述的方法,其特征在于,所述得到第二视频之后,所述方法还包括:11. The method according to claim 1, characterized in that after obtaining the second video, the method further includes:接收用户的第七输入;Receive seventh input from the user;响应于所述第七输入,生成配置文件,所述配置文件用于配置所述第一视频的播放参数。In response to the seventh input, a configuration file is generated, the configuration file being used to configure playback parameters of the first video.12.根据权利要求1所述的方法,其特征在于,所述方法还包括:12. The method of claim 1, further comprising:接收用户对所述编辑进度条的第八输入;Receive an eighth input from the user to the editing progress bar;响应于所述第八输入,更新所述编辑进度条的显示位置或隐藏所述编辑进度条。In response to the eighth input, the display position of the editing progress bar is updated or the editing progress bar is hidden.13.一种终端,其特征在于,所述终端包括:13. A terminal, characterized in that the terminal includes:接收模块,用于在第一视频的播放界面显示编辑进度条的情况下,接收用户对所述编辑进度条的第一输入;A receiving module, configured to receive the user's first input to the editing progress bar when the editing progress bar is displayed on the playback interface of the first video;显示模块,用于响应于所述第一输入,在所述编辑进度条上显示第一标识,所述第一标识用于确定所述第一视频中的第一图像帧或第一视频片段;A display module configured to display a first identification on the editing progress bar in response to the first input, where the first identification is used to determine the first image frame or the first video segment in the first video;所述接收模块,还用于接收用户的第二输入;The receiving module is also used to receive the user's second input;编辑模块,用于响应于所述第二输入,对所述第一视频中的所述第一图像帧或所述第一视频片段进行编辑处理,得到第二视频,所述第二视频的播放界面包括第二标识,所述第二标识用于指示对所述第一图像帧或所述第一视频片段进行了编辑处理。An editing module, configured to perform editing processing on the first image frame or the first video clip in the first video in response to the second input, to obtain a second video, and the playback of the second video The interface includes a second identification, the second identification being used to indicate that the first image frame or the first video clip has been edited.14.根据权利要求13所述的终端,其特征在于,所述第一标识包括第一子标识和第二子标识;14. The terminal according to claim 13, characterized in that the first identification includes a first sub-identification and a second sub-identification;所述接收模块,还用于接收用户对所述第一子标识或所述第二子标识的第三输入;The receiving module is also configured to receive the user's third input to the first sub-identity or the second sub-identity;所述终端还包括:The terminal also includes:第一更新模块,用于响应于所述第三输入,更新所述第一标识在所述编辑进度条上的位置,并更新所述第一标识指示的所述第一视频中的图像帧;A first update module, configured to respond to the third input, update the position of the first identification on the editing progress bar, and update the image frame in the first video indicated by the first identification;其中,所述第一子标识和所述第二子标识对应的功能不同。Wherein, the first sub-identity and the second sub-identity correspond to different functions.15.根据权利要求14所述的终端,其特征在于,所述接收模块,还用于接收用户对所述第一标识的第四输入;15. The terminal according to claim 14, wherein the receiving module is further configured to receive a fourth input from the user to the first identification;所述终端还包括:The terminal also includes:第二更新模块,用于响应于所述第四输入,更新所述第一子标识或所述第二子标识的显示位置。A second update module, configured to update the display position of the first sub-identity or the second sub-identity in response to the fourth input.
CN202311051404.9A2023-08-182023-08-18Video processing method and terminalPendingCN117097945A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202311051404.9ACN117097945A (en)2023-08-182023-08-18Video processing method and terminal

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202311051404.9ACN117097945A (en)2023-08-182023-08-18Video processing method and terminal

Publications (1)

Publication NumberPublication Date
CN117097945Atrue CN117097945A (en)2023-11-21

Family

ID=88770895

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202311051404.9APendingCN117097945A (en)2023-08-182023-08-18Video processing method and terminal

Country Status (1)

CountryLink
CN (1)CN117097945A (en)

Similar Documents

PublicationPublication DateTitle
CN112887794B (en) Video editing method and device
CN112836086B (en) A video processing method, device and electronic equipment
CN112672061A (en)Video shooting method and device, electronic equipment and medium
US20240388790A1 (en)Shooting method, apparatus, and electronic device
WO2023061414A1 (en)File generation method and apparatus, and electronic device
JP2014149634A (en)Input/output device
WO2023143531A1 (en)Photographing method and apparatus, and electronic device
WO2023185701A1 (en)Display method and apparatus, electronic device, and readable storage medium
WO2023179539A1 (en)Video editing method and apparatus, and electronic device
CN111757177A (en)Video clipping method and device
CN112764632B (en) Image sharing method, device and electronic equipment
WO2025077527A1 (en)Media content generation method and apparatus, and electronic device and readable storage medium
WO2024230571A1 (en)Screenshot file control method and apparatus, and electronic device and storage medium
WO2024041468A1 (en)File processing method and apparatus, and electronic device and storage medium
CN117311885A (en)Picture viewing method and device
CN117648144A (en)Image processing method, device, electronic equipment and readable storage medium
CN113810538B (en)Video editing method and video editing device
WO2023093669A1 (en)Video filming method and apparatus, and electronic device and storage medium
CN117097945A (en)Video processing method and terminal
CN116027950A (en) Screen capture method and screen capture device
CN115631109A (en)Image processing method, image processing device and electronic equipment
CN115550741A (en)Video management method and device, electronic equipment and readable storage medium
CN114584704A (en)Shooting method and device and electronic equipment
CN114063863B (en) Video processing method, device and electronic equipment
CN117729382A (en) Video playback method, device, electronic equipment and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp