[go: up one dir, main page]

CN106101597A - The image pickup method of a kind of video that fixes and mobile terminal - Google Patents

The image pickup method of a kind of video that fixes and mobile terminal Download PDF

Info

Publication number
CN106101597A
CN106101597A CN201610514446.5A CN201610514446A CN106101597A CN 106101597 A CN106101597 A CN 106101597A CN 201610514446 A CN201610514446 A CN 201610514446A CN 106101597 A CN106101597 A CN 106101597A
Authority
CN
China
Prior art keywords
frame
video
target data
mobile terminal
data frame
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
CN201610514446.5A
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 Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201610514446.5A priority Critical patent/CN106101597A/en
Publication of CN106101597A publication Critical patent/CN106101597A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor
    • H04N5/915Television signal processing therefor for field- or frame-skip recording or reproducing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Embodiments provide image pickup method and the mobile terminal of a kind of video that fixes, described method is applied to mobile terminal, including: use default acquisition parameters to carry out video capture, it is thus achieved that video data, described video data includes the multiframe Frame with frame number;The multiframe Frame extracting designated frame sequence number is target data frame;Described target data frame is used to generate the video that fixes such that it is able to directly generate, when video capture, the video that fixes, simplify the shooting process of the video that fixes, improve the recording efficiency of the video that fixes.

Description

一种定格视频的拍摄方法及移动终端A shooting method and mobile terminal of stop-frame video

技术领域technical field

本发明实施例涉及通信技术领域,尤其涉及一种定格视频的拍摄方法及移动终端。Embodiments of the present invention relate to the field of communication technologies, and in particular, to a method for shooting a stop-motion video and a mobile terminal.

背景技术Background technique

定格视频指的是逐格地拍摄对象,然后在后期进行剪辑处理使之形成连续动作的视频,看起来给人以一种既有停顿但又连续的感觉。Stop-motion video refers to shooting objects one by one, and then editing them in the later stage to form a continuous motion video, which seems to give people a sense of both pause and continuity.

目前,定格视频的拍摄通常是根据预先设计好的场景及情节,对每一帧场景进行摆拍,分别获得多张视频图片,然后在后期通过对多张视频图片进行合成,从而得到最终的视频图像。At present, the shooting of stop-motion video is usually based on pre-designed scenes and plots, each frame of the scene is posed, and multiple video pictures are obtained respectively, and then the final video is obtained by synthesizing multiple video pictures in the later stage image.

但是,上述方法对于拍摄定格视频的要求较高,需要特别留意每一帧场景的位置,一旦出现摆拍位置不对应,最终得到的视频图像就会出现动作不连续的问题,严重影响视频质量,同时,上述方法由于需要对每一帧图像都进行摆拍,使得拍摄过程也比较繁琐,不适合普通用户使用。However, the above method has high requirements for shooting stop-motion video, and special attention needs to be paid to the position of each frame of the scene. Once the position of the pose does not correspond, the final video image will have discontinuous motion, which seriously affects the video quality. At the same time, since the above method needs to pose every frame of image, the shooting process is relatively cumbersome, and it is not suitable for ordinary users.

发明内容Contents of the invention

本发明实施例提供一种定格视频的拍摄方法及移动终端,以解决已有技术中对于拍摄定格视频要求较高,拍摄过程比较繁琐的问题。Embodiments of the present invention provide a method for shooting a freeze-frame video and a mobile terminal, so as to solve the problems in the prior art that there are high requirements for shooting a freeze-frame video and the shooting process is relatively cumbersome.

第一方面,本发明实施例提供了一种定格视频的拍摄方法,包括:In a first aspect, an embodiment of the present invention provides a method for shooting a stop-motion video, including:

采用预设拍摄参数进行视频拍摄,获得视频数据,所述视频数据包括具有帧序号的多帧数据帧;Using preset shooting parameters for video shooting to obtain video data, the video data includes multi-frame data frames with frame numbers;

提取指定帧序号的多帧数据帧为目标数据帧;Extract the multi-frame data frame with the specified frame number as the target data frame;

采用所述目标数据帧生成定格视频。A stop motion video is generated using the target data frame.

第二方面,本发明实施例还提供了一种移动终端,包括:In the second aspect, the embodiment of the present invention also provides a mobile terminal, including:

拍摄模块,用于采用预设拍摄参数进行视频拍摄,获得视频数据,所述视频数据包括具有帧序号的多帧数据帧;A shooting module, configured to use preset shooting parameters for video shooting to obtain video data, the video data including multi-frame data frames with frame numbers;

提取模块,用于提取所述拍摄模块获得的指定帧序号的多帧数据帧为目标数据帧;An extraction module, configured to extract the multi-frame data frame of the specified frame number obtained by the shooting module as the target data frame;

生成模块,用于采用所述提取模块提取的目标数据帧生成定格视频。A generating module, configured to generate a stop-motion video using the target data frame extracted by the extracting module.

这样,在本发明实施例中,通过采用预设拍摄参数进行视频拍摄,获得具有帧序号的多帧数据帧,然后提取出具有指定帧序号的多帧数据帧,生成定格视频,从而能够在视频拍摄时直接生成定格视频,简化了定格视频的拍摄过程,提高了定格视频的录制效率。In this way, in the embodiment of the present invention, by using preset shooting parameters for video shooting, a multi-frame data frame with a frame number is obtained, and then a multi-frame data frame with a specified frame number is extracted to generate a stop-motion video, so that it can be recorded in the video The stop-frame video is directly generated during shooting, which simplifies the shooting process of the stop-frame video and improves the recording efficiency of the stop-frame video.

附图说明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 the flow chart of the shooting method of stop-motion video of the first embodiment of the present invention;

图2是本发明第二实施例的定格视频的拍摄方法的流程图;FIG. 2 is a flow chart of a method for shooting a stop-motion video according to a second embodiment of the present invention;

图3是本发明第三实施例的定格视频的拍摄方法的流程图;3 is a flowchart of a method for shooting a stop-motion video according to a third embodiment of the present invention;

图4是本发明第四实施例的移动终端的框图之一;Fig. 4 is one of block diagrams of the mobile terminal of the fourth embodiment of the present invention;

图5是本发明第四实施例的移动终端的框图之二;Fig. 5 is the second block diagram of the mobile terminal of the fourth embodiment of the present invention;

图6是本发明第五实施例的移动终端的框图;FIG. 6 is a block diagram of a mobile terminal according to a fifth embodiment of the present invention;

图7是本发明第六实施例的移动终端的结构示意图。Fig. 7 is a schematic structural diagram of a mobile terminal according to a sixth embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。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.

第一实施例first embodiment

参照图1,示出了本发明第一实施例的定格视频的拍摄方法方法的流程图,所述方法可以应用于移动终端,所述方法具体可以包括如下步骤:Referring to FIG. 1 , it shows a flowchart of a method for shooting a stop-motion video according to a first embodiment of the present invention. The method can be applied to a mobile terminal, and the method can specifically include the following steps:

步骤101,采用预设拍摄参数进行视频拍摄,获得视频数据,所述视频数据包括具有帧序号的多帧数据帧。In step 101, video shooting is performed using preset shooting parameters to obtain video data, and the video data includes multi-frame data frames with frame numbers.

在本发明实施例中,所述移动终端可以是具有视频拍摄功能的手机、平板电脑等终端,也可以是手持相机、摄像机等终端,本发明对移动终端的具体类型不作限定。In the embodiment of the present invention, the mobile terminal may be a terminal such as a mobile phone and a tablet computer with a video shooting function, or may be a terminal such as a handheld camera or a video camera, and the present invention does not limit the specific type of the mobile terminal.

在具体实现中,当用户使用移动终端进行定格视频的拍摄时,可以首先对拍摄参数进行设置。所述拍摄参数可以包括视频的分辨率、定格的时间间隔等。在完成拍摄参数的设置后,用户可以通过点击移动终端上的视频录制按钮开始定格视频的拍摄,以获得视频数据。所述视频录制按钮可以是移动终端上的实体按键,也可以是移动终端显示界面中所展现的虚拟按键,本发明对此不作具体限定。In a specific implementation, when a user uses a mobile terminal to shoot a stop-motion video, firstly, the shooting parameters may be set. The shooting parameters may include video resolution, freeze-frame time interval, and the like. After completing the setting of the shooting parameters, the user can start shooting the stop-motion video by clicking the video recording button on the mobile terminal to obtain video data. The video recording button may be a physical button on the mobile terminal, or a virtual button displayed on the display interface of the mobile terminal, which is not specifically limited in the present invention.

通常,视频是指将一系列静态影像以电信号的方式加以捕捉、纪录、处理、储存、传送与重现的各种技术。连续的图像变化每秒超过24帧(frame)画面以上时,根据视觉暂留原理,人眼无法辨别单幅的静态画面,看上去是平滑连续的视觉效果,这样连续的画面叫做视频。Generally, video refers to various technologies that capture, record, process, store, transmit and reproduce a series of still images in the form of electrical signals. When continuous image changes exceed 24 frames per second, according to the principle of visual persistence, the human eye cannot distinguish a single static image, which appears to be a smooth and continuous visual effect. Such a continuous image is called a video.

因此,在本发明实施例中,所述视频数据可以是由多帧数据帧合成形成的,所述多帧数据帧可以具有对应的帧序号,所述帧序号可以是与视频数据帧的时间戳相对应的用于体现所述视频帧的拍摄时间的序号。Therefore, in the embodiment of the present invention, the video data may be formed by synthesizing multiple frames of data frames, the multiple frames of data frames may have corresponding frame numbers, and the frame numbers may be the time stamps of the video data frames Correspondingly used to reflect the sequence number of the shooting time of the video frame.

步骤102,提取指定帧序号的多帧数据帧为目标数据帧。Step 102, extract the multi-frame data frame with the specified frame number as the target data frame.

在本发明实施例中,在采用预设拍摄参数进行视频拍摄,获得多帧数据帧的过程中,可以从所述多帧数据帧中提取出具有指定帧序号的目标数据帧。In the embodiment of the present invention, during the process of video shooting using preset shooting parameters to obtain multi-frame data frames, a target data frame with a specified frame number can be extracted from the multi-frame data frames.

在具体实现中,可以按照用户设定的间隔,从所述多帧数据帧中提取多具有指定帧序号的目标数据帧,例如,当用户设定为每5帧提取一帧数据帧时,可以从第5帧数据帧开始,依次提取第5帧、第10帧、第15帧、……第5N帧数据帧,其中N为正整数;当然,在用户设定为每5帧提取一帧数据帧时,也可以从第1帧数据帧开始,依次提取第1帧、第6帧、第11帧、……第5N+1帧数据帧,其中N为非负整数;所述设定的间隔还可以是时间间隔,例如,每1/5秒,或每1/6秒提取一次,本发明对所述间隔以及提取方式不作限定。In a specific implementation, multiple target data frames with specified frame numbers can be extracted from the multi-frame data frames according to the interval set by the user. For example, when the user sets to extract a data frame every 5 frames, it can be Starting from the 5th frame data frame, sequentially extract the 5th frame, the 10th frame, the 15th frame, ... the 5Nth frame data frame, where N is a positive integer; of course, when the user sets to extract a frame of data every 5 frames Frame, also can start from the 1st frame data frame, sequentially extract the 1st frame, the 6th frame, the 11th frame, ... the 5N+1 frame data frame, wherein N is a non-negative integer; the interval of the setting It may also be a time interval, for example, extraction every 1/5 second or every 1/6 second, and the present invention does not limit the interval and extraction method.

步骤103,采用所述目标数据帧生成定格视频。Step 103, using the target data frame to generate a stop-motion video.

在具体实现中,移动终端在获取到具有指定帧序号的目标数据帧后,可以分别对所述目标数据帧进行编码,生成定格视频。In a specific implementation, after the mobile terminal acquires the target data frame with the specified frame number, it can respectively encode the target data frame to generate a stop-motion video.

在本发明实施例中,通过采用预设拍摄参数进行视频拍摄,获得具有帧序号的多帧数据帧,然后提取出具有指定帧序号的多帧数据帧,生成定格视频,从而能够在视频拍摄时直接生成定格视频,简化了定格视频的拍摄过程,提高了定格视频的录制效率。In the embodiment of the present invention, by using preset shooting parameters for video shooting, a multi-frame data frame with a frame number is obtained, and then a multi-frame data frame with a specified frame number is extracted to generate a stop-motion video, thereby being able to The stop-frame video is directly generated, which simplifies the shooting process of the stop-frame video and improves the recording efficiency of the stop-frame video.

第二实施例second embodiment

参照图2,示出了本发明第二实施例的定格视频的拍摄方法方法的流程图,所述方法可以应用于移动终端,所述方法具体可以包括如下步骤:Referring to FIG. 2 , it shows a flow chart of a method for shooting a stop-motion video according to a second embodiment of the present invention. The method can be applied to a mobile terminal, and the method can specifically include the following steps:

步骤201,采用预设拍摄参数进行视频拍摄,获得视频数据,所述视频数据包括具有帧序号的多帧数据帧。In step 201, video shooting is performed using preset shooting parameters to obtain video data, and the video data includes multi-frame data frames with frame numbers.

在本发明实施例中,所述移动终端可以是具有视频拍摄功能的手机、平板电脑等终端,也可以是手持相机、摄像机等终端,本发明对移动终端的具体类型不作限定。In the embodiment of the present invention, the mobile terminal may be a terminal such as a mobile phone and a tablet computer with a video shooting function, or may be a terminal such as a handheld camera or a video camera, and the present invention does not limit the specific type of the mobile terminal.

在具体实现中,当用户使用移动终端进行定格视频的拍摄时,可以首先对拍摄参数进行设置。所述拍摄参数可以包括视频的分辨率、预设时间间隔的帧数等等,所述预设时间间隔的帧数可以是定格视频的定格时长,例如,5帧,本发明对定格时长的具体数值不作限定。In a specific implementation, when a user uses a mobile terminal to shoot a stop-motion video, firstly, the shooting parameters may be set. The shooting parameters can include the resolution of the video, the frame number of the preset time interval, etc., and the frame number of the preset time interval can be the freeze-frame duration of the freeze-frame video, for example, 5 frames. The present invention specifically specifies the freeze-frame duration. The value is not limited.

在视频拍摄过程中,通常1s的时间可以获得30帧数据帧,因此,可以根据所述数据帧本身的时间戳确定每一帧数据帧的帧序号。During video shooting, usually 30 data frames can be obtained in 1 second, therefore, the frame sequence number of each data frame can be determined according to the timestamp of the data frame itself.

步骤202,分别判断所述多帧数据帧的帧序号是否为预设时间间隔的帧数的整数倍。Step 202, respectively judge whether the frame number of the multi-frame data frame is an integer multiple of the frame number of the preset time interval.

在本发明实施例中,当用户设定定格时长为预设时间间隔的帧数后,可以根据所述多帧数据帧的帧序号,确定出录制定格视频所需要的目标数据帧。In the embodiment of the present invention, after the user sets the freeze-frame duration as the number of frames in the preset time interval, the target data frame required for recording the freeze-frame video can be determined according to the frame numbers of the multi-frame data frames.

在具体实现中,可以在获得每一帧数据帧后,对所述数据帧进行编号,通过确定所述编号是否为预设时间间隔的帧数的整数倍,来确定该数据帧是否为录制定格视频的目标数据帧。In a specific implementation, after each data frame is obtained, the data frame can be numbered, and whether the data frame is a recording freeze frame can be determined by determining whether the number is an integer multiple of the frame number of the preset time interval The target data frame for the video.

例如,移动终端在进行视频拍摄时,可以使用计数器从0开始计数,当每获得一帧数据帧后,可以对所述数据帧进行编号,并对计数器加一,从而可以根据计数器所记录的值确定该数据帧是否为目标数据帧。以用户设定的预设时间间隔的帧数为5帧为例,当移动终端每获取一帧数据帧时,计数器可以对记录的值加一,当计数器记录的值分别为5、10、15……5N时,可以认为此时所对应的数据帧即为目标数据帧,其中N为正整数。For example, when the mobile terminal is shooting a video, it can use a counter to start counting from 0. After each frame of data is obtained, the data frame can be numbered, and the counter can be added by one, so that the value recorded by the counter can be Determine if this data frame is the target data frame. Taking the frame number of the preset time interval set by the user as 5 frames as an example, when the mobile terminal acquires a data frame each time, the counter can add one to the recorded value, when the recorded values of the counter are 5, 10, 15 ...5N, it can be considered that the corresponding data frame at this time is the target data frame, where N is a positive integer.

步骤203,若是,则提取所述帧序号为预设时间间隔的帧数的整数倍的多帧数据帧为目标数据帧。Step 203, if yes, extract multi-frame data frames whose frame number is an integer multiple of the frame number of the preset time interval as the target data frame.

在本发明实施例中,在确定出某一数据帧为录制定格视频所需的目标数据帧时,可以提取出所述目标数据帧。In the embodiment of the present invention, when a certain data frame is determined to be a target data frame required for recording a stop-motion video, the target data frame may be extracted.

步骤204,将所述目标数据帧存储至移动终端的指定位置。Step 204, storing the target data frame in a designated location of the mobile terminal.

在具体实现中,所述指定位置可以是移动终端的内存缓冲区,也可以是移动终端的其他指定文件夹,本发明对此不作具体限定。In a specific implementation, the designated location may be the memory buffer of the mobile terminal, or other designated folders of the mobile terminal, which is not specifically limited in the present invention.

步骤205,采用所述目标数据帧生成定格视频。Step 205, using the target data frame to generate a stop-motion video.

在具体实现中,可以从移动终端的指定位置读取出所述目标数据帧,并对所述目标数据帧进行编码,以生成定格视频。In a specific implementation, the target data frame may be read from a designated position of the mobile terminal, and the target data frame may be encoded to generate a stop-motion video.

在本发明实施例中,通过设定预设时间间隔的帧数为定格视频的定格时长,进而按照所述定格时长提取出目标数据帧,生成定格视频,从而可以在视频拍摄过程中,直接生成定格视频,提高了定格视频的录制效率。In the embodiment of the present invention, by setting the number of frames of the preset time interval as the freeze-frame video duration, and then extracting the target data frame according to the freeze-frame duration, a freeze-frame video is generated, so that the video can be directly generated during the video shooting process. Stop motion video, improve the recording efficiency of stop motion video.

第三实施例third embodiment

参照图3,示出了本发明第三实施例的定格视频的拍摄方法方法的流程图,所述方法可以应用于移动终端,所述方法具体可以包括如下步骤:Referring to FIG. 3 , it shows a flowchart of a method for shooting a stop-motion video according to a third embodiment of the present invention. The method can be applied to a mobile terminal, and the method can specifically include the following steps:

步骤301,采用预设拍摄参数进行视频拍摄,获得视频数据,所述视频数据包括具有帧序号的多帧数据帧。In step 301, video shooting is performed using preset shooting parameters to obtain video data, and the video data includes multi-frame data frames with frame numbers.

在本发明实施例中,所述移动终端可以是具有视频拍摄功能的手机、平板电脑等终端,也可以是手持相机、摄像机等终端,本发明对移动终端的具体类型不作限定。In the embodiment of the present invention, the mobile terminal may be a terminal such as a mobile phone and a tablet computer with a video shooting function, or may be a terminal such as a handheld camera or a video camera, and the present invention does not limit the specific type of the mobile terminal.

在具体实现中,当用户使用移动终端进行定格视频的拍摄时,可以首先对拍摄参数进行设置。所述拍摄参数可以包括视频的分辨率、预设时间间隔的帧数等等,所述预设时间间隔的帧数可以是定格视频的定格时长,例如,5帧,本发明对定格时长的具体数值不作限定。In a specific implementation, when a user uses a mobile terminal to shoot a stop-motion video, firstly, the shooting parameters may be set. The shooting parameters can include the resolution of the video, the frame number of the preset time interval, etc., and the frame number of the preset time interval can be the freeze-frame duration of the freeze-frame video, for example, 5 frames. The present invention specifically specifies the freeze-frame duration. The value is not limited.

在视频拍摄过程中,通常1s的时间可以获得30帧数据帧,因此,可以根据所述数据帧本身的时间戳确定每一帧数据帧的帧序号。During video shooting, usually 30 data frames can be obtained in 1 second, therefore, the frame sequence number of each data frame can be determined according to the timestamp of the data frame itself.

步骤302,当接收到用户在所述移动终端的显示屏幕上的点击操作时,识别当前预览的数据帧为第一帧数据帧。Step 302, when receiving a user's click operation on the display screen of the mobile terminal, identify the currently previewed data frame as the first data frame.

通常,在视频拍摄过程中,移动终端可以在其显示屏幕上实时地展现所拍摄的视频数据。用户可以通过在所述显示屏幕上进行点击操作,触发定格视频的拍摄指令。Usually, during the video shooting process, the mobile terminal can display the captured video data in real time on its display screen. The user can trigger a stop-motion video shooting instruction by performing a click operation on the display screen.

当移动终端接收到所述定格视频的拍摄指令时,可以将显示屏幕上当前预览的数据帧识别为第一帧数据帧,并开始定格视频的拍摄。When the mobile terminal receives the shooting instruction of the stop-frame video, it can recognize the currently previewed data frame on the display screen as the first data frame, and start shooting the stop-frame video.

步骤303,从所述第一帧数据帧开始,提取指定帧序号的多帧数据帧为目标数据帧。Step 303, starting from the first data frame, extracting multiple data frames with specified frame numbers as target data frames.

在本发明的一种优选实施例中,所述从所述第一帧数据帧开始,提取指定帧序号的多帧数据帧为目标数据帧的步骤具体可以包括如下子步骤:In a preferred embodiment of the present invention, starting from the first data frame, the step of extracting a multi-frame data frame with a specified frame number as a target data frame may specifically include the following sub-steps:

从所述第一帧数据帧开始,分别判断所述多帧数据帧的帧序号是否为预设时间间隔的帧数的整数倍;Starting from the first frame data frame, respectively judge whether the frame number of the multi-frame data frame is an integer multiple of the frame number of the preset time interval;

若是,则提取所述帧序号为预设时间间隔的帧数的整数倍的多帧数据帧为目标数据帧。If so, extract the multi-frame data frames whose frame number is an integer multiple of the frame number of the preset time interval as the target data frame.

在具体实现中,可以按照预设时间间隔的帧数,从所述多帧数据帧中提取多具有指定帧序号的目标数据帧,例如,当用户设定为每5帧提取一帧数据帧时,可以从第5帧数据帧开始,依次提取第5帧、第10帧、第15帧、……第5N帧数据帧,其中N为正整数;当然,在用户设定为每5帧提取一帧数据帧时,也可以从第1帧数据帧开始,依次提取第1帧、第6帧、第11帧、……第5N+1帧数据帧,其中N为非负整数。In a specific implementation, multiple target data frames with specified frame numbers can be extracted from the multi-frame data frames according to the number of frames at the preset time interval, for example, when the user sets to extract a data frame every 5 frames , starting from the 5th data frame, sequentially extract the 5th frame, the 10th frame, the 15th frame, ... the 5Nth frame data frame, where N is a positive integer; of course, when the user sets to extract a In the frame data frame, it is also possible to sequentially extract the first frame, the sixth frame, the eleventh frame, ... the 5N+1 frame data frame starting from the first frame data frame, wherein N is a non-negative integer.

在本发明实施例的另一种实现方式中,提取指定帧序号的多帧数据帧为目标数据帧具体可以为:将用户指定的多帧数据帧作为目标数据帧。这样可以在使用户在拍摄过程中任意选择目标数据帧,使定格视频的拍摄更加灵活。In another implementation manner of the embodiment of the present invention, extracting a multi-frame data frame with a specified frame number as a target data frame may specifically be: taking a user-specified multi-frame data frame as a target data frame. In this way, the user can arbitrarily select the target data frame during the shooting process, making the shooting of the stop-motion video more flexible.

步骤304,将所述目标数据帧存储至移动终端的指定位置。Step 304, storing the target data frame in a designated location of the mobile terminal.

在具体实现中,所述指定位置可以是移动终端的内存缓冲区,也可以是移动终端的其他指定文件夹,本发明对此不作具体限定。In a specific implementation, the designated location may be the memory buffer of the mobile terminal, or other designated folders of the mobile terminal, which is not specifically limited in the present invention.

步骤305,从所述移动终端的指定位置读取所述目标数据帧。Step 305, read the target data frame from the specified location of the mobile terminal.

步骤306,按照帧序号的顺序,对所述目标数据帧进行编码,生成定格视频。Step 306: Encode the target data frames according to the sequence of frame numbers to generate a stop-motion video.

在本发明实施例中,移动终端可以从指定位置读取出所述目标数据帧,并按照帧序号的顺序,对所述目标数据帧进行编码,生成定格视频。In the embodiment of the present invention, the mobile terminal may read the target data frame from a designated position, and encode the target data frame according to the order of frame numbers to generate a stop-motion video.

通常,视频编码是指通过特定的压缩技术,将某个视频格式的文件转换成另一种视频格式文件的方式。本发明对生成定格视频所采用的编码技术以及定格视频的具体的视频格式不作限定。Generally, video encoding refers to a method of converting a video format file into another video format file through a specific compression technology. The present invention does not limit the encoding technology used to generate the stop-frame video and the specific video format of the stop-frame video.

在本发明实施例中,当用户在进行普通视频的拍摄时,通过点击移动终端的显示屏幕,实时地触发定格视频的拍摄,从而可以获得指定图像的定格视频数据,使得所录制的定格视频更能满足用户的需求。In the embodiment of the present invention, when the user is shooting a normal video, by clicking on the display screen of the mobile terminal, the shooting of the stop-frame video is triggered in real time, so that the stop-frame video data of the specified image can be obtained, so that the recorded stop-frame video is more accurate. Can meet the needs of users.

需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。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.

第四实施例Fourth embodiment

参照图4,示出了本发明第四实施例的移动终端的框图之一,所述移动终端400具体可以包括如下模块:Referring to FIG. 4 , one of the block diagrams of the mobile terminal according to the fourth embodiment of the present invention is shown, and the mobile terminal 400 may specifically include the following modules:

拍摄模块401,用于采用预设拍摄参数进行视频拍摄,获得视频数据,所述视频数据可以包括具有帧序号的多帧数据帧;The shooting module 401 is configured to use preset shooting parameters for video shooting to obtain video data, and the video data may include multi-frame data frames with frame numbers;

提取模块402,用于提取所述拍摄模块获得的指定帧序号的多帧数据帧为目标数据帧;An extraction module 402, configured to extract the multi-frame data frame of the specified frame number obtained by the shooting module as the target data frame;

生成模块403,用于采用所述提取模块提取的目标数据帧生成定格视频。A generation module 403, configured to generate a stop-motion video using the target data frame extracted by the extraction module.

在本发明实施例中,所述预设拍摄参数可以包括预设时间间隔的帧数。In the embodiment of the present invention, the preset shooting parameters may include the number of frames at a preset time interval.

在本发明实施例中,所述提取模块402具体可以包括如下子模块:In the embodiment of the present invention, the extraction module 402 may specifically include the following submodules:

第一判断子模块4021,用于分别判断所述多帧数据帧的帧序号是否为预设时间间隔的帧数的整数倍;The first judging sub-module 4021 is used to judge whether the frame number of the multi-frame data frame is an integer multiple of the frame number of the preset time interval;

第一提取子模块4022,用于在分别判断所述多帧数据帧的帧序号为预设时间间隔的帧数的整数倍时,提取所述帧序号为预设时间间隔的帧数的整数倍的多帧数据帧为目标数据帧。The first extraction sub-module 4022 is used to extract the frame number as an integer multiple of the frame number of the preset time interval when it is judged that the frame number of the multi-frame data frame is an integer multiple of the frame number of the preset time interval The multiframe dataframe is the target dataframe.

在本发明的另一种实施例中,所述提取模块402还可以包括如下子模块:In another embodiment of the present invention, the extraction module 402 may also include the following submodules:

数据帧识别子模块4023,用于在接收到用户在所述移动终端的显示屏幕上的点击操作时,识别当前预览的数据帧为第一帧数据帧;The data frame identification sub-module 4023 is used to identify the currently previewed data frame as the first frame data frame when receiving the user's click operation on the display screen of the mobile terminal;

第二提取子模块4024,用于从所述数据帧识别子模块识别出的第一帧数据帧开始,提取指定帧序号的多帧数据帧为目标数据帧。The second extraction sub-module 4024 is configured to start from the first data frame identified by the data frame identification sub-module, and extract multiple data frames with specified frame numbers as the target data frame.

在图4的基础上,可选地,参见图5,是本发明第四实施例的移动终端的框图之二,所述第二提取子模块4024具体可以包括如下单元:On the basis of FIG. 4, optionally, referring to FIG. 5, which is the second block diagram of the mobile terminal according to the fourth embodiment of the present invention, the second extraction submodule 4024 may specifically include the following units:

第二判断单元241,用于从所述第一帧数据帧开始,分别判断所述多帧数据帧的帧序号是否为预设时间间隔的帧数的整数倍;The second judging unit 241 is configured to judge whether the frame number of the multi-frame data frame is an integer multiple of the frame number of the preset time interval starting from the first data frame;

第二提取单元242,用于在判断所述多帧数据帧的帧序号为预设时间间隔的帧数的整数倍时,提取所述帧序号为预设时间间隔的帧数的整数倍的多帧数据帧为目标数据帧。The second extracting unit 242 is configured to extract multiples whose frame numbers are integer multiples of the frame number of the preset time interval when judging that the frame number of the multi-frame data frame is an integer multiple of the frame number of the preset time interval frame data frame is the target data frame.

在本发明实施例中,所述提取模块402还可以包括如下子模块:In the embodiment of the present invention, the extraction module 402 may also include the following submodules:

存储子模块4025,用于将所述目标数据帧存储至移动终端的指定位置。The storage sub-module 4025 is configured to store the target data frame in a designated location of the mobile terminal.

在本发明实施例中,所述生成模块403具体可以包括如下子模块:In the embodiment of the present invention, the generating module 403 may specifically include the following submodules:

读取子模块4031,用于从所述移动终端的指定位置读取所述目标数据帧;A reading submodule 4031, configured to read the target data frame from a specified location of the mobile terminal;

生成子模块4032,用于按照帧序号的顺序,对所述读取子模块读取的目标数据帧进行编码,生成定格视频。The generating sub-module 4032 is used to encode the target data frames read by the reading sub-module according to the order of the frame numbers to generate a stop-motion video.

移动终端400能够实现图1至图3的方法实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。通过采用预设拍摄参数进行视频拍摄,获得具有帧序号的多帧数据帧,然后提取出具有指定帧序号的多帧数据帧,生成定格视频,从而能够在视频拍摄时直接生成定格视频,简化了定格视频的拍摄过程,提高了定格视频的录制效率。The mobile terminal 400 can implement various processes implemented by the mobile terminal in the method embodiments shown in FIG. 1 to FIG. 3 , and details will not be repeated here to avoid repetition. By using the preset shooting parameters for video shooting, a multi-frame data frame with a frame number is obtained, and then a multi-frame data frame with a specified frame number is extracted to generate a stop-frame video, so that a stop-frame video can be directly generated during video shooting, which simplifies The shooting process of the stop-motion video improves the recording efficiency of the stop-motion video.

第五实施例fifth embodiment

图6是本发明第五实施例的一种移动终端的框图。图6所示的移动终端600包括:至少一个处理器601、存储器602、至少一个网络接口604和用户接口603。移动终端600中的各个组件通过总线系统605耦合在一起。可理解,总线系统605用于实现这些组件之间的连接通信。总线系统605除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图6中将各种总线都标为总线系统605,移动终端600还包括拍照组件606,拍照组件606包括摄像头。Fig. 6 is a block diagram of a mobile terminal according to a fifth embodiment of the present invention. The mobile terminal 600 shown in FIG. 6 includes: at least one processor 601 , a memory 602 , at least one network interface 604 and a user interface 603 . Various components in the mobile terminal 600 are coupled together through a bus system 605 . It can be understood that the bus system 605 is used to realize connection and communication between these components. In addition to the data bus, the bus system 605 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, in FIG. 6, various buses are marked as a bus system 605, and the mobile terminal 600 also includes a camera component 606, which includes a camera.

其中,用户接口603可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等。Wherein, the user interface 603 may include a display, a keyboard or a pointing device (for example, a mouse, a trackball (trackball), a touch panel or a touch screen, and the like.

可以理解,本发明实施例中的存储器602可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(RandomAccess 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)。本发明实施例描述的系统和方法的存储器602旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 602 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 may 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 602 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.

在一些实施方式中,存储器602存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统6021和应用程序6022。In some implementations, the memory 602 stores the following elements, executable modules or data structures, or their subsets, or their extended sets: an operating system 6021 and an application program 6022 .

其中,操作系统6021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序6022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序6022中。Among them, the operating system 6021 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 6022 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 6022 .

在本发明实施例中,通过调用存储器602存储的程序或指令,具体的,可以是应用程序6022中存储的程序或指令,处理器601用于采用预设拍摄参数进行视频拍摄,获得视频数据,所述视频数据包括具有帧序号的多帧数据帧;提取指定帧序号的多帧数据帧为目标数据帧;采用所述目标数据帧生成定格视频。In the embodiment of the present invention, by calling the program or instruction stored in the memory 602, specifically, the program or instruction stored in the application program 6022, the processor 601 is used to perform video shooting using preset shooting parameters to obtain video data, The video data includes multi-frame data frames with frame numbers; extracting the multi-frame data frames with specified frame numbers as target data frames; using the target data frames to generate stop-motion video.

上述本发明实施例揭示的方法可以应用于处理器601中,或者由处理器601实现。处理器601可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器601中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器601可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(FieldProgrammable GateArray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器602,处理器601读取存储器602中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 601 or implemented by the processor 601 . The processor 601 may be an integrated circuit chip and has signal processing capability. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 601 or instructions in the form of software. The above-mentioned processor 601 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 programmable 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, or 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 602, and the processor 601 reads the information in the memory 602, and completes the steps of the above method in combination with its hardware.

可以理解的是,本发明实施例描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(Application Specific Integrated Circuits,ASIC)、数字信号处理器(Digital SignalProcessing,DSP)、数字信号处理设备(DSPDevice,DSPD)、可编程逻辑设备(ProgrammableLogic Device,PLD)、现场可编程门阵列(Field-Programmable GateArray,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 (DSPDevice, DSPD), programmable logic device (ProgrammableLogic Device, PLD), Field-Programmable Gate Array (Field-Programmable GateArray, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing the functions described in the present invention or their in combination.

对于软件实现,可通过执行本发明实施例所述功能的模块(例如过程、函数等)来实现本发明实施例所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For software implementation, the techniques described in the embodiments of the present invention may be implemented through modules (such as procedures, functions, etc.) that execute the functions described in 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.

可选的,所述处理器601还用于:分别判断所述多帧数据帧的帧序号是否为预设时间间隔的帧数的整数倍;若是,则提取所述帧序号为预设时间间隔的帧数的整数倍的多帧数据帧为目标数据帧。Optionally, the processor 601 is further configured to: respectively determine whether the frame number of the multi-frame data frame is an integer multiple of the frame number of the preset time interval; if so, extract the frame number as the preset time interval The multi-frame data frame that is an integer multiple of the number of frames is the target data frame.

可选的,所述处理器601还用于:当接收到用户在所述移动终端的显示屏幕上的点击操作时,识别当前预览的数据帧为第一帧数据帧;从所述第一帧数据帧开始,提取指定帧序号的多帧数据帧为目标数据帧。Optionally, the processor 601 is further configured to: when receiving a user's click operation on the display screen of the mobile terminal, identify the currently previewed data frame as the first frame data frame; The data frame starts, and the multi-frame data frame with the specified frame number is extracted as the target data frame.

可选的,所述处理器601还用于:从所述第一帧数据帧开始,分别判断所述多帧数据帧的帧序号是否为预设时间间隔的帧数的整数倍;若是,则提取所述帧序号为预设时间间隔的帧数的整数倍的多帧数据帧为目标数据帧。Optionally, the processor 601 is further configured to: starting from the first data frame, respectively judge whether the frame number of the multi-frame data frame is an integer multiple of the frame number of the preset time interval; if so, then Extracting multi-frame data frames whose frame number is an integer multiple of the frame number of the preset time interval as the target data frame.

可选的,所述处理器601还用于:将所述目标数据帧存储至移动终端的指定位置。Optionally, the processor 601 is further configured to: store the target data frame in a designated location of the mobile terminal.

可选的,所述处理器601还用于:从所述移动终端的指定位置读取所述目标数据帧;按照帧序号的顺序,对所述目标数据帧进行编码,生成定格视频。Optionally, the processor 601 is further configured to: read the target data frame from a designated position of the mobile terminal; encode the target data frame according to the order of frame numbers to generate a stop-motion video.

移动终端600能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。本发明实施例通过采用预设拍摄参数进行视频拍摄,获得具有帧序号的多帧数据帧,然后提取出具有指定帧序号的多帧数据帧,生成定格视频,从而能够在视频拍摄时直接生成定格视频,简化了定格视频的拍摄过程,提高了定格视频的录制效率。The mobile terminal 600 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, a multi-frame data frame with a frame number is obtained by using preset shooting parameters for video shooting, and then a multi-frame data frame with a specified frame number is extracted to generate a freeze-frame video, so that a freeze-frame can be directly generated during video shooting Video, which simplifies the shooting process of stop-motion video and improves the recording efficiency of stop-motion video.

第六实施例Sixth embodiment

图7是本发明第六实施例的移动终端的结构示意图。具体地,图7中的移动终端700可以为手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、或车载电脑等。Fig. 7 is a schematic structural diagram of a mobile terminal according to a sixth embodiment of the present invention. Specifically, the mobile terminal 700 in FIG. 7 may be a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), or a vehicle-mounted computer.

图7中的移动终端700包括射频(Radio Frequency,RF)电路710、存储器720、输入单元730、显示单元740、处理器760、音频电路770、WiFi(WirelessFidelity)模块780和电源790,移动终端700还包括拍照组件750,拍照组件750包括摄像头。Mobile terminal 700 in Fig. 7 comprises radio frequency (Radio Frequency, RF) circuit 710, memory 720, input unit 730, display unit 740, processor 760, audio circuit 770, WiFi (WirelessFidelity) module 780 and power supply 790, mobile terminal 700 It also includes a camera component 750, and the camera component 750 includes a camera.

其中,输入单元730可用于接收用户输入的数字或字符信息,以及产生与移动终端700的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元730可以包括触控面板731。触控面板731,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板731上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板731可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器760,并能接收处理器760发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板731。除了触控面板731,输入单元730还可以包括其他输入设备732,其他输入设备732可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Wherein, the input unit 730 can be used for receiving number or character information input by the user, and generating signal input related to the user setting and function control of the mobile terminal 700 . Specifically, in the embodiment of the present invention, the input unit 730 may include a touch panel 731 . The touch panel 731, also referred to as a touch screen, can collect user's touch operations on or near it (such as the user's operation on the touch panel 731 using any suitable object or accessory such as a finger, a stylus), and The specified program drives the corresponding connected device. Optionally, the touch panel 731 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 760, and can receive and execute commands sent by the processor 760. In addition, the touch panel 731 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 731, the input unit 730 may also include other input devices 732, which may include but not limited to physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, etc. one or more of.

其中,显示单元740可用于显示由用户输入的信息或提供给用户的信息以及移动终端700的各种菜单界面。显示单元740可包括显示面板741,可选的,可以采用LCD或有机发光二极管(OrganicLight-EmittingDiode,OLED)等形式来配置显示面板741。Wherein, the display unit 740 can be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal 700 . The display unit 740 may include a display panel 741. Optionally, the display panel 741 may be configured in the form of an LCD or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).

应注意,触控面板731可以覆盖显示面板741,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器760以确定触摸事件的类型,随后处理器760根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the touch panel 731 can cover the display panel 741 to form a touch display screen. When the touch display screen detects a touch operation on or near it, it is sent to the processor 760 to determine the type of the touch event, and then the processor The 760 provides corresponding visual output on the touch display screen according to the type of the touch event.

触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或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.

其中处理器760是移动终端700的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器721内的软件程序和/或模块,以及调用存储在第二存储器722内的数据,执行移动终端700的各种功能和处理数据,从而对移动终端700进行整体监控。可选的,处理器760可包括一个或多个处理单元。Wherein the processor 760 is the control center of the mobile terminal 700, utilizes various interfaces and lines to connect various parts of the whole mobile phone, by running or executing the software programs and/or modules stored in the first memory 721, and calling the software programs and/or modules stored in the second memory 721. The data in the memory 722 executes various functions of the mobile terminal 700 and processes data, so as to monitor the mobile terminal 700 as a whole. Optionally, the processor 760 may include one or more processing units.

在本发明实施例中,通过调用存储该第一存储器721内的软件程序和/或模块和/或该第二存储器722内的数据,处理器760用于采用预设拍摄参数进行视频拍摄,获得视频数据,所述视频数据包括具有帧序号的多帧数据帧;提取指定帧序号的多帧数据帧为目标数据帧;采用所述目标数据帧生成定格视频。In the embodiment of the present invention, by calling the software programs and/or modules stored in the first memory 721 and/or the data in the second memory 722, the processor 760 is used to perform video shooting with preset shooting parameters to obtain Video data, the video data includes multi-frame data frames with frame numbers; extracting the multi-frame data frames with specified frame numbers as target data frames; using the target data frames to generate stop-motion video.

可选的,所述处理器760还用于:分别判断所述多帧数据帧的帧序号是否为预设时间间隔的帧数的整数倍;若是,则提取所述帧序号为预设时间间隔的帧数的整数倍的多帧数据帧为目标数据帧。Optionally, the processor 760 is further configured to: respectively determine whether the frame number of the multi-frame data frame is an integer multiple of the frame number of the preset time interval; if so, extract the frame number as the preset time interval The multi-frame data frame that is an integer multiple of the number of frames is the target data frame.

可选的,所述处理器760还用于:当接收到用户在所述移动终端的显示屏幕上的点击操作时,识别当前预览的数据帧为第一帧数据帧;从所述第一帧数据帧开始,提取指定帧序号的多帧数据帧为目标数据帧。Optionally, the processor 760 is further configured to: when receiving a user's click operation on the display screen of the mobile terminal, identify the currently previewed data frame as the first frame data frame; The data frame starts, and the multi-frame data frame with the specified frame number is extracted as the target data frame.

可选的,所述处理器760还用于:从所述第一帧数据帧开始,分别判断所述多帧数据帧的帧序号是否为预设时间间隔的帧数的整数倍;若是,则提取所述帧序号为预设时间间隔的帧数的整数倍的多帧数据帧为目标数据帧。Optionally, the processor 760 is further configured to: starting from the first data frame, respectively judge whether the frame number of the multi-frame data frame is an integer multiple of the frame number of the preset time interval; if so, then Extracting multi-frame data frames whose frame number is an integer multiple of the frame number of the preset time interval as the target data frame.

可选的,所述处理器760还用于:将所述目标数据帧存储至移动终端的指定位置。Optionally, the processor 760 is further configured to: store the target data frame in a designated location of the mobile terminal.

可选的,所述处理器760还用于:从所述移动终端的指定位置读取所述目标数据帧;按照帧序号的顺序,对所述目标数据帧进行编码,生成定格视频。Optionally, the processor 760 is further configured to: read the target data frame from a designated position of the mobile terminal; encode the target data frame according to the order of frame numbers to generate a stop-motion video.

可见,本发明实施例通过采用预设拍摄参数进行视频拍摄,获得具有帧序号的多帧数据帧,然后提取出具有指定帧序号的多帧数据帧,生成定格视频,从而能够在视频拍摄时直接生成定格视频,简化了定格视频的拍摄过程,提高了定格视频的录制效率。It can be seen that the embodiment of the present invention obtains multi-frame data frames with frame serial numbers by using preset shooting parameters for video shooting, and then extracts multi-frame data frames with specified frame serial numbers to generate a stop-motion video, so that it can directly Generate a stop-motion video, simplify the shooting process of the stop-motion video, and improve the recording efficiency of the stop-motion video.

本领域普通技术人员可以意识到,结合本发明实施例中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。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 the present invention, it should be understood that the disclosed devices and methods can 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 methods described in various embodiments 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.

Claims (14)

1. fix the image pickup method of video, is applied to mobile terminal, and described method includes:
Default acquisition parameters is used to carry out video capture, it is thus achieved that video data, it is many that described video data includes having frame number Frame data frame;
The multiframe Frame extracting designated frame sequence number is target data frame;
Described target data frame is used to generate the video that fixes.
Method the most according to claim 1, it is characterised in that described default acquisition parameters includes the frame of prefixed time interval Number.
Method the most according to claim 2, it is characterised in that the multiframe Frame of described extraction designated frame sequence number is target The step of Frame includes:
Judge that whether the frame number of described multiframe Frame is the integral multiple of the frame number of prefixed time interval respectively;
The multiframe Frame of the integral multiple the most then extracting the frame number that described frame number is prefixed time interval is target data Frame.
Method the most according to claim 2, it is characterised in that the multiframe Frame of described extraction designated frame sequence number is target The step of Frame includes:
When receiving user's clicking operation on the display screen of described mobile terminal, identify that the Frame of current preview is First frame data frame;
From the beginning of described first frame data frame, the multiframe Frame extracting designated frame sequence number is target data frame.
Method the most according to claim 4, it is characterised in that described from the beginning of described first frame data frame, extracts and specifies The step that multiframe Frame is target data frame of frame number includes:
From the beginning of described first frame data frame, judge whether the frame number of described multiframe Frame is prefixed time interval respectively The integral multiple of frame number;
The multiframe Frame of the integral multiple the most then extracting the frame number that described frame number is prefixed time interval is target data Frame.
6. according to the method described in claim 3 or 5, it is characterised in that be between Preset Time at the described frame number of described extraction Every frame number integral multiple the step that multiframe Frame is target data frame after, also include:
Described target data frame is stored the appointment position to mobile terminal.
Method the most according to claim 6, it is characterised in that described employing described target data frame generates the video that fixes Step includes:
Described target data frame is read from the appointment position of described mobile terminal;
According to the order of frame number, described target data frame is encoded, generate the video that fixes.
8. a mobile terminal, including:
Taking module, is used for using default acquisition parameters to carry out video capture, it is thus achieved that video data, and described video data includes tool There is the multiframe Frame of frame number;
Extraction module, is target data frame for extracting the multiframe Frame of the designated frame sequence number that described taking module obtains;
Generation module, generates, for the target data frame using described extraction module to extract, the video that fixes.
Mobile terminal the most according to claim 8, it is characterised in that described default acquisition parameters includes prefixed time interval Frame number.
Mobile terminal the most according to claim 9, it is characterised in that described extraction module includes:
First judges submodule, for judging that whether the frame number of described multiframe Frame is the frame number of prefixed time interval respectively Integral multiple;
First extracts submodule, is used at the frame number that frame number is prefixed time interval judging described multiframe Frame respectively During integral multiple, the multiframe Frame of the integral multiple extracting the frame number that described frame number is prefixed time interval is target data frame.
11. mobile terminals according to claim 9, it is characterised in that described extraction module includes:
Frame identification submodule, is used for when receiving user's clicking operation on the display screen of described mobile terminal, The Frame of identification current preview is the first frame data frame;
Second extracts submodule, and for from the beginning of the first frame data frame that described Frame identification submodule identifies, extraction refers to The multiframe Frame of framing sequence number is target data frame.
12. mobile terminals according to claim 11, it is characterised in that described second extracts submodule includes:
Second judging unit, for from the beginning of described first frame data frame, judges that the frame number of described multiframe Frame is respectively The integral multiple of the no frame number for prefixed time interval;
Second extraction unit, for the integral multiple at the frame number that frame number is prefixed time interval judging described multiframe Frame Time, the multiframe Frame of the integral multiple extracting the frame number that described frame number is prefixed time interval is target data frame.
13. according to the mobile terminal described in claim 10 or 12, it is characterised in that also include:
Sub module stored, for storing the appointment position to mobile terminal by described target data frame.
14. mobile terminals according to claim 16, it is characterised in that described generation module includes:
Reading submodule, for reading described target data frame from the appointment position of described mobile terminal;
Generating submodule, for the order according to frame number, the target data frame reading described reading submodule encodes, Generation fixes video.
CN201610514446.5A 2016-06-30 2016-06-30 The image pickup method of a kind of video that fixes and mobile terminal Pending CN106101597A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610514446.5A CN106101597A (en) 2016-06-30 2016-06-30 The image pickup method of a kind of video that fixes and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610514446.5A CN106101597A (en) 2016-06-30 2016-06-30 The image pickup method of a kind of video that fixes and mobile terminal

Publications (1)

Publication Number Publication Date
CN106101597A true CN106101597A (en) 2016-11-09

Family

ID=57212874

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610514446.5A Pending CN106101597A (en) 2016-06-30 2016-06-30 The image pickup method of a kind of video that fixes and mobile terminal

Country Status (1)

Country Link
CN (1) CN106101597A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776831A (en) * 2016-11-24 2017-05-31 维沃移动通信有限公司 A kind of edit methods and mobile terminal of Multimedia Combination data
CN110225241A (en) * 2019-04-29 2019-09-10 努比亚技术有限公司 A kind of video capture control method, terminal and computer readable storage medium
CN111614902A (en) * 2020-05-27 2020-09-01 努比亚技术有限公司 Video shooting method and device and computer readable storage medium
CN111726525A (en) * 2020-06-19 2020-09-29 维沃移动通信有限公司 Video recording method, device, electronic device and storage medium
CN113115110A (en) * 2021-05-20 2021-07-13 广州博冠信息科技有限公司 Video synthesis method and device, storage medium and electronic equipment
CN113542594A (en) * 2021-06-28 2021-10-22 惠州Tcl云创科技有限公司 Video-based high-quality image extraction and processing method, device, and mobile terminal
CN115100021A (en) * 2022-06-17 2022-09-23 展讯半导体(成都)有限公司 Image processing method and related device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104036536A (en) * 2013-03-07 2014-09-10 腾讯科技(深圳)有限公司 Generating method and apparatus of stop motion animation
US20160063750A1 (en) * 2014-09-03 2016-03-03 Adobe Systems Incorporated Stop-Motion Video Creation From Full-Motion Video

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104036536A (en) * 2013-03-07 2014-09-10 腾讯科技(深圳)有限公司 Generating method and apparatus of stop motion animation
US20160063750A1 (en) * 2014-09-03 2016-03-03 Adobe Systems Incorporated Stop-Motion Video Creation From Full-Motion Video

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776831A (en) * 2016-11-24 2017-05-31 维沃移动通信有限公司 A kind of edit methods and mobile terminal of Multimedia Combination data
CN110225241A (en) * 2019-04-29 2019-09-10 努比亚技术有限公司 A kind of video capture control method, terminal and computer readable storage medium
CN111614902A (en) * 2020-05-27 2020-09-01 努比亚技术有限公司 Video shooting method and device and computer readable storage medium
CN111726525A (en) * 2020-06-19 2020-09-29 维沃移动通信有限公司 Video recording method, device, electronic device and storage medium
CN113115110A (en) * 2021-05-20 2021-07-13 广州博冠信息科技有限公司 Video synthesis method and device, storage medium and electronic equipment
CN113542594A (en) * 2021-06-28 2021-10-22 惠州Tcl云创科技有限公司 Video-based high-quality image extraction and processing method, device, and mobile terminal
CN113542594B (en) * 2021-06-28 2023-11-17 惠州Tcl云创科技有限公司 High-quality image extraction processing method and device based on video and mobile terminal
CN115100021A (en) * 2022-06-17 2022-09-23 展讯半导体(成都)有限公司 Image processing method and related device

Similar Documents

Publication Publication Date Title
CN107396019A (en) A kind of slow motion video method for recording and mobile terminal
CN106101597A (en) The image pickup method of a kind of video that fixes and mobile terminal
CN106792272A (en) The generation method and mobile terminal of a kind of video thumbnails
CN106658141B (en) A video processing method and mobile terminal
CN106358069A (en) Video data processing method and mobile terminal
CN107257439A (en) A kind of image pickup method and mobile terminal
CN106791437B (en) Panoramic image shooting method and mobile terminal
CN105827946A (en) Panoramic image generating method, panoramic image playing method and mobile terminal
CN105933538A (en) Video finding method for mobile terminal and mobile terminal
CN106534685A (en) Panoramic image generation method and mobile terminal
CN107395997A (en) A kind of image pickup method and mobile terminal
CN106406710A (en) Screen recording method and mobile terminal
CN107277411B (en) Video recording method and mobile terminal
CN107678644A (en) A kind of image processing method and mobile terminal
CN106341608A (en) Emotion based shooting method and mobile terminal
CN107172346A (en) A kind of weakening method and mobile terminal
CN106713747A (en) Focusing method and mobile terminal
CN106713659B (en) A kind of panorama shooting method and mobile terminal
CN106454199A (en) Video communication method and mobile terminal
CN105979155A (en) Photographing method and mobile terminal
CN107105342A (en) A kind of video playing control 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
WO2024153191A1 (en) Video generation method and apparatus, electronic device, and medium
CN106973237A (en) A kind of image pickup method and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20161109

RJ01 Rejection of invention patent application after publication