











技术领域technical field
本发明涉及信息处理技术领域,尤其是涉及一种视频处理方法及移动终端。The present invention relates to the technical field of information processing, in particular to a video processing method and a mobile terminal.
背景技术Background technique
随着电子技术的不断发展,移动终端已经被普遍使用;越来越多的用户都使用移动终端观看视频,当用户想要在没有网络的情况下观看视频,可以提前在移动终端中下载视频后如电视剧、电影等;此外,用户还可以利用移动终端的相机功能录制视频,从而使得移动终端中会保存大量的视频文件。With the continuous development of electronic technology, mobile terminals have been widely used; more and more users use mobile terminals to watch videos. When users want to watch videos without the Internet, they can download videos in mobile terminals in advance Such as TV dramas, movies, etc.; in addition, the user can also use the camera function of the mobile terminal to record video, so that a large number of video files will be stored in the mobile terminal.
由于每个视频文件的封面是该视频文件中的某一帧画面,是由移动终端自动生成的;因此,可能出现某一个视频文件的封面是一张全黑的帧画面;也可能会出现多个视频文件的封面类似,通过视频的封面用户无法区分这几个视频文件;还可能某个视频文件的封面可以体现该视频文件的内容,但而该视频文件是用户的隐私文件,用户不想让该封面体现该视频文件的内容。Since the cover of each video file is a certain frame in the video file, it is automatically generated by the mobile terminal; therefore, it may appear that the cover of a certain video file is a completely black frame; The covers of two video files are similar, and the user cannot distinguish these video files through the cover of the video; it is also possible that the cover of a certain video file can reflect the content of the video file, but the video file is the user's privacy file, and the user does not want to let the user know. The cover reflects the content of the video file.
发明内容Contents of the invention
本发明实施例提供一种视频处理方法,以解决现有技术中移动终端为视频自动生成的封面,而无法满足用户对不同视频的封面要求的问题。An embodiment of the present invention provides a video processing method to solve the problem in the prior art that the cover automatically generated by the mobile terminal for the video cannot meet the user's requirements for the cover of different videos.
第一方面,提供了一种视频处理方法,应用于移动终端,所述的方法包括:在视频列表界面中,确定用户的选择操作对应的目标视频;确定目标视频对应的封面更改方式,其中,所述封面更改方式包括以下至少一项:拍照选取,从相册中选取和从视频帧中选取;显示所述封面更改方式对应的界面,确定目标视频封面;将所述目标视频封面设置为目标视频对应的封面。In the first aspect, a video processing method is provided, which is applied to a mobile terminal. The method includes: in the video list interface, determining the target video corresponding to the user's selection operation; determining the cover change method corresponding to the target video, wherein, The method of changing the cover includes at least one of the following: photo selection, selection from the album and selection from the video frame; displaying the interface corresponding to the method of changing the cover, determining the cover of the target video; setting the cover of the target video as the target video corresponding cover.
第二方面,提供了一种移动终端,所述移动终端包括:目标视频确定模块,用于在视频列表界面中,确定用户的选择操作对应的目标视频;封面更改方式确定模块,用于确定目标视频对应的封面更改方式,其中,所述封面更改方式包括以下至少一项:拍照选取,从相册中选取和从视频帧中选取;目标视频封面确定模块,用于显示所述封面更改方式对应的界面,确定目标视频封面;封面设置模块,用于将所述目标视频封面设置为目标视频对应的封面。In a second aspect, a mobile terminal is provided, and the mobile terminal includes: a target video determination module, used to determine the target video corresponding to the user's selection operation in the video list interface; a cover change method determination module, used to determine the target video The cover change method corresponding to the video, wherein the cover change method includes at least one of the following: photo selection, selection from the photo album and selection from the video frame; the target video cover determination module, which is used to display the corresponding cover change method The interface is used to determine the cover of the target video; the cover setting module is used to set the cover of the target video as the cover corresponding to the target video.
这样,本发明实施例在在视频列表界面中,确定用户选中的目标视频,以及确定目标视频的封面更改方式后;在所述封面更改方式对应的界面中,确定目标视频封面,再将目标视频封面设置为目标视频对应的封面;其中,封面更改方式包括以下至少一项:拍照选取,从相册中选取和从视频帧中选取;使得移动终端可以根据用户选择的封面更改方式,更改对应视频的封面,从而满足用户对不同视频的封面的要求,提高用户体验。In this way, in the embodiment of the present invention, in the video list interface, after determining the target video selected by the user and determining the cover change method of the target video; The cover is set to the cover corresponding to the target video; wherein, the cover change method includes at least one of the following: photo selection, selection from the photo album and selection from the video frame; so that the mobile terminal can change the corresponding video according to the cover change method selected by the user. Cover, so as to meet the user's requirements for the cover of different videos and improve user experience.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention , for those skilled in the art, other drawings can also be obtained according to these drawings without paying creative labor.
图1是本发明的一种视频处理方法实施例的步骤流程图;Fig. 1 is a flow chart of the steps of a video processing method embodiment of the present invention;
图2是本发明的另一种视频处理方法实施例的步骤流程图;Fig. 2 is a flow chart of the steps of another video processing method embodiment of the present invention;
图3是本发明的一种操作选项的显示界面示意图;Fig. 3 is a schematic diagram of a display interface of an operation option of the present invention;
图4是本发明的一种更改视频封面方式的显示界面示意图;Fig. 4 is a schematic diagram of a display interface of a method of changing a video cover in the present invention;
图5A和图5B是本发明的一种将选取的一张图片设置为视频封面的示意图;Figure 5A and Figure 5B are a schematic diagram of setting a selected picture as a video cover in the present invention;
图6A和图6B是本发明的一种将多张图片拼接后的图片设置为视频封面的示意图;Fig. 6A and Fig. 6B are a kind of schematic diagram of setting the picture after splicing multiple pictures as the video cover according to the present invention;
图7A和图7B是本发明的一种将拍摄的图片设置为视频封面的示意图;Fig. 7A and Fig. 7B are a kind of schematic diagram of setting the photographed picture as video cover in the present invention;
图8是本发明的一种移动终端实施例的结构框图;Fig. 8 is a structural block diagram of a mobile terminal embodiment of the present invention;
图9是本发明的一种移动终端实施例的结构框图;Fig. 9 is a structural block diagram of a mobile terminal embodiment of the present invention;
图10是本发明的一种移动终端实施例的框图;Fig. 10 is a block diagram of a mobile terminal embodiment of the present invention;
图11是本发明的一种移动终端实施例的结构示意图。Fig. 11 is a schematic structural diagram of a mobile terminal embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
实施例一Embodiment one
参照图1,示出了本发明的一种视频处理方法实施例的步骤流程图,具体可以包括如下步骤:Referring to Fig. 1, it shows a flow chart of the steps of a video processing method embodiment of the present invention, which may specifically include the following steps:
步骤101、在视频列表界面中,确定用户的选择操作对应的目标视频。
本发明实施例提出的一种视频处理方法,主要是针对视频封面的处理;即在确定目标视频后,根据用户选择的封面更改方式,以及在所述封面更改方式界面中选择的图片,确定目标视频封面;然后再将目标视频封面设置为目标视频的封面;其中,所述目标视频是用户选中的需要更改封面的视频;是在移动终端视频列表界面中显示的视频;所述视频列表界面是显示移动终端存储的所有视频的界面,移动终端存储的视频文件包括录制的视频,和从其他终端或服务器获取的视频如电视视频、电影视频等。用户在使用移动终端的过程中,需要更改某个视频的视频封面时,可以通过在视频列表界面中查找到该视频,并通过选择操作选中该视频,并将用户选中的视频确定为目标视频,其中,选择操作是使目标视频显示出操作选项的操作例如长按。A video processing method proposed in the embodiment of the present invention is mainly for the processing of the video cover; that is, after the target video is determined, the target is determined according to the cover change method selected by the user and the picture selected in the cover change method interface. Video cover; Then the cover of the target video cover is set to the cover of the target video; Wherein, the target video is the video that the user selects and needs to change the cover; It is the video displayed in the mobile terminal video list interface; The video list interface is An interface that displays all videos stored in the mobile terminal. The video files stored in the mobile terminal include recorded videos and videos acquired from other terminals or servers such as TV videos and movie videos. When the user needs to change the video cover of a certain video while using the mobile terminal, he can find the video in the video list interface, select the video through the selection operation, and determine the video selected by the user as the target video. Wherein, the selection operation is an operation for displaying operation options in the target video, such as a long press.
步骤102、确定目标视频对应的封面更改方式,其中,所述封面更改方式包括以下至少一项:拍照选取,从相册中选取和从视频帧中选取。
移动终端在获取到用户的选择操作后,显示对应的操作选项;其中,所述操作选项可以包括更改视频封面的选项,与视频编辑相关的选项如删除、重命名,分享的选项等;也可以只包括更改视频封面的多种封面更改方式,如拍照选取,从相册中选取和从视频帧中选取。若所述操作选项包括前一种列出的选项时,移动终端根据用户的操作确定用户选择更改视频封面的选项后,再显示出多种封面更改方式;然后再根据用户的操作,确定用户选择的一种封面更改方式。若所述操作选项包括后一种列出的选项时,则用户可以直接对封面更改方式进行选择,移动终端可以根据用户的操作确定用户选择的一种封面更改方式。After the mobile terminal obtains the user's selection operation, it displays the corresponding operation options; wherein, the operation options may include the option to change the video cover, and options related to video editing such as deletion, renaming, sharing options, etc.; Only includes multiple cover changing ways to change video cover, such as photo pick, pick from album and pick from video frame. If the operation options include the options listed in the previous one, the mobile terminal determines that the user selects the option to change the video cover according to the user's operation, and then displays a variety of cover change methods; and then determines the user's choice according to the user's operation. A way to change the cover page. If the operation options include the latter option, the user can directly select a cover change mode, and the mobile terminal can determine a cover change mode selected by the user according to the user's operation.
步骤103、显示所述封面更改方式对应的界面,确定目标视频封面。Step 103: Display an interface corresponding to the cover change method, and determine the target video cover.
本发明实施例中不同的封面更改方式对应不同的界面,例如拍照获取的方式,对应移动终端相机的拍照界面;从相册中获取的方式,对应移动终端相册对应的图片显示界面;从视频帧中获取的方式,对应目标视频的视频帧的图片显示的界面;因此,在确定用户选中的封面更改方式后,显示与所述封面更改方式对应的界面;用户可以在显示的界面中选择想要设置为封面的图片,用户为目标视频选择封面的图片可以一张,也可以是多张;从而移动终端可以根据用户的选择,确定目标视频封面。Different cover changing methods in the embodiments of the present invention correspond to different interfaces, for example, the way of taking pictures is corresponding to the picture taking interface of the mobile terminal camera; the way of getting from the photo album is corresponding to the picture display interface corresponding to the mobile terminal photo album; The way of acquisition corresponds to the interface displayed by the picture of the video frame of the target video; therefore, after the cover change method selected by the user is determined, the interface corresponding to the cover change method is displayed; the user can select the desired setting in the displayed interface As the picture for the cover, the user can select one or more pictures for the cover of the target video; thus, the mobile terminal can determine the cover of the target video according to the user's selection.
步骤104、将所述目标视频封面设置为目标视频对应的封面。
移动终端将上述确定的目标视频封面,设置为目标视频对应的封面;并显示视频列表界面。从而,在视频列表界面中,所述目标视频对应的封面更改为所述目标视频封面,用户可以通过操作视频列表界面中所述目标视频封面,打开所述目标视频。The mobile terminal sets the determined cover of the target video as the cover corresponding to the target video; and displays a video list interface. Therefore, in the video list interface, the cover corresponding to the target video is changed to the cover of the target video, and the user can open the target video by operating the cover of the target video in the video list interface.
本发明实施例在在视频列表界面中,确定用户选中的目标视频,以及确定目标视频的封面更改方式后;在所述封面更改方式对应的界面中,确定目标视频封面,再将目标视频封面设置为目标视频对应的封面;其中,封面更改方式包括以下至少一项:拍照选取,从相册中选取和从视频帧中选取;使得移动终端可以根据用户选择的封面更改方式,更改对应视频的封面;从而满足用户对不同视频的封面的要求,提高用户体验。In the embodiment of the present invention, in the video list interface, after determining the target video selected by the user, and determining the cover change mode of the target video; in the interface corresponding to the cover change mode, determine the target video cover, and then set the target video cover is the cover corresponding to the target video; wherein, the cover change method includes at least one of the following: photo selection, selection from the photo album and selection from the video frame; the mobile terminal can change the cover of the corresponding video according to the cover change method selected by the user; In this way, the user's requirements for the cover of different videos are met, and the user experience is improved.
实施例二Embodiment two
参照图2,在上述实施例的基础上,对本发明实施例的一种视频处理方法进行进一步的说明,其中,图2示出了本发明的另一种视频处理方法实施例的步骤流程图,具体步骤如下:Referring to FIG. 2, on the basis of the above-mentioned embodiments, a video processing method of the embodiment of the present invention is further described, wherein, FIG. 2 shows a flow chart of steps of another embodiment of the video processing method of the present invention, Specific steps are as follows:
步骤201、在视频列表界面中,确定用户的选择操作对应的目标视频。Step 201, in the video list interface, determine the target video corresponding to the user's selection operation.
本发明实施例将移动终端中所有的视频文件,都在所述视频列表界面中显示;移动终端可以根据用户在视频列表界面中对视频文件进行操作,执行操作对应的命令;如更改视频封面。在视频列表界面中各视频文件显示的方式有多种,多种显示的方式中均包括显示视频文件对应的封面,从而使得用户可以直接根据封面查找视频文件。在视频列表界面中,移动终端根据用户的选择操作,确定用户选中的目标视频。In the embodiment of the present invention, all video files in the mobile terminal are displayed in the video list interface; the mobile terminal can operate the video files according to the user in the video list interface, and execute corresponding commands; such as changing the video cover. In the video list interface, there are multiple ways to display each video file, all of which include displaying the corresponding cover of the video file, so that the user can directly search for the video file according to the cover. In the video list interface, the mobile terminal determines the target video selected by the user according to the user's selection operation.
步骤202、确定目标视频对应的封面更改方式。Step 202, determine the way of changing the cover corresponding to the target video.
移动终端可以根据选择操作,显示对应的操作选项;其中,显示的一种操作选项如图3所示,图3中将名称为“录屏_20161114_154743”确定为目标视频,操作选项包括的选项:删除、分享、重命名和更改视频封面。移动终端确定用户选择更改视频封面的选项后,在视频列表界面中显示的示各种更改视频封面方式,其中,更改视频封面方式包括显示拍照选取、从相册中选取和从视频帧中选取;为了满足不同用户的需求,从相册中或从视频帧中选取的图片可以是一张,也可以是多张;因此,更改视频封面的方式还可以包括:拍照选取、从相册中选取一张、从相册中选取多张张、从视频帧中选取一张和从视频帧中选取多张;如图4所示,图4示出了一种更改视频封面方式的显示界面示意图,分别是拍照、相册中选一张、视频中自由选一帧、使用多张图片拼接、使用视频中多帧拼接。本发明实施例不限定更改视频封面方式的显示方式和内容。然后再根据用户的选择,确定用户选中的封面更改方式。The mobile terminal can display the corresponding operation options according to the selected operation; wherein, one of the displayed operation options is shown in Figure 3, and in Figure 3, the name "screen recording_20161114_154743" is determined as the target video, and the operation options include options: Delete, share, rename and change video cover. After the mobile terminal determines that the user selects the option to change the video cover, various methods of changing the video cover are displayed in the video list interface, wherein the method of changing the video cover includes displaying photo selection, selection from the photo album, and selection from video frames; To meet the needs of different users, one or more pictures can be selected from the photo album or from the video frame; therefore, the method of changing the video cover can also include: photo selection, selection from the photo album, selection from the Select multiple sheets from the photo album, select one sheet from the video frame, and select multiple sheets from the video frame; as shown in Figure 4, Figure 4 shows a schematic diagram of a display interface for changing the video cover method, which are respectively photographing, album Select one, freely select a frame in the video, use multiple pictures to stitch, and use multiple frames in the video to stitch. The embodiment of the present invention does not limit the display mode and content of changing the video cover mode. Then, according to the selection of the user, the method of changing the cover page selected by the user is determined.
对于不同的封面更改方式,移动终端会执行对应的处理方式;当所述目标封面更改方式为从相册中选取时,执行步骤203、207-210;当所述目标封面更改方式为从视频帧中选取时,执行步骤204-210;当所述目标封面更改方式为拍照选取时,执行步骤211-213;以下对不同封面更改方式,设置视频封面的处理步骤进行说明。For different cover changing methods, the mobile terminal will perform corresponding processing methods; when the target cover changing method is to select from the album, perform steps 203, 207-210; when the target cover changing method is to select from the video frame When selecting, perform steps 204-210; when the target cover change method is photo selection, perform steps 211-213; the processing steps for setting the video cover for different cover change modes will be described below.
本发明实施例中,移动终端的相册包含的图片包括:通过拍照获取的照片、从其他设备获取的和从服务器中下载的图片。移动终端中每个视频文件是以图片的形式存储的,在移动终端播放该视频文件,即是按照一定的帧率,按时间的顺序显示图片;其中,每个时间帧均对应一帧视频图片;例如,一个视频文件的时长为2分钟,播放帧率为30时,则所述视频文件包括3600帧的视频图片,每个时间帧的间隔为1/30秒;则第一个时间帧为0秒对应第一帧图片,第二个时间帧为1/30秒对应第二帧图片,依次类推。移动终端中每个视频文件可以对应一个图片文件集;且相册对应的图片文件集不包括视频文件对应的图片文件集;其中,一个时间帧即为一个视频帧。In the embodiment of the present invention, the pictures contained in the photo album of the mobile terminal include: pictures obtained by taking pictures, pictures obtained from other devices and downloaded from a server. Each video file in the mobile terminal is stored in the form of pictures. Playing the video file on the mobile terminal means displaying pictures in chronological order according to a certain frame rate; wherein, each time frame corresponds to a frame of video pictures ; For example, the duration of a video file is 2 minutes, and when the playback frame rate is 30, then the video file includes 3600 frames of video pictures, and the interval of each time frame is 1/30 second; then the first time frame is 0 second corresponds to the first frame of picture, the second time frame is 1/30 second corresponding to the second frame of picture, and so on. Each video file in the mobile terminal may correspond to a picture file set; and the picture file set corresponding to the album does not include the picture file set corresponding to the video file; wherein, a time frame is a video frame.
步骤203、当所述目标封面更改方式为从相册中选取时,进入所述移动终端相册对应的图片文件集的显示界面。Step 203, when the method of changing the target cover is to select from the album, enter the display interface of the picture file set corresponding to the album of the mobile terminal.
当所述目标封面更改方式为从相册中选取时,所述移动终端可以显示所述移动终端相册对应的图片文件集,所述相册对应的图片文件集中包括的相册中所有的图片,以使用户可以在显示的图片中选择设置为封面的图片。When the method of changing the target cover is to select from the album, the mobile terminal can display the picture file set corresponding to the mobile terminal album, and all the pictures in the album included in the picture file set corresponding to the album, so that the user You can select the picture set as the cover page from the displayed pictures.
当所述目标封面更改方式为从视频帧中选取时,所述移动终端可以进入所述目标视频的视频帧对应的图片文件集的显示界面,具体生成视频帧对应的图片文件集的步骤如下:When the change mode of the target cover is selected from the video frame, the mobile terminal can enter the display interface of the picture file set corresponding to the video frame of the target video, and the specific steps of generating the picture file set corresponding to the video frame are as follows:
步骤204、当所述目标封面更改方式为从视频帧中选取时,确定所述目标视频中各时间帧对应的图片。Step 204, when the method of changing the target cover is to select from video frames, determine the pictures corresponding to each time frame in the target video.
本发明实施例中,移动终端中的每个视频文件均对应一个图片文件集,在视频对应的图片文件集中,视频文件的每一个视频帧均对应一张图片,因此,在从目标视频对应的图片文件集中选取中视频帧图片之前,可以根据目标视频对应的图片文件集中各图片的信息,确定目标视频的每一个时间帧对应的图片。In the embodiment of the present invention, each video file in the mobile terminal corresponds to a picture file set, and in the picture file set corresponding to the video, each video frame of the video file corresponds to a picture. Before selecting the video frame picture in the picture file set, the picture corresponding to each time frame of the target video can be determined according to the information of each picture in the picture file set corresponding to the target video.
步骤205、从所述目标视频中按照预设周期提取预设数量的图片,生成所述视频帧对应的图片文件集。Step 205: Extract a preset number of pictures from the target video according to a preset period, and generate a picture file set corresponding to the video frame.
由于每个时间帧的间隔很短,使得相邻的多个视频帧对应的图片基本相同;因此,在移动终端显示视频对应图片文件集中的图片时,可以不将目标视频对应的每帧视频均显示出来;因此,可以按一定时间间隔从目标视频对应的图片文件集中选出视频帧对应的图片,再将选出的视频帧对应的图片组成目标视频的视频帧对应的图片文件集。在确定每个视频帧对应的图片后,可以按照预设周期,从目标视频对应的图片文件集中提取预设数量的视频帧对应的图片;从而生成目标视频的视频帧对应的图片文件集;其中,预设周期可以根据目标视频的时长和实际需求设置如1s;所述预设数量也是根据实际需求设置如2张。Since the interval between each time frame is very short, the pictures corresponding to multiple adjacent video frames are basically the same; displayed; therefore, the pictures corresponding to the video frame can be selected from the picture file set corresponding to the target video at a certain time interval, and then the pictures corresponding to the selected video frame are formed into the picture file set corresponding to the video frame of the target video. After determining the picture corresponding to each video frame, according to the preset cycle, extract the picture corresponding to the video frame of the preset number from the picture file set corresponding to the target video; thereby generate the picture file set corresponding to the video frame of the target video; wherein , the preset period can be set, such as 1s, according to the duration of the target video and actual needs; the preset number can also be set, such as 2, according to actual needs.
步骤206、进入所述目标视频的视频帧对应的图片文件集的显示界面。Step 206, enter the display interface of the picture file set corresponding to the video frame of the target video.
所述移动终端在生成视频对应的图片文件集后,进入该视频帧对应的图片文件集的显示界面;以使用户可以在显示的视频帧对应的图片中,选择设置为封面的图片。After generating the picture file set corresponding to the video, the mobile terminal enters the display interface of the picture file set corresponding to the video frame; so that the user can select the picture set as the cover in the pictures corresponding to the displayed video frame.
步骤207、判断从图片文件集中选取图片的数量是否是一张;若是,则执行步骤208;若否,则执行步骤209。Step 207 , judging whether the number of pictures selected from the picture file set is one; if yes, execute step 208 ; if not, execute step 209 .
本发明实施例可以依据从图片文件集选中的至少一张图片确定目标视频封面;即移动终端可以根据用户的选择,将用户选择的一张图片设置为目标视频的封面;也可以将用户选择的多张图片进行拼接后,设置为目标视频的封面。因此,在确定目标视频封面之前,需要判断用户从图片文件集中选择的图片的数量,若只选取了一张图片,则执行步骤208;若选取了多张图片,则执行步骤209。The embodiment of the present invention can determine the cover of the target video according to at least one picture selected from the picture file set; that is, the mobile terminal can set a picture selected by the user as the cover of the target video according to the user's selection; After splicing multiple images, set them as the cover of the target video. Therefore, before determining the cover of the target video, it is necessary to determine the number of pictures selected by the user from the picture file set. If only one picture is selected, then step 208 is performed; if multiple pictures are selected, then step 209 is performed.
步骤208、将用户选中一张图片确定为目标视频封面。Step 208, determining a picture selected by the user as the target video cover.
当确定用户选中的图片为一张时,移动终端将用户选中的该图片确定为目标视频封面。When it is determined that the picture selected by the user is one, the mobile terminal determines the picture selected by the user as the target video cover.
步骤209、将用户选中的多于一张图片拼接成一张图片。Step 209, splicing more than one picture selected by the user into one picture.
当确定用户选中的图片为多于一张时,由于视频封面的对应一张图片,因此,需要将选取的多于一帧的视频图片进行拼接,拼接成一张图片。本发明实施例中,拼接多于一帧的视频图片可以是自动拼接,也可以是根据用户的拼接操作进行拼接;当移动终端自动拼接时,若预先设置了拼接模板,则按照设置的拼接模板进行拼接;若预先未设置拼接模板,则按照默认的拼接模板进行拼接。When it is determined that there are more than one pictures selected by the user, since the video cover corresponds to one picture, the selected video pictures of more than one frame need to be spliced into one picture. In the embodiment of the present invention, the splicing of more than one frame of video pictures can be spliced automatically, or spliced according to the splicing operation of the user; Splicing; if the splicing template is not set in advance, it will be spliced according to the default splicing template.
步骤210、将所述拼接后的图片确定为目标视频封面。Step 210, determining the spliced image as the cover of the target video.
在将选择的多张图片拼接为一张图片时,将拼接后的图片设置为目标视频的封面。由于每帧视频图片均体现了所述目标视频的特征,因此,将多帧视频图片拼接后的图片,设置为目标视频的封面,可以使用户更好的根据封面查找视频。When the multiple selected pictures are stitched into one picture, the stitched picture is set as the cover of the target video. Since each video frame reflects the characteristics of the target video, setting the spliced image of multiple frames of video as the cover of the target video enables users to better search for the video according to the cover.
步骤211、当所述目标封面更改方式为拍照选取时,显示所述移动终端的相机拍照界面。Step 211 , when the method of changing the target cover is to choose to take a photo, display the camera photo interface of the mobile terminal.
当所述目标封面更改方式为拍照选取时,移动终端则开启摄像头,并显示相机拍照界面。When the method of changing the target cover is to select a photo, the mobile terminal turns on the camera and displays the camera interface.
步骤212、调用所述移动终端的摄像头拍摄图片,将所述拍摄的图片确定为目标视频封面。Step 212, call the camera of the mobile terminal to take a picture, and determine the taken picture as the target video cover.
当确定用户操作拍照按钮时,调用摄像头进行拍摄照片;当确定用户执行了确认操作时,则将当前拍摄的照片确定为目标视频封面。When it is determined that the user operates the camera button, the camera is called to take a photo; when it is determined that the user has performed a confirmation operation, the currently captured photo is determined as the cover of the target video.
步骤213、将所述目标视频封面设置为目标视频对应的封面。Step 213: Set the cover of the target video as the corresponding cover of the target video.
在确定目标视频封面后,将目标视频封面设置为目标视频对应的封面;将一张图片或拼接后的图片设置为视频封面的示意图,如图5A、图6A和图7A所示,图5B、图6B和图7B中将名称为“录屏_20161114_154743”确定为目标视频。如图5A所示,虚线框中是根据用户选择确定的一张图片;图5B中将图5A中选择的图片设置为视频的封面,如虚线框中所示。如图6A所示,对用户选择的5张图片进行了拼接,图6B中利用拼接后的图片设置的视频封面。如图7A所示,是相机的拍摄的照片,图7B中将图7A中拍摄的照片设置为视频的封面。After determining the cover of the target video, set the cover of the target video as the corresponding cover of the target video; set a picture or a spliced picture as the schematic diagram of the video cover, as shown in Figure 5A, Figure 6A and Figure 7A, Figure 5B, In Figure 6B and Figure 7B, the name "screen recording_20161114_154743" is determined as the target video. As shown in FIG. 5A , the dotted line box is a picture determined according to the user's selection; in FIG. 5B , the picture selected in FIG. 5A is set as the cover of the video, as shown in the dotted line box. As shown in FIG. 6A , five pictures selected by the user are spliced, and in FIG. 6B , the video cover is set by using the spliced pictures. As shown in FIG. 7A, it is a photo taken by the camera. In FIG. 7B, the photo taken in FIG. 7A is set as the cover of the video.
本发明实施例中的移动终端可以通过拍照获取、从相册中选取和从视频帧中选取的方式,选取设置视频封面的图片;当选取方式是从相册或从视频帧中选取时,即可以将选取的一张图片设置为视频的封面,也可以将选取的多张图片进行拼接后,将拼接后的图片设置为视频封面;从而移动终端可以根据用户的操作,利用多种不同的方式,实现对视频封面的更改;当从视频帧图片文件集中选取设置封面的图片时,可以使得用户根据视频的封面辨别出不同的视频;当从相册中选择或者拍照选取设置视频封面的图片时,使得封面不能体现该视频的内容,从而保护用户隐私安全;大大提高了用户体验。The mobile terminal in the embodiment of the present invention can select the picture for setting the video cover by taking pictures, selecting from the photo album and selecting from the video frame; when the selection method is selected from the photo album or from the video frame, the A selected picture is set as the cover of the video, or multiple selected pictures can be spliced, and the spliced picture can be set as the cover of the video; thus, the mobile terminal can use a variety of different methods according to the user's operation to realize Changes to the video cover; when selecting a picture to set the cover from the video frame picture file set, the user can distinguish different videos according to the cover of the video; when selecting a picture to set the video cover from the album or taking a photo, the cover The content of the video cannot be reflected, thereby protecting user privacy and security; greatly improving user experience.
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。It should be noted that, for the method embodiment, for the sake of simple description, it is expressed as a series of action combinations, but those skilled in the art should know that the embodiment of the present invention is not limited by the described action sequence, because According to the embodiment of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
实施例三Embodiment three
参照图8,示出了本发明的一种移动终端实施例的结构框图,所述的移动终端可以保证上述方法的实现;具体可以包括如下模块:目标视频确定模块301、封面更改方式确定模块302、目标视频封面确定模块303和封面设置模块304,其中,Referring to FIG. 8 , it shows a structural block diagram of a mobile terminal embodiment of the present invention, and the mobile terminal can ensure the realization of the above method; specifically, it can include the following modules: target video determination module 301, cover change method determination module 302 , target video cover determining module 303 and cover setting module 304, wherein,
目标视频确定模块301,用于在视频列表界面中,确定用户的选择操作对应的目标视频。The target video determining module 301 is configured to determine the target video corresponding to the user's selection operation in the video list interface.
封面更改方式确定模块302,用于确定目标视频对应的封面更改方式,其中,所述封面更改方式包括以下至少一项:拍照选取,从相册中选取和从视频帧中选取。The cover change method determination module 302 is configured to determine the cover change method corresponding to the target video, wherein the cover change method includes at least one of the following: photo selection, selection from an album, and selection from a video frame.
目标视频封面确定模块303,用于显示所述封面更改方式对应的界面,确定目标视频封面。The target video cover determination module 303 is configured to display an interface corresponding to the cover change method, and determine the target video cover.
封面设置模块304,用于将所述目标视频封面设置为目标视频对应的封面。A cover setting module 304, configured to set the cover of the target video as the cover corresponding to the target video.
本发明实施例在在视频列表界面中,确定用户选中的目标视频,以及确定目标视频的封面更改方式后;在所述封面更改方式对应的界面中,确定目标视频封面,再将目标视频封面设置为目标视频对应的封面;其中,封面更改方式包括以下至少一项:拍照选取,从相册中选取和从视频帧中选取;使得移动终端可以根据用户选择的封面更改方式,更改对应视频的封面;从而满足用户对不同视频的封面的要求,提高用户体验。In the embodiment of the present invention, in the video list interface, after determining the target video selected by the user, and determining the cover change mode of the target video; in the interface corresponding to the cover change mode, determine the target video cover, and then set the target video cover is the cover corresponding to the target video; wherein, the cover change method includes at least one of the following: photo selection, selection from the photo album and selection from the video frame; the mobile terminal can change the cover of the corresponding video according to the cover change method selected by the user; In this way, the user's requirements for the cover of different videos are met, and the user experience is improved.
参照图9,在图8的基础上,对所述移动终端还包含的模块,以及上述模块包含的子模块进行说明。Referring to FIG. 9 , on the basis of FIG. 8 , the modules further included in the mobile terminal and the submodules included in the above modules are described.
本发明实施例提供的移动终端包括:目标视频确定模块401、封面更改方式确定模块402、目标视频封面确定模块403和封面设置模块404,上述实施例已经论述,在此不再赘述;所述移动终端还包括:视频帧图片文件集生成模块405,用于当所述述目标封面更改方式为从视频帧中选取时,确定所述目标视频中各时间帧对应的图片;从所述目标视频中按照预设周期提取预设数量的图片,生成所述视频帧对应的图片文件集。The mobile terminal provided by the embodiment of the present invention includes: a target video determining module 401, a cover change method determining module 402, a target video cover determining module 403, and a cover setting module 404. The above-mentioned embodiments have been discussed and will not be repeated here; The terminal also includes: a video frame picture file set generation module 405, which is used to determine the pictures corresponding to each time frame in the target video when the change method of the target cover is selected from the video frame; A preset number of pictures is extracted according to a preset period, and a picture file set corresponding to the video frame is generated.
本发明实施例的所述目标视频封面确定模块403包括:图片拼接子模块4031、第一封面确定子模块4032、第二封面确定子模块4033和第三封面确定子模块4034,其中,The target video cover determination module 403 in the embodiment of the present invention includes: a picture splicing submodule 4031, a first cover determination submodule 4032, a second cover determination submodule 4033 and a third cover determination submodule 4034, wherein,
图片拼接子模块4031,用于当确定用户选中图片数量多于一张时,将用户选中的多于一张图片拼接成一张图片。The picture splicing sub-module 4031 is used for splicing more than one pictures selected by the user into one picture when it is determined that the number of pictures selected by the user is more than one.
第一封面确定子模块4032,用于将所述拼接后的图片确定为目标视频封面。The first cover determining sub-module 4032 is configured to determine the spliced picture as the cover of the target video.
第二封面确定子模块4033,用于当确定用户选中图片数量为一张时,将用户选中一张图片确定为目标视频封面。The second cover determination sub-module 4033 is configured to determine a picture selected by the user as the target video cover when it is determined that the number of pictures selected by the user is one.
第三封面确定子模块4034,用于当所述目标封面更改方式为拍照选取时,显示所述移动终端的相机拍照界面;调用所述移动终端的摄像头拍摄图片,将所述拍摄的图片确定为目标视频封面。The third cover determination sub-module 4034 is used to display the camera interface of the mobile terminal when the method of changing the target cover is to take pictures; call the camera of the mobile terminal to take pictures, and determine the pictures taken as Target video cover.
所述目标视频封面确定模块403,用于依据从图片文件集中选取的至少一张图片,确定目标视频封面,其中,所述图片文件集包括所述移动终端相册对应的图片数据集,和,所述目标视频的视频帧对应的图片数据集。The target video cover determination module 403 is configured to determine a target video cover based on at least one picture selected from a picture file set, wherein the picture file set includes a picture data set corresponding to the mobile terminal album, and, the The image data set corresponding to the video frame of the target video.
本发明实施例中当所述目标封面更改方式为从相册中选取时,所述目标封面更改方式对应的界面为所述移动终端相册对应的图片文件集的显示界面;当所述目标封面更改方式为从视频帧中选取时,所述目标封面更改方式对应的界面为所述目标视频的视频帧对应的图片文件集的显示界面。In the embodiment of the present invention, when the target cover change mode is to select from the album, the interface corresponding to the target cover change mode is the display interface of the picture file set corresponding to the mobile terminal album; when the target cover change mode When selecting from a video frame, the interface corresponding to the target cover changing method is the display interface of the picture file set corresponding to the video frame of the target video.
本发明实施例中的移动终端可以通过拍照获取、从相册中选取和从视频帧中选取的方式,选取设置视频封面的图片;当选取方式是从相册或从视频帧中选取时,即可以将选取的一张图片设置为视频的封面,也可以将选取的多张图片进行拼接后,将拼接后的图片设置为视频封面;从而移动终端可以根据用户的操作,利用多种不同的方式,实现对视频封面的更改;当从视频帧图片文件集中选取设置封面的图片时,可以使得用户根据视频的封面辨别出不同的视频;当从相册中选择或者拍照选取设置视频封面的图片时,使得封面不能体现该视频的内容,从而保护用户隐私安全;大大提高了用户体验。The mobile terminal in the embodiment of the present invention can select the picture for setting the video cover by taking pictures, selecting from the photo album and selecting from the video frame; when the selection method is selected from the photo album or from the video frame, the A selected picture is set as the cover of the video, or multiple selected pictures can be spliced, and the spliced picture can be set as the cover of the video; thus, the mobile terminal can use a variety of different methods according to the user's operation to realize Changes to the video cover; when selecting a picture to set the cover from the video frame picture file set, the user can distinguish different videos according to the cover of the video; when selecting a picture to set the video cover from the album or taking a photo, the cover The content of the video cannot be reflected, thereby protecting user privacy and security; greatly improving user experience.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
实施例四Embodiment four
图10是本发明另一个实施例的移动终端的框图。图10所示的移动终端500包括:至少一个处理器501、存储器502、至少一个网络接口504和用户接口503。移动终端500中的各个组件通过总线系统505耦合在一起。可理解,总线系统505用于实现这些组件之间的连接通信。总线系统505除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图10中将各种总线都标为总线系统505。FIG. 10 is a block diagram of a mobile terminal according to another embodiment of the present invention. The mobile terminal 500 shown in FIG. 10 includes: at least one processor 501 , a memory 502 , at least one
其中,用户接口503可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等。Wherein, the
可以理解,本发明实施例中的存储器502可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data RateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambus RAM,DRRAM)。本发明实施例描述的系统和方法的存储器502旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 502 in the embodiment of the present invention may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Wherein, the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash. The volatile memory can be Random Access Memory (RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data RateSDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synchlink DRAM, SLDRAM) and Direct memory bus random access memory (DirectRambus RAM, DRRAM). The memory 502 of the systems and methods described in embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.
在一些实施方式中,存储器502存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统5021和应用程序5022。In some implementations, the memory 502 stores the following elements, executable modules or data structures, or their subsets, or their extended sets: an operating system 5021 and an application program 5022 .
其中,操作系统5021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序5022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序5022中。Among them, the operating system 5021 includes various system programs, such as framework layer, core library layer, driver layer, etc., for realizing various basic services and processing tasks based on hardware. The application program 5022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., and is used to implement various application services. The program for realizing the method of the embodiment of the present invention may be included in the application program 5022 .
在本发明实施例中,通过调用存储器502存储的程序或指令,具体的,可以是应用程序5022中存储的程序或指令,处理器501用于在视频列表界面中,确定用户的选择操作对应的目标视频;确定目标视频对应的封面更改方式,其中,所述封面更改方式包括以下至少一项:拍照选取,从相册中选取和从视频帧中选取;显示所述封面更改方式对应的界面,确定目标视频封面;将所述目标视频封面设置为目标视频对应的封面。In this embodiment of the present invention, by calling the program or instruction stored in the memory 502, specifically, the program or instruction stored in the application program 5022, the processor 501 is used to determine the corresponding video of the user's selection operation in the video list interface. Target video; determine the cover change method corresponding to the target video, wherein the cover change method includes at least one of the following: taking pictures, selecting from the album and selecting from the video frame; displaying the interface corresponding to the cover change method, determining Cover of the target video; set the cover of the target video as the corresponding cover of the target video.
上述本发明实施例揭示的方法可以应用于处理器501中,或者由处理器501实现。处理器501可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器501中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器501可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(FieldProgrammable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器502,处理器501读取存储器502中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 501 or implemented by the processor 501 . The processor 501 may be an integrated circuit chip and has signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 501 or instructions in the form of software. The above-mentioned processor 501 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other available Program logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, and the like. The steps of the methods disclosed in the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502, and completes the steps of the above method in combination with its hardware.
可以理解的是,本发明实施例描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(Application Specific Integrated Circuits,ASIC)、数字信号处理器(Digital SignalProcessing,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(ProgrammableLogic Device,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请功能的其它电子单元或其组合中。It can be understood that the embodiments described in the embodiments of the present invention may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (DSP Device, DSPD), programmable logic Equipment (ProgrammableLogic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units used to perform the functions of this application, or in combination.
对于软件实现,可通过执行本发明实施例功能的模块(例如过程、函数等)来实现本发明实施例的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For software implementation, the technology of the embodiments of the present invention can be implemented through modules (such as procedures, functions, etc.) that execute the functions of the embodiments of the present invention. Software codes can be stored in memory and executed by a processor. Memory can be implemented within the processor or external to the processor.
可选地,处理器501还用于:确定所述目标视频中各时间帧对应的图片;从所述目标视频中按照预设周期提取预设数量的图片,生成所述视频帧对应的图片文件集。Optionally, the processor 501 is further configured to: determine the pictures corresponding to each time frame in the target video; extract a preset number of pictures from the target video according to a preset period, and generate a picture file corresponding to the video frame set.
可选地,处理器501还用于:依据从图片文件集中选取的至少一张图片,确定目标视频封面。Optionally, the processor 501 is further configured to: determine the target video cover according to at least one picture selected from the picture file set.
可选地,处理器501还用于:当确定用户选中图片数量多于一张时,将用户选中的多于一张图片拼接成一张图片;将所述拼接后的图片确定为目标视频封面。Optionally, the processor 501 is further configured to: when it is determined that the number of pictures selected by the user is more than one, stitch more than one pictures selected by the user into one picture; and determine the stitched picture as the target video cover.
可选地,处理器501还用于:当确定用户选中图片数量为一张时,将用户选中一张图片确定为目标视频封面。Optionally, the processor 501 is further configured to: when it is determined that the number of pictures selected by the user is one, determine a picture selected by the user as the target video cover.
可选地,处理器501还用于:当所述目标封面更改方式为拍照选取时,显示所述移动终端的相机拍照界面;调用所述移动终端的摄像头拍摄图片,将所述拍摄的图片确定为目标视频封面。Optionally, the processor 501 is further configured to: display the camera interface of the mobile terminal when the method of changing the target cover is to select a photo; call the camera of the mobile terminal to take a picture, and determine the taken picture Cover for the target video.
可选的,处理器501还用于:当所述目标封面更改方式为从相册中选取时,所述目标封面更改方式对应的界面为所述移动终端相册对应的图片文件集的显示界面;当所述目标封面更改方式为从视频帧中选取时,所述目标封面更改方式对应的界面为所述目标视频的视频帧对应的图片文件集的显示界面。Optionally, the processor 501 is further configured to: when the target cover change mode is to select from an album, the interface corresponding to the target cover change mode is the display interface of the picture file set corresponding to the mobile terminal album; When the target cover change method is selected from a video frame, the interface corresponding to the target cover change mode is the display interface of the picture file set corresponding to the video frame of the target video.
移动终端500能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 500 can implement various processes implemented by the mobile terminal in the foregoing embodiments, and to avoid repetition, details are not repeated here.
本发明实施例在在视频列表界面中,确定用户选中的目标视频,以及确定目标视频的封面更改方式后;在所述封面更改方式对应的界面中,确定目标视频封面,再将目标视频封面设置为目标视频对应的封面;其中,封面更改方式包括以下至少一项:拍照选取,从相册中选取和从视频帧中选取;使得移动终端可以根据用户选择的封面更改方式,更改对应视频的封面,从而满足用户对不同视频的封面的要求,提高用户体验。In the embodiment of the present invention, in the video list interface, after determining the target video selected by the user, and determining the cover change mode of the target video; in the interface corresponding to the cover change mode, determine the target video cover, and then set the target video cover is the cover corresponding to the target video; wherein, the cover change method includes at least one of the following: photo selection, selection from the photo album and selection from the video frame; so that the mobile terminal can change the cover of the corresponding video according to the cover change method selected by the user, In this way, the user's requirements for the cover of different videos are met, and the user experience is improved.
实施例五Embodiment five
图11是本发明另一个实施例的移动终端的结构示意图。具体地,图11中的移动终端可以为手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、或车载电脑等。Fig. 11 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention. Specifically, the mobile terminal in FIG. 11 may be a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), or a vehicle-mounted computer.
移动终端包括图11中的射频(Radio Frequency,RF)电路610、存储器620、输入单元630、显示单元640、处理器660、音频电路670、WiFi(Wireless Fidelity)模块680和电源690。The mobile terminal includes a radio frequency (Radio Frequency, RF) circuit 610, a memory 620, an input unit 630, a display unit 640, a
其中,输入单元630可用于接收用户输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元630可以包括触控面板631。触控面板631,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板631上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板631可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器660,并能接收处理器660发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板631。除了触控面板631,输入单元630还可以包括其他输入设备632,其他输入设备632可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Wherein, the input unit 630 can be used for receiving number or character information input by the user, and generating signal input related to user setting and function control of the mobile terminal. Specifically, in the embodiment of the present invention, the input unit 630 may include a
其中,显示单元640可用于显示由用户输入的信息或提供给用户的信息以及移动终端的各种菜单界面。显示单元640可包括显示面板641,可选的,可以采用LCD或有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板641。Wherein, the display unit 640 can be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal. The display unit 640 may include a
应注意,触控面板631可以覆盖显示面板641,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器660以确定触摸事件的类型,随后处理器660根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the
触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。The touch display screen includes an application program interface display area and a common control display area. The arrangement of the display area of the application program interface and the display area of the commonly used controls is not limited, and may be an arrangement in which the two display areas can be distinguished, such as vertical arrangement, left-right arrangement, and the like. The application program interface display area can be used to display the interface of the application program. Each interface may include at least one interface element such as an icon of an application program and/or a widget desktop control. The application program interface display area can also be an empty interface without any content. The commonly used control display area is used to display controls with a high usage rate, for example, application icons such as setting buttons, interface numbers, scroll bars, and phonebook icons.
其中处理器660是移动终端的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器621内的软件程序和/或模块,以及调用存储在第二存储器622内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。可选的,处理器660可包括一个或多个处理单元。Wherein the
在本发明实施例中,通过调用存储该第一存储器621内的软件程序和/或模块和/或该第二存储器622内的数据,处理器660用于在视频列表界面中,确定用户的选择操作对应的目标视频;确定目标视频对应的封面更改方式,其中,所述封面更改方式包括以下至少一项:拍照选取,从相册中选取和从视频帧中选取;显示所述封面更改方式对应的界面,确定目标视频封面;将所述目标视频封面设置为目标视频对应的封面。In the embodiment of the present invention, by calling the software program and/or module stored in the
可选地,处理器660还用于:确定所述目标视频中各时间帧对应的图片;从所述目标视频中按照预设周期提取预设数量的图片,生成所述视频帧对应的图片文件集。Optionally, the
可选地,处理器660还用于:依据从图片文件集中选取的至少一张图片,确定目标视频封面,其中,所述图片文件集包括所述移动终端相册对应的图片数据集,和,所述目标视频的视频帧对应的图片数据集。Optionally, the
可选地,处理器660还用于:当确定用户选中图片数量多于一张时,将用户选中的多于一张图片拼接成一张图片;将所述拼接后的图片确定为目标视频封面。Optionally, the
可选地,处理器660还用于:当确定用户选中图片数量为一张时,将用户选中一张图片确定为目标视频封面。Optionally, the
可选地,处理器660还用于:当所述目标封面更改方式为拍照选取时,显示所述移动终端的相机拍照界面;调用所述移动终端的摄像头拍摄图片,将所述拍摄的图片确定为目标视频封面。Optionally, the
可选的,处理器660还用于:当所述目标封面更改方式为从相册中选取时,所述目标封面更改方式对应的界面为所述移动终端相册对应的图片文件集的显示界面;当所述目标封面更改方式为从视频帧中选取时,所述目标封面更改方式对应的界面为所述目标视频的视频帧对应的图片文件集的显示界面。Optionally, the
移动终端能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal can implement various processes implemented by the mobile terminal in the foregoing embodiments, and to avoid repetition, details are not repeated here.
本发明实施例在在视频列表界面中,确定用户选中的目标视频,以及确定目标视频的封面更改方式后;在所述封面更改方式对应的界面中,确定目标视频封面,再将目标视频封面设置为目标视频对应的封面;其中,封面更改方式包括以下至少一项:拍照选取,从相册中选取和从视频帧中选取;使得移动终端可以根据用户选择的封面更改方式,更改对应视频的封面,从而满足用户对不同视频的封面的要求,提高用户体验。In the embodiment of the present invention, in the video list interface, after determining the target video selected by the user, and determining the cover change mode of the target video; in the interface corresponding to the cover change mode, determine the target video cover, and then set the target video cover is the cover corresponding to the target video; wherein, the cover change method includes at least one of the following: photo selection, selection from the photo album and selection from the video frame; so that the mobile terminal can change the cover of the corresponding video according to the cover change method selected by the user, In this way, the user's requirements for the cover of different videos are met, and the user experience is improved.
本领域普通技术人员可以意识到,结合本发明实施例中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611079753.1ACN106658141B (en) | 2016-11-29 | 2016-11-29 | A video processing method and mobile terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611079753.1ACN106658141B (en) | 2016-11-29 | 2016-11-29 | A video processing method and mobile terminal |
| Publication Number | Publication Date |
|---|---|
| CN106658141A CN106658141A (en) | 2017-05-10 |
| CN106658141Btrue CN106658141B (en) | 2019-10-15 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201611079753.1AActiveCN106658141B (en) | 2016-11-29 | 2016-11-29 | A video processing method and mobile terminal |
| Country | Link |
|---|---|
| CN (1) | CN106658141B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108989833B (en)* | 2017-06-02 | 2021-02-09 | 视联动力信息技术股份有限公司 | Method and device for generating video cover image |
| CN107483826B (en)* | 2017-09-11 | 2018-10-23 | 广州酷狗计算机科技有限公司 | The method and apparatus for generating video file |
| CN110058887B (en)* | 2018-01-16 | 2022-02-18 | 腾讯科技(深圳)有限公司 | Video processing method, video processing device, computer-readable storage medium and computer equipment |
| CN108875670A (en)* | 2018-06-28 | 2018-11-23 | 咪咕动漫有限公司 | Information processing method, device and storage medium |
| CN108989609A (en)* | 2018-08-10 | 2018-12-11 | 北京微播视界科技有限公司 | Video cover generation method, device, terminal device and computer storage medium |
| CN109905782B (en)* | 2019-03-31 | 2021-05-18 | 联想(北京)有限公司 | Control method and device |
| CN112015310B (en)* | 2019-05-31 | 2025-01-14 | 阿里巴巴集团控股有限公司 | Method, device and electronic device for obtaining cover of electronic icon and setting cover |
| CN110366027B (en)* | 2019-08-29 | 2022-04-01 | 维沃移动通信有限公司 | Video management method and terminal equipment |
| CN111246272A (en)* | 2020-01-17 | 2020-06-05 | 北京达佳互联信息技术有限公司 | Method and device for displaying video cover picture |
| CN112363660B (en)* | 2020-11-09 | 2023-03-24 | 北京达佳互联信息技术有限公司 | Method and device for determining cover image, electronic equipment and storage medium |
| CN112667835B (en)* | 2020-12-23 | 2024-11-26 | 北京达佳互联信息技术有限公司 | Works processing method, device, electronic device and storage medium |
| CN113542594B (en)* | 2021-06-28 | 2023-11-17 | 惠州Tcl云创科技有限公司 | High-quality image extraction processing method and device based on video and mobile terminal |
| CN114827730B (en)* | 2022-04-19 | 2024-05-31 | 咪咕文化科技有限公司 | Video cover selection method, device, equipment and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102883304A (en)* | 2012-10-11 | 2013-01-16 | 王维国 | Method for setting head portrait in contact list of mobile phone of other person |
| CN103067558A (en)* | 2013-01-17 | 2013-04-24 | 深圳市中兴移动通信有限公司 | Method and device associating pictures of contact person in address book |
| CN103186314A (en)* | 2011-12-29 | 2013-07-03 | 方正国际软件(北京)有限公司 | Cartoon background processing system, cartoon background processing method and terminal |
| CN104244024A (en)* | 2014-09-26 | 2014-12-24 | 北京金山安全软件有限公司 | Video cover generation method and device and terminal |
| CN104850389A (en)* | 2014-02-14 | 2015-08-19 | 腾讯科技(深圳)有限公司 | Method and apparatus for implementing dynamic interface |
| CN105094513A (en)* | 2014-05-23 | 2015-11-25 | 腾讯科技(北京)有限公司 | User avatar setting method and apparatus as well as electronic device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008536196A (en)* | 2005-02-14 | 2008-09-04 | ヒルクレスト・ラボラトリーズ・インコーポレイテッド | Method and system for enhancing television applications using 3D pointing |
| CN101799828B (en)* | 2010-03-11 | 2012-01-11 | 南昌航空大学 | Book lookup method based on perspective transformation for video point reading machine |
| US9264770B2 (en)* | 2013-08-30 | 2016-02-16 | Rovi Guides, Inc. | Systems and methods for generating media asset representations based on user emotional responses |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103186314A (en)* | 2011-12-29 | 2013-07-03 | 方正国际软件(北京)有限公司 | Cartoon background processing system, cartoon background processing method and terminal |
| CN102883304A (en)* | 2012-10-11 | 2013-01-16 | 王维国 | Method for setting head portrait in contact list of mobile phone of other person |
| CN103067558A (en)* | 2013-01-17 | 2013-04-24 | 深圳市中兴移动通信有限公司 | Method and device associating pictures of contact person in address book |
| CN104850389A (en)* | 2014-02-14 | 2015-08-19 | 腾讯科技(深圳)有限公司 | Method and apparatus for implementing dynamic interface |
| CN105094513A (en)* | 2014-05-23 | 2015-11-25 | 腾讯科技(北京)有限公司 | User avatar setting method and apparatus as well as electronic device |
| CN104244024A (en)* | 2014-09-26 | 2014-12-24 | 北京金山安全软件有限公司 | Video cover generation method and device and terminal |
| Publication number | Publication date |
|---|---|
| CN106658141A (en) | 2017-05-10 |
| Publication | Publication Date | Title |
|---|---|---|
| CN106658141B (en) | A video processing method and mobile terminal | |
| US11128802B2 (en) | Photographing method and mobile terminal | |
| CN105955607B (en) | Content sharing method and device | |
| CN106358069A (en) | Video data processing method and mobile terminal | |
| CN106791357A (en) | A kind of image pickup method and mobile terminal | |
| CN106406739B (en) | Method for generating note and mobile terminal | |
| CN105979157B (en) | A shooting mode switching method and mobile terminal | |
| CN106792272A (en) | The generation method and mobile terminal of a kind of video thumbnails | |
| CN106648035A (en) | Image resolution adjusting method and mobile terminal | |
| CN106101553A (en) | A kind of photographic method and mobile terminal | |
| CN106657793A (en) | Image processing method and mobile terminal | |
| CN106126108A (en) | A kind of breviary map generalization method and mobile terminal | |
| CN106127076A (en) | The inspection method of a kind of photograph album photo and mobile terminal | |
| CN106101544A (en) | A kind of image processing method and mobile terminal | |
| CN106959864A (en) | A kind of adjusting method and mobile terminal of interface display effect | |
| CN105979155A (en) | Photographing method and mobile terminal | |
| CN107346332A (en) | A kind of image processing method and mobile terminal | |
| CN106371659A (en) | Function entry enable method and mobile terminal | |
| CN106940597A (en) | A kind of camera starts control method and mobile terminal | |
| CN106888354A (en) | A kind of singlehanded photographic method and mobile terminal | |
| CN106101597A (en) | The image pickup method of a kind of video that fixes and mobile terminal | |
| CN106686402A (en) | A video processing method and mobile terminal | |
| CN106657767B (en) | A shooting method and mobile terminal | |
| CN107622478A (en) | An image processing method, mobile terminal and computer-readable storage medium | |
| CN107026982A (en) | The photographic method and mobile terminal of a kind of mobile terminal |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |