[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN115604415A - Video frame rate adjusting method and device - Google Patents

Video frame rate adjusting method and device Download PDF

Info

Publication number
CN115604415A
CN115604415A CN202211234622.1A CN202211234622A CN115604415A CN 115604415 A CN115604415 A CN 115604415A CN 202211234622 A CN202211234622 A CN 202211234622A CN 115604415 A CN115604415 A CN 115604415A
Authority
CN
China
Prior art keywords
frame rate
video frame
target
speed
video
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
CN202211234622.1A
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 CN202211234622.1A priority Critical patent/CN115604415A/en
Publication of CN115604415A publication Critical patent/CN115604415A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses a video frame rate adjusting method and a video frame rate adjusting device, and belongs to the technical field of video shooting. The video frame rate adjusting method comprises the following steps: under the condition that a video is recorded through a target camera, acquiring a target parameter for adjusting the video frame rate of the target camera; wherein the target parameter comprises a first movement speed of the target camera; or the target parameter comprises a distance change state between the electronic equipment and the target camera, the target camera and the electronic equipment are separately arranged, and a communication connection is established between the target camera and the electronic equipment; and adjusting the video frame rate of the target camera according to the target parameter.

Description

录像帧率调整方法及其装置Video frame rate adjustment method and device

技术领域technical field

本申请属于视频拍摄技术领域,具体涉及一种录像帧率调整方法及其装置。The present application belongs to the technical field of video shooting, and in particular relates to a video frame rate adjustment method and a device thereof.

背景技术Background technique

在短视频迅速发展的今天,用户对视频录制的需求越来越大,而如何录制质量更高的视频,已成为用户更加迫切的需求。Today, with the rapid development of short videos, users have an increasing demand for video recording, and how to record videos with higher quality has become a more urgent demand for users.

现有技术中,当用户想获得一个不同片段具有不同录像帧率的高质量视频时,一般是先分别录制不同帧率的视频,然后再对这些不同帧率的视频进行后期拼接,从而得到所需的视频。但这种后期编辑的方式,比较考验用户的视频编辑能力,且操作繁琐。In the prior art, when a user wants to obtain a high-quality video with different video frame rates in different segments, generally the videos with different frame rates are recorded separately first, and then these videos with different frame rates are spliced in a later stage, so as to obtain the required video. However, this post-editing method tests the user's video editing ability, and the operation is cumbersome.

发明内容Contents of the invention

本申请实施例的目的是提供一种录像帧率调整方法及其装置,能够解决现有技术中用于获得具有不同录像帧率的视频的方式,存在操作繁琐的问题。The purpose of the embodiments of the present application is to provide a video frame rate adjustment method and device thereof, which can solve the problem of cumbersome operations in the prior art methods for obtaining videos with different video frame rates.

第一方面,本申请实施例提供了一种录像帧率调整方法,所述方法包括:In the first aspect, the embodiment of the present application provides a video frame rate adjustment method, the method comprising:

在通过目标摄像头录制视频的情况下,获取用于调整所述目标摄像头的录像帧率的目标参数;其中,所述目标参数包括所述目标摄像头的第一运动速度;或所述目标参数包括电子设备与所述目标摄像头之间的距离变化状态,所述目标摄像头与所述电子设备分离设置,且所述目标摄像头与所述电子设备之间建立有通信连接;In the case of recording video through the target camera, the target parameters used to adjust the video frame rate of the target camera are obtained; wherein the target parameters include the first moving speed of the target camera; or the target parameters include electronic The distance change state between the device and the target camera, the target camera is set separately from the electronic device, and a communication connection is established between the target camera and the electronic device;

根据所述目标参数,调整所述目标摄像头的录像帧率。According to the target parameters, the video frame rate of the target camera is adjusted.

第二方面,本申请实施例提供了一种录像帧率调整装置,所述装置包括:In the second aspect, the embodiment of the present application provides a video frame rate adjustment device, the device includes:

获取模块,用于在通过目标摄像头录制视频的情况下,获取用于调整所述目标摄像头的录像帧率的目标参数;其中,所述目标参数包括所述目标摄像头的第一运动速度;或所述目标参数包括电子设备与所述目标摄像头之间的距离变化状态,所述目标摄像头与所述电子设备分离设置,且所述目标摄像头与所述电子设备之间建立有通信连接;An acquisition module, configured to acquire target parameters for adjusting the video frame rate of the target camera in the case of recording video through the target camera; wherein the target parameters include the first moving speed of the target camera; or The target parameters include the distance change state between the electronic device and the target camera, the target camera is set separately from the electronic device, and a communication connection is established between the target camera and the electronic device;

调整模块,用于根据所述目标参数,调整所述目标摄像头的录像帧率。An adjustment module, configured to adjust the video frame rate of the target camera according to the target parameters.

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

第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的录像帧率调整方法中的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the video recording frame rate as described in the first aspect is realized Adjust the steps in the method.

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

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

在本申请实施例中,电子设备可以根据目标参数调整目标摄像头的录像帧率,如根据目标摄像头的运动速度,调整目标摄像头的录像帧率,或者根据电子设备与目标摄像头之间的距离变化状态,调整目标摄像头的录像帧率,这样可以实现视频录制过程录像帧率的动态调整,从而获得包括不同录像帧率的视频,相比于现有技术中的后期编辑方式,本申请实施例提供的方式更加简单、便捷。In this embodiment of the application, the electronic device can adjust the video frame rate of the target camera according to the target parameters, such as adjusting the video frame rate of the target camera according to the moving speed of the target camera, or changing the state according to the distance between the electronic device and the target camera , adjust the recording frame rate of the target camera, so that the dynamic adjustment of the recording frame rate during the video recording process can be realized, so as to obtain videos including different recording frame rates. Compared with the post-editing methods in the prior art, the embodiment of the present application provides The way is simpler and more convenient.

附图说明Description of drawings

图1是本申请实施例提供的录像帧率调整方法的流程示意图;FIG. 1 is a schematic flow chart of a video frame rate adjustment method provided in an embodiment of the present application;

图2是本申请实施例提供的调出悬浮控件和速度等级选项的示意图;Fig. 2 is a schematic diagram of calling out the suspension control and speed level options provided by the embodiment of the present application;

图3是本申请实施例提供的速度等级选项的选择和录像帧率选项的显示示意图之一;Fig. 3 is one of the display schematic diagrams of the selection of the speed grade option and the video frame rate option provided by the embodiment of the present application;

图4是本申请实施例提供的速度等级选项的选择和录像帧率选项的显示示意图之二;Fig. 4 is the second schematic diagram of the selection of the speed level option and the video frame rate option provided by the embodiment of the present application;

图5是本申请实施例提供的速度等级选项和录像帧率选项的选择示意图;Fig. 5 is a schematic diagram of the selection of the speed level option and the video frame rate option provided by the embodiment of the present application;

图6是本申请实施例提供的调出录像帧率调整控件的示意图;FIG. 6 is a schematic diagram of calling out a video frame rate adjustment control provided by an embodiment of the present application;

图7是本申请实施例提供的初始录像帧率的设置示意图;Fig. 7 is a schematic diagram of setting the initial video frame rate provided by the embodiment of the present application;

图8是本申请实施例提供的录像帧率调整装置的示意框图;FIG. 8 is a schematic block diagram of a video frame rate adjustment device provided by an embodiment of the present application;

图9是本申请实施例提供的电子设备的示意框图之一;FIG. 9 is one of the schematic block diagrams of the electronic device provided by the embodiment of the present application;

图10是本申请实施例提供的电子设备的示意框图之二。FIG. 10 is a second schematic block diagram of an electronic device provided by an embodiment of the present application.

具体实施方式detailed description

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

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

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

图1是本申请实施例提供的一种录像帧率调整方法的流程示意图,该录像帧率调整方法应用于电子设备,即该录像帧率调整方法中的步骤由该电子设备执行。FIG. 1 is a schematic flowchart of a video frame rate adjustment method provided by an embodiment of the present application. The video frame rate adjustment method is applied to an electronic device, that is, the steps in the video frame rate adjustment method are executed by the electronic device.

其中,该录像帧率调整方法可以包括:Wherein, the video frame rate adjustment method may include:

步骤101:在通过目标摄像头录制视频的情况下,获取用于调整目标摄像头的录像帧率(即录制帧率)的目标参数。Step 101: In the case of recording video through a target camera, obtain target parameters for adjusting the video frame rate (ie, the recording frame rate) of the target camera.

本申请实施例中,目标参数可以包括:目标摄像头的第一运动速度,或电子设备与目标摄像头之间的距离变化状态。其中,这里所述的距离变化状态可以包括:距离变小和距离变大。In the embodiment of the present application, the target parameters may include: a first moving speed of the target camera, or a change state of a distance between the electronic device and the target camera. Wherein, the distance change state mentioned here may include: the distance becomes smaller and the distance becomes larger.

在目标参数包括目标摄像头的第一运动速度的情况下,目标摄像头与电子设备之间可以是分离设置,也可以是目标摄像头设置于电子设备上。在目标摄像头与电子设备之间是分离设置的情况下,目标摄像头可以是电子设备上可拆卸的摄像头,即分离式摄像头,也可以是电子设备外接的摄像头,这种情况下,目标摄像头的第一运动速度可以是相对于地面的运动速度,也可以是相对于该电子设备的运动速度。在目标摄像头设置于电子设备上的情况下,目标摄像头可以是电子设备上可拆卸的摄像头,也可以是电子设备外接的摄像头,还可以是电子设备上不可拆卸的摄像头,这种情况下,目标摄像头的第一运动速度为相对于地面的运动速度,也就是电子设备相对于地面的运动速度。In the case where the target parameter includes the first moving speed of the target camera, the target camera and the electronic device may be set separately, or the target camera may be set on the electronic device. In the case that the target camera is separated from the electronic device, the target camera can be a detachable camera on the electronic device, that is, a separate camera, or an external camera connected to the electronic device. In this case, the first A moving speed may be relative to the ground or relative to the electronic device. In the case where the target camera is set on the electronic device, the target camera can be a detachable camera on the electronic device, or an external camera on the electronic device, or a non-detachable camera on the electronic device. In this case, the target The first moving speed of the camera is the moving speed relative to the ground, that is, the moving speed of the electronic device relative to the ground.

在目标参数包括电子设备与目标摄像头之间的距离变化状态的情况下,电子设备与目标摄像头分离设置,但电子设备与目标摄像头之间建立有通信连接。此时,目标摄像头可以是电子设备上可拆卸的摄像头,也可以是电子设备外接的摄像头,从而实现目标摄像头与电子设备的分离设置。In the case where the target parameter includes the distance change state between the electronic device and the target camera, the electronic device and the target camera are set separately, but a communication connection is established between the electronic device and the target camera. In this case, the target camera may be a detachable camera on the electronic device, or may be an external camera connected to the electronic device, so that the target camera and the electronic device may be separately set.

步骤102:根据目标参数,调整目标摄像头的录像帧率。Step 102: Adjust the recording frame rate of the target camera according to the target parameters.

本申请实施例中,电子设备可以根据目标参数调整目标摄像头的录像帧率,如根据目标摄像头的运动速度(即第一运动速度),调整目标摄像头的录像帧率,或者根据目标摄像头与电子设备之间的距离变化状态,调整目标摄像头的录像帧率,这样在视频录制过程中,则可以进行录像帧率的动态调整,从而获得具有不同录像帧率的视频,相比于现有技术中的后期编辑方式,本申请实施例提供的方式更加简单、便捷。In the embodiment of the present application, the electronic device can adjust the video frame rate of the target camera according to the target parameters, such as adjusting the video frame rate of the target camera according to the moving speed of the target camera (that is, the first moving speed), or according to the target camera and the electronic device. The distance change state between them adjusts the recording frame rate of the target camera, so that during the video recording process, the dynamic adjustment of the recording frame rate can be performed, thereby obtaining videos with different recording frame rates, compared to the prior art The post-editing method, the method provided by the embodiment of this application is simpler and more convenient.

为了更好地了解本申请实施例如何根据目标参数调整目标摄像头的录像帧率,下面对此进行进一步的解释说明。In order to better understand how the embodiment of the present application adjusts the video frame rate of the target camera according to the target parameters, a further explanation will be given below.

作为一种可选实施例,在目标参数包括目标摄像头的第一运动速度的情况下,步骤102:根据目标参数,调整录像帧率,可以包括:As an optional embodiment, when the target parameter includes the first moving speed of the target camera, step 102: adjusting the video frame rate according to the target parameter may include:

步骤A1:确定与第一运动速度对应的第一录像帧率。Step A1: Determine the first video frame rate corresponding to the first motion speed.

步骤A2:在当前录像帧率不是第一录像帧率的情况下,将录像帧率调整为第一录像帧率。Step A2: If the current recording frame rate is not the first recording frame rate, adjust the recording frame rate to the first recording frame rate.

其中,目标摄像头的运动速度与对应的录像帧率之间呈正相关关系,即:目标摄像头的运动速度越高,对应的录像帧率越大;反之,目标摄像头的运动速度越低,则对应的录像帧率越小。Among them, there is a positive correlation between the moving speed of the target camera and the corresponding video frame rate, that is, the higher the moving speed of the target camera, the larger the corresponding video frame rate; conversely, the lower the moving speed of the target camera, the corresponding The video frame rate is lower.

当摄像头与被拍摄景物之间发生相对运动时,可能会产生运动模糊的问题,例如,当通过手机上的摄像头拍摄视频时,若手机快速移动,则摄像头与被拍摄景物之间的相对运动速度可能变大,从而出现运动模糊,且相对运动速度越大,运动模糊问题可能越严重,而录像帧率的提高,可以在一定程度上改善运动模糊问题,又加上运动拍摄时,摄像头与被拍摄景物之间的相对运动速度一般不是固定不变的,因此在运动拍摄场景下,现有技术中一般是先拍摄多段不同录像帧率的视频,然后再通过后期视频剪辑的方式,将没有运动模糊问题或运动模糊问题较轻的视频片段拼接在一起,从而得到图像质量更高的视频,这种方式操作比较繁琐。即使目前部分运动相机等特殊拍摄设备,支持视频拍摄过程中调整录像帧率的功能,但也需要通过设备上的控制按钮手动切换录像帧率,对调整时机的操作准确度要求较高,但在高速运动中拍摄时,很难抓到最需要切换帧率的点来执行拍摄帧率的切换操作。When there is relative motion between the camera and the scene being shot, motion blur may occur. For example, when shooting a video through the camera on a mobile phone, if the phone moves fast, the relative motion speed between the camera and the scene being shot It may become larger, resulting in motion blur, and the greater the relative motion speed, the more serious the motion blur problem may be, and the increase of the video frame rate can improve the motion blur problem to a certain extent, and when shooting motion, the camera and the subject The relative motion speed between the shooting scenes is generally not fixed, so in the motion shooting scene, in the prior art, it is generally first to shoot multiple videos with different frame rates, and then through post-production video editing, there will be no motion Stitching video clips with less blur issues or motion blur issues together to get a video with higher image quality can be cumbersome. Even though some special shooting equipment such as sports cameras support the function of adjusting the video frame rate during video shooting, it is still necessary to manually switch the video frame rate through the control button on the device, which requires high accuracy in the operation of the adjustment timing, but in When shooting in high-speed motion, it is difficult to capture the point where the frame rate is most needed to switch to perform the switching operation of the shooting frame rate.

本申请实施例提供了一种可以根据用于录制视频的目标摄像头的运动速度来调整录像帧率,从而得到图像质量更高的录制视频的实现方式。这种实现方式,可以在运动拍摄时,根据摄像头的运动速度,动态调整录像帧率,摄像头的运动速度越高,则录像帧率越大,从而在一定程度上克服运动模糊的问题,此外,这种实现方式能够根据摄像头运动速度的变化,自动确定录像帧率的调整时机,相比于手动调整方式,调整时机准确性更高,且使得调整方式更加简单、便捷。进一步地,该实现方式还可以省去需要拍不同录像帧率录像的用户后期剪辑拼接视频的工作,使得视频创作更加便利,提升了用户体验。The embodiment of the present application provides an implementation manner in which a recording frame rate can be adjusted according to a moving speed of a target camera used to record a video, so as to obtain a recorded video with higher image quality. This implementation method can dynamically adjust the video frame rate according to the camera’s motion speed during motion shooting. The higher the camera’s motion speed, the higher the video frame rate, thereby overcoming the problem of motion blur to a certain extent. In addition, This implementation method can automatically determine the adjustment timing of the video frame rate according to the change of the camera movement speed. Compared with the manual adjustment method, the adjustment timing is more accurate, and the adjustment method is simpler and more convenient. Furthermore, this implementation method can also save users who need to shoot videos with different frame rates to edit and stitch videos later, making video creation more convenient and improving user experience.

其中,在确定与第一运动速度对应的第一录像帧率之后,电子设备可以判断当前录像帧率是否为第一录像帧率。若当前录像帧率是第一录像帧率,则不必进行录像帧率的调整;若当前录像帧率不是第一录像帧率,则可以进行录像帧率的调整,将录像帧率调整为第一录像帧率,以通过更合适的录像帧率进行视频录制。Wherein, after determining the first video frame rate corresponding to the first motion speed, the electronic device may determine whether the current video frame rate is the first video frame rate. If the current video frame rate is the first video frame rate, it is not necessary to adjust the video frame rate; if the current video frame rate is not the first video frame rate, you can adjust the video frame rate to the first video frame rate Video frame rate to record video with a more appropriate video frame rate.

为了更好地理解上述实施例,下面以一示例加以说明。In order to better understand the foregoing embodiments, an example is used below to illustrate.

例如,目标摄像头与电子设备分离设置,目标摄像头固定于宠物身上,以宠物的运动视角拍摄视频。假设,开始录制时,宠物以较低速度A匀速前进,目标摄像头与被拍摄景物之间的相对运动速度较小,而与速度A对应的录像帧率为24fps,则将录像帧率调整为24fps,进行视频录制。此时可以拍摄出更有电影感和速度感的低帧率片段。当宠物以较高速度B奔跑时,目标摄像头与被拍摄景物之间的相对速度变大,而与速度B对应的录像帧率为60fps,则将录像帧率切换为60fps,进行视频录制。此时高帧率录制可以缓解高速运动中的运动抖动和运动模糊问题。当宠物以更高速度C全速奔跑时,目标摄像头与被拍摄景物之间的相对速度更大,而与速度C对应的录像帧率为240fps,则将录像帧率切换为240fps进行视频录制,此时在缓解高速运动中的运动抖动和运动模糊问题的同时,还可以实现慢镜头播放效果,即虽然录像帧率为240fps,但由于播放帧率为30fps,因此录制1秒的视频需要播放8秒,从而实现慢镜头播放。进一步地,更高速运动时采用高速慢镜头录制,还可以记录下更多的细节。For example, the target camera is set separately from the electronic device, the target camera is fixed on the pet, and the video is taken from the perspective of the pet's movement. Assume that when the recording starts, the pet moves forward at a lower speed A at a constant speed, the relative movement speed between the target camera and the scene to be photographed is small, and the video frame rate corresponding to speed A is 24fps, then adjust the video frame rate to 24fps to record video. This allows for a more cinematic and speedy low frame rate clip. When the pet runs at a higher speed B, the relative speed between the target camera and the scene to be photographed becomes larger, and the video frame rate corresponding to the speed B is 60fps, then the video frame rate is switched to 60fps for video recording. At this time, high frame rate recording can alleviate the problem of motion jitter and motion blur in high-speed motion. When the pet runs at full speed at a higher speed C, the relative speed between the target camera and the scene to be photographed is greater, and the video frame rate corresponding to the speed C is 240fps, then the video frame rate is switched to 240fps for video recording. While alleviating the motion jitter and motion blur problems in high-speed motion, it can also achieve slow-motion playback effect, that is, although the video frame rate is 240fps, because the playback frame rate is 30fps, it takes 8 seconds to record a 1-second video , so as to achieve slow motion playback. Furthermore, high-speed slow-motion recording is used for higher-speed motion, and more details can be recorded.

本申请实施例中,可以预先设置目标摄像头的不同运动速度对应的录像帧率,这样,在视频录制过程中,则可以根据预设信息,确定与目标摄像头的当前运动速度对应的录像帧率,从而将目标摄像头的录像帧率调整为与目标摄像头的当前运动速度相匹配的录像帧率。In the embodiment of the present application, the video frame rate corresponding to different motion speeds of the target camera can be preset, so that during the video recording process, the video frame rate corresponding to the current motion speed of the target camera can be determined according to the preset information, Thus, the video frame rate of the target camera is adjusted to the video frame rate matching the current motion speed of the target camera.

可选地,可以预先设置多个速度等级,然后设置不同速度等级对应的录像帧率。其中,每个速度等级可以对应一个速度范围,且不同速度等级对应的速度范围之间无重叠;可以理解的是,每个速度等级也可以对应一个具体速度值,且不同速度等级对应的具体速度值不同。在目标摄像头的运动速度为相对于电子设备的运动速度的情况下,该速度等级也可以称为相对速度等级(Relative Velocity Level,RVL)。Optionally, multiple speed levels can be preset, and then the video frame rates corresponding to different speed levels can be set. Among them, each speed grade can correspond to a speed range, and there is no overlap between the speed ranges corresponding to different speed grades; it can be understood that each speed grade can also correspond to a specific speed value, and the specific speed corresponding to different speed grades The values are different. In the case that the moving speed of the target camera is relative to the moving speed of the electronic device, the speed level may also be called a relative speed level (Relative Velocity Level, RVL).

可选地,步骤A1:确定与第一运动速度对应的第一录像帧率,可以包括:Optionally, step A1: determining the first video frame rate corresponding to the first motion speed may include:

步骤A11:在多个预设速度等级中,确定第一运动速度所属的第一速度等级。Step A11: among the plurality of preset speed levels, determine the first speed level to which the first movement speed belongs.

在每个速度等级对应一个速度范围的情况下,具体可以根据每一速度等级对应的速度范围,确定第一运动速度所属的速度等级,即:将第一运动速度与每个预设速度等级对应的速度范围进行对比,确定第一运动速度所属的运动速度范围,然后将第一运动速度所属的速度范围对应的速度等级,确定为第一运动速度所属的速度等级(即第一速度等级)。In the case that each speed level corresponds to a speed range, specifically, the speed level to which the first movement speed belongs can be determined according to the speed range corresponding to each speed level, that is, the first movement speed corresponds to each preset speed level Compare the speed ranges to determine the speed range to which the first motion speed belongs, and then determine the speed class corresponding to the speed range to which the first motion speed belongs as the speed class to which the first motion speed belongs (ie, the first speed class).

在每个速度等级对应一个具体速度值的情况下,具体可以根据每一速度等级对应的具体速度值,确定第一运动速度所属的速度等级,即:将第一运动速度与每个预设速度等级对应的具体速度值进行对比,当第一运动速度与某个速度等级对应的具体速度值之间的差值在预设范围内的情况下,则将该速度等级确定为第一运动速度所属的速度等级(即第一速度等级)。In the case that each speed level corresponds to a specific speed value, specifically, the speed level to which the first movement speed belongs can be determined according to the specific speed value corresponding to each speed level, that is, the first movement speed and each preset speed The specific speed value corresponding to the level is compared. When the difference between the first movement speed and the specific speed value corresponding to a certain speed level is within the preset range, the speed level is determined as the first movement speed. The speed grade (that is, the first speed grade).

步骤A12:根据不同预设速度等级与不同录像帧率之间的预设对应关系,确定与第一速度等级对应的录像帧率。Step A12: Determine the video frame rate corresponding to the first speed level according to the preset corresponding relationship between different preset speed levels and different video frame rates.

步骤A13:将与第一速度等级对应的录像帧率确定为第一录像帧率。Step A13: Determine the video frame rate corresponding to the first speed level as the first video frame rate.

本申请实施例中,预先设置了不同速度等级与不同录像帧率之间的对应关系,因此,在确定第一运动速度所属的第一速度等级之后,可以根据速度等级与录像帧率之间的预设对应关系,确定与第一速度等级对应的录像帧率,而与第一速度等级对应的录像帧率,则为与第一运动速度对应的录像帧率(第一录像帧率)。In the embodiment of the present application, the corresponding relationship between different speed levels and different video frame rates is preset. Therefore, after determining the first speed level to which the first motion speed belongs, it can be based on the relationship between the speed level and the video frame rate. The preset corresponding relationship determines the video frame rate corresponding to the first speed level, and the video frame rate corresponding to the first speed level is the video frame rate corresponding to the first motion speed (first video frame rate).

下面继续对如何建立不同预设速度等级与不同录像帧率之间的预设对应关系,进行进一步地描述。The following continues to further describe how to establish the preset corresponding relationship between different preset speed levels and different video frame rates.

可选地,在步骤A12:根据不同预设速度等级与不同录像帧率之间的预设对应关系,确定与第一速度等级对应的录像帧率之前,该录像帧率调整方法还可以包括:Optionally, before step A12: determining the video frame rate corresponding to the first speed level according to the preset correspondence between different preset speed levels and different video frame rates, the video frame rate adjustment method may further include:

步骤B1:在接收到第一输入的情况下,响应于第一输入,显示多个速度等级选项。Step B1: In case a first input is received, displaying a plurality of speed level options in response to the first input.

这里所述的第一输入用于显示多个速度等级选项,该第一输入可以包括但不限于以下至少一项:触控操作、语音操作和隔空手势操作等。The first input described here is used to display multiple speed level options, and the first input may include but not limited to at least one of the following: touch operation, voice operation, air gesture operation, and the like.

一种可选实施例中,步骤B1可以包括:在接收到对录像预览界面的第一输入的情况下,响应于第一输入,显示悬浮控件以及多个速度等级选项。In an optional embodiment, step B1 may include: in a case of receiving a first input to the video preview interface, displaying a floating control and a plurality of speed level options in response to the first input.

下面以图2为例,对该可选实施例进行举例说明。The optional embodiment is illustrated below by taking FIG. 2 as an example.

如图2中的左图所示,用户可以在录像预览界面200中,通过双指下滑的方式(即第一输入),呼出一悬浮球控件201,并且围绕悬浮球控件201的周围显示有5个速度等级选项,即VL1、VL2、VL3、VL4和VL5,如图2中的右图所示。As shown in the left figure in FIG. 2 , the user can call out a floating ball control 201 in the video preview interface 200 by sliding down with two fingers (that is, the first input), and 5 buttons are displayed around the floating ball control 201. There are three speed grade options, namely VL1, VL2, VL3, VL4, and VL5, as shown in the right diagram in Figure 2.

步骤B2:在接收到第二输入的情况下,响应于第二输入,确定第二输入选择的第一速度等级选项对应的第一速度等级,以及显示多个录像帧率选项。Step B2: When the second input is received, in response to the second input, determine the first speed level corresponding to the first speed level option selected by the second input, and display multiple video frame rate options.

这里所述的第二输入用于在多个速度等级选项中选择速度等级,以及在选择速度等级后,显示多个录像帧率选项。该第二输入可以包括但不限于以下至少一项:触控操作、语音操作和隔空手势操作等。The second input described here is used to select a speed grade among multiple speed grade options, and display multiple video frame rate options after the speed grade is selected. The second input may include, but is not limited to, at least one of the following: touch operation, voice operation, air gesture operation, and the like.

其中,第一速度等级选项为多个速度等级选项中的其中一个。Wherein, the first speed grade option is one of multiple speed grade options.

对于步骤B1中所述的一种可选实施例,相应的,步骤B2可以包括:在接收到对悬浮控件的第一移动操作的情况下,响应于第一移动操作,在悬浮控件的移动过程中,确定悬浮控件停留时长大于或等于第一预设时长位置处的第一速度等级选项对应的第一速度等级,以及显示多个录像帧率选项。For an optional embodiment described in step B1, correspondingly, step B2 may include: in the case of receiving the first moving operation on the floating control, in response to the first moving operation, during the moving process of the floating control , determine the first speed level corresponding to the first speed level option at the position where the floating control stays longer than or equal to the first preset duration, and display multiple video frame rate options.

其中,多个录像帧率选项围绕在第一速度等级选项周围。Wherein, multiple video frame rate options surround the first speed level option.

本申请实施例中,该悬浮控件可以进行位置移动,通过该悬浮控件可以进行速度等级的选择,而将速度等级选项显示在悬浮控件的周围,可以便于将悬浮控件移动至任一速度等级选项,方便用户操作。In the embodiment of the present application, the floating control can move the position, and the speed level can be selected through the floating control, and the speed level options are displayed around the floating control, which can facilitate the moving of the floating control to any speed level option, User-friendly operation.

下面以图3为例,对该可选实施例进行举例说明。The optional embodiment is illustrated below by taking FIG. 3 as an example.

如图3中的左图所示,用户可以拖动在悬浮球控件201向自己想要选择的速度等级VL2选项(即顺时针方向上VL1的下一个速度等级选项)处移动,当悬浮球控件201移动至速度等级VL2的设置区(即速度等级VL2选项所在位置处)并稍作停留后,则电子设备确定用户选择的速度等级为VL2,然后在速度等级VL2选项的周围显示多个录像帧率选项,即24fps、30fps、60fps、120fps和240fps,如图3中的右图所示。可以理解的是,多个录像帧率选项也可以围绕多个速度等级选项设置,如图4所示。As shown in the left figure in Figure 3, the user can drag the floating ball control 201 to move to the speed level VL2 option (that is, the next speed level option of VL1 in the clockwise direction) that he wants to choose. 201 After moving to the setting area of speed level VL2 (that is, where the speed level VL2 option is located) and staying for a while, the electronic device determines that the speed level selected by the user is VL2, and then displays multiple video frames around the speed level VL2 option Rate options, namely 24fps, 30fps, 60fps, 120fps and 240fps, as shown in the right diagram in Figure 3. It can be understood that multiple video frame rate options can also be set around multiple speed level options, as shown in FIG. 4 .

步骤B3:在接收到第三输入的情况下,响应于第三输入,将第三输入选择的第一录像帧率选项对应的第一录像帧率,与第一速度等级之间建立对应关系。Step B3: When the third input is received, in response to the third input, establish a corresponding relationship between the first video frame rate corresponding to the first video frame rate option selected by the third input and the first speed level.

其中,第一录像帧率选项为多个录像帧率选项中的其中一个。Wherein, the first video frame rate option is one of multiple video frame rate options.

这里所述的第三输入用于在多个录像帧率选项中选择所需的录像帧率(即第一录像帧率),以及在选择所需录像帧率后,建立选择的录像帧率与步骤B2选择的第一速度等级之间的对应关系。该第三输入可以包括但不限于以下至少一项:触控操作、语音操作和隔空手势操作等。The third input described here is used to select the desired video frame rate (i.e. the first video frame rate) in a plurality of video frame rate options, and after selecting the required video frame rate, establish the selected video frame rate and Correspondence between the first speed grades selected in step B2. The third input may include, but is not limited to, at least one of the following: touch operation, voice operation, air gesture operation, and the like.

对于步骤B1和步骤B2中所述的一种可选实施例,相应的,步骤B3可以包括:在接收到对悬浮控件的第二移动操作的情况下,响应于第二移动操作,在悬浮控件的移动过程中,将悬浮控件停留时长超过第二预设时长位置处的第一录像帧率选项对应的第一录像帧率,与第一速度等级之间建立对应关系。For an optional embodiment described in step B1 and step B2, correspondingly, step B3 may include: in the case of receiving the second movement operation on the floating control, responding to the second movement operation, During the moving process, establish a corresponding relationship between the first video frame rate corresponding to the first video frame rate option at the position where the hovering control stays longer than the second preset time length, and the first speed level.

本申请实施例中,该悬浮控件除了可以进行速度等级的选择,还可以进行录像帧率的选择,即通过一个控件可以完成多项处理操作,利用率高。此外,录像帧率选项显示在悬浮控件的周围,这样可以便于将悬浮控件移动至任一录像帧率选项处,方便用户操作。In the embodiment of the present application, in addition to selecting the speed level, the floating control can also select the video frame rate, that is, multiple processing operations can be completed through one control, and the utilization rate is high. In addition, the recording frame rate options are displayed around the floating control, which makes it easy to move the floating control to any recording frame rate option, which is convenient for users to operate.

下面以图5为例,对该可选实施例进行举例说明。The optional embodiment is illustrated below by taking FIG. 5 as an example.

如图5所示,用户可以拖动在悬浮球控件201向自己想要选择的30fps录像帧率选项(即顺时针方向上24fps的下一个录像帧率选项)处移动,当悬浮球控件201移动至录像帧率30fps的设置区(即30fps录像帧率选项所在位置处)并稍作停留后,则电子设备确定用户选择的录像帧率为30fps,然后建立录像帧率30fps与速度等级VL2之间的对应关系。As shown in Figure 5, the user can drag the floating ball control 201 to move to the 30fps video frame rate option (that is, the next video frame rate option of 24fps in the clockwise direction) that he wants to select, when the floating ball control 201 moves Go to the setting area with a recording frame rate of 30fps (that is, where the 30fps recording frame rate option is located) and stop for a while, then the electronic device determines that the recording frame rate selected by the user is 30fps, and then establishes a value between the recording frame rate of 30fps and the speed level VL2. corresponding relationship.

通过重复执行上述步骤B1至步骤B3,则可以建立不同预设速度等级与不同录像帧率之间的预设对应关系。By repeatedly executing the above steps B1 to B3, the preset corresponding relationship between different preset speed levels and different video frame rates can be established.

需要说明的是,不同预设速度等级与不同录像帧率之间的预设对应关系,除了可以由用户手动设置外,也可以是系统默认设置的。It should be noted that, besides being manually set by the user, the preset corresponding relationship between different preset speed levels and different video frame rates may also be set by default by the system.

作为一种可选实施例,在目标参数包括电子设备与目标摄像头之间的距离变化状态的情况下,在步骤102:根据目标参数,调整录像帧率之前,该录像帧率调整方法还可以包括:As an optional embodiment, when the target parameter includes the distance change state between the electronic device and the target camera, before step 102: adjusting the video frame rate according to the target parameter, the video frame rate adjustment method may also include :

在接收到第四输入的情况下,响应于第四输入,显示录像帧率调整控件。In case the fourth input is received, in response to the fourth input, a video frame rate adjustment control is displayed.

其中,这里所述的第四输入用于显示录像帧率调整控件,该第四输入可以包括但不限于以下至少一项:触控操作、语音操作和隔空手势操作等。Wherein, the fourth input described here is used to display the video frame rate adjustment control, and the fourth input may include but not limited to at least one of the following: touch operation, voice operation, and air gesture operation.

其中,该录像帧率调整控件可以包括:一个指示标识和多个用于表示不同录像帧率的帧率标识,多个帧率标识按照表示的录像帧率由小到大的顺序排列,每个帧率标识上标注有表示的录像帧率。Wherein, the video frame rate adjustment control may include: an indicator mark and a plurality of frame rate marks for representing different video frame rates, and the multiple frame rate marks are arranged in ascending order according to the represented video frame rates, each The frame rate marked on the frame rate mark indicates the video frame rate.

可选地,指示标识具体可以是一个指针,帧率标识具体可以是一个图形。Optionally, the indicator may specifically be a pointer, and the frame rate indicator may specifically be a graphic.

如图6中的左图所示,用户可以在录像预览界面200中通过双指下滑的方式呼出录像帧率调整控件202。如图6中的右图所示,该录像帧率调整控件202可以包括:一个指针2021(对应指针标识)和一个半圆环图形,该半圆环图形包括5个扇形图形2022(对应帧率标识),每个扇形图形2022表示一个录像帧率,5个扇形图形按照表示的录像帧率由小到大的顺时针顺序排列。指针2021指向哪个扇形图形2022,则基于指针2021指向的扇形图形2022对应的录像帧率进行录像。As shown in the left figure of FIG. 6 , the user can call out the video frame rate adjustment control 202 by sliding two fingers on the video preview interface 200 . As shown in the right figure in Fig. 6, the video frame rate adjustment control 202 may include: a pointer 2021 (corresponding to the pointer mark) and a semi-circular figure, and the semi-circular figure includes 5 fan-shaped figures 2022 (corresponding to the frame rate mark), each fan-shaped figure 2022 represents a recording frame rate, and the five fan-shaped figures are arranged in clockwise order from small to large according to the indicated recording frame rate. Which fan-shaped graphic 2022 the pointer 2021 points to, the recording is performed based on the recording frame rate corresponding to the fan-shaped graphic 2022 pointed to by the pointer 2021 .

可选地,可以在视频录制开始前进行录像帧率调整控件的显示,也可以在视频录制开始后进行录像帧率调整控件的显示。Optionally, the video frame rate adjustment control may be displayed before the video recording starts, or the video frame rate adjustment control may be displayed after the video recording starts.

可选地,在显示录像帧率调整控件之后,该录像帧率调整方法还可以包括:Optionally, after displaying the video frame rate adjustment control, the video frame rate adjustment method may further include:

接收对指示标识的第五输入;响应于第五输入,将指示标识重新指向的帧率标识对应的录像帧率,设置为初始录像帧率。Receive a fifth input to the indicator; in response to the fifth input, set the video frame rate corresponding to the frame rate indicator to which the indicator is redirected as the initial video frame rate.

其中,这里所述的第五输入用于设置初始录像帧率,该第五输入可以是移动触控操作等。指示标识重新指向的帧率标识是通过第五输入调整得到的。Wherein, the fifth input described here is used to set the initial video frame rate, and the fifth input may be a mobile touch operation or the like. The frame rate indicator to which the indicator indicator is redirected is adjusted through the fifth input.

在显示该录像帧率调整控件202之后,用户可以手动设置初始录像帧率,例如,如图7所示,通过手指移动指针2021,使其活动端顺时针或逆时针旋转,来选择初始录像帧率。在手指的控制下,将指针2021的活动端指向30fps录像帧率选项时,则将初始录像帧率设置为30fps。可以理解的是,初始录像帧率也可以是系统默认设置的,如默认设置为最小录像帧率。After displaying the video frame rate adjustment control 202, the user can manually set the initial video frame rate. For example, as shown in FIG. Rate. Under the control of the finger, when the active end of the pointer 2021 points to the 30fps video frame rate option, the initial video frame rate is set to 30fps. It can be understood that the initial recording frame rate may also be set by default in the system, for example, the default setting is the minimum recording frame rate.

在完成初始录像帧率设置后,首次基于电子设备与目标摄像头之间的距离变化状态进行录像帧率时,是在该初始录像帧率的基础上进行调整。After completing the setting of the initial video frame rate, when the video frame rate is performed for the first time based on the change state of the distance between the electronic device and the target camera, it is adjusted on the basis of the initial video frame rate.

可选地,步骤102:根据目标参数,调整录像帧率,可以包括:Optionally, step 102: adjusting the video frame rate according to the target parameters may include:

根据电子设备与目标摄像头之间的距离变化状态,控制指示标识向录像帧率减小的方向移动至目标帧率标识处或控制指示标识向录像帧率增大的方向移动至目标帧率标识处,并以目标帧率标识对应的录像帧率进行视频录制。According to the change state of the distance between the electronic device and the target camera, the control indicator moves to the target frame rate indicator in the direction of decreasing video frame rate or the control indicator moves to the target frame rate indicator in the direction of increasing video frame rate , and use the target frame rate to identify the corresponding video frame rate for video recording.

其中,在电子设备与目标摄像头之间的距离变小的情况下,可以控制指示标识向录像帧率减小的方向移动至目标帧率标识处;在电子设备与目标摄像头之间的距离变大的情况下,可以控制指示标识向录像帧率增大的方向移动至目标帧率标识处。Wherein, when the distance between the electronic device and the target camera becomes smaller, the indicator can be controlled to move to the target frame rate mark in the direction where the video frame rate decreases; the distance between the electronic device and the target camera becomes larger In the case of , you can control the indicator to move to the target frame rate indicator in the direction of increasing the video frame rate.

或,在电子设备与目标摄像头之间的距离变小的情况下,可以控制指示标识向录像帧率增大的方向移动至目标帧率标识处;在电子设备与目标摄像头之间的距离变大的情况下,可以控制指示标识向录像帧率减小的方向移动至目标录像帧率对应的帧率标识处。Or, when the distance between the electronic device and the target camera becomes smaller, the indicator can be controlled to move to the target frame rate mark in the direction of increasing the video frame rate; the distance between the electronic device and the target camera becomes larger In the case of , the indicator can be controlled to move to the frame rate indicator corresponding to the target video frame rate in the direction of decreasing the video frame rate.

其中,目标帧率标识为所述多个用于表示不同录像帧率的帧率标识中的其中一个。Wherein, the target frame rate identifier is one of the plurality of frame rate identifiers used to represent different recording frame rates.

本申请实施例中,录像帧率还可以根据电子设备与目标摄像头之间的距离变化状态进行调整,例如,当拍摄者想调小录像帧率时,可以控制电子设备向靠近目标摄像头的方向移动,电子设备在检测到与目标摄像头之间的距离变小的情况下,可以控制指示标识向录像帧率减小的方向移动至目标帧率标识处。再例如,当拍摄者想调大录像帧率时,可以控制电子设备向远离目标摄像头的方向移动,电子设备在检测到与目标摄像头之间的距离变大的情况下,可以控制指示标识向录像帧率增大的方向移动至目标帧率标识处。这样在视频录制过程中,则可以进行录像帧率的动态调整,从而获得具有不同录像帧率的视频,相比于现有技术中的后期视频编辑的方式,本申请实施例提供的方式更加简单、便捷。此外,这种录像帧率的调节方式,还有利于解决视频录制过程中,用户不便手动触发虚拟按键和/或实体按键来调整录像帧率的问题。In the embodiment of this application, the video frame rate can also be adjusted according to the distance between the electronic device and the target camera. For example, when the photographer wants to reduce the video frame rate, he can control the electronic device to move closer to the target camera. When the electronic device detects that the distance between the target camera and the target camera becomes smaller, it can control the indicator to move to the target frame rate indicator in the direction of decreasing the video frame rate. For another example, when the photographer wants to increase the video frame rate, he can control the electronic device to move away from the target camera. When the electronic device detects that the distance between the target camera and the target camera becomes larger, it can control the indicator to move towards the video recorder. The direction of frame rate increase moves to the target frame rate mark. In this way, during the video recording process, the video frame rate can be dynamically adjusted to obtain videos with different video frame rates. Compared with the post-video editing method in the prior art, the method provided by the embodiment of the present application is simpler , convenient. In addition, this method of adjusting the video frame rate is also beneficial to solve the problem that it is inconvenient for users to manually trigger virtual buttons and/or physical buttons to adjust the video frame rate during the video recording process.

其中,本申请实施例中,可以是距离状态每变化一次,则指示标识移动一次,并指向当前帧率标识的相邻帧率标识,如当前帧率标识的前一帧率标识或后一帧率标识。当用户需要将录像帧率调整至与当前帧率标识间隔一个帧率标识的目标帧率标识对应的录像帧率的情况下,则使距离变化状态变化两次,如发生两次距离变小,或发生两次距离变大。Wherein, in the embodiment of the present application, every time the distance state changes, the indicator moves once and points to the adjacent frame rate indicator of the current frame rate indicator, such as the previous frame rate indicator or the next frame of the current frame rate indicator Rate logo. When the user needs to adjust the video frame rate to the video frame rate corresponding to the target frame rate logo separated by a frame rate logo from the current frame rate logo, the distance change state is changed twice. If the distance becomes smaller twice, Or it happens that the distance becomes larger twice.

例如,如图6中的右图所示,指针2021当前指向60fps对应的扇形图形2022,若用户想将录像帧率调整至240fps,则可以先控制电子设备向远离目标摄像头的方向移动一次,使得电子设备与目标摄像头之间的距离变大一次,此时指针指向120fps对应的扇形图形2022,之后,用户再控制电子设备向远离目标摄像头的方向移动一次,使得电子设备与目标摄像头之间的距离再变大一次,此时指示标识指向240fps对应的扇形帧率标识2022。For example, as shown in the right figure in Figure 6, the pointer 2021 is currently pointing to the fan-shaped graphic 2022 corresponding to 60fps. If the user wants to adjust the video frame rate to 240fps, he can first control the electronic device to move once in a direction away from the target camera, so that The distance between the electronic device and the target camera increases once, and at this time the pointer points to the fan-shaped figure 2022 corresponding to 120fps. After that, the user controls the electronic device to move once in a direction away from the target camera, so that the distance between the electronic device and the target camera It becomes larger again, and at this time, the indicator points to the fan-shaped frame rate indicator 2022 corresponding to 240fps.

可选地,本申请实施例所述的距离变化状态具体可以包括:距离变小且减小的距离值大于预设值,以及距离变大且增大的距离值大于预设值。该预设值的作用是尽量避免误操作的问题,具体取值可根据实际需求设置。Optionally, the distance change state described in the embodiment of the present application may specifically include: the distance becomes smaller and the reduced distance value is greater than a preset value, and the distance becomes larger and the increased distance value is greater than the preset value. The purpose of this preset value is to avoid misuse as much as possible, and the specific value can be set according to actual needs.

可选地,在录像帧率调整控件在视频录制开始前显示时,在视频录制开始前,用户可以通过录像帧率调整控件设置初始录像帧率。在视频录制开始后,即用户点击录制按钮开始录像后,录像帧率调整控件可以不再受用户控制,而是基于目标摄像头与电子设备之间的距离变化状态自动移动。Optionally, when the video frame rate adjustment control is displayed before the video recording starts, the user can set the initial video frame rate through the video frame rate adjustment control before the video recording starts. After the video recording starts, that is, after the user clicks the recording button to start recording, the recording frame rate adjustment control can no longer be controlled by the user, but automatically moves based on the distance change state between the target camera and the electronic device.

可选地,在目标参数包括电子设备与目标摄像头之间的距离变化的情况下,目标参数还可以包括:电子设备与目标摄像头之间的相对运动速度。Optionally, when the target parameter includes a change in distance between the electronic device and the target camera, the target parameter may further include: a relative movement speed between the electronic device and the target camera.

前述步骤:根据电子设备与目标摄像头之间的距离变化状态,控制指示标识向录像帧率减小的方向移动至目标帧率标识处,或控制指示标识向录像帧率增大的方向移动至目标帧率标识处,可以包括:The preceding steps: according to the change state of the distance between the electronic device and the target camera, control the indicator to move to the target frame rate in the direction of decreasing the video frame rate, or control the indicator to move to the target in the direction of increasing the video frame rate The frame rate identifier can include:

根据电子设备与目标摄像头之间的距离变化状态,控制指示标识按照与该相对运动速度对应的第二运动速度,向录像帧率减小的方向移动至目标帧率标识处或向录像帧率增大的方向移动至目标帧率标识处。According to the change state of the distance between the electronic device and the target camera, the control indicator moves to the target frame rate mark in the direction of decreasing the video frame rate or increases to the video frame rate according to the second motion speed corresponding to the relative motion speed. Move to the target frame rate mark in the large direction.

本申请实施例中,还可以在电子设备与目标摄像头之间的距离状态发生变化时,根据电子设备与目标摄像头之间的相对运动速度,控制指示标识的移动速度。其中,电子设备与目标摄像头之间的相对运动速度,与指示标识的移动速度之间可以是正相关关系,这样,当需要快速调整录像帧率时,则可以控制电子设备快速向目标摄像头靠近或远离,从而使得二者之间的相对运动速度较大,进而使得指示标识更加快速地移动至目标帧率标识处。In the embodiment of the present application, when the distance state between the electronic device and the target camera changes, the moving speed of the indicator may be controlled according to the relative movement speed between the electronic device and the target camera. Among them, the relative motion speed between the electronic device and the target camera can be positively correlated with the moving speed of the indicator, so that when the video frame rate needs to be quickly adjusted, the electronic device can be controlled to quickly approach or move away from the target camera , so that the relative movement speed between the two is relatively large, and the indicator moves to the target frame rate indicator more quickly.

可选地,可以预设一个公式,用于将电子设备与目标摄像头之间的相对运动速度,转换为指示标识的移动速度。Optionally, a formula may be preset for converting the relative movement speed between the electronic device and the target camera into the movement speed of the indicator.

作为一种可选实施例,本申请实施例中,可以在电子设备中增加多帧率融合录像模式,启动该录像模式后,则可以根据本申请实施例提供的录像帧率调整方法进行录像帧率的调整。As an optional embodiment, in the embodiment of the present application, a multi-frame rate fusion recording mode can be added to the electronic device. After starting the recording mode, the recording frame rate can be adjusted according to the recording frame rate adjustment method provided in the embodiment of the present application. rate adjustment.

以上即为对本申请实施例提供的录像帧率调整方法的描述。The above is the description of the video frame rate adjustment method provided by the embodiment of the present application.

综上所述,本申请实施例中,电子设备可以根据目标参数调整目标摄像头的录像帧率,如根据目标摄像头的运动速度,调整目标摄像头的录像帧率,或者根据目标摄像头与电子设备之间的距离变化状态,调整目标摄像头的录像帧率,这样在视频录制过程中,则可以进行录像帧率的动态调整,从而获得具有不同录像帧率的视频,相比于现有技术中的后期编辑方式,本申请实施例提供的方式更加简单、便捷。To sum up, in the embodiment of this application, the electronic device can adjust the video frame rate of the target camera according to the target parameters, such as adjusting the video frame rate of the target camera according to the moving speed of the target camera, or according to the distance between the target camera and the electronic device. Adjust the video frame rate of the target camera, so that during the video recording process, the video frame rate can be dynamically adjusted to obtain videos with different video frame rates. Compared with the post-editing in the prior art The method provided by the embodiment of the present application is simpler and more convenient.

本申请实施例提供的录像帧率调整方法,执行主体可以为录像帧率调整装置。本申请实施例中以录像帧率调整装置执行录像帧率调整方法为例,说明本申请实施例提供的录像帧率调整装置。The video frame rate adjustment method provided in the embodiment of the present application may be executed by a video frame rate adjustment device. In the embodiment of the present application, the method for adjusting the frame rate of video recording performed by the device for adjusting the frame rate of video recording is taken as an example to describe the device for adjusting the frame rate of video recording provided in the embodiment of the present application.

图8是本申请实施例提供的一种录像帧率调整装置的示意框图,该录像帧率调整装置应用于电子设备。Fig. 8 is a schematic block diagram of an apparatus for adjusting a video frame rate provided by an embodiment of the present application, and the apparatus for adjusting a video frame rate is applied to an electronic device.

如图8所示,所述录像帧率调整装置可以包括:As shown in Figure 8, the video frame rate adjustment device may include:

获取模块801,用于在通过目标摄像头录制视频的情况下,获取用于调整所述目标摄像头的录像帧率的目标参数。The acquiring module 801 is configured to acquire target parameters for adjusting the video frame rate of the target camera when the target camera is used to record video.

其中,所述目标参数包括所述目标摄像头的第一运动速度;或所述目标参数包括电子设备与所述目标摄像头之间的距离变化状态,所述目标摄像头与所述电子设备分离设置,且所述目标摄像头与所述电子设备之间建立有通信连接。Wherein, the target parameter includes the first moving speed of the target camera; or the target parameter includes a distance change state between the electronic device and the target camera, and the target camera is set separately from the electronic device, and A communication connection is established between the target camera and the electronic device.

调整模块802,用于根据所述目标参数,调整所述目标摄像头的录像帧率。The adjustment module 802 is configured to adjust the video recording frame rate of the target camera according to the target parameters.

可选地,在所述目标参数包括所述目标摄像头的第一运动速度的情况下,所述调整模块802可以包括:Optionally, when the target parameter includes the first moving speed of the target camera, the adjustment module 802 may include:

确定子模块,用于确定与所述第一运动速度对应的第一录像帧率。A determining submodule, configured to determine a first video recording frame rate corresponding to the first motion speed.

其中,所述目标摄像头的运动速度与对应的录像帧率之间呈正相关关系。Wherein, there is a positive correlation between the moving speed of the target camera and the corresponding video frame rate.

第一调整子模块,用于在当前录像帧率不是所述第一录像帧率的情况下,将录像帧率调整为所述第一录像帧率。The first adjustment sub-module is configured to adjust the video frame rate to the first video frame rate when the current video frame rate is not the first video frame rate.

可选地,所述确定子模块可以包括:Optionally, the determining submodule may include:

第一确定单元,用于在多个预设速度等级中,确定所述第一运动速度所属的第一速度等级。The first determining unit is configured to determine, among the plurality of preset speed levels, the first speed level to which the first moving speed belongs.

其中,每一所述预设速度等级对应一个速度范围或一个具体速度值。Wherein, each preset speed level corresponds to a speed range or a specific speed value.

第二确定单元,用于根据不同所述预设速度等级与不同录像帧率之间的预设对应关系,确定与所述第一速度等级对应的录像帧率。The second determination unit is configured to determine the video frame rate corresponding to the first speed level according to the preset corresponding relationship between different preset speed levels and different video frame rates.

第三确定单元,用于将与所述第一速度等级对应的录像帧率确定为所述第一录像帧率。A third determining unit, configured to determine the video frame rate corresponding to the first speed level as the first video frame rate.

可选地,所述装置还可以包括:Optionally, the device may also include:

第一处理模块,用于在接收到第一输入的情况下,响应于所述第一输入,显示多个速度等级选项。The first processing module is configured to display a plurality of speed level options in response to the first input if the first input is received.

第二处理模块,用于在接收到第二输入的情况下,响应于所述第二输入,确定所述第二输入选择的第一速度等级选项对应的第一速度等级,以及显示多个录像帧率选项。The second processing module is configured to determine the first speed level corresponding to the first speed level option selected by the second input in response to the second input when the second input is received, and display multiple video recordings Frame rate options.

其中,所述第一速度等级选项为所述多个速度等级选项中的其中一个。Wherein, the first speed grade option is one of the multiple speed grade options.

第三处理模块,用于在接收到第三输入的情况下,响应于所述第三输入,将所述第三输入选择的第一录像帧率选项对应的所述第一录像帧率,与所述第一速度等级之间建立对应关系。The third processing module is configured to, in response to the third input, combine the first video frame rate corresponding to the first video frame rate option selected by the third input with the third input in response to the third input. A corresponding relationship is established between the first speed levels.

其中,所述第一录像帧率选项为所述多个录像帧率选项中的其中一个。Wherein, the first recording frame rate option is one of the plurality of recording frame rate options.

可选地,所述第一处理模块可以包括:Optionally, the first processing module may include:

第一处理单元,用于在接收到对录像预览界面的第一输入的情况下,响应于所述第一输入,显示悬浮控件以及所述多个速度等级选项。The first processing unit is configured to display the floating control and the multiple speed level options in response to the first input in response to the first input on the video preview interface.

其中,所述多个速度等级选项围绕在所述悬浮控件周围。Wherein, the multiple speed level options surround the floating control.

所述第二处理模块可以包括:The second processing module may include:

第二处理单元,用于在接收到对所述悬浮控件的第一移动操作的情况下,响应于所述第一移动操作,在所述悬浮控件的移动过程中,确定所述悬浮控件停留时长大于或等于第一预设时长位置处的所述第一速度等级选项对应的所述第一速度等级,以及显示所述多个录像帧率选项。The second processing unit is configured to, in the case of receiving a first movement operation on the suspension control, in response to the first movement operation, during the movement of the suspension control, determine the stay duration of the suspension control greater than or equal to the first speed level corresponding to the first speed level option at the position of the first preset duration, and displaying the plurality of recording frame rate options.

其中,所述多个录像帧率选项围绕在所述第一速度等级选项周围。Wherein, the multiple recording frame rate options surround the first speed level option.

所述第三处理模块可以包括:The third processing module may include:

第三处理单元,用于在接收到对所述悬浮控件的第二移动操作的情况下,响应于所述第二移动操作,在所述悬浮控件的移动过程中,将所述悬浮控件停留时长超过第二预设时长位置处的所述第一录像帧率选项对应的所述第一录像帧率,与所述第一速度等级之间建立对应关系。The third processing unit is configured to, in the case of receiving a second movement operation on the suspension control, in response to the second movement operation, during the movement of the suspension control, stop the suspension control for a long time A corresponding relationship is established between the first video frame rate corresponding to the first video frame rate option at a position exceeding the second preset duration and the first speed level.

可选地,在所述目标参数包括所述电子设备与所述目标摄像头之间的距离变化状态的情况下,所述装置还可以包括:Optionally, in the case where the target parameter includes a change state of a distance between the electronic device and the target camera, the apparatus may further include:

显示模块,用于在接收到第四输入的情况下,响应于所述第四输入,显示录像帧率调整控件。The display module is configured to display a video frame rate adjustment control in response to the fourth input when the fourth input is received.

其中,所述录像帧率调整控件包括:一个指示标识和多个用于表示不同录像帧率的帧率标识,所述帧率标识按照表示的录像帧率由小到大的顺序排列。Wherein, the video frame rate adjustment control includes: an indicator mark and a plurality of frame rate marks for representing different video frame rates, and the frame rate marks are arranged in descending order of the recorded video frame rates.

所述调整模块802可以包括:The adjustment module 802 may include:

第二调整子模块,用于根据所述电子设备与所述目标摄像头之间的距离变化状态,控制所述指示标识向录像帧率减小的方向移动至目标帧率标识处,或控制所述指示标识向录像帧率增大的方向移动至目标帧率标识处,并以所述目标帧率标识对应的录像帧率进行视频录制;The second adjustment sub-module is used to control the indication mark to move to the target frame rate mark in the direction of reducing the recording frame rate according to the change state of the distance between the electronic device and the target camera, or control the The indicator moves to the target frame rate mark in the direction of increasing the video frame rate, and performs video recording at the video frame rate corresponding to the target frame rate mark;

其中,所述距离变化状态包括:距离变大和距离变小,所述目标帧率标识为所述多个用于表示不同录像帧率的帧率标识中的其中一个。Wherein, the distance change state includes: the distance becomes larger and the distance becomes smaller, and the target frame rate identifier is one of the plurality of frame rate identifiers used to represent different recording frame rates.

可选地,在所述目标参数包括所述电子设备与所述目标摄像头之间的距离变化状态的情况下,所述目标参数还包括:所述电子设备与所述目标摄像头之间的相对运动速度。Optionally, in the case where the target parameter includes a distance change state between the electronic device and the target camera, the target parameter further includes: a relative motion between the electronic device and the target camera speed.

所述第二调整子模块可以包括:The second adjustment submodule may include:

调整单元,用于根据所述电子设备与所述目标摄像头之间的距离变化状态,控制所述指示标识按照与所述相对运动速度对应的第二运动速度,向录像帧率减小的方向移动至所述目标帧率标识处或向录像帧率增大的方向移动至所述目标帧率标识处。An adjustment unit, configured to control the indicator to move in a direction in which the video frame rate decreases according to the second movement speed corresponding to the relative movement speed according to the change state of the distance between the electronic device and the target camera Move to the target frame rate mark or move to the target frame rate mark in the direction of increasing video frame rate.

可选地,所述装置还包括:Optionally, the device also includes:

接收模块,用于在所述显示录像帧率调整控件的情况下,接收对所述指示标识的第五输入。The receiving module is configured to receive a fifth input of the indication mark when the video frame rate adjustment control is displayed.

设置模块,用于响应于所述第五输入,将所述指示标识重新指向的帧率标识对应的录像帧率,设置为初始录像帧率。The setting module is configured to respond to the fifth input, and set the video frame rate corresponding to the frame rate logo that the indicator is redirected to as the initial video frame rate.

其中,所述指示标识重新指向的帧率标识是通过所述第五输入调整得到的。Wherein, the frame rate indicator to which the indication indicator is redirected is obtained through adjustment of the fifth input.

综上所述,本申请实施例中,电子设备可以根据目标参数调整目标摄像头的录像帧率,如根据目标摄像头的运动速度,调整目标摄像头的录像帧率,或者根据目标摄像头与电子设备之间的距离变化状态,调整目标摄像头的录像帧率,这样在视频录制过程中,则可以进行录像帧率的动态调整,从而获得具有不同录像帧率的视频,相比于现有技术中的后期编辑方式,本申请实施例提供的方式更加简单、便捷。To sum up, in the embodiment of this application, the electronic device can adjust the video frame rate of the target camera according to the target parameters, such as adjusting the video frame rate of the target camera according to the moving speed of the target camera, or according to the distance between the target camera and the electronic device. Adjust the video frame rate of the target camera, so that during the video recording process, the video frame rate can be dynamically adjusted to obtain videos with different video frame rates. Compared with the post-editing in the prior art The method provided by the embodiment of the present application is simpler and more convenient.

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

本申请实施例中的录像帧率调整装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The device for adjusting the video frame rate in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.

本申请实施例提供的录像帧率调整装置能够实现图1所示的录像帧率调整方法实施例实现的各个过程,为避免重复,这里不再赘述。The device for adjusting the video frame rate provided by the embodiment of the present application can realize each process realized by the embodiment of the method for adjusting the video frame rate shown in FIG. 1 . To avoid repetition, details are not repeated here.

可选地,如图9所示,本申请实施例还提供一种电子设备900,包括:处理器901和存储器902,存储器902上存储有可所述处理器901上运行的程序或指令,该程序或指令被处理器901执行时实现上述录像帧率调整方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 9 , the embodiment of the present application also provides an electronic device 900, including: a processor 901 and a memory 902, and the memory 902 stores programs or instructions that can be run on the processor 901, the When the programs or instructions are executed by the processor 901, the various steps of the above-mentioned video frame rate adjustment method embodiment can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.

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

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

该电子设备1000包括但不限于:射频单元1001、网络模块1002、音频输出单元1003、输入单元1004、传感器1005、显示单元1006、用户输入单元1007、接口单元1008、存储器1009以及处理器1010等部件。The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010. .

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

其中,处理器1010可以用于:在通过目标摄像头录制视频的情况下,获取用于调整所述目标摄像头的录像帧率的目标参数,并根据所述目标参数,调整所述目标摄像头的录像帧率。其中,所述目标参数包括所述目标摄像头的第一运动速度;或所述目标参数包括电子设备与所述目标摄像头之间的距离变化状态,所述目标摄像头与所述电子设备分离设置,且所述目标摄像头与所述电子设备之间建立有通信连接。Wherein, the processor 1010 can be used to: in the case of recording video through the target camera, obtain target parameters for adjusting the video frame rate of the target camera, and adjust the video frame of the target camera according to the target parameters Rate. Wherein, the target parameter includes the first moving speed of the target camera; or the target parameter includes a distance change state between the electronic device and the target camera, and the target camera is set separately from the electronic device, and A communication connection is established between the target camera and the electronic device.

可选地,在所述目标参数包括所述目标摄像头的第一运动速度的情况下,处理器1010还可以用于:确定与所述第一运动速度对应的第一录像帧率;在当前录像帧率不是所述第一录像帧率的情况下,将录像帧率调整为所述第一录像帧率。其中,所述目标摄像头的运动速度与对应的录像帧率之间呈正相关关系。Optionally, when the target parameter includes the first motion speed of the target camera, the processor 1010 may also be configured to: determine a first video frame rate corresponding to the first motion speed; If the frame rate is not the first video frame rate, adjust the video frame rate to the first video frame rate. Wherein, there is a positive correlation between the moving speed of the target camera and the corresponding video frame rate.

可选地,处理器1010还可以用于:在多个预设速度等级中,确定所述第一运动速度所属的第一速度等级;根据不同所述预设速度等级与不同录像帧率之间的预设对应关系,确定与所述第一速度等级对应的录像帧率;将与所述第一速度等级对应的录像帧率确定为所述第一录像帧率。其中,每一所述预设速度等级对应一个速度范围或一个具体速度值。Optionally, the processor 1010 may also be configured to: among multiple preset speed grades, determine the first speed grade to which the first motion speed belongs; The preset corresponding relationship, determine the video frame rate corresponding to the first speed level; determine the video frame rate corresponding to the first speed level as the first video frame rate. Wherein, each preset speed level corresponds to a speed range or a specific speed value.

可选地,处理器1010还可以用于:在用户输入单元1007接收到第一输入的情况下,响应于所述第一输入,控制显示单元1006显示多个速度等级选项;在用户输入单元1007接收到第二输入的情况下,响应于所述第二输入,确定所述第二输入选择的第一速度等级选项对应的第一速度等级,以及控制显示单元1006显示多个录像帧率选项;在用户输入单元1007接收到第三输入的情况下,响应于所述第三输入,将所述第三输入选择的第一录像帧率选项对应的所述第一录像帧率,与所述第一速度等级之间建立对应关系。其中,所述第一速度等级选项为所述多个速度等级选项中的其中一个;所述第一录像帧率选项为所述多个录像帧率选项中的其中一个。Optionally, the processor 1010 may also be configured to: when the user input unit 1007 receives a first input, in response to the first input, control the display unit 1006 to display multiple speed level options; When the second input is received, in response to the second input, determine the first speed level corresponding to the first speed level option selected by the second input, and control the display unit 1006 to display multiple video frame rate options; When the user input unit 1007 receives a third input, in response to the third input, the first video frame rate corresponding to the first video frame rate option selected by the third input is A corresponding relationship is established between speed grades. Wherein, the first speed level option is one of the multiple speed level options; the first video frame rate option is one of the multiple video frame rate options.

可选地,处理器1010还可以用于:在用户输入单元1007接收到对录像预览界面的第一输入的情况下,响应于所述第一输入,控制显示单元1006显示悬浮控件以及所述多个速度等级选项;在用户输入单元1007接收到对所述悬浮控件的第一移动操作的情况下,响应于所述第一移动操作,在所述悬浮控件的移动过程中,确定所述悬浮控件停留时长大于或等于第一预设时长位置处的所述第一速度等级选项对应的所述第一速度等级,以及控制显示单元1006显示所述多个录像帧率选项;在用户输入单元1007接收到对所述悬浮控件的第二移动操作的情况下,响应于所述第二移动操作,在所述悬浮控件的移动过程中,将所述悬浮控件停留时长超过第二预设时长位置处的所述第一录像帧率选项对应的所述第一录像帧率,与所述第一速度等级之间建立对应关系。其中,所述多个速度等级选项围绕在所述悬浮控件周围;所述多个录像帧率选项围绕在所述第一速度等级选项周围。Optionally, the processor 1010 may also be configured to: in a case where the user input unit 1007 receives a first input to the video preview interface, in response to the first input, control the display unit 1006 to display the floating control and the multi- a speed level option; in the case that the user input unit 1007 receives a first movement operation on the floating control, in response to the first movement operation, during the moving process of the floating control, determine the floating control The dwell time is greater than or equal to the first speed level corresponding to the first speed level option at the first preset time length position, and the display unit 1006 is controlled to display the multiple video frame rate options; the user input unit 1007 receives In the case of a second movement operation on the suspension control, in response to the second movement operation, during the movement of the suspension control, the suspension control stays longer than the second preset duration position A corresponding relationship is established between the first video frame rate corresponding to the first video frame rate option and the first speed level. Wherein, the multiple speed level options surround the floating control; the multiple video frame rate options surround the first speed level option.

可选地,在所述目标参数包括所述电子设备与所述目标摄像头之间的距离变化状态的情况下,处理器1010还可以用于:在用户输入单元1007接收到第四输入的情况下,响应于所述第四输入,控制显示单元1006显示录像帧率调整控件。以及根据所述电子设备与所述目标摄像头之间的距离变化状态,控制所述指示标识向录像帧率减小的方向移动至目标帧率标识处,或控制所述指示标识向录像帧率增大的方向移动至目标帧率标识处,并以所述目标帧率标识对应的录像帧率进行视频录制。其中,所述距离变化状态包括:距离变大和距离变小,所述目标帧率标识为所述多个用于表示不同录像帧率的帧率标识中的其中一个。所述录像帧率调整控件包括:一个指示标识和多个用于表示不同录像帧率的帧率标识,所述帧率标识按照表示的录像帧率由小到大的顺序排列。Optionally, in the case where the target parameter includes a change state of the distance between the electronic device and the target camera, the processor 1010 may be further configured to: when the user input unit 1007 receives a fourth input , in response to the fourth input, control the display unit 1006 to display a video frame rate adjustment control. And according to the change state of the distance between the electronic device and the target camera, control the indicator to move to the target frame rate indicator in the direction of decreasing the video frame rate, or control the indicator to increase the video frame rate. Move to the target frame rate mark in the large direction, and perform video recording at the video frame rate corresponding to the target frame rate mark. Wherein, the distance change state includes: the distance becomes larger and the distance becomes smaller, and the target frame rate identifier is one of the plurality of frame rate identifiers used to represent different recording frame rates. The video frame rate adjustment control includes: an indicator mark and a plurality of frame rate marks used to represent different video frame rates, and the frame rate marks are arranged in descending order of the represented video frame rates.

可选地,在所述目标参数包括所述电子设备与所述目标摄像头之间的距离变化状态的情况下,所述目标参数还包括:所述电子设备与所述目标摄像头之间的相对运动速度。处理器1010还可以用于:根据所述电子设备与所述目标摄像头之间的距离变化状态,控制所述指示标识按照与所述相对运动速度对应的第二运动速度,向录像帧率减小的方向移动至所述目标帧率标识处或向录像帧率增大的方向移动至所述目标帧率标识处。Optionally, in the case where the target parameter includes a distance change state between the electronic device and the target camera, the target parameter further includes: a relative motion between the electronic device and the target camera speed. The processor 1010 may also be configured to: according to the change state of the distance between the electronic device and the target camera, control the indicator to decrease the frame rate of the recording according to the second movement speed corresponding to the relative movement speed. Move to the target frame rate mark in the direction of or move to the target frame rate mark in the direction of increasing the video frame rate.

可选地,处理器1010还可以用于:在用户输入单元1007接收到对所述指示标识的第五输入的情况下,响应于所述第五输入,将所述指示标识重新指向的帧率标识对应的录像帧率,设置为初始录像帧率。其中,所述指示标识重新指向的帧率标识是通过所述第五输入调整得到的。Optionally, the processor 1010 may be further configured to: in a case where the user input unit 1007 receives a fifth input to the indication, in response to the fifth input, redirect the indication to the frame rate Identify the corresponding video frame rate and set it as the initial video frame rate. Wherein, the frame rate indicator to which the indication indicator is redirected is obtained through adjustment of the fifth input.

本发明实施例中,电子设备可以根据目标参数调整目标摄像头的录像帧率,如根据目标摄像头的运动速度,调整目标摄像头的录像帧率,或者根据目标摄像头与电子设备之间的距离变化状态,调整目标摄像头的录像帧率,这样在视频录制过程中,则可以进行录像帧率的动态调整,从而获得具有不同录像帧率的视频,相比于现有技术中的后期编辑方式,本申请实施例提供的方式更加简单、便捷。In the embodiment of the present invention, the electronic device can adjust the video recording frame rate of the target camera according to the target parameters, such as adjusting the video recording frame rate of the target camera according to the moving speed of the target camera, or according to the distance change state between the target camera and the electronic device, Adjust the video frame rate of the target camera, so that during the video recording process, the video frame rate can be dynamically adjusted to obtain videos with different video frame rates. Compared with the post-editing methods in the prior art, this application implements The method provided by the example is simpler and more convenient.

应理解的是,本申请实施例中,输入单元1004可以包括图形处理器(GraphicsProcessing Unit,GPU)10041和麦克风10042,图形处理器10041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)得到的静态图片或视频的图像数据进行处理。显示单元1006可包括显示面板10061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板10061。用户输入单元1007包括触控面板10071以及其他输入设备10072中的至少一种。触控面板10071,也称为触摸屏。触控面板10071可包括触摸检测装置和触摸控制器两个部分。其他输入设备10072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that, in this embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042. Camera) to process the image data of still pictures or videos. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072 . The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here.

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

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

本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述录像帧率调整方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a readable storage medium, the readable storage medium stores a program or an instruction, and when the program or instruction is executed by the processor, each process of the above embodiment of the video frame rate adjustment method is implemented, and can To achieve the same technical effect, in order to avoid repetition, no more details are given here.

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

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

本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述录像帧率调整方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to realize the various processes in the embodiment of the video frame rate adjustment method described above, and can achieve the same Technical effects, in order to avoid repetition, will not be repeated here.

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

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

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

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

Claims (10)

1.一种录像帧率调整方法,其特征在于,所述方法包括:1. A video frame rate adjustment method, characterized in that the method comprises: 在通过目标摄像头录制视频的情况下,获取用于调整所述目标摄像头的录像帧率的目标参数;其中,所述目标参数包括所述目标摄像头的第一运动速度;或所述目标参数包括电子设备与所述目标摄像头之间的距离变化状态,所述目标摄像头与所述电子设备分离设置,且所述目标摄像头与所述电子设备之间建立有通信连接;In the case of recording video through the target camera, the target parameters used to adjust the video frame rate of the target camera are obtained; wherein the target parameters include the first moving speed of the target camera; or the target parameters include electronic The distance change state between the device and the target camera, the target camera is set separately from the electronic device, and a communication connection is established between the target camera and the electronic device; 根据所述目标参数,调整所述目标摄像头的录像帧率。According to the target parameters, the video frame rate of the target camera is adjusted. 2.根据权利要求1所述的录像帧率调整方法,其特征在于,在所述目标参数包括所述目标摄像头的第一运动速度的情况下,所述根据所述目标参数,调整录像帧率,包括:2. The method for adjusting the video frame rate according to claim 1, wherein, when the target parameter includes the first moving speed of the target camera, the video frame rate is adjusted according to the target parameter ,include: 确定与所述第一运动速度对应的第一录像帧率;其中,所述目标摄像头的运动速度与对应的录像帧率之间呈正相关关系;Determining a first video frame rate corresponding to the first motion speed; wherein, there is a positive correlation between the motion speed of the target camera and the corresponding video frame rate; 在当前录像帧率不是所述第一录像帧率的情况下,将录像帧率调整为所述第一录像帧率。If the current recording frame rate is not the first recording frame rate, adjusting the recording frame rate to the first recording frame rate. 3.根据权利要求2所述的录像帧率调整方法,其特征在于,所述确定与所述第一运动速度对应的第一录像帧率,包括:3. The video recording frame rate adjustment method according to claim 2, wherein the determining the first video recording frame rate corresponding to the first motion speed comprises: 在多个预设速度等级中,确定所述第一运动速度所属的第一速度等级;其中,每一所述预设速度等级对应一个速度范围或一个具体速度值;Among the plurality of preset speed levels, determining the first speed level to which the first movement speed belongs; wherein, each of the preset speed levels corresponds to a speed range or a specific speed value; 根据不同所述预设速度等级与不同录像帧率之间的预设对应关系,确定与所述第一速度等级对应的录像帧率;Determine the video frame rate corresponding to the first speed level according to the preset corresponding relationship between different preset speed levels and different video frame rates; 将与所述第一速度等级对应的录像帧率确定为所述第一录像帧率。A video frame rate corresponding to the first speed level is determined as the first video frame rate. 4.根据权利要求2所述的录像帧率调整方法,其特征在于,在所述根据不同所述预设速度等级与不同录像帧率之间的预设对应关系,确定与所述第一速度等级对应的录像帧率之前,所述方法还包括:4. The video recording frame rate adjustment method according to claim 2, characterized in that, according to the preset corresponding relationship between different said preset speed levels and different video recording frame rates, it is determined to be related to the first speed Before the video frame rate corresponding to the grade, the method also includes: 在接收到第一输入的情况下,响应于所述第一输入,显示多个速度等级选项;where a first input is received, displaying a plurality of speed class options in response to the first input; 在接收到第二输入的情况下,响应于所述第二输入,确定所述第二输入选择的第一速度等级选项对应的所述第一速度等级,以及显示多个录像帧率选项;其中,所述第一速度等级选项为所述多个速度等级选项中的其中一个;In the case of receiving the second input, in response to the second input, determine the first speed level corresponding to the first speed level option selected by the second input, and display multiple video frame rate options; wherein , the first speed grade option is one of the multiple speed grade options; 在接收到第三输入的情况下,响应于所述第三输入,将所述第三输入选择的第一录像帧率选项对应的所述第一录像帧率,与所述第一速度等级之间建立对应关系;其中,所述第一录像帧率选项为所述多个录像帧率选项中的其中一个。In the case of receiving the third input, in response to the third input, set the first video frame rate corresponding to the first video frame rate option selected by the third input to the first speed level Establish a corresponding relationship between them; wherein, the first video frame rate option is one of the multiple video frame rate options. 5.根据权利要求4所述的录像帧率调整方法,其特征在于,所述在接收到第一输入的情况下,响应于所述第一输入,显示多个速度等级选项,包括:5. The video frame rate adjustment method according to claim 4, characterized in that, in the case of receiving the first input, in response to the first input, a plurality of speed level options are displayed, including: 在接收到对录像预览界面的第一输入的情况下,响应于所述第一输入,显示悬浮控件以及所述多个速度等级选项;其中,所述多个速度等级选项围绕在所述悬浮控件周围;In the case of receiving the first input to the video preview interface, in response to the first input, display the floating control and the multiple speed level options; wherein, the multiple speed level options surround the floating control around; 所述在接收到第二输入的情况下,响应于所述第二输入,确定所述第二输入选择的所述第一速度等级选项对应的所述第一速度等级,以及显示多个录像帧率选项,包括:In the case of receiving a second input, in response to the second input, determining the first speed level corresponding to the first speed level option selected by the second input, and displaying a plurality of video frames rate options, including: 在接收到对所述悬浮控件的第一移动操作的情况下,响应于所述第一移动操作,在所述悬浮控件的移动过程中,确定所述悬浮控件停留时长大于或等于第一预设时长位置处的所述第一速度等级选项对应的所述第一速度等级,以及显示所述多个录像帧率选项;其中,所述多个录像帧率选项围绕在所述第一速度等级选项周围;In the case of receiving a first moving operation on the floating control, in response to the first moving operation, during the moving process of the floating control, determine that the dwelling time of the floating control is greater than or equal to a first preset The first speed level corresponding to the first speed level option at the duration position, and displaying the multiple video frame rate options; wherein, the multiple video frame rate options surround the first speed level option around; 所述在接收到第三输入的情况下,响应于所述第三输入,将所述第三输入选择的第一录像帧率选项对应的所述第一录像帧率,与所述第一速度等级之间建立对应关系,包括:In the case of receiving the third input, in response to the third input, the first video frame rate corresponding to the first video frame rate option selected by the third input is compared with the first speed Establish correspondence between grades, including: 在接收到对所述悬浮控件的第二移动操作的情况下,响应于所述第二移动操作,在所述悬浮控件的移动过程中,将所述悬浮控件停留时长超过第二预设时长位置处的所述第一录像帧率选项对应的所述第一录像帧率,与所述第一速度等级之间建立对应关系。In the case of receiving a second movement operation on the suspension control, in response to the second movement operation, during the movement of the suspension control, stop the suspension control at a position longer than a second preset time length A corresponding relationship is established between the first video frame rate corresponding to the first video frame rate option at , and the first speed level. 6.根据权利要求1所述的录像帧率调整方法,其特征在于,在所述目标参数包括所述电子设备与所述目标摄像头之间的距离变化状态的情况下,在所述根据所述目标参数,调整录像帧率之前,所述方法还包括:6. The video recording frame rate adjustment method according to claim 1, wherein, in the case where the target parameter includes the distance change state between the electronic device and the target camera, according to the Target parameter, before adjusting the video frame rate, the method also includes: 在接收到第四输入的情况下,响应于所述第四输入,显示录像帧率调整控件;其中,所述录像帧率调整控件包括:一个指示标识和多个用于表示不同录像帧率的帧率标识,所述帧率标识按照表示的录像帧率由小到大的顺序排列;In the case of receiving the fourth input, in response to the fourth input, the video frame rate adjustment control is displayed; wherein, the video frame rate adjustment control includes: an indication mark and a plurality of symbols used to represent different video frame rates Frame rate identification, the frame rate identification is arranged in order from small to large according to the indicated video frame rate; 所述根据所述目标参数,调整录像帧率,包括:According to the target parameters, adjusting the video frame rate includes: 根据所述电子设备与所述目标摄像头之间的距离变化状态,控制所述指示标识向录像帧率减小的方向移动至目标帧率标识处,或控制所述指示标识向录像帧率增大的方向移动至目标帧率标识处,并以所述目标帧率标识对应的录像帧率进行视频录制;According to the change state of the distance between the electronic device and the target camera, control the indicator to move to the target frame rate indicator in the direction of decreasing the video frame rate, or control the indicator to increase the video frame rate Move to the target frame rate mark in the direction of the target frame rate mark, and perform video recording at the video frame rate corresponding to the target frame rate mark; 其中,所述距离变化状态包括:距离变大和距离变小,所述目标帧率标识为所述多个用于表示不同录像帧率的帧率标识中的其中一个。Wherein, the distance change state includes: the distance becomes larger and the distance becomes smaller, and the target frame rate identifier is one of the plurality of frame rate identifiers used to represent different recording frame rates. 7.根据权利要求6所述的录像帧率调整方法,其特征在于,在所述目标参数包括所述电子设备与所述目标摄像头之间的距离变化状态的情况下,所述目标参数还包括:所述电子设备与所述目标摄像头之间的相对运动速度;7. The video recording frame rate adjustment method according to claim 6, wherein, in the case where the target parameter includes the distance change state between the electronic device and the target camera, the target parameter further includes : the relative motion speed between the electronic device and the target camera; 所述根据所述电子设备与所述目标摄像头之间的距离变化状态,控制所述指示标识向录像帧率减小的方向移动至目标帧率标识处,或控制所述指示标识向录像帧率增大的方向移动至目标帧率标识处,包括:According to the change state of the distance between the electronic device and the target camera, control the indicator to move to the target frame rate indicator in the direction of decreasing the video frame rate, or control the indicator to move to the video frame rate The direction of increase moves to the target frame rate mark, including: 根据所述电子设备与所述目标摄像头之间的距离变化状态,控制所述指示标识按照与所述相对运动速度对应的第二运动速度,向录像帧率减小的方向移动至所述目标帧率标识处或向录像帧率增大的方向移动至所述目标帧率标识处。According to the change state of the distance between the electronic device and the target camera, the indicator is controlled to move to the target frame in the direction of decreasing the frame rate of video recording at a second movement speed corresponding to the relative movement speed rate mark or move to the target frame rate mark in the direction of increasing video frame rate. 8.根据权利要求6所述的录像帧率调整方法,其特征在于,在所述显示录像帧率调整控件之后,所述方法还包括:8. The method for adjusting the video frame rate according to claim 6, characterized in that, after the video frame rate adjustment control is displayed, the method further comprises: 接收对所述指示标识的第五输入;receiving a fifth input of the indication; 响应于所述第五输入,将所述指示标识重新指向的帧率标识对应的录像帧率,设置为初始录像帧率;其中,所述指示标识重新指向的帧率标识是通过所述第五输入调整得到的。In response to the fifth input, set the video frame rate corresponding to the frame rate logo re-pointed to by the indicator as the initial video frame rate; Enter the adjusted result. 9.一种录像帧率调整装置,其特征在于,所述装置包括:9. A video frame rate adjustment device, characterized in that the device comprises: 获取模块,用于在通过目标摄像头录制视频的情况下,获取用于调整所述目标摄像头的录像帧率的目标参数;其中,所述目标参数包括所述目标摄像头的第一运动速度;或所述目标参数包括电子设备与所述目标摄像头之间的距离变化状态,所述目标摄像头与所述电子设备分离设置,且所述目标摄像头与所述电子设备之间建立有通信连接;An acquisition module, configured to acquire target parameters for adjusting the video frame rate of the target camera in the case of recording video through the target camera; wherein the target parameters include the first moving speed of the target camera; or The target parameters include the distance change state between the electronic device and the target camera, the target camera is set separately from the electronic device, and a communication connection is established between the target camera and the electronic device; 调整模块,用于根据所述目标参数,调整所述目标摄像头的录像帧率。An adjustment module, configured to adjust the video frame rate of the target camera according to the target parameters. 10.一种电子设备,其特征在于,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至8任一项所述的录像帧率调整方法的步骤。10. An electronic device, characterized in that it includes a processor and a memory, and the memory stores programs or instructions that can run on the processor, and when the programs or instructions are executed by the processor, the implementation of the claims Steps of the video frame rate adjustment method described in any one of 1 to 8.
CN202211234622.1A 2022-10-10 2022-10-10 Video frame rate adjusting method and device Pending CN115604415A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211234622.1A CN115604415A (en) 2022-10-10 2022-10-10 Video frame rate adjusting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211234622.1A CN115604415A (en) 2022-10-10 2022-10-10 Video frame rate adjusting method and device

Publications (1)

Publication Number Publication Date
CN115604415A true CN115604415A (en) 2023-01-13

Family

ID=84846056

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211234622.1A Pending CN115604415A (en) 2022-10-10 2022-10-10 Video frame rate adjusting method and device

Country Status (1)

Country Link
CN (1) CN115604415A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070034665A (en) * 2005-09-26 2007-03-29 주식회사 팬택 Camera and frame number conversion method of the camera
CN101631199A (en) * 2009-07-13 2010-01-20 中兴通讯股份有限公司 Mobile terminal, mobile terminal camera device and method for realizing camera
CN104580969A (en) * 2013-10-23 2015-04-29 中兴通讯股份有限公司 Video frame rate adjusting method and device
CN111601040A (en) * 2020-05-29 2020-08-28 维沃移动通信(杭州)有限公司 Camera control method and device and electronic equipment
CN112799565A (en) * 2021-04-09 2021-05-14 统信软件技术有限公司 A content list display method and computing device
CN113411529A (en) * 2019-02-28 2021-09-17 华为技术有限公司 Video frame rate control method and related device
CN114422706A (en) * 2022-02-16 2022-04-29 维沃移动通信有限公司 Shooting parameter adjusting method and device, electronic equipment and medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070034665A (en) * 2005-09-26 2007-03-29 주식회사 팬택 Camera and frame number conversion method of the camera
CN101631199A (en) * 2009-07-13 2010-01-20 中兴通讯股份有限公司 Mobile terminal, mobile terminal camera device and method for realizing camera
CN104580969A (en) * 2013-10-23 2015-04-29 中兴通讯股份有限公司 Video frame rate adjusting method and device
CN113411529A (en) * 2019-02-28 2021-09-17 华为技术有限公司 Video frame rate control method and related device
CN111601040A (en) * 2020-05-29 2020-08-28 维沃移动通信(杭州)有限公司 Camera control method and device and electronic equipment
CN112799565A (en) * 2021-04-09 2021-05-14 统信软件技术有限公司 A content list display method and computing device
CN114422706A (en) * 2022-02-16 2022-04-29 维沃移动通信有限公司 Shooting parameter adjusting method and device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN112954199B (en) Video recording method and device
KR20160055813A (en) Gesture based interactive graphical user interface for video editing on smartphone/camera with touchscreen
US11770497B2 (en) Method and device for processing video, and storage medium
US20240406543A1 (en) Video recording method and apparatus, and electronic device
CN112714253B (en) Video recording method and device, electronic equipment and readable storage medium
CN113794923A (en) Video processing method and device, electronic equipment and readable storage medium
CN114598819B (en) Video recording method and device and electronic equipment
CN112887618B (en) Video shooting method and device
CN112954214A (en) Shooting method and device, electronic equipment and storage medium
WO2022105673A1 (en) Video recording method and electronic device
WO2023134583A1 (en) Video recording method and apparatus, and electronic device
US20240388790A1 (en) Shooting method, apparatus, and electronic device
CN114520876A (en) Time-delay shooting video recording method and device and electronic equipment
CN115842953A (en) Shooting method and device thereof
CN112333395A (en) Focus control method, device and electronic device
CN114500852B (en) Photographing method, photographing device, electronic device and readable storage medium
US20240370134A1 (en) Method for Browsing Multimedia Content and Apparatus
CN114143455B (en) Shooting method and device and electronic equipment
CN114025237B (en) Video generation method, device and electronic device
CN114173178B (en) Video playing method, video playing device, electronic equipment and readable storage medium
CN114143453B (en) Light supplementing method and device, electronic equipment and storage medium
CN115604415A (en) Video frame rate adjusting method and device
CN116744065A (en) Video playing method and device
CN115589458A (en) Shooting method, device, electronic device and storage medium
CN115174812A (en) Video generation method, video generation device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination