CN108600668B - Screen recording frame rate adjusting method and mobile terminal - Google Patents

Screen recording frame rate adjusting method and mobile terminal Download PDF

Info

Publication number
CN108600668B
CN108600668B CN201810257866.9A CN201810257866A CN108600668B CN 108600668 B CN108600668 B CN 108600668B CN 201810257866 A CN201810257866 A CN 201810257866A CN 108600668 B CN108600668 B CN 108600668B
Authority
CN
China
Prior art keywords
frame rate
screen recording
screen
mobile terminal
refreshing
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.)
Active
Application number
CN201810257866.9A
Other languages
Chinese (zh)
Other versions
CN108600668A (en
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 CN201810257866.9A priority Critical patent/CN108600668B/en
Publication of CN108600668A publication Critical patent/CN108600668A/en
Application granted granted Critical
Publication of CN108600668B publication Critical patent/CN108600668B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440281Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the temporal resolution, e.g. by frame skipping

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the invention discloses a screen recording frame rate adjusting method and a mobile terminal, relates to the technical field of communication, and aims to solve the problems that when a screen is recorded by the mobile terminal, if the set screen recording frame rate is high, more resources are likely to be occupied in the screen recording process, and if the set screen recording frame rate is low, the screen recording effect is likely to be poor. The method comprises the following steps: acquiring a first picture refreshing frame rate of a picture currently displayed by a mobile terminal and a first screen recording frame rate of a picture currently displayed by the mobile terminal; when the absolute value of a first difference value between the first screen recording frame rate and the first picture refreshing frame rate is larger than or equal to a first preset threshold value, the first screen recording frame rate is adjusted to be a second screen recording frame rate, and the absolute value of a second difference value between the second screen recording frame rate and the first picture refreshing frame rate is smaller than the absolute value of the first difference value. The method can be applied to the scene of recording the screen of the currently displayed picture by the mobile terminal.

Description

Screen recording frame rate adjusting method and mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a screen recording frame rate adjusting method and a mobile terminal.
Background
With the continuous development of terminal technology, the functions of the mobile terminal are more and more. For example, a user may operate the mobile terminal to make the mobile terminal record a dynamic picture displayed on a screen of the mobile terminal in a screen recording manner. The screen recording refers to a process of coding a plurality of frames of pictures displayed on a screen and synthesizing a video by the mobile terminal according to the operation of a user.
At present, before a mobile terminal records a screen, a screen recording frame rate may be set in the mobile terminal, and then the mobile terminal may record a screen according to the set screen recording frame rate.
However, according to the above method, if the set screen recording frame rate is higher, more resources may be occupied in the screen recording process of the mobile terminal; if the set screen recording frame rate is low, the screen recording effect may be poor.
Disclosure of Invention
The embodiment of the invention provides a screen recording frame rate adjusting method and a mobile terminal, and aims to solve the problems that in the screen recording process of the mobile terminal, if the set screen recording frame rate is higher, more resources are likely to be occupied in the screen recording process, and if the set screen recording frame rate is lower, the screen recording effect is likely to be poor.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for adjusting a frame rate for recording a screen, including: acquiring a first picture refreshing frame rate and a first screen recording frame rate, wherein the first picture refreshing frame rate is the refreshing frame rate of a picture currently displayed by the mobile terminal, and the first screen recording frame rate is the frame rate of the mobile terminal for recording the currently displayed picture; and when the absolute value of a first difference value is greater than or equal to a first preset threshold value, adjusting the first screen recording frame rate to a second screen recording frame rate, wherein the first difference value is the difference value between the first screen recording frame rate and the first picture refreshing frame rate, the absolute value of a second difference value is smaller than the absolute value of the first difference value, and the second difference value is the difference value between the second screen recording frame rate and the first picture refreshing frame rate.
In a second aspect, an embodiment of the present invention provides a mobile terminal, including an obtaining module and an adjusting module. The mobile terminal comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a first picture refreshing frame rate and a first screen recording frame rate, the first picture refreshing frame rate is the refreshing frame rate of a picture currently displayed by the mobile terminal, and the first screen recording frame rate is the frame rate of the mobile terminal for recording the currently displayed picture; and the adjusting module is used for adjusting the first screen recording frame rate to a second screen recording frame rate when the absolute value of a first difference value is greater than or equal to a first preset threshold value, the first difference value is a difference value between the first screen recording frame rate and the first picture refreshing frame rate acquired by the acquiring module, the absolute value of a second difference value is smaller than the absolute value of the first difference value, and the second difference value is a difference value between the second screen recording frame rate and the first picture refreshing frame rate.
In a third aspect, an embodiment of the present invention provides a mobile terminal, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements the steps of the method for adjusting the frame rate in the screen recording according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the video recording frame rate adjustment method provided in the first aspect are implemented.
In the embodiment of the present invention, a first frame rate for image refresh (where the first frame rate is a refresh frame rate of an image currently displayed by a mobile terminal) and a first frame rate for screen recording (where the first frame rate for screen recording is a frame rate of an image currently displayed by the mobile terminal) may be obtained, and when an absolute value of a first difference (where the first difference is a difference between the first frame rate for screen recording and the first frame rate for image refresh) is greater than or equal to a first preset threshold, the first frame rate for screen recording is adjusted to a second frame rate for screen recording (where an absolute value of a second difference is smaller than an absolute value of the first difference, and the second difference is a difference between the second frame rate for screen recording and the first frame rate for image refresh). According to the scheme, in the screen recording process of the mobile terminal, the frame rate of the screen recording of the currently displayed picture (namely the first screen recording frame rate) by the mobile terminal can be dynamically adjusted according to the refreshing frame rate of the currently displayed picture (namely the first screen recording frame rate), so that the adjusted screen recording frame rate (namely the second screen recording frame rate) of the mobile terminal is closer to the first picture refreshing frame rate, and therefore, the mobile terminal can reduce resources occupied by the screen recording as much as possible on the premise of ensuring the screen recording effect by flexibly adjusting the screen recording frame rate.
Drawings
Fig. 1 is a schematic diagram of a method for adjusting a frame rate of a video recording according to an embodiment of the present invention;
fig. 2 is a second schematic diagram illustrating a method for adjusting a frame rate of a video recording screen according to an embodiment of the present invention;
fig. 3 is a third schematic diagram of a method for adjusting a frame rate of a video recording according to an embodiment of the present invention;
fig. 4 is a fourth schematic diagram illustrating a method for adjusting a frame rate of a screen recording according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a second schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 7 is a hardware schematic diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The term "and/or" herein is an association relationship describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, a/B denotes a or B.
The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first screen recording frame rate and the second screen recording frame rate are specific sequences for distinguishing different screen recording frame rates, and are not for describing the screen recording frame rates.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present invention, unless otherwise specified, "a plurality" means two or more, for example, a plurality of preset correspondences means two or more preset correspondences, a plurality of elements means two or more elements, a plurality of processing units means two or more processing units, and the like.
Some terms/nouns referred to in the embodiments of the present invention are explained below.
Frame rate: is a measure for measuring the number of frames, i.e. the number of frames in a unit of time.
Frame rate for screen refresh: the number of refresh frames of a picture displayed by a mobile terminal in a unit time is measured.
The screen recording frame rate is as follows: the method is used for measuring the frame number of the recorded screen of the picture displayed by the mobile terminal in unit time.
Screen recording: the method refers to a process that the mobile terminal encodes multi-frame pictures displayed on a screen and synthesizes videos according to the operation of a user. In the embodiment of the present invention, the screen recording specifically may be a process in which the mobile terminal continuously captures the screen of the picture displayed on the screen according to the trigger operation of the user, generates a bitmap, performs format conversion on the bitmap, and then synthesizes the bitmap after the format conversion into a video.
When a dynamic picture is displayed on a screen of the mobile terminal, if a user wants the mobile terminal to record the dynamic picture displayed on the screen of the mobile terminal, the user may trigger the mobile terminal to record the screen through one input (for example, the user may click a screen recording control on the currently displayed picture of the mobile terminal to trigger the mobile terminal to record the screen), so that, after the mobile terminal detects the input of the user, the mobile terminal may record the currently displayed dynamic picture in a screen recording manner.
Based on this, an embodiment of the present invention provides a method for adjusting a screen recording frame rate and a mobile terminal, which may acquire a first screen recording frame rate (where the first screen recording frame rate is a refresh frame rate of a currently displayed screen of the mobile terminal) and a first screen recording frame rate (where the first screen recording frame rate is a frame rate of the currently displayed screen of the mobile terminal), and when an absolute value of a first difference (where the first difference is a difference between the first screen recording frame rate and the first screen recording frame rate) is greater than or equal to a first preset threshold, adjust the first screen recording frame rate to a second screen recording frame rate (where an absolute value of a second difference is smaller than an absolute value of the first difference, and the second difference is a difference between the second screen recording frame rate and the first screen recording frame rate). According to the scheme, in the screen recording process of the mobile terminal, the frame rate of the screen recording of the currently displayed picture (namely the first screen recording frame rate) by the mobile terminal can be dynamically adjusted according to the refreshing frame rate of the currently displayed picture (namely the first screen recording frame rate), so that the adjusted screen recording frame rate (namely the second screen recording frame rate) of the mobile terminal is closer to the first picture refreshing frame rate, and therefore, the mobile terminal can reduce resources occupied by the screen recording as much as possible on the premise of ensuring the screen recording effect by flexibly adjusting the screen recording frame rate.
The mobile terminal in the embodiment of the present invention may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a Personal Digital Assistant (PDA), and the like, and the embodiment of the present invention is not limited specifically.
The execution main body of the screen recording frame rate adjustment method provided by the embodiment of the present invention may be the mobile terminal, or may also be a functional module and/or a functional entity capable of implementing the screen recording frame rate adjustment method in the mobile terminal, which may be specifically determined according to actual use requirements, and the embodiment of the present invention is not limited. The following takes a mobile terminal as an example to exemplarily describe the screen recording frame rate adjustment method provided by the embodiment of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a method for adjusting a frame rate of a video recording, where the method may include the following steps 10 to 11.
And step 10, the mobile terminal acquires a first picture refreshing frame rate and a first screen recording frame rate.
The first frame rate for refreshing the image is a frame rate for refreshing the image currently displayed by the mobile terminal, and the first frame rate for recording the image is a frame rate for recording the image currently displayed by the mobile terminal.
Optionally, in an embodiment of the present invention, a unit of the first screen refreshing frame rate and the first screen recording frame rate is a Frame Per Second (FPS). For example, the first screen refresh frame rate is 60FPS, and the first screen recording frame rate is 30 FPS.
For example, in the embodiment of the present invention, the first screen recording frame rate may be a frame rate for recording a screen of an operation screen currently displayed by the mobile terminal (for example, a courseware making screen and a Word editing screen), may also be a frame rate for recording a screen of a video screen currently displayed by the mobile terminal (for example, an online teaching screen, an online television screen, a video chat screen, and the like), and in an actual application, may also be a frame rate for recording a screen of any other screen currently displayed by the mobile terminal, which meets an actual use requirement.
Optionally, in the embodiment of the present invention, the first screen recording frame rate may be a screen recording frame rate when the mobile terminal records a display screen for the first time, or may be a screen recording frame rate after the mobile terminal adjusts the frame rate when the mobile terminal records the display screen. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Alternatively, in the embodiment of the present invention, the step 10 may be specifically implemented by a step 10a described below.
Step 10a, the mobile terminal obtains a first picture refreshing frame rate and a first screen recording frame rate according to a preset period.
The preset period may be determined according to a maximum refresh frame rate of a picture that can be displayed by the mobile terminal.
For example, assuming that the maximum refresh frame rate of a screen that can be displayed by the mobile terminal (hereinafter, referred to as the maximum screen refresh frame rate) is 60FPS, the refresh period of each frame of the screen corresponding to the maximum screen refresh frame rate is 16.67 ms. It is understood that, in the case that the preset period is greater than the refresh period of the picture per frame (i.e. 16.67ms described above), the number of frames refreshed by the mobile terminal within the preset period, which is acquired by the mobile terminal, is inaccurate, so that the mobile terminal may not accurately acquire the refresh frame rate of the picture currently displayed by the mobile terminal, and therefore, the preset period may be set to be less than or equal to 16.67 ms.
Optionally, the preset period may be any value in an interval of [4.17ms-16.67ms ].
Of course, it is understood that, in the embodiment of the present invention, the mobile terminal may also execute the screen recording frame rate adjusting method provided in the embodiment of the present invention when the mobile terminal displays each frame, for example, the mobile terminal executes the step 10 when the mobile terminal displays each frame.
And step 11, when the absolute value of the first difference is greater than or equal to a first preset threshold, the mobile terminal adjusts the first screen recording frame rate to a second screen recording frame rate.
Wherein, the first difference is a difference between the first screen recording frame rate and the first picture refreshing frame rate. In an embodiment of the present invention, an absolute value of a second difference is smaller than an absolute value of the first difference, and the second difference is a difference between the second frame recording rate and the first frame refreshing rate. That is to say, in the embodiment of the present invention, the second screen recording frame rate adjusted by the mobile terminal is closer to the first screen refreshing frame rate than the first screen recording frame rate.
It should be noted that, in the embodiment of the present invention, the first preset threshold may be determined according to parameters such as performance (e.g., processor performance) of a hardware platform of the mobile terminal and an acceptable level of power consumption of the mobile terminal, which is not limited in the embodiment of the present invention.
In the embodiment of the present invention, after the mobile terminal obtains the first image refresh frame rate and the first screen recording frame rate, the mobile terminal may first obtain an absolute value of a difference between the first image refresh frame rate and the first screen recording frame rate (that is, an absolute value of the first difference), then determine whether the absolute value of the first difference is greater than or equal to a first preset threshold, and when the absolute value of the first difference is greater than or equal to the first preset threshold, the mobile terminal may adjust the first screen recording frame rate to the second screen recording frame rate. Because the absolute value of the difference between the second screen recording frame rate and the first picture refreshing frame rate (i.e. the absolute value of the second difference) is smaller than the absolute value of the first difference, the adjusted second screen recording frame rate of the mobile terminal is closer to the first picture refreshing frame rate, so that resources occupied by screen recording can be reduced as much as possible on the premise of ensuring the screen recording effect.
For example, in an embodiment of the present invention, it is assumed that the first preset threshold may be 10FPS, the first screen recording frame rate is 30FPS, the first screen refresh frame rate is 60FPS, and the second screen recording frame rate is 35 FPS. The mobile terminal can acquire that the absolute value of the difference between the first image refresh frame rate and the first screen recording frame rate is 30FPS, and then can judge that the absolute value of the difference between the first image refresh frame rate and the first screen recording frame rate (namely, the 30FPS) is greater than a first preset threshold value (namely, the 10FPS), at this moment, the mobile terminal can adjust the first screen recording frame rate (namely, the 30FPS) to a second screen recording frame rate (namely, the 35FPS), so that the adjustment of the screen recording frame rate by the mobile terminal is realized.
For example, in an embodiment of the present invention, it is assumed that the first preset threshold may be 10FPS, the first screen recording frame rate is 40FPS, the first screen refreshing frame rate is 25FPS, and the second screen recording frame rate is 35 FPS. The mobile terminal may obtain that an absolute value of a difference between the first image refresh frame rate and the first screen recording frame rate is 15FPS, and then may determine that the absolute value of the difference between the first image refresh frame rate and the first screen recording frame rate (i.e., the 15FPS) is greater than a first preset threshold (i.e., the 10FPS), at this time, the mobile terminal may adjust the first screen recording frame rate (i.e., the 40FPS) to a second screen recording frame rate (i.e., the 35FPS), so that the adjustment of the screen recording frame rate by the mobile terminal is achieved.
In the method for adjusting the screen recording frame rate provided by the embodiment of the invention, in the screen recording process of the mobile terminal, the frame rate of the screen recording of the currently displayed picture (namely, the first screen recording frame rate) by the mobile terminal can be dynamically adjusted according to the refreshing frame rate of the currently displayed picture (namely, the first screen recording frame rate), so that the adjusted screen recording frame rate of the mobile terminal (namely, the second screen recording frame rate) is closer to the first screen refreshing frame rate, and therefore, the mobile terminal can reduce resources occupied by the screen recording as much as possible on the premise of ensuring the screen recording effect by flexibly adjusting the screen recording frame rate.
Optionally, with reference to fig. 1 and as shown in fig. 2, before the mobile terminal adjusts the first screen recording frame rate to the second screen recording frame rate in step 11, the method for adjusting the screen recording frame rate according to the embodiment of the present invention may further include step 12 as described below. Step 11 can be specifically realized by step 11a described below.
And step 12, when the absolute value of the first difference is greater than or equal to a first preset threshold, the mobile terminal acquires a second screen recording frame rate.
And 11a, the mobile terminal adjusts the first screen recording frame rate to a second screen recording frame rate.
In the embodiment of the present invention, after the mobile terminal obtains the second screen recording frame rate, the mobile terminal may adjust the first screen recording frame rate to the second screen recording frame rate.
Optionally, in the embodiment of the present invention, the step 12 may be specifically implemented by the following step 12a, step 12b, or step 12 c.
And step 12a, the mobile terminal increases or decreases a second preset threshold value to the first screen recording frame rate to obtain a second screen recording frame rate.
It should be noted that, in the embodiment of the present invention, the second preset threshold may be determined according to parameters such as performance (for example, processor performance) of a hardware platform of the mobile terminal and an acceptable degree of power consumption of the mobile terminal, and the embodiment of the present invention is not limited specifically.
Optionally, in an embodiment of the present invention, the second preset threshold may be any one of 3FPS, 4FPS, 5FPS, … …, and 10 FPS. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, in an embodiment of the present invention, in a possible implementation manner, if the first screen recording frame rate is less than the first screen refreshing frame rate, and an absolute value of a difference between the first screen recording frame rate and the first screen refreshing frame rate is greater than or equal to a first preset threshold, the mobile terminal may increase a second preset threshold to the first screen recording frame rate to obtain a second screen recording frame rate.
In another possible implementation manner, if the first screen recording frame rate is greater than the first screen refreshing frame rate, and an absolute value of a difference between the first screen recording frame rate and the first screen refreshing frame rate is greater than or equal to a first preset threshold, the mobile terminal may decrease the first screen recording frame rate by a second preset threshold to obtain a second screen recording frame rate.
In the embodiment of the invention, when the absolute value of the difference value between the first screen recording frame rate and the first picture refreshing frame rate is greater than or equal to the first preset threshold, the mobile terminal increases or decreases the second preset threshold to the first screen recording frame rate, so that the mobile terminal can obtain the second screen recording frame rate, and the adjustment of the screen recording frame rate of the mobile terminal can be realized.
And step 12b, the mobile terminal acquires a second screen recording frame rate corresponding to the first image refreshing frame rate according to the first image refreshing frame rate and the first preset corresponding relation.
Wherein the first preset corresponding relationship is a corresponding relationship between the first frame refreshing rate and the second frame recording rate.
Optionally, in the method for adjusting a frame rate of a screen recording provided in the embodiment of the present invention, the mobile terminal may include a plurality of preset corresponding relationships, and each preset corresponding relationship may be a corresponding relationship between one screen refreshing frame rate and one screen recording frame rate. The first predetermined corresponding relationship is one of the predetermined corresponding relationships. Specifically, in actual implementation, which preset corresponding relationship is adopted may be determined according to actual use requirements, and the embodiment of the present invention is not limited.
Illustratively, table 1 is a preset corresponding relationship table between the frame rate for refreshing the image and the frame rate for recording the image. As shown in table 1, assuming that the first frame rate is 40FPS, according to the preset mapping table, when the first frame rate is 40FPS, the second frame rate corresponding to the first frame rate is 20 FPS.
Table 1 preset correspondence table between frame refreshing rate and frame recording rate
Frame rate for refreshing picture (Unit: FPS) Recording screen frame rate (Unit: FPS)
20 10
30 15
40 20
50 25
60 30
When the absolute value of the difference value between the first screen recording frame rate and the first picture refreshing frame rate is greater than or equal to a first preset threshold value, the mobile terminal can acquire a second screen recording frame rate corresponding to the first picture refreshing frame rate according to the first picture refreshing frame rate and the first preset corresponding relation, and therefore adjustment of the screen recording frame rate of the mobile terminal can be achieved.
And step 12c, the mobile terminal acquires a second screen recording frame rate corresponding to the first picture refreshing frame rate according to the first picture refreshing frame rate and a preset formula.
Wherein, the preset formula may be: a1 is k × S1, a1 indicates the second frame rate, S1 indicates the first frame rate, and k indicates a reference ratio between a preset frame rate and a preset frame rate.
It should be noted that, in the embodiment of the present invention, k in the preset formula may be determined according to parameters such as performance (e.g., processor performance) of a hardware platform of the mobile terminal and an acceptable level of power consumption of the mobile terminal, which is not limited in the embodiment of the present invention.
Optionally, an embodiment of the present invention provides a method for determining k in the preset formula, where the method includes the following steps a to e:
step a: the frame rate of frame refreshing is set to S.
Step b: and setting the screen recording frame rate corresponding to the picture refreshing frame rate S as K according to experience.
Step c: and acquiring the screen recording power consumption and the screen recording effect of the mobile terminal when the screen recording frame rate is K.
Step d: and adjusting the screen recording frame rate K according to the screen recording power consumption and the screen recording effect of the mobile terminal, and setting the adjusted screen recording frame rate A.
Step e: and d, repeatedly executing the step c and the step d until the screen recording power consumption and the screen recording effect of the mobile terminal meet the actual use requirements, and recording the picture refreshing frame rate and the screen recording frame rate corresponding to the picture refreshing frame rate at the moment. It is assumed that the frame rate of the recorded screen refresh is S, the frame rate of the screen recording is a, and k is a/S.
For example, assuming that the picture refresh frame rate value S is 60FPS, the screen recording frame rate value a is 30FPS, and the first picture refresh frame rate S1 is 50FPS, then k is equal to a/S equal to 30FPS/60FPS equal to 1/2, and the second screen recording frame rate a1 is:
A1=k*S1=1/2*50FPS=25FPS。
in the embodiment of the invention, when the absolute value of the difference value between the first screen recording frame rate and the first picture refreshing frame rate is greater than or equal to the first preset threshold, the mobile terminal can acquire the second screen recording frame rate corresponding to the first picture refreshing frame rate according to the first picture refreshing frame rate and the preset formula, so that the adjustment of the screen recording frame rate of the mobile terminal can be realized.
Optionally, with reference to fig. 1, as shown in fig. 3, in the embodiment of the present invention, before step 10, the method for adjusting the frame rate for recording a screen according to the embodiment of the present invention may further include the following steps 13 to 16.
And step 13, the mobile terminal detects the input of the user.
And 14, under the condition that the mobile terminal detects the first input of the user, the mobile terminal acquires a second picture refreshing frame rate.
The first input may be used to trigger the mobile terminal to start recording a screen, and the second frame rate is a frame rate at which the mobile terminal detects the first input of the user.
Optionally, in this embodiment of the present invention, when the user triggers the mobile terminal, the mobile terminal may detect the first input of the user, and acquire the refresh frame rate of the picture displayed by the mobile terminal when the first input of the user is detected (that is, the refresh frame rate of the second picture).
Optionally, in this embodiment of the present invention, the first input may be a click or a slide operation of a screen recording control on a currently displayed screen of the mobile terminal by a user, may also be a click or a slide operation of a prompt message (which is used to prompt the user to trigger the mobile terminal to record a screen on the currently displayed screen) on the screen displayed by the mobile terminal by the user, and may also be a press operation of a physical key of the mobile terminal by the user (for example, the user may press a volume key and a power-off key of the mobile terminal at the same time to trigger the screen recording of the mobile terminal). The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
And step 15, the mobile terminal acquires a first screen recording frame rate corresponding to the second image refreshing frame rate according to the second image refreshing frame rate and a second preset corresponding relation.
Wherein the second preset corresponding relationship is a corresponding relationship between the second frame refreshing rate and the first frame recording rate.
Optionally, in this embodiment of the present invention, the mobile terminal may include a plurality of preset corresponding relationships, each preset corresponding relationship may be a corresponding relationship between one screen refresh frame rate and one screen recording frame rate, and the second preset corresponding relationship is one preset corresponding relationship among the plurality of preset corresponding relationships. For the description of the multiple preset correspondences, reference may be specifically made to the related description of step 12 in the foregoing embodiment, and details are not described here again.
For example, with reference to table 1, assuming that the second screen refresh frame rate is 50FPS, according to the preset correspondence table shown in table 1, when the second screen refresh frame rate is 50FPS, the first screen recording frame rate corresponding to the second screen refresh frame rate is 25 FPS.
And step 16, the mobile terminal records the screen according to the first screen recording frame rate.
It can be understood that, in the embodiment of the present invention, after the user triggers the mobile terminal to record the screen, before the mobile terminal starts to record the screen, the mobile terminal may first obtain a screen recording frame rate (i.e., a first screen recording frame rate) corresponding to a refresh frame rate of a picture currently displayed by the mobile terminal (i.e., a picture displayed by the mobile terminal when the mobile terminal detects a first input of the user), and then start to record the screen according to the first screen recording frame rate, that is, after the user triggers the mobile terminal to record the screen, the mobile terminal records the screen according to the first screen recording frame rate. And in the screen recording process, the mobile terminal dynamically adjusts the screen recording frame rate of the mobile terminal according to the refreshing frame rate of the picture displayed by the mobile terminal in real time.
Certainly, in the embodiment of the present invention, after the user triggers the mobile terminal to record the screen, the mobile terminal may also start to record the screen according to the default initial screen recording frame rate in the mobile terminal, and then during the screen recording process, the mobile terminal dynamically adjusts the screen recording frame rate of the mobile terminal according to the refresh frame rate of the picture displayed by the mobile terminal in real time.
According to the screen recording frame rate adjusting method provided by the embodiment of the invention, the mobile terminal can acquire the refresh frame rate (the second screen refresh frame rate) of the picture displayed by the mobile terminal when the first input of the user is detected according to the input (the first input) that the mobile terminal starts to record the screen detected by the user, and further acquire the first screen recording frame rate corresponding to the second screen refresh frame rate, so that after the user triggers the screen recording of the mobile terminal, the mobile terminal starts to record the screen according to the first screen recording frame rate corresponding to the second screen refresh frame rate, and therefore, the mobile terminal can reduce resources occupied by screen recording as much as possible on the premise of ensuring the screen recording effect by flexibly adjusting the screen recording frame rate.
Optionally, with reference to fig. 1, as shown in fig. 4, in the embodiment of the present invention, after step 11, the method for adjusting the frame rate for recording a screen according to the embodiment of the present invention may further include step 17 described below.
And step 17, the mobile terminal records the screen according to the second screen recording frame rate.
In the embodiment of the invention, after the mobile terminal adjusts the first screen recording frame rate to the second screen recording frame rate, the mobile terminal can record the screen according to the adjusted screen recording frame rate (namely the second screen recording frame rate), so that the mobile terminal can reduce the resources occupied by the screen recording as much as possible on the premise of ensuring the screen recording effect as the mobile terminal can flexibly adjust the screen recording frame rate.
It should be noted that, in the embodiment of the present invention, the mobile terminal may circularly execute the screen recording frame rate adjusting method provided in the embodiment of the present invention, so as to dynamically adjust the screen recording frame rate in the screen recording process of the mobile terminal. In the above embodiments, the method for adjusting the frame rate of the screen recording once executed by the mobile terminal is taken as an example for exemplary explanation, and in particular, for the description of the method for adjusting the frame rate of the screen recording executed by the mobile terminal cyclically, reference may be made to the related description in the above embodiments, and details are not described here again.
In the embodiment of the invention, the screen recording frame rate can be closer to the refreshing frame rate of the display picture of the mobile terminal by adjusting the screen recording frame rate by the mobile terminal, so that the mobile terminal records the screen according to the adjusted screen recording frame rate (namely the second screen recording frame rate), and resources occupied by screen recording can be reduced as much as possible on the premise of ensuring the screen recording effect.
Optionally, in this embodiment of the present invention, before the mobile terminal adjusts the first screen recording frame rate to the second screen recording frame rate in step 11, the method for adjusting the screen recording frame rate according to this embodiment of the present invention may further include step 18 described below.
And step 18, the mobile terminal judges whether the current electric quantity is greater than or equal to a preset electric quantity threshold value.
The preset electric quantity threshold value can be the preset minimum electric quantity capable of supporting the mobile terminal to record the screen of the current picture.
For example, if the current electric quantity of the mobile terminal is greater than or equal to the preset electric quantity threshold, the mobile terminal may continue to adjust the first screen recording frame rate to the second screen recording frame rate according to step 11; and if the current electric quantity of the mobile terminal is smaller than the preset electric quantity threshold value, the mobile terminal stops recording the current picture.
In the embodiment of the invention, before the mobile terminal adjusts the first screen recording frame rate, the mobile terminal judges whether the current mobile electric quantity can support the mobile terminal to record the screen of the current picture in advance, so that the problem that the mobile terminal cannot normally work due to continuous screen recording under the condition that the current mobile electric quantity of the mobile terminal is too low can be avoided, and the working stability of the mobile terminal can be ensured.
As shown in fig. 5, an embodiment of the present invention provides a mobile terminal 500. The mobile terminal may comprise an obtaining module 501 and an adjusting module 502. The acquiring module 501 is configured to acquire a first image refreshing frame rate and a first screen recording frame rate, where the first image refreshing frame rate is a refreshing frame rate of an image currently displayed by the mobile terminal, and the first screen recording frame rate is a frame rate of a screen recording of the image currently displayed by the mobile terminal; an adjusting module 502, configured to adjust the first screen recording frame rate to a second screen recording frame rate when an absolute value of a first difference is greater than or equal to a first preset threshold, where the first difference is a difference between the first screen recording frame rate and the first picture refreshing frame rate acquired by the acquiring module 501, an absolute value of a second difference is smaller than an absolute value of the first difference, and the second difference is a difference between the second screen recording frame rate and the first picture refreshing frame rate.
Optionally, in this embodiment of the present invention, the obtaining module 501 is further configured to obtain a second screen recording frame rate before the adjusting module 502 adjusts the first screen recording frame rate to the second screen recording frame rate.
Optionally, in this embodiment of the present invention, the obtaining module 501 is further configured to increase or decrease a second preset threshold to the first screen recording frame rate before the adjusting module 502 adjusts the first screen recording frame rate to the second screen recording frame rate, so as to obtain the second screen recording frame rate.
Optionally, in this embodiment of the present invention, the obtaining module 501 is further configured to, before the adjusting module 502 adjusts the first screen recording frame rate to the second screen recording frame rate, obtain, according to the first screen refreshing frame rate and a first preset corresponding relationship, the second screen recording frame rate corresponding to the first screen refreshing frame rate, where the first preset corresponding relationship is a corresponding relationship between the first screen refreshing frame rate and the second screen recording frame rate.
Optionally, in this embodiment of the present invention, the obtaining module 501 is further configured to, before the adjusting module 502 adjusts the first screen recording frame rate to the second screen recording frame rate, obtain, according to the first screen refreshing frame rate and a preset formula, the second screen recording frame rate corresponding to the first screen refreshing frame rate; wherein, the preset formula is as follows: a1 is k × S1, a1 indicates the second screen recording frame rate, S1 indicates the first screen refresh frame rate, and k indicates a reference ratio between the preset screen recording frame rate and the screen refresh frame rate.
Optionally, with reference to fig. 5, as shown in fig. 6, in the embodiment of the present invention, the mobile terminal further includes a screen recording module 503. The obtaining module 501 is further configured to, before obtaining a first screen refreshing frame rate and a first screen recording frame rate, obtain a second screen refreshing frame rate when a first input of a user is detected, where the first input is used to trigger the mobile terminal to start screen recording, and the second screen refreshing frame rate is a refreshing frame rate of a screen displayed by the mobile terminal when the first input of the user is detected; the obtaining module 501 is further configured to obtain a first screen recording frame rate corresponding to the second image refreshing frame rate according to the second image refreshing frame rate and a second preset corresponding relationship, where the second preset corresponding relationship is a corresponding relationship between the second image refreshing frame rate and the first screen recording frame rate; the screen recording module 503 is configured to record a screen according to the first screen recording frame rate acquired by the acquiring module 501.
Optionally, in this embodiment of the present invention, the screen recording module 503 is further configured to, after the adjusting module 502 adjusts the first screen recording frame rate to the second screen recording frame rate, record a screen according to the second screen recording frame rate.
The mobile terminal provided by the embodiment of the present invention can implement each process implemented by the mobile terminal in the above method embodiments, and is not described herein again to avoid repetition.
The embodiment of the invention provides a mobile terminal, wherein in the process of recording a screen of the mobile terminal, the mobile terminal can dynamically adjust the frame rate of recording the screen of the currently displayed screen (namely, the first screen recording frame rate) by the mobile terminal according to the refresh frame rate of the currently displayed screen of the mobile terminal (namely, the first screen recording frame rate), so that the adjusted screen recording frame rate of the mobile terminal (namely, the second screen recording frame rate) is closer to the first screen refreshing frame rate, and therefore, the mobile terminal can reduce resources occupied by screen recording as much as possible on the premise of ensuring the screen recording effect by flexibly adjusting the screen recording frame rate.
Fig. 7 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention. As shown in fig. 7, the mobile terminal 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 7 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 110 is configured to obtain a first image refresh frame rate and a first screen recording frame rate, where the first image refresh frame rate is a refresh frame rate of an image currently displayed by the mobile terminal, and the first screen recording frame rate is a frame rate of a screen recording of the image currently displayed by the mobile terminal; and when the absolute value of a first difference value is greater than or equal to a first preset threshold value, adjusting the first screen recording frame rate to a second screen recording frame rate, wherein the first difference value is the difference value between the first screen recording frame rate and the first picture refreshing frame rate, the absolute value of a second difference value is smaller than the absolute value of the first difference value, and the second difference value is the difference value between the second screen recording frame rate and the first picture refreshing frame rate.
The embodiment of the invention provides a mobile terminal, wherein in the process of recording a screen of the mobile terminal, the mobile terminal can dynamically adjust the frame rate of recording the screen of the currently displayed screen (namely, the first screen recording frame rate) by the mobile terminal according to the refresh frame rate of the currently displayed screen of the mobile terminal (namely, the first screen recording frame rate), so that the adjusted screen recording frame rate of the mobile terminal (namely, the second screen recording frame rate) is closer to the first screen refreshing frame rate, and therefore, the mobile terminal can reduce resources occupied by screen recording as much as possible on the premise of ensuring the screen recording effect by flexibly adjusting the screen recording frame rate.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides wireless broadband internet access to the user through the network module 102, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 7, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 is an interface through which an external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; alternatively, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the mobile terminal 100 includes some functional modules that are not shown, and thus, the detailed description thereof is omitted.
Optionally, an embodiment of the present invention further provides a mobile terminal, which includes the processor 110 shown in fig. 7, the memory 109, and a computer program stored in the memory 109 and capable of running on the processor 110, where the computer program, when executed by the processor 110, implements each process implemented by the mobile terminal in the foregoing method embodiments, and can achieve the same technical effect, and details are not described here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process implemented by the mobile terminal in the foregoing method embodiments, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may include a read-only memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, and the like.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (12)

1. A method for adjusting a frame rate of a screen recording, the method comprising:
acquiring a first picture refreshing frame rate and a first screen recording frame rate according to a preset period, wherein the first picture refreshing frame rate is the refreshing frame rate of a picture currently displayed by a mobile terminal, the first screen recording frame rate is the frame rate of the mobile terminal for recording the screen of the currently displayed picture, and the preset period is less than or equal to the refreshing period of each frame of picture corresponding to the highest refreshing frame rate of the picture displayed by the mobile terminal;
when the absolute value of a first difference value is greater than or equal to a first preset threshold value, adjusting the first screen recording frame rate to a second screen recording frame rate, wherein the first difference value is a difference value between the first screen recording frame rate and the first picture refreshing frame rate, the absolute value of a second difference value is smaller than the absolute value of the first difference value, and the second difference value is a difference value between the second screen recording frame rate and the first picture refreshing frame rate.
2. The method of claim 1, wherein prior to adjusting the first screen capture frame rate to the second screen capture frame rate, the method further comprises:
and increasing or decreasing a second preset threshold value to the first screen recording frame rate to obtain a second screen recording frame rate.
3. The method of claim 1, wherein prior to adjusting the first screen capture frame rate to the second screen capture frame rate, the method further comprises:
and acquiring the second screen recording frame rate corresponding to the first picture refreshing frame rate according to the first picture refreshing frame rate and a first preset corresponding relation, wherein the first preset corresponding relation is the corresponding relation between the first picture refreshing frame rate and the second screen recording frame rate.
4. The method of claim 1, wherein prior to adjusting the first screen capture frame rate to the second screen capture frame rate, the method further comprises:
acquiring a second screen recording frame rate corresponding to the first picture refreshing frame rate according to the first picture refreshing frame rate and a preset formula;
wherein the preset formula is as follows: a1 is k × S1, a1 indicates the second screen recording frame rate, S1 indicates the first screen refresh frame rate, and k indicates a reference ratio between a preset screen recording frame rate and a screen refresh frame rate.
5. The method according to any one of claims 1 to 4, wherein before the obtaining the first screen refresh frame rate and the first screen recording frame rate, the method further comprises:
under the condition that a first input of a user is detected, a second picture refreshing frame rate is obtained, wherein the first input is used for triggering the mobile terminal to start recording, and the second picture refreshing frame rate is the refreshing frame rate of pictures displayed by the mobile terminal when the first input of the user is detected;
acquiring the first screen recording frame rate corresponding to the second image refreshing frame rate according to the second image refreshing frame rate and a second preset corresponding relationship, wherein the second preset corresponding relationship is the corresponding relationship between the second image refreshing frame rate and the first screen recording frame rate;
and recording the screen according to the first screen recording frame rate.
6. A mobile terminal, characterized in that the mobile terminal comprises:
the mobile terminal comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a first picture refreshing frame rate and a first screen recording frame rate according to a preset period, the first picture refreshing frame rate is a refreshing frame rate of a picture currently displayed by the mobile terminal, the first screen recording frame rate is a frame rate of the mobile terminal for screen recording of the picture currently displayed by the mobile terminal, and the preset period is less than or equal to a refreshing period of each frame of the picture corresponding to the highest refreshing frame rate of the picture displayed by the mobile terminal;
an adjusting module, configured to adjust the first screen recording frame rate to a second screen recording frame rate when an absolute value of a first difference is greater than or equal to a first preset threshold, where the first difference is a difference between the first screen recording frame rate and the first picture refreshing frame rate, which are acquired by the acquiring module, an absolute value of a second difference is smaller than an absolute value of the first difference, and the second difference is a difference between the second screen recording frame rate and the first picture refreshing frame rate.
7. The mobile terminal of claim 6,
the obtaining module is further configured to increase or decrease a second preset threshold value for the first screen recording frame rate before the adjusting module adjusts the first screen recording frame rate to the second screen recording frame rate, so as to obtain the second screen recording frame rate.
8. The mobile terminal of claim 6,
the obtaining module is further configured to obtain, before the adjusting module adjusts the first screen recording frame rate to the second screen recording frame rate, the second screen recording frame rate corresponding to the first screen refreshing frame rate according to the first screen refreshing frame rate and a first preset corresponding relationship, where the first preset corresponding relationship is a corresponding relationship between the first screen refreshing frame rate and the second screen recording frame rate.
9. The mobile terminal of claim 6,
the obtaining module is further configured to obtain, before the adjusting module adjusts the first screen recording frame rate to the second screen recording frame rate, the second screen recording frame rate corresponding to the first screen refreshing frame rate according to the first screen refreshing frame rate and a preset formula;
wherein the preset formula is as follows: a1 is k × S1, a1 indicates the second screen recording frame rate, S1 indicates the first screen refresh frame rate, and k indicates a reference ratio between a preset screen recording frame rate and a screen refresh frame rate.
10. The mobile terminal according to any of claims 6 to 9, wherein the mobile terminal further comprises a screen recording module;
the obtaining module is further configured to, before obtaining the first picture refresh frame rate and the first screen recording frame rate, obtain a second picture refresh frame rate when a first input of a user is detected, where the first input is used to trigger the mobile terminal to start screen recording, and the second picture refresh frame rate is a refresh frame rate of a picture displayed by the mobile terminal when the first input of the user is detected;
the obtaining module is further configured to obtain the first screen recording frame rate corresponding to the second image refreshing frame rate according to the second image refreshing frame rate and a second preset corresponding relationship, where the second preset corresponding relationship is a corresponding relationship between the second image refreshing frame rate and the first screen recording frame rate;
and the screen recording module is used for recording the screen according to the first screen recording frame rate acquired by the acquisition module.
11. A mobile terminal comprising a processor, a memory, and a computer program stored on the memory and operable on the processor, the computer program, when executed by the processor, implementing the steps of the screen recording frame rate adjustment method according to any one of claims 1 to 5.
12. A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the screen recording frame rate adjustment method according to any one of claims 1 to 5.
CN201810257866.9A 2018-03-27 2018-03-27 Screen recording frame rate adjusting method and mobile terminal Active CN108600668B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810257866.9A CN108600668B (en) 2018-03-27 2018-03-27 Screen recording frame rate adjusting method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810257866.9A CN108600668B (en) 2018-03-27 2018-03-27 Screen recording frame rate adjusting method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108600668A CN108600668A (en) 2018-09-28
CN108600668B true CN108600668B (en) 2020-09-29

Family

ID=63624664

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810257866.9A Active CN108600668B (en) 2018-03-27 2018-03-27 Screen recording frame rate adjusting method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108600668B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109640168B (en) 2018-11-27 2020-07-24 Oppo广东移动通信有限公司 Video processing method, video processing device, electronic equipment and computer readable medium
CN109584652A (en) * 2018-12-29 2019-04-05 武汉易测云网络科技有限公司 A kind of building practitioner on-line study system
CN110401870B (en) * 2019-07-30 2022-12-06 安徽天行云视科技有限公司 Method for adjusting screen recording frame rate, terminal and computer readable storage medium
WO2021056364A1 (en) * 2019-09-26 2021-04-01 Qualcomm Incorporated Methods and apparatus to facilitate frame per second rate switching via touch event signals
CN112199147A (en) * 2020-10-14 2021-01-08 上海众链科技有限公司 Screen recording method and system applied to intelligent terminal and computer readable storage medium
CN112672201B (en) * 2020-12-18 2023-12-12 努比亚技术有限公司 Screen recording frame rate control method, equipment and computer readable storage medium
TWI785785B (en) * 2021-09-09 2022-12-01 華碩電腦股份有限公司 Electronic device and power management method thereof
CN114442792A (en) * 2022-02-09 2022-05-06 北京小米移动软件有限公司 Method and device for adjusting operating frequency of processor and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101536491A (en) * 2006-10-30 2009-09-16 索尼株式会社 Imaging device and imaging method
CN103108169A (en) * 2013-02-27 2013-05-15 Tcl通讯(宁波)有限公司 Mobile terminal which display video frame rate in real time and achieving method thereof
WO2017049221A1 (en) * 2015-09-16 2017-03-23 Shotblock Technologies Pty Ltd. System and method of pixel manipulation and screen display disruption
CN106658119A (en) * 2017-01-10 2017-05-10 网易(杭州)网络有限公司 Video application testing method and apparatus
CN107835452A (en) * 2017-10-17 2018-03-23 广东欧珀移动通信有限公司 Data processing method and related product

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6929548B2 (en) * 2002-04-23 2005-08-16 Xiaoling Wang Apparatus and a method for more realistic shooting video games on computers or similar devices
US20090305782A1 (en) * 2008-06-10 2009-12-10 Oberg Gregory Keith Double render processing for handheld video game device
JP2012009984A (en) * 2010-06-23 2012-01-12 Nikon Corp Imaging apparatus
CN104679649B (en) * 2013-11-29 2018-02-27 腾讯科技(深圳)有限公司 A kind of software fluency method of testing and test device
CN105763926A (en) * 2014-12-18 2016-07-13 中兴通讯股份有限公司 Screen recording method and device
CN104580973B (en) * 2014-12-30 2018-03-23 中国科学院深圳先进技术研究院 A kind of recording, back method and the device of virtual surgery simulation process
CN107463481A (en) * 2017-07-26 2017-12-12 努比亚技术有限公司 Data interactive method, mobile terminal and storage medium
CN107368424A (en) * 2017-08-16 2017-11-21 上海斐讯数据通信技术有限公司 A kind of test application program slides the method and system of frame per second

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101536491A (en) * 2006-10-30 2009-09-16 索尼株式会社 Imaging device and imaging method
CN103108169A (en) * 2013-02-27 2013-05-15 Tcl通讯(宁波)有限公司 Mobile terminal which display video frame rate in real time and achieving method thereof
WO2017049221A1 (en) * 2015-09-16 2017-03-23 Shotblock Technologies Pty Ltd. System and method of pixel manipulation and screen display disruption
CN106658119A (en) * 2017-01-10 2017-05-10 网易(杭州)网络有限公司 Video application testing method and apparatus
CN107835452A (en) * 2017-10-17 2018-03-23 广东欧珀移动通信有限公司 Data processing method and related product

Also Published As

Publication number Publication date
CN108600668A (en) 2018-09-28

Similar Documents

Publication Publication Date Title
CN108600668B (en) Screen recording frame rate adjusting method and mobile terminal
CN107977144B (en) Screen capture processing method and mobile terminal
CN108135033B (en) Bluetooth connection method and mobile terminal
CN108362304B (en) Data processing method and mobile terminal
CN109739394B (en) SAR value processing method and mobile terminal
CN110062273B (en) Screenshot method and mobile terminal
CN111147919A (en) Play adjustment method, electronic equipment and computer readable storage medium
CN110855921B (en) Video recording control method and electronic equipment
CN109618218B (en) Video processing method and mobile terminal
CN108848267B (en) Audio playing method and mobile terminal
CN108718395B (en) Segmented video recording method and automobile data recorder
CN111401463A (en) Method for outputting detection result, electronic device, and medium
CN110062281B (en) Play progress adjusting method and terminal equipment thereof
CN108366171B (en) Temperature rise control method and mobile terminal
CN111050214A (en) Video playing method and electronic equipment
CN108093119B (en) Strange incoming call number marking method and mobile terminal
CN107734269B (en) Image processing method and mobile terminal
CN108449560B (en) Video recording method and terminal
CN109450508B (en) Antenna determination method and device and mobile terminal
CN108536272B (en) Method for adjusting frame rate of application program and mobile terminal
CN109005377B (en) Video processing method and terminal equipment
CN111314639A (en) Video recording method and electronic equipment
CN111694536A (en) Audio control method, electronic device and computer-readable storage medium
CN108737762B (en) Video call method and terminal equipment
CN109067429B (en) Control method and terminal 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
GR01 Patent grant
GR01 Patent grant