WO2022242213A1 - 一种刷新率调整方法和电子设备 - Google Patents

一种刷新率调整方法和电子设备 Download PDF

Info

Publication number
WO2022242213A1
WO2022242213A1 PCT/CN2022/072608 CN2022072608W WO2022242213A1 WO 2022242213 A1 WO2022242213 A1 WO 2022242213A1 CN 2022072608 W CN2022072608 W CN 2022072608W WO 2022242213 A1 WO2022242213 A1 WO 2022242213A1
Authority
WO
WIPO (PCT)
Prior art keywords
video source
source file
frame rate
electronic device
refresh rate
Prior art date
Application number
PCT/CN2022/072608
Other languages
English (en)
French (fr)
Other versions
WO2022242213A9 (zh
Inventor
赵和平
Original Assignee
荣耀终端有限公司
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 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Priority to CN202280003539.5A priority Critical patent/CN115552916B/zh
Priority to JP2022573569A priority patent/JP2023529589A/ja
Priority to EP22793369.4A priority patent/EP4131982A4/en
Publication of WO2022242213A1 publication Critical patent/WO2022242213A1/zh
Publication of WO2022242213A9 publication Critical patent/WO2022242213A9/zh

Links

Images

Classifications

    • 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, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 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, rendering scenes according to MPEG-4 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • H04N21/41407Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42203Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS] sound input device, e.g. microphone
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • 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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4436Power management, e.g. shutting down unused components of the receiver
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0613The adjustment depending on the type of the information to be displayed
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/04Changes in size, position or resolution of an image
    • G09G2340/0407Resolution change, inclusive of the use of different resolutions for different screen areas
    • G09G2340/0435Change or adaptation of the frame rate of the video stream
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2354/00Aspects of interface with display user
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/003Details of a display terminal, the details relating to the control arrangement of the display terminal and to the interfaces thereto
    • G09G5/005Adapting incoming signals to the display format of the display terminal

Definitions

  • the present application relates to the field of video display, in particular to a refresh rate adjustment method and electronic equipment.
  • the terminal device At present, most of the applications installed in the terminal device integrate the video playing function, and allow the user to perform a large number of interactive operations during the video playing process.
  • the terminal when an application is used on a terminal device to play video, the terminal usually uses a larger fixed refresh rate to play video source files with different frame rates, so as to be compatible with video source files with different frame rates.
  • the terminal when the frame rate of the video source is higher than the frame rate corresponding to the refresh rate of the terminal display screen, the terminal will lose frames during video playback, and the user experience is not good; In the case of the frame rate corresponding to the refresh rate of the display screen, invalid frame refreshes will occur, which will increase the energy consumption of the terminal.
  • the refresh rate of the display of the terminal is low, once the user performs an interactive operation while watching the video, the frame rate corresponding to the refresh rate of the display screen may be lower than the frame rate of the animation effect of the interactive operation, making the user noticeably Stuck and stopped.
  • the technical means of using a fixed refresh rate to play video source files with different frame rates has poor user experience.
  • the present application provides a refresh rate adjustment method and an electronic device, which can reasonably adjust the refresh rate of a display screen of the electronic device during video playback, and improve user experience.
  • the present application provides a method for adjusting a refresh rate, and the method can be applied to an electronic device.
  • the electronic device may receive a first operation for triggering the electronic device to play at least one video source file, and in response to the first operation, play at least one video source file at a first refresh rate, and at the same time acquire at least one video source file.
  • the playing state includes playing or stopping, and the first refresh rate is less than or equal to the maximum refresh rate of the display screen of the electronic device.
  • the electronic device uses a second refresh rate to play at least one video source file; the second refresh rate is less than or It is equal to the maximum refresh rate of the display screen of the electronic device, and the frame rate corresponding to the second refresh rate is within a preset range of the frame rate required by the animation effect corresponding to the interactive operation.
  • the electronic device does not receive another interactive operation within the preset period of time since the electronic device receives the first operation or the last interactive operation, and there is a video source file being played in at least one video source file, if the first frame rate greater than the frame rate corresponding to the third refresh rate, the electronic device uses the third refresh rate to play at least one video source file; if the first frame rate is less than or equal to the frame rate corresponding to the third refresh rate, the electronic device uses the first frame rate corresponding to Play at least one video source file at a refresh rate; wherein, the third refresh rate is less than or equal to the maximum refresh rate of the display screen of the electronic device.
  • the first refresh rate, the second refresh rate and the third refresh rate can be pre-set in the electronic device after being obtained according to the actual investigation results, or can provide multiple setting ways for the user to set.
  • the electronic device will combine the first frame rate of at least one currently played video source file and the playback status of each video source file, and whether three user operations are received.
  • Factors to adjust the refresh rate of the display Among these three factors, the frame rate of the video source file determines the appropriate refresh rate it needs when being played, and whether the video source file is being played directly determines whether there is a need to refresh the display screen
  • the animation effect required by the interactive operation generated by the user requires a higher refresh rate to display without lagging. Therefore, this application can reasonably adjust the playback video after combining these three factors.
  • the refresh rate of the display screen when the source file is used makes the refresh rate of the display screen of the electronic device closer to or equal to the refresh rate required during the playback of the video source file; and whether the playback of the video source file is smooth depends on the video source file.
  • the refresh rate required during playback is determined by the similarity to the refresh rate of the display screen. The closer the two are, the smoother the playback process will be, the more power will be saved, and the user experience will be better. Therefore, in summary, the technical solution provided by the present application can improve the user experience of an electronic device when playing a video source file.
  • the method further includes: if no interactive operation is received again within a preset period of time since the electronic device receives the first operation or the last interactive operation, and at least one video source If there is no video source file being played in the file, the refresh rate of the display screen of the electronic device is adjusted according to the display content sent by the electronic device.
  • the electronic device does not receive another interactive operation within a preset period of time after receiving the user's operation on the electronic device last time (the first operation or the last interactive operation), and all video source files stop playing, then It indicates that the user may no longer perform interactive operations, so the refresh rate of the display screen can no longer be the frame rate used to match the animation effect corresponding to the interactive operation, and the display screen does not need to play video source files anymore. Therefore, at this time, the electronic device only needs to refresh the display screen when there is content to be displayed (display content), and does not refresh once there is no content to be displayed. In this case, the refresh rate of the display screen can be made to be 0, the energy consumption of the electronic device can be reduced, and user experience can be improved.
  • the The first operation is considered as an interactive operation, and the first refresh rate is set to be the same as the second refresh rate. In this way, the action of switching the refresh rate is reduced, and the user is prevented from being aware of the Some discomfort caused by changes in the refresh rate improves the user experience.
  • the acquisition of the first frame rate of the at least one video source file may include: the electronic device acquires the frame rate of each video source file in the at least one video source file; The device determines the first frame rate of the at least one video source file according to the frame rates of all the video source files in the at least one video source file according to preset rules.
  • the preset rule may be: use the largest frame rate among the frame rates of all video source files in at least one video source file as the second frame rate, or the electronic device uses the maximum frame rate of all video source files in at least one video source file The average value of the frame rate of the video source file is used as the second frame rate, or the electronic device receives the user's selection operation on the frame rate of all video source files in at least one video source file, and uses the frame rate selected by the user as the second frame rate; according to the Second frame rate, determine the first frame rate.
  • the first frame rate of at least one video source file currently played by the electronic device is determined based on certain rules, and the first frame rate represents the frame rate of all video source files in the at least one video source file.
  • the refresh rate of the display screen determined by the device according to the first frame rate can match all video source files to a certain extent, so that the viewing effect of the user is better.
  • determining the first frame rate according to the second frame rate includes: if the second frame rate is within the preset frame rate range, using the second frame rate as the first frame rate.
  • the minimum value in the preset frame rate range may be the frame rate of the video source file when the human eye can detect obvious picture switching (stuck) when the video source file is played
  • the maximum value in the preset frame rate range may be Preset maximum frame rate.
  • the preset maximum frame rate may be greater than the frame rate corresponding to the maximum refresh rate of the display screen of the electronic device.
  • the second frame rate is preliminarily determined according to the frame rates of all video source files in at least one video source file
  • the second frame rate when the second frame rate is within a suitable frame rate range (preset frame rate range), the The second frame rate will be determined as the first frame rate, thus ensuring that the electronic device can play the video source file smoothly and ensure the user's viewing experience (no stuttering) during playback.
  • the final second frame rate is not within the preset frame rate range within, that is, the second frame rate does not exist, or is greater than the preset maximum frame rate, or is lower than the frame rate of the video source file when the human eye can detect obvious picture switching (stuck) when the video source file is playing, and these situations are all It indicates that the second frame rate is an abnormal frame rate, so at this time, the frame rate corresponding to the third refresh rate can be used as the first frame rate, thereby ensuring smooth playback of the video source file by the electronic device.
  • the acquiring the frame rate of each video source file in the at least one video source file by the electronic device may include: for each video source file in the at least one video source file, the electronic device Perform the following operations to obtain the frame rate of each video source file in at least one video source file; in the case that the attribute information of the first video source file contains frame rate information, the electronic device can obtain the attribute of the first video source file The frame rate in the message.
  • the frame rate of each video source file in at least one video source file can be quickly obtained, providing data support for subsequent adjustment of the refresh rate.
  • the acquiring the frame rate of each video source file in the at least one video source file by the electronic device may include: for each video source file in the at least one video source file, the electronic device Perform the following operations to obtain the frame rate of each video source file in at least one video source file; if the attribute information of the first video source file does not contain frame rate information, the electronic device can search for the first video from the search platform The source file is used to acquire the frame rate of the first video source file from the search platform.
  • the frame rate of each video source file in at least one video source file can be quickly obtained to provide data support for the subsequent adjustment of the refresh rate.
  • the above-mentioned electronic device obtains the frame rate of each video source file in at least one video source file, which may include: the electronic device targets at least one video source file Each video source file in the source file performs the following operations to obtain the frame rate of each video source file in at least one video source file; when the type of the first video source file is a preset type, the electronic device according to the first The characteristic parameter of the video source file is to calculate the frame rate of the first video source file; the characteristic parameter includes size, duration and resolution; the first video source file is any one of at least one video source file.
  • the resolution coefficient is determined according to the resolution of different specifications, for example, the resolution coefficient corresponding to the resolution 720P is 50, the resolution coefficient corresponding to the resolution 480P is 5, and the resolution coefficient corresponding to the resolution 1080P is 75.
  • the second refresh rate and the third refresh rate are pre-configured refresh rates; or, the second refresh rate and the third refresh rate are set by the electronic device in response to the user's setting operation of.
  • the pre-configuration can be based on the actual investigation results of a large number of videos and electronic devices, so that the electronic device is playing the video source file at the second refresh rate or the third refresh rate, ensuring that the user of the electronic device Use experience.
  • the second refresh rate and the third refresh rate can be preconfigured to be above 60 frames because the frame rate of the game video is relatively high; another example is a mobile phone that focuses on taking pictures.
  • the second refresh rate and the third refresh rate can be pre-configured to about 60 frames or even less.
  • the user may set the second refresh rate and the third refresh rate required by the user in any feasible interaction scenario.
  • the user can set the video source file through the setting menu of the electronic device itself before the video source file is triggered to play, or it can be set in the setting menu of the application corresponding to the video source file, or it can be set by the electronic device when the video source file is triggered to play.
  • a pop-up box is displayed to indicate the user's setting, or the user may set it through a voice command. In this way, the needs of users can be guaranteed, and video source files can be played with different refresh rates according to the needs of different users, so as to improve user experience.
  • the frame rate corresponding to the second refresh rate is the interactive The maximum value within the preset range of the frame rate required to operate the corresponding animation effect.
  • the frame rate of the animation effect corresponding to the interactive operation is often higher than the frame rate of the video source file, so in this application, the third refresh rate is greater than the second refresh rate Rate.
  • the present application provides an electronic device, which includes a display screen, a memory, and one or more processors; the display screen, the memory and the processor are coupled; wherein, the memory stores computer program code, computer program code It includes computer instructions, and when the computer instructions are executed by the processor, the electronic device is made to execute the refresh rate adjustment method provided in the first aspect and any possible design manner thereof.
  • the present application provides an electronic device, which includes a display screen, a memory, and one or more processors; the display screen, the memory and the processor are coupled; wherein, the memory stores computer program code, computer program code Including computer instructions, when the computer instructions are executed by the processor, the electronic device performs the following steps: the electronic device receives a first operation, and the first operation is used to trigger the electronic device to play at least one video source file; the processor responds to the first operation, Control the display screen to play at least one video source file with the first refresh rate, and obtain the first frame rate of at least one video source file, and the playback status of each video source file in the at least one video source file, the playback status includes being played or Stop playing; the first refresh rate is less than or equal to the maximum refresh rate of the display screen of the electronic device; when the electronic device receives the user's interactive operation on the playback interface of any one of the video source files in at least one video source file, the processor Adjust the refresh rate of the display screen of the electronic device to the second
  • the electronic device when the computer instruction is executed by the processor, the electronic device further executes the following steps: If no interactive operation is received again, and there is no video source file being played in at least one video source file, the processor adjusts the refresh rate of the display screen of the electronic device according to the display content sent by the electronic device.
  • the first refresh rate is equal to the second refresh rate.
  • the electronic device when the computer instruction is executed by the processor, the electronic device is made to specifically perform the following steps: the processor obtains the frame rate of each video source file in at least one video source file; The processor uses the maximum frame rate among the frame rates of all video source files in at least one video source file as the second frame rate, or the processor uses the average value of the frame rates of all video source files in at least one video source file as the second frame rate Two frame rates, or, the processor receives the user's selection operation on the frame rates of all video source files in at least one video source file, and uses the frame rate selected by the user as the second frame rate; the processor determines the second frame rate according to the second frame rate One frame rate.
  • the electronic device when the computer instruction is executed by the processor, the electronic device specifically executes the following steps: if the second frame rate is within the preset frame rate range, the processor sets the second The second frame rate is used as the first frame rate.
  • the electronic device when the computer instructions are executed by the processor, the electronic device further specifically performs the following steps: if the second frame rate is not within the preset frame rate range, the processor will The frame rate corresponding to the third refresh rate is used as the first frame rate.
  • the electronic device when the computer instruction is executed by the processor, the electronic device is caused to specifically perform the following steps: the processor performs the following operations for each video source file in the at least one video source file, To obtain the frame rate of each video source file in at least one video source file: the processor obtains the frame rate in the attribute information of the first video source file; or, the processor searches the first video source file from the search platform to obtain The platform obtains the frame rate of the first video source file; or, the processor calculates the frame rate of the first video source file according to the characteristic parameters of the first video source file; the characteristic parameters include size, duration and resolution; the first video source file Any one of at least one video source file.
  • the second refresh rate and the third refresh rate are pre-configured refresh rates; or, the second refresh rate and the third refresh rate are set by the electronic device in response to the user's setting operation set.
  • the frame rate corresponding to the second refresh rate is the interactive The maximum value within the preset range of the frame rate required to operate the corresponding animation effect.
  • the third refresh rate is greater than the second refresh rate.
  • the present application provides a computer-readable storage medium, the computer-readable storage medium includes computer instructions, and when the computer instructions are run on an electronic device, the electronic device executes the first aspect and any one thereof.
  • the refresh rate adjustment method provided by the possible design method.
  • the present application provides a computer program product, which, when running on a computer, causes the computer to execute the refresh rate adjustment method provided in the first aspect and any possible design thereof.
  • the computer may be the aforementioned electronic device.
  • FIG. 1 is a schematic diagram of the principle of a refresh rate adjustment method provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a method for adjusting a refresh rate provided in an embodiment of the present application
  • FIG. 4 is a schematic diagram of a video playing scene provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of another video playing scene provided by the embodiment of the present application.
  • FIG. 6 is a schematic diagram of another video playing scene provided by the embodiment of the present application.
  • FIG. 7 is a schematic diagram of another video playing scene provided by the embodiment of the present application.
  • FIG. 8 is a schematic flowchart of another refresh rate adjustment method provided by the embodiment of the present application.
  • FIG. 9 is a schematic flowchart of another refresh rate adjustment method provided by the embodiment of the present application.
  • FIG. 10 is a schematic diagram of a selection scene of a third refresh rate provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of another third refresh rate selection scenario provided by the embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of another electronic device provided by an embodiment of the present application.
  • first and second are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as “first” and “second” may explicitly or implicitly include one or more of these features. In the description of this embodiment, unless otherwise specified, “plurality” means two or more.
  • Frame rate that is, the frame rate, which is the frequency (rate) at which bitmap images in units of frames appear continuously on the display screen.
  • Frame rate may also be called frame frequency and is expressed in hertz (Hz).
  • Refresh rate that is, the refresh rate, which refers to the speed at which the screen refreshes.
  • the refresh rate generally mentioned usually refers to the vertical refresh rate.
  • the vertical refresh rate indicates how many times the screen image is redrawn per second, that is, the number of screen refreshes per second, in Hz (Hertz).
  • the higher the refresh rate the better, the more stable the image, the more natural and clear the image display, and the less impact on the eyes.
  • the lower the refresh rate the more flickering and jittery the image will be, and the faster your eyes will tire.
  • the terminal device With the continuous development of the performance of smart terminal devices, most applications currently installed in terminal devices are integrated with video playback functions, and allow users to perform a large number of interactive operations during video playback. For example, when a user is using a short video application to watch a live video, he can send gifts to the anchor or swipe the barrage through operations on the touch screen.
  • the terminal device since the sources of the video source files played by the terminal device are very extensive, the frame rates of different video source files are also different. Therefore, the terminal device cannot guarantee to use the refresh rate player content corresponding to the frame rate of each video source file.
  • the terminal device In order to solve this problem, the terminal device generally adopts a larger fixed refresh rate to play video source files with different frame rates. For example, any video source file is played with a refresh rate of 60hz.
  • the present application provides a refresh rate adjustment method, which can be applied to electronic devices.
  • the electronic device can play video source files (such as at least one video source file) in response to the user's operation, and then can determine the first frame rate of at least one video source file and the playback status of each video source file .
  • the electronic device may determine what refresh rate to use to play the at least one video source file based on whether the interactive operation is received and the aforementioned acquired related data (such as the first frame rate and the playback state). In this way, since the refresh rate is determined by combining various factors that can affect user experience; therefore, using this refresh rate to play video files can bring users a better visual experience.
  • the electronic device in the embodiment of the present application can be a mobile phone, a tablet computer, a wearable device (such as a smart watch or a smart bracelet), an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, and a cellular Phones, personal digital assistants (personal digital assistant, PDA), augmented reality (augmented reality, AR) ⁇ virtual reality (virtual reality, VR) equipment and other equipment that can play video, the embodiment of the present application does not make any reference to the specific form of the electronic equipment. special restrictions.
  • power management module 141 battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor neural network processor (neural-network processing unit, NPU), and/or Micro control unit (micro controller unit, MCU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor
  • AP application processor
  • modem processor graphics processing unit
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU baseband processor neural network processor
  • MCU Micro control unit
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • the interface can include integrated circuit (inter-integrated circuit, I2C) interface, serial peripheral interface (serial peripheral interface, SPI), integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, pulse code modulation (pulse code modulation) , PCM) interface, universal asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input/output (general-purpose input/output, GPIO) interface, A subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • SPI serial peripheral interface
  • I2S integrated circuit built-in audio
  • I2S integrated circuit sound
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous receiver/transmitter
  • mobile industry processor interface mobile industry processor interface
  • MIPI mobile industry processor interface
  • the interface connection relationship between the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is configured to receive a charging input from a charger.
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
  • the power management module 141 and the charging management module 140 may also be set in the same device.
  • the wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 .
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (wireless local area networks, WLAN) (such as Wi-Fi network), Bluetooth (blue tooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), NFC, infrared technology (infrared, IR) and other wireless communication solutions.
  • wireless local area networks wireless local area networks, WLAN
  • Wi-Fi network such as Wi-Fi network
  • Bluetooth blue tooth, BT
  • global navigation satellite system global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • NFC infrared technology
  • infrared technology infrared, IR
  • the electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the display screen 194 is used to display images, videos and the like.
  • the display can be a touch screen.
  • the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
  • the electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
  • the ISP is used for processing the data fed back by the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • the NPU is a neural-network (NN) computing processor.
  • NPU neural-network
  • Applications such as intelligent cognition of the electronic device 100 can be realized through the NPU, such as: recognition of the film state, image restoration, image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 .
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
  • the storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • Touch sensor also known as "touch panel (TP)”.
  • the touch sensor can be arranged on the display screen 194, and the touch sensor and the display screen 194 form a touch screen, also called “touch screen”.
  • the touch sensor is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194 .
  • the touch sensor can also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
  • the keys 190 include a power key, a volume key and the like.
  • the motor 191 can generate a vibrating reminder.
  • the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used for connecting a SIM card.
  • An embodiment of the present application provides a method for adjusting a refresh rate, which can be applied to an electronic device with a display screen.
  • the method for adjusting the refresh rate may include 301-310:
  • the mobile phone receives a first operation, and in response to the first operation, plays at least one video source file at a first refresh rate.
  • the first operation is used to trigger the mobile phone to play at least one video source file, and the first refresh rate is less than or equal to the maximum refresh rate of the display screen of the electronic device.
  • the first refresh rate can be pre-set in the mobile phone based on the experience value obtained in advance, or it can be set by the user (set through various interactive methods, for details, please refer to the related expressions of the subsequent setting methods of the second refresh rate and the third refresh rate ).
  • the first operation may be clicking a video in a certain application on the touch screen of the mobile phone, or the user may wake up the smart assistant of the mobile phone by voice and issue a voice command to open the video in a certain application, or it may be other in any possible way.
  • the mobile phone displays a preview interface of application A as shown in (a) in FIG. 4 , and the preview interface may include multiple video thumbnails.
  • the first operation may be a user's click operation on video B in the preview interface.
  • the mobile phone uses the first refresh rate to play video B, as shown in (b) in FIG. 4 .
  • the first refresh rate may be 60Hz.
  • the first operation may be a voice command spoken by the user to the mobile phone for instructing to play the video source file.
  • the mobile phone can first use its own microphone to receive the smart assistant wake-up command spoken by the user, such as "Hello, YOYO", and then the mobile phone will display the information shown in (b) in Figure 5. to display the smart assistant interface.
  • the smart assistant of the mobile phone will call the microphone of the mobile phone itself to obtain and recognize the user's next voice command, such as "use A application to open video B", and display it on the smart assistant interface .
  • the smart assistant of the mobile phone will jump to the video playback interface of application A and play video B at the first refresh rate as shown in (d) in Figure 5 .
  • the wake-up command of the voice assistant can be determined according to the design of different mobile phones, and the voice command input/spoken by the user can also be any voice command that can indicate the need to use the application A to open the video B.
  • the first operation may be a click operation on a video request receiving icon.
  • the mobile phone in a communication group between certain social software groups, if a certain group member sends a video request to other group members, the mobile phone will respond to the request and display a video on the interface A video request rejection icon C1 and a video request acceptance icon C2 are displayed on . Then, as shown in (b) in Fig. 6, the mobile phone can respond to the click operation for receiving the video request icon C2, and adopt the first refresh rate to display the video call interfaces (C3, C4, C5, C6) and play the video screen.
  • the first operation may be an operation of clicking a video call request icon sent by a friend when the user is watching a certain video source file.
  • the mobile phone plays video A for users to watch through an application, it displays a video call request icon D on the interface in response to a video call request sent by other users' mobile phones. Then, if the user clicks on the video call request icon D, the mobile phone can respond to the user's click operation on the video call request icon D, as shown in (b) in Figure 7, the first refresh rate is used to display the icon in a small screen.
  • Video call interface E it should be noted that when the video A is played by the mobile phone and the mobile phone does not receive a video request, the mobile phone needs to determine the refresh rate for playing the video A according to the refresh rate adjustment method provided in the embodiment of the present application.
  • the mobile phone obtains the first frame rate of at least one video source file and the playback status of each video source file in the at least one video source file.
  • the playing status includes playing or stopping playing, and stopping playing may include pausing or ending playing.
  • the first frame rate is used in this application to characterize the overall frame rate of all video source files in the at least one video source file, which may be specifically determined by the frame rate of each video source file in the at least one video source file.
  • step 302 may specifically include 3021-3024:
  • the mobile phone obtains the playback status of each video source file in at least one video source file.
  • the mobile phone can determine the playing state of each video source file by monitoring the relevant state parameters of the application playing the video source file or any other feasible way.
  • the present application does not make specific limitations.
  • the mobile phone obtains the frame rate of each video source file in at least one video source file.
  • 3022 can be implemented in the following ways:
  • the first method the mobile phone performs the following operations for each video source file in at least one video source file, so as to obtain the frame rate of each video source file in at least one video source file: the attribute information of the first video source file contains In the case of the frame rate information, the mobile phone may acquire the frame rate in the attribute information of the first video source file.
  • the first video source file may be any video source file in at least one video source file.
  • a method for the mobile phone to acquire the frame rate of each video source file in at least one video source file is introduced. The same applies to the subsequent first video source files.
  • the mobile phone can quickly obtain the frame rate of each video source file in at least one video source file, and provide data support for subsequent adjustment of the refresh rate.
  • the second method the mobile phone performs the following operations for each video source file in at least one video source file, so as to obtain the frame rate of each video source file in at least one video source file: In the attribute information of the first video source file, no If the frame rate information is included, the mobile phone can search the first video source file from the search platform to obtain the frame rate of the first video source file from the search platform.
  • the mobile phone can quickly obtain the frame rate of each video source file in at least one video source file, and provide data support for subsequent adjustment of the refresh rate.
  • the third method because some video source files (such as live video) often have frame loss, so that the actual frame rate when it is played is inconsistent with the frame rate indicated in its attribute information. Therefore, in order to obtain the actual frame rate of this type of video source file more accurately, the mobile phone can perform the following operations on each video source file in at least one video source file, so as to obtain the frame rate of each video source file in at least one video source file :
  • the type of the first video source file is a preset type (for example, a video source file that is easy to drop frames such as a live broadcast type)
  • the mobile phone calculates the frame rate of the first video source file according to the characteristic parameters of the first video source file ;
  • the feature parameters include size, duration and resolution; the first video source file is any one of at least one video source file.
  • the resolution coefficient is determined according to the resolution of different specifications. For example, the resolution coefficient corresponding to 720P is 50, the resolution coefficient corresponding to 480P is 35, and the resolution coefficient corresponding to 1080P is 75.
  • the mobile phone determines the second frame rate according to preset rules according to the frame rates of all video source files in at least one video source file.
  • the preset rule can be any one of the following three feasible schemes: the first scheme is to use the maximum frame rate in the frame rates of all video source files in at least one video source file as the second frame rate; the second A scheme, using the average value of the frame rates of all video source files in at least one video source file as the second frame rate; a third scheme, receiving the user's selection operation of the frame rates of all video source files in at least one video source file , using the frame rate selected by the user as the second frame rate.
  • the advantage of the first solution above is that the second frame rate can be well compatible with the frame rates of all video source files, ensuring that after adjusting the refresh rate of the display screen based on the first frame rate determined by the second frame rate in the future, the user Viewing experience for all video source files.
  • the second frame rate will be set higher, and the refresh rate determined based on the first frame rate determined by the second frame rate may also be It will be higher, which in turn will cause an unnecessary increase in the power consumption of the mobile phone.
  • the advantage of the above-mentioned second solution is that the average of the frame rates of all video source files can be used to represent the frame rates of all video source files to a certain extent, and also make the frame rate of all video source files Only in the case of a relatively large individual frame rate, the final second frame rate will not be too high, which reduces the power consumption of the mobile phone.
  • the advantage of the above-mentioned third solution is that the selection of the second frame rate is completely determined by the user, so that the refresh rate of the final display screen is controlled by the user, which can well guarantee the user's needs.
  • the mobile phone is playing at least one video source file source file, a pop-up box can be displayed on the display screen, and there may be "frame rate of the first video source file-60hz", "frame rate of the second video source file-50hz” and "third video source file” in the pop-up box.
  • the frame rate of the video source file - 55hz "three control options, the user can choose to click one of them according to their own needs, and the mobile phone can respond to the user's click operation to determine the final second frame rate.
  • the mobile phone can first issue a voice command to the user to prompt the user to say the second frame rate of his choice, for example, "Please tell me which video you want to use The frame rate represents all displayed videos", and then receive the voice command spoken by the user according to their own needs (for example, "I choose the frame rate of the costume idol drama as the frame rate of all videos"), and finally recognize the voice command, select the user to confirm The frame rate of the video source file is used as the second frame rate.
  • the mobile phone determines the first frame rate according to the second frame rate.
  • the first frame rate of at least one video source file currently played by the electronic device is determined based on certain rules
  • the first frame rate represents the frame rate of all video source files in the at least one video source file
  • the refresh rate of the display screen determined by the subsequent electronic device according to the first frame rate can also match all video source files to a certain extent, so that the viewing effect of the user is better.
  • the above-mentioned step 3021 may be before or after any one of the steps 3022-3024, and FIG. 8 is only one possible implementation manner, and may be any other feasible implementation manner in practice.
  • the second frame rate may be directly determined as the first frame rate.
  • step 3024 may include 30241-30243:
  • the mobile phone judges whether the second frame rate is within the preset frame rate range.
  • the mobile phone executes 30242; when it is determined that the second frame rate is no longer within the preset frame rate range, the mobile phone executes 30243.
  • the minimum value in the preset frame rate range can be the frame rate (24Hz) of the video source file when the human eye can detect obvious picture switching (stuck) when the video source file is played, and the maximum value in the preset frame rate range
  • the value can be a preset maximum frame rate (eg 400Hz).
  • the second frame rate is not within the preset frame rate range or does not exist, it indicates that the second frame rate may have an inappropriate acquisition rule or an error in the acquisition of the video source frame rate during the acquisition process.
  • the second frame rate obtained in this case is abnormal and does not belong to the frame rate range of the normal video source. Therefore, at this time, the second frame rate cannot be used as a basis for determining the first frame rate.
  • step 30241 may not exist in practice, and the mobile phone directly executes 30242 when the second frame rate is within the preset frame rate range, and executes 30243 when the second frame rate is not within the preset frame rate range. .
  • the mobile phone uses the second frame rate as the first frame rate.
  • the mobile phone uses the frame rate corresponding to the third refresh rate as the first frame rate.
  • the third refresh rate is less than or equal to the maximum refresh rate supported by the display screen of the mobile phone, and the third refresh rate may be a pre-configured refresh rate, for example, according to relevant data of videos watched by users in practice (such as all videos watched by multiple users)
  • the maximum frame rate in the frame rate determines the appropriate refresh rate and pre-sets it in the mobile phone, or it can be set by the mobile phone in response to the user's setting operation.
  • the second frame rate after the second frame rate is initially determined according to the frame rates of all video source files in at least one video source file, the second frame rate is within an appropriate frame rate range (preset frame rate range), the second frame rate will be determined as the first frame rate.
  • the electronic device such as a mobile phone
  • the frame rate corresponding to the third refresh rate set in advance is used as the first frame rate, thereby ensuring smooth playback of the video source file by the electronic device.
  • the pre-configuration may be obtained based on the actual investigation results of a large number of videos and electronic devices, so that the electronic device plays the video source file at the third refresh rate to ensure user experience of the electronic device.
  • the third refresh rate can be pre-configured to be above 60 frames because the frame rate of the game video is high; Frequently played videos may not have a high frame rate, so the third refresh rate can be preconfigured to be around 60 frames or even less.
  • the user can set the third refresh rate through the setting function of the mobile phone itself.
  • the mobile phone may receive a user's click operation on the third refresh rate setting option in the setting interface. Then, the mobile phone can respond to the user's click operation, as shown in (b) in Figure 10, display several values that can be set for the third refresh rate ("50hz", "60hz” and "90hz" are used as examples in the figure) .
  • the mobile phone may also display a slide bar 20 as shown in (c) in FIG.
  • the refresh rate corresponding to the slider 21 position When the slider 21 is slid to the leftmost end of the slider 20 by the user, the refresh rate corresponding to the position of the slider 21 can be a preset minimum value (for example, 25hz), and the corresponding frame rate gradually changes when the slider 21 slides to the right. When it slides to the far right of the slider, the corresponding refresh rate is the maximum refresh rate supported by the mobile phone (for example, 144hz).
  • the user can set the third refresh rate on the setting interface of the application playing the video source file.
  • the mobile phone may respond to the user's click operation on the setting option corresponding to the third refresh rate in the setting interface of the application, and display all optional values of the third refresh rate (which may be similar to the values in (b) in Figure 10 An optional value for the third refresh rate) or a selection control for the third refresh rate (which may be similar to the slider and the slider in (c) in FIG. 10 ). Then the third refresh rate is determined in response to the relevant operation of the user.
  • the third refresh rate is determined in response to the relevant operation of the user.
  • the user can set the third refresh rate through the smart assistant of the phone itself.
  • the mobile phone may first display the smart assistant interface in response to the smart assistant wake-up instruction spoken by the user. Then the mobile phone can respond to the related voice instruction of setting the third refresh rate spoken by the user (for example, "set the third refresh rate (actually, for the convenience of the user to understand, the third refresh rate can be the normal refresh rate) to 60hz"), Determine the third refresh rate.
  • the smart assistant has certain AI intelligence, the relevant voice command for setting the third refresh rate can be any recognizable voice command, and this application does not make specific limitations on this.
  • the mobile phone may guide the user to set the third refresh rate when starting to play the video source file.
  • the mobile phone can start playing the video source file, and display a pop-up window 31, and there may be "Please enter the refresh rate when playing the video (minimum 25Hz, maximum 144Hz)" in the pop-up window .
  • the content in () is intended to prompt the user to enter the feasible range of the refresh rate.
  • the minimum 25Hz is the refresh rate corresponding to the video frame rate that the human eye cannot perceive the picture switching
  • the maximum 144Hz is the mobile phone display can support.
  • the maximum refresh rate is the prompt displayed at the beginning of the pop-up window can disappear after the user moves inside the pop-up frame.
  • the mobile phone can determine the third refresh rate based on the value input by the user in the pop-up window, such as "60hz" shown in (b) in FIG. 11 .
  • the pop-up window can also be in any other feasible style, as long as the user can input or select the selection value of the third refresh rate.
  • the mobile phone determines whether an interactive operation is currently received.
  • the interactive operation can be an interactive operation (such as sliding, sending barrage, etc.) for the playback interface of any one of the video source files in at least one video source file, or it can be an interactive operation for a certain video source file (such as a voice command , button operation, etc.).
  • the mobile phone performs 304; if the mobile phone does not receive the interactive operation, the mobile phone performs 305.
  • the interactive operation includes but is not limited to any of the following: touch screen sliding, clicking, voice control, button operation, air gesture, remote control, remote control, mouse operation, keyboard operation, visual control, and facial expression recognition.
  • the mobile phone can determine whether it has received an interactive operation according to various sensors set in it, such as a touch sensor, a pressure sensor under a button, and the like.
  • step 303 may not exist in practice, and the mobile phone directly executes 304 when no interactive operation is currently received, and executes 305 when an interactive operation is currently received.
  • the mobile phone adjusts the refresh rate of its own display screen to the second refresh rate.
  • the second refresh rate is less than or equal to the maximum refresh rate of the display screen of the electronic device, and the frame rate corresponding to the second refresh rate is within a preset range of the frame rate required by the animation effect corresponding to the interactive operation.
  • the second refresh rate can be preset by the mobile phone, or can be set by the mobile phone in response to a user's setting operation.
  • the specific realization of the setting of the second refresh rate is the same as that of the third refresh rate, and may refer to the description of the specific scene of the setting of the third refresh rate mentioned above, and will not be repeated here.
  • the frame rate corresponding to the second refresh rate can be the interactive operation
  • the preset range is 60 Hz-90 Hz
  • the second refresh rate may be a refresh rate corresponding to a frame rate of 90 Hz.
  • the first operation can be regarded as an interactive operation, and the first refresh rate is set to be the same as the second refresh rate. In this way, the action of switching the refresh rate is reduced once, and some visual discomfort caused by the user noticing the change of the refresh rate while watching the video is avoided, and the user experience is improved.
  • the third refresh rate is greater than the second refresh rate.
  • the mobile phone determines whether the target duration between the moment when the first operation or the last interactive operation on the video source file is received and the current moment is greater than or equal to a preset duration.
  • step 305 can be understood as judging that the mobile phone has received the first operation or the last interaction Whether the interaction operation has not been received again within the preset time period since the operation started.
  • the purpose of this step 305 is, because the mobile phone needs to determine the refresh rate of playing the video source file according to the user's interactive operation on the video source file, the first frame rate and the playback status of the video source file, when there is interactive operation or no interactive operation
  • the determined refresh rate is different. If the user continues to perform interactive operations every few minutes, the mobile phone will repeatedly adjust the refresh rate. power consumption. Therefore, a preset duration can be set here. If the user does not perform another interactive operation within the preset duration after the first operation or interactive operation, it indicates that the user will probably not perform interactive operations soon, so you can rest assured. Increase the refresh rate of the display screen of the mobile phone to the corresponding refresh rate when there is no interactive operation.
  • step 305 may be that the mobile phone sets a timer that keeps counting.
  • the timer will be reset and start counting again.
  • the mobile phone can then determine whether the mobile phone does not receive another interactive operation within the preset time period after receiving the first operation or the start of the last interactive operation according to the time counted by the timer. If the counting time of the timer reaches the preset duration, it indicates that the mobile phone receives the first operation or does not receive another interactive operation within the preset duration from the start of the last interactive operation. If the counting time of the timer does not reach the preset duration, it indicates that the mobile phone has not received another interactive operation within the preset duration after receiving the first operation or the last interactive operation.
  • step 305 may not exist in practice, and the mobile phone directly executes 306 when the determined target duration is greater than or equal to the preset duration; when the mobile phone determines that the target duration is less than the preset duration, re-execute 305.
  • the mobile phone determines whether there is a video source file being played in at least one video source file.
  • step 306 if the current mobile phone does not need to play any video source file and does not need to play the animation corresponding to the interactive operation, the display screen can be refreshed only when there is content to be displayed, and when there is no content to be displayed Just do not refresh. Thereby, a good power saving effect is achieved and user experience is improved.
  • step 306 may not exist in practice, and the mobile phone directly executes 307 when it is determined that there is a video source file being played in at least one video source file; when the mobile phone determines that there is no video source file being played in at least one video source file Execute 308.
  • the mobile phone determines whether the first frame rate is greater than the frame rate corresponding to the third refresh rate.
  • the first frame rate is greater than the frame rate corresponding to the third refresh rate, it indicates that the best playback effect of the video source file (playing at least one video source file using the refresh rate corresponding to the first frame rate) has actually exceeded the user's needs. Therefore, at this time, at least one video source file can be played directly by using the third refresh rate, so that the user's requirement can be met with lower power consumption (step 309).
  • the first frame rate is less than or equal to the frame rate corresponding to the third refresh rate, it indicates that the refresh rate required by the user can completely achieve the best playback effect of the video source file. Therefore, at this time, at least one video source file can be played at the refresh rate corresponding to the first frame rate (step 310), which not only satisfies the user experience, but also has the effects of avoiding invalid frame refresh and saving power.
  • step 307 may not exist in practice, and the mobile phone directly executes 309 when it is determined that the first frame rate is greater than the frame rate corresponding to the third refresh rate; when it is determined that the first frame rate is less than or equal to the frame rate corresponding to the third refresh rate Execute 310.
  • the mobile phone adjusts the refresh rate of the display screen of the mobile phone according to its own display content.
  • the refresh rate of the display screen can be 0, which has a great power saving effect.
  • the mobile phone adjusts the refresh rate of its own display screen to a third refresh rate.
  • the mobile phone adjusts the refresh rate of its own display screen to the refresh rate corresponding to the first frame rate.
  • the electronic device will combine the first frame rate of at least one currently played video source file and the playback status of each video source file, and whether to receive Adjust the refresh rate of the display screen based on three factors from user operation.
  • the frame rate of the video source file determines the appropriate refresh rate it needs when being played, and whether the video source file is being played directly determines whether there is a need to refresh the display screen displayed content.
  • the animation effect required by the user-generated interactive operation requires a higher refresh rate to display without lagging. Therefore, after combining these three factors, this application can reasonably adjust the display when playing the video source file.
  • the refresh rate of the screen makes the refresh rate of the display screen of the electronic device closer to or equal to the refresh rate required during the playback of the video source file;
  • the refresh rate of the display is determined by the similarity between the refresh rate of the screen and the refresh rate of the display screen. The closer the two are, the smoother the playback process will be and the more power will be saved, and the better the user experience will be. Therefore, in summary, the technical solution provided by the present application can improve the user experience of electronic equipment when playing video source files.
  • the above-mentioned devices and the like include corresponding hardware structures and/or software modules for performing each function.
  • the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software in combination with the example units and algorithm steps described in the embodiments disclosed herein. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the embodiments of the present application.
  • the embodiments of the present application may divide the above-mentioned electronic device into functional modules according to the above-mentioned method examples.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. It should be noted that the division of modules in the embodiment of the present application is schematic, and is only a logical function division, and there may be other division methods in actual implementation.
  • the embodiment of the present application provides an electronic device 12, including: an interaction detection module 121, a frame rate analysis module 122, a state detection module 123, a configuration module 124 and control module 125.
  • an interaction detection module 121 a frame rate analysis module 122
  • a state detection module 123 a state detection module 124
  • control module 125 Various modules in the electronic device 12 can be combined to implement the method for adjusting the refresh rate provided in the foregoing embodiments.
  • the electronic device 12 After the user performs a first operation on the electronic device 12, the electronic device 12 will start playing at least one video source file at a first refresh rate in response to the first operation. Then, the interaction detection module 121 , the frame rate analysis module 122 , the status detection module 123 , the configuration module 124 and the control module 125 will be activated by the electronic device.
  • the interaction detection module 121 will report the interaction instruction received by the electronic device to the control module 125 in real time.
  • the frame rate analysis module 122 will obtain the first frame rate of at least one video source file and report it to the control module 125 . It is equivalent to performing step 302 in the foregoing embodiment to obtain the first frame rate of at least one video source file, and may specifically include steps 3022, 3023, and 3024 (including 30241-30243) in the foregoing embodiment.
  • the status detection module 123 will report the playback status of each video source file in at least one video source file to the control module. It is equivalent to performing the step 302 in the foregoing embodiment to acquire the playback state of each video source file in at least one video source file.
  • the configuration module 124 will report the second refresh rate, the third refresh rate and the preset duration to the control module 125; specifically, the second refresh rate and the third refresh rate can be preset in the configuration module 124, or can be configured by The module 124 executes the specific process related to the second refresh rate and the third refresh rate set by the user in the foregoing embodiments.
  • the control module 125 determines the refresh rate according to all the data reported by the interaction detection module 121 , the frame rate analysis module 122 , the status detection module 123 and the configuration module 124 , specifically, it may perform steps 303-310 in the foregoing embodiments. Referring to Figure 12, it specifically includes the following situations:
  • the refresh rate of the display screen is determined to be the third refresh rate. If the first frame rate is less than or equal to the frame rate corresponding to the third refresh rate, then determine that the refresh rate of the display screen is the refresh rate corresponding to the first frame rate.
  • the display content adjusts the refresh rate of the display screen of the electronic device.
  • each module executes operations has been described in detail in the embodiment of the method for adjusting the refresh rate in the foregoing embodiment, and will not be elaborated here again.
  • the embodiment of the present application also provides an electronic device, the electronic device includes a display screen, a memory, and one or more processors; the display screen, the memory and the processor are coupled; wherein, a computer program code is stored in the memory, and the computer program code includes The computer instruction, when the computer instruction is executed by the processor, causes the electronic device to execute the method for adjusting the refresh rate provided in the foregoing embodiments.
  • the electronic device includes a display screen, a memory, and one or more processors; the display screen, the memory and the processor are coupled; wherein, a computer program code is stored in the memory, and the computer program code includes The computer instruction, when the computer instruction is executed by the processor, causes the electronic device to execute the method for adjusting the refresh rate provided in the foregoing embodiments.
  • FIG. 1 For specific results of the electronic device, reference may be made to the structure of the electronic device 100 shown in FIG. 1 .
  • the electronic device when the computer instructions are executed by the processor, the electronic device is made to perform the following steps: the electronic device receives a first operation, and the first operation is used to trigger the electronic device to play at least one video source file; in response to the first operation, the processor controls The display screen uses the first refresh rate to play at least one video source file, and obtains the first frame rate of at least one video source file, and the playback status of each video source file in the at least one video source file, and the playback status includes playing or stopping Play; the first refresh rate is less than or equal to the maximum refresh rate of the display screen of the electronic device; when the electronic device receives the user's interactive operation on the playback interface of any one of the video source files in at least one video source file, the processor will The refresh rate of the display screen of the electronic device is adjusted to the second refresh rate; the second refresh rate is less than or equal to the maximum refresh rate of the display screen of the electronic device; the frame rate corresponding to the second refresh rate is in the range required by the animation effect corresponding to the interactive operation Within the
  • the electronic device when the computer instruction is executed by the processor, the electronic device further executes the following steps: if the electronic device does not receive another interactive operation within a preset period of time from receiving the first operation or the last interactive operation, and If there is no video source file being played in at least one video source file, the processor adjusts the refresh rate of the display screen of the electronic device according to the display content sent by the electronic device.
  • the first refresh rate is equal to the second refresh rate.
  • the electronic device specifically executes the following steps: the processor obtains the frame rate of each video source file in at least one video source file; The maximum frame rate among the frame rates of the video source files is used as the second frame rate, or the processor uses the average value of the frame rates of all video source files in at least one video source file as the second frame rate, or the processor receives the user's In the operation of selecting frame rates of all video source files in at least one video source file, the frame rate selected by the user is used as the second frame rate; the processor determines the first frame rate according to the second frame rate.
  • the electronic device specifically executes the following steps: if the second frame rate is within a preset frame rate range, the processor uses the second frame rate as the first frame rate.
  • the electronic device when the computer instruction is executed by the processor, the electronic device further specifically performs the following steps: If the second frame rate is not within the preset frame rate range, the processor uses the frame rate corresponding to the third refresh rate as the second frame rate. One frame rate.
  • the electronic device specifically executes the following steps: the processor performs the following operations for each video source file in at least one video source file, so as to obtain each The frame rate of the video source file: the processor obtains the frame rate in the attribute information of the first video source file; or, the processor searches the first video source file from the search platform to obtain the frame rate of the first video source file from the search platform Or, the processor calculates the frame rate of the first video source file according to the feature parameters of the first video source file; the feature parameters include size, duration and resolution; the first video source file is any one of at least one video source file .
  • the second refresh rate and the third refresh rate are pre-configured refresh rates; or, the second refresh rate and the third refresh rate are set by the electronic device in response to a user's setting operation.
  • the third refresh rate is greater than the second refresh rate.
  • An embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium includes computer instructions, and when the computer instructions are run on the electronic device, the electronic device executes the method for adjusting the refresh rate as provided in the foregoing embodiments , or make the electronic device execute various functions or steps executed by the mobile phone in the foregoing embodiments.
  • the embodiment of the present application also provides a computer program product.
  • the computer program product When the computer program product is run on a computer, it enables the computer to execute the method for adjusting the refresh rate as provided in the foregoing embodiments, or enables the computer to execute the various functions performed by the mobile phone in the foregoing embodiments. or steps.
  • the computer can be the aforementioned electronic equipment
  • the disclosed devices and methods may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be Incorporation or may be integrated into another device, or some features may be omitted, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the unit described as a separate component may or may not be physically separated, and the component displayed as a unit may be one physical unit or multiple physical units, that is, it may be located in one place, or may be distributed to multiple different places . Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium.
  • the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium Among them, several instructions are included to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: various media that can store program codes such as U disk, mobile hard disk, read only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk.

Abstract

本申请提供一种刷新率调整方法和电子设备,涉及视频显示领域,能够合理调整视频播放时电子设备的显示屏的刷新率,提高用户体验。该方法包括:电子设备在响应用户的第一操作并播放至少一个视频源文件后,结合当前播放的至少一个视频源文件的第一帧率和每个视频源文件的播放状态,以及是否接收到交互操作三个方面的因素来调整电子设备的显示屏的刷新率。

Description

一种刷新率调整方法和电子设备
本申请要求于2021年05月19日提交国家知识产权局、申请号为202110548052.2、发明名称为“一种刷新率调整方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及视频显示领域,尤其涉及一种刷新率调整方法和电子设备。
背景技术
目前,在终端设备中安装的大多数应用都集成了视频播放的功能,并且在视频播放过程中允许用户进行大量的交互操作。而在现有的技术条件下,在终端设备上使用应用播放视频时,终端通常会采用一个较大的固定刷新率来播放不同帧率的视频源文件,以兼容不同帧率的视频源文件。
但是这样一来,在视频源的帧率大于终端显示屏的刷新率对应的帧率的情况下,会导致终端出现视频播放丢帧的情况,用户体验不佳;在视频源的帧率小于终端显示屏的刷新率对应的帧率的情况下,则会出现无效刷帧,增加终端的能耗。另外,如果终端的显示器的刷新率较小,一旦用户在观看视频过程中实施交互操作,则可能会使得显示屏的刷新率对应的帧率小于交互操作的动画效果的帧率,使得用户明显察觉卡顿。综上,现有技术中使用固定刷新率播放不同帧率的视频源文件的技术手段,用户体验不好。
发明内容
本申请提供一种刷新率调整方法和电子设备,可以合理调整视频播放时电子设备的显示屏的刷新率,提高用户体验。
第一方面,本申请提供一种刷新率调整方法,该方法可以应用于电子设备。该方法中,电子设备可以接收用于触发该电子设备播放至少一个视频源文件的第一操作,并响应于该第一操作,采用第一刷新率播放至少一个视频源文件,同时获取至少一个视频源文件的第一帧率以及至少一个视频源文件中每个视频源文件的播放状态。该播放状态包括正在播放或停止播放,第一刷新率小于或等于该电子设备的显示屏的最大刷新率。而后,在电子设备接收到用户在至少一个视频源文件中任一个视频源文件的播放界面的交互操作的情况下,电子设备采用第二刷新率播放至少一个视频源文件;第二刷新率小于或等于电子设备的显示屏的最大刷新率,且第二刷新率对应的帧率处于交互操作对应的动画效果所需的帧率的预设范围内。在从电子设备接收到第一操作或上一个交互操作开始的预设时长内未再次接收到交互操作,且至少一个视频源文件中存在正在播放的视频源文件的情况下,若第一帧率大于第三刷新率对应的帧率,电子设备采用第三刷新率播放至少一个视频源文件;若第一帧率小于或等于第三刷新率对应的帧率,电子设备则采用第一帧率对应的刷新率播放至少一个视频源文件;其中,第三刷新率小于或等于电子设备的显示屏的最大刷新率。
其中,第一刷新率、第二刷新率和第三刷新率可以根据实际调查结果得出后预先 设置在电子设备中,也可以提供多种设置途径交由用户设置。
基于上述技术方案,电子设备在对视频源文件的播放过程中,会结合当前播放的至少一个视频源文件的第一帧率和每个视频源文件的播放状态,以及是否接收到用户操作三个方面的因素来调整显示屏的刷新率。在这三个方面的因素中,视频源文件的帧率的大小决定了其自身在被播放时所需要的合适刷新率,视频源文件是否正在被播放则直接决定了当前是否有需要显示屏刷新显示的内容,而用户产生的交互操作则所需的动画效果则需要较高的刷新率才能不卡顿的显示,所以本申请在结合了这三个方面的因素后,可以合理的调整播放视频源文件时显示屏的刷新率,使得电子设备的显示屏的刷新率与视频源文件播放过程中所需的刷新率更为接近或相等;而视频源文件的播放是否流畅是由视频源文件的播放过程中需要的刷新率与显示屏的刷新率的相近程度决定的,两者越相近,则播放过程就越流畅且越省电,用户体验也就越好。因而综上所述,本申请提供的技术方案,能够提高电子设备在播放视频源文件时的用户体验度。
在第一方面的一种可能的实现方式中,该方法还包括:若从电子设备接收到第一操作或上一个交互操作开始的预设时长内未再次接收到交互操作,且至少一个视频源文件中不存在正在播放的视频源文件,则按照电子设备的送显内容调整电子设备的显示屏的刷新率。
基于上述方案,如果电子设备在上一次接收到用户对电子设备的操作(第一操作或上交互操作)后预设时长内都未再次接受到交互操作,且所有视频源文件都停止播放,则表明用户当前可能已经不再会进行交互操作了,所以此时显示屏的刷新率可以不再是用于匹配交互操作对应的动画效果的帧率了,而且显示屏也不需要播放视频源文件了,所以此时电子设备只需要在有需要显示的内容(送显内容)时对显示屏进行刷新即可,一旦没有需要显示的内容则不刷新。这种情况下,可以使得显示屏的刷新率为0,降低电子设备的能耗,提高用户体验。
在第一方面的另一种可能的设计方式中,因为实际中用户在控制电子设备播放了某个视频后,很有可能根据自己的喜好进一步进行一定的交互操作,这种情况下,可以将第一操作认为是一个交互操作,并将第一刷新率设置的与第二刷新率相同,这样一来,便减少了一次刷新率切换的动作,也就避免了用户在观看视频过程中因为察觉出刷新率变化而产生的一些不适,提高了用户体验。
在第一方面的另一种可能的设计方式中,上述的获取至少一个视频源文件的第一帧率,可以包括:电子设备获取至少一个视频源文件中每个视频源文件的帧率;电子设备根据至少一个视频源文件中所有视频源文件的帧率,依据预设规则确定至少一个视频源文件的第一帧率。
示例性的,预设规则可以为:将至少一个视频源文件中所有视频源文件的帧率中最大的帧率作为第二帧率,或者,电子设备将至少一个视频源文件中所有视频源文件的帧率的平均值作为第二帧率,或者,电子设备接收用户对至少一个视频源文件中所有视频源文件的帧率的选择操作,将用户选择的帧率作为第二帧率;根据第二帧率,确定第一帧率。
基于上述方案,基于一定的规则确定了电子设备当前播放的至少一个视频源文件 的第一帧率,用该第一帧率代表了至少一个视频源文件中所有视频源文件的帧率,后续电子设备根据该第一帧率确定的显示屏的刷新率,也就可以在一定程度上匹配所有的视频源文件,使得用户的观看效果更佳。
在第一方面的另一种可能的设计方式中,根据第二帧率,确定第一帧率,包括:若第二帧率在预设帧率范围内,则将第二帧率作为第一帧率。其中,预设帧率范围中的最小值可以是视频源文件播放时人眼能够察觉到明显的图片切换(卡顿)时视频源文件的帧率,预设帧率范围中的最大值可以是预设最大帧率。该预设最大帧率可以大于该电子设备的显示屏的最大刷新率对应的帧率。
这样一来,在初步根据至少一个视频源文件中所有视频源文件的帧率确定了第二帧率后,在第二帧率处于合适的帧率范围内(预设帧率范围)时,才会将该第二帧率确定为第一帧率,这样一来也就保证了该电子设备顺利播放该视频源文件并且播放过程中保证用户的观看体验(不察觉到卡顿)。
在第一方面的另一种可能的设计方式中,因为可能存在第二帧率的规则的不适合或者视频源帧率获取时的误差,使得最终得到的第二帧率不在预设帧率范围内,即第二帧率不存在,或者大于预设最大帧率,或者小于视频源文件播放时人眼能够察觉到明显的图片切换(卡顿)时视频源文件的帧率,而这些情况都表明该第二帧率是异常的帧率,所以此时可以将第三刷新率对应的帧率作为该第一帧率,从而保证该电子设备对视频源文件的顺利播放。
在第一方面的另一种可能的设计方式中,该电子设备获取至少一个视频源文件中每个视频源文件的帧率,可以包括:电子设备针对至少一个视频源文件中每个视频源文件执行以下操作,以获取至少一个视频源文件中每个视频源文件的帧率;在第一视频源文件的属性信息中包含帧率信息的情况下,电子设备可以获取第一视频源文件的属性信息中的帧率。
这样一来,可以快速获取至少一个视频源文件中每个视频源文件的帧率,为后续刷新率的调整提供数据支持。
在第一方面的另一种可能的设计方式中,该电子设备获取至少一个视频源文件中每个视频源文件的帧率,可以包括:电子设备针对至少一个视频源文件中每个视频源文件执行以下操作,以获取至少一个视频源文件中每个视频源文件的帧率;在第一视频源文件的属性信息中不包含帧率信息的情况下,电子设备可以从搜索平台搜索第一视频源文件,以从搜索平台获取第一视频源文件的帧率。
这样一来,可以在视频源文件的属性信息中不存在帧率相关的信息时,快速获取至少一个视频源文件中每个视频源文件的帧率,为后续刷新率的调整提供数据支持。
在第一方面的另一种可能的设计方式中,因为某些视频源文件(例如直播视频)常常会存在丢帧的情况,从而使得其在被播放时的实际帧率和其属性信息中标明的帧率不一致,所以为了更准确的获取这类视频源文件的实际帧率,上述的电子设备获取至少一个视频源文件中每个视频源文件的帧率,可以包括:电子设备针对至少一个视频源文件中每个视频源文件执行以下操作,以获取至少一个视频源文件中每个视频源文件的帧率;在第一视频源文件的类型为预设类型的情况下,电子设备根据第一视频源文件的特征参数,计算第一视频源文件的帧率;特征参数包括大小、时长和分辨率; 第一视频源文件为至少一个视频源文件中的任一个。
示例性的,根据第一视频源文件的特征参数,计算第一视频源文件的帧率,具体公式可以为:帧率=视频大小/(时长*分辨率系数)。其中分辨率系数根据不同规格的分辨率确定,例如分辨率720P对应的分辨率系数为50,分辨率480P对应的分辨率系数为5,分辨率1080P对应的分辨率系数为75。
第一方面的另一种可能的设计方式中,第二刷新率和第三刷新率是预先配置的刷新率;或者,第二刷新率和第三刷新率是电子设备响应于用户的设置操作设置的。
其中,预先配置可以是依据实际对大量视频和电子设备进行调查的结果得出,从而使得电子设备在以第二刷新率或第三刷新率在播放视频源文件,保证该电子设备的使用者的使用体验。例如电子设备为某种专注于游戏的手机时,因为游戏视频的帧率较高,所以该第二刷新率和第三刷新率可以被预先配置为60帧以上;又例如某种专注于拍照的手机时,因为其常播放的视频可能并不具备很大的帧率,所以该第二刷新率和第三刷新率可以被预先配置为60帧左右乃至更小。
第二刷新率和第三刷新率由用户的设置操作设置时,则可以是用户在任意可行的交互场景下设置自身所需的第二刷新率和第三刷新率。例如用户可以在视频源文件被触发播放前通过电子设备自身的设置菜单设置,也可以是在该视频源文件对应的应用的设置菜单中设置,也可以是视频源文件在被触发播放时电子设备显示弹框指示用户设置,还可以是用户通过语音指令设置等。这样一来便可以保证用户的需求,根据不同用户的需求,使用不同的刷新率播放视频源文件,提高用户体验。
第一方面的另一种可能的设计方式中,为了保证用户实施交互操作过程中的交互体验,在第二刷新率是预先配置的刷新率的情况下,第二刷新率对应的帧率为交互操作对应的动画效果所需的帧率的预设范围内的最大值。
这样一来,使用交互操作对应的动画效果所需的帧率的预设范围内的最大值对应的刷新率作为第二刷新率,可以使得用户在观看电子设备播放的视频源文件过程中实施的交互操作呈现的动画效果更为顺滑,用户的交互体验也就更好。
第一方面的另一种可能的设计方式中,因为实际中交互操作对应的动画效果的帧率往往会比视频源文件的帧率要大,所以本申请中,第三刷新率大于第二刷新率。
第二方面,本申请提供一种电子设备,该电子设备包括显示屏、存储器和一个或多个处理器;显示屏、存储器与处理器耦合;其中,存储器中存储有计算机程序代码,计算机程序代码包括计算机指令,当计算机指令被处理器执行时,使得电子设备执行如第一方面及其任一种可能的设计方式提供的刷新率调整方法。
第三方面,本申请提供一种电子设备,该电子设备包括显示屏、存储器和一个或多个处理器;显示屏、存储器与处理器耦合;其中,存储器中存储有计算机程序代码,计算机程序代码包括计算机指令,当计算机指令被处理器执行时,使得电子设备执行如下步骤:电子设备接收第一操作,第一操作用于触发电子设备播放至少一个视频源文件;处理器响应于第一操作,控制显示屏采用第一刷新率播放至少一个视频源文件,并获取至少一个视频源文件的第一帧率,以及至少一个视频源文件中每个视频源文件的播放状态,播放状态包括正在播放或停止播放;第一刷新率小于或等于电子设备的显示屏的最大刷新率;在电子设备接收到用户在至少一个视频源文件中任一个视频源 文件的播放界面的交互操作的情况下,处理器将电子设备的显示屏的刷新率调整为第二刷新率;第二刷新率小于或等于电子设备的显示屏的最大刷新率;第二刷新率对应的帧率处于交互操作对应的动画效果所需的帧率的预设范围内;在电子设备从接收到第一操作或上一个交互操作开始的预设时长内未再次接收到交互操作,且至少一个视频源文件中存在正在播放的视频源文件的情况下,若第一帧率大于第三刷新率对应的帧率,处理器将电子设备的显示屏的刷新率调整为第三刷新率;若第一帧率小于或等于第三刷新率对应的帧率,控制器则将电子设备的显示屏的刷新率调整为第一帧率对应的刷新率;第三刷新率小于或等于电子设备的显示屏的最大刷新率。
在第三方面的一种可能的设计方式中,当该计算机指令被处理器执行时,使得电子设备还执行如下步骤:若电子设备从接收到第一操作或上一个交互操作开始的预设时长内未再次接收到交互操作,且至少一个视频源文件中不存在正在播放的视频源文件,则处理器按照电子设备的送显内容调整电子设备的显示屏的刷新率。
在第三方面的另一种可能的设计方式中,第一刷新率与第二刷新率相等。
在第三方面的另一种可能的设计方式中,当该计算机指令被处理器执行时,使得电子设备具体执行如下步骤:处理器获取至少一个视频源文件中每个视频源文件的帧率;处理器将至少一个视频源文件中所有视频源文件的帧率中最大的帧率作为第二帧率,或者,处理器将至少一个视频源文件中所有视频源文件的帧率的平均值作为第二帧率,或者,处理器接收用户对至少一个视频源文件中所有视频源文件的帧率的选择操作,将用户选择的帧率作为第二帧率;处理器根据第二帧率,确定第一帧率。
在第三方面的另一种可能的设计方式中,当该计算机指令被处理器执行时,使得电子设备具体执行如下步骤:若第二帧率在预设帧率范围内,则处理器将第二帧率作为第一帧率。
在第三方面的另一种可能的设计方式中,当该计算机指令被处理器执行时,使得电子设备还具体执行如下步骤:若第二帧率不在预设帧率范围内,则处理器将第三刷新率对应的帧率作为第一帧率。
在第三方面的另一种可能的设计方式中,当该计算机指令被处理器执行时,使得电子设备具体执行如下步骤:处理器针对至少一个视频源文件中每个视频源文件执行以下操作,以获取至少一个视频源文件中每个视频源文件的帧率:处理器获取第一视频源文件的属性信息中的帧率;或者,处理器从搜索平台搜索第一视频源文件,以从搜索平台获取第一视频源文件的帧率;或者,处理器根据第一视频源文件的特征参数,计算第一视频源文件的帧率;特征参数包括大小、时长和分辨率;第一视频源文件为至少一个视频源文件中的任一个。
在第三方面的另一种可能的设计方式中,第二刷新率和第三刷新率是预先配置的刷新率;或者,第二刷新率和第三刷新率是电子设备响应于用户的设置操作设置的。
第三方面的另一种可能的设计方式中,为了保证用户实施交互操作过程中的交互体验,在第二刷新率是预先配置的刷新率的情况下,第二刷新率对应的帧率为交互操作对应的动画效果所需的帧率的预设范围内的最大值。
在第三方面的另一种可能的设计方式中,第三刷新率大于第二刷新率。
第四方面,本申请提供一种计算机可读存储介质,该计算机可读存储介质包括计 算机指令,当所述计算机指令在电子设备上运行时,使得电子设备执行如第一方面及其任一种可能的设计方式提供的刷新率调整方法。
第五方面,本申请提供一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行如第一方面及其任一种可能的设计方式提供的刷新率调整方法。其中,该计算机可以是前述的电子设备。
可以理解地,上述提供的第二方面、第三方面及其任一种可能的设计方式所述的电子设备,第四方面所述的计算机存储介质,第五方面所述的计算机程序产品所能达到的有益效果,可参考第一方面及其任一种可能的设计方式中的有益效果,此处不再赘述。
附图说明
图1为本申请实施例提供的一种刷新率调整方法的原理示意图;
图2为本申请实施例提供的一种电子设备的硬件结构示意图;
图3为本申请实施例提供的一种刷新率调整方法的流程示意图;
图4为本申请实施例提供的一种视频播放的场景示意图;
图5为本申请实施例提供的另一种视频播放的场景示意图;
图6为本申请实施例提供的又一种视频播放的场景示意图;
图7为本申请实施例提供的再一种视频播放的场景示意图;
图8为本申请实施例提供的另一种刷新率调整方法的流程示意图;
图9为本申请实施例提供的又一种刷新率调整方法的流程示意图;
图10为本申请实施例提供的一种第三刷新率的选择场景示意图;
图11为本申请实施例提供的另一种第三刷新率的选择场景示意图;
图12为本申请实施例提供的另一种电子设备的结构示意图。
具体实施方式
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
首先,对本申请中涉及的相关技术术语进行介绍:
帧率:即帧速率,是以帧称为单位的位图图像连续出现在显示屏上的频率(速率)。帧速率也可以称为帧频率,并以赫兹(Hz)表示。
刷新率:即刷新频率,是指屏幕刷新的速度。一般提到的刷新率通常指垂直刷新率。垂直刷新率表示屏幕的图像每秒钟重绘多少次,也就是每秒钟屏幕刷新的次数,以Hz(赫兹)为单位。刷新率越高越好,图像就越稳定,图像显示就越自然清晰,对眼睛的影响也越小。刷新频率越低,图像闪烁和抖动的就越厉害,眼睛疲劳得就越快。
随着智能终端设备性能的不断发展,目前在终端设备中安装的大多数应用都集成有视频播放的功能,且在视频播放过程中允许用户进行大量的交互操作。例如用户在使用某个短视频应用观看视频直播时,可以通过在触摸显示屏上的操作,对主播送礼物或刷弹幕。而在现有技术中,因为终端设备播放的视频源文件的来源是很广泛的, 不同视频源文件的帧率也是各不相同的。所以终端设备无法保证使用每个视频源文件的帧率对应的刷新率播放器内容。为了解决这一点,终端设备一般会采用一个较大的固定刷新率来播放不同帧率的视频源文件。例如,采用60hz的刷新率播放任何一个视频源文件。
但是这样一来,会存在以下问题:(1)如果终端设备以较高刷新率播放较低帧率的视频源文件,会存在重复刷新同一帧的现象,增加系统负载和耗电,影响终端的使用时间,降低了用户体验。(2)如果终端设备以较低的刷新率播放较高帧率的视频源文件,则会存在丢帧的情况,使得用户体验不佳。而且如果用户在视频播放过程中,对终端设备进行了交互操作,交互操作对应的较高帧率的动画效果不能被很好的显示,用户会察觉到卡顿,极大影响用户体验。
基于此,本申请提供一种刷新率调整方法,该方法可以应用于电子设备。参照图1所示,电子设备响应于用户的操作,可以播放视频源文件(如至少一个视频源文件),而后可以确定至少一个视频源文件的第一帧率和每个视频源文件的播放状态。之后,电子设备可以基于是否接收到交互操作和前述获取的相关数据(如第一帧率和播放状态),确定采用多大的刷新率来播放至少一个视频源文件。如此,由于刷新率是结合了多种能够影响用户体验的因素确定出的;因此,使用该刷新率播放视频文件,带给用户更好的视觉体验。
示例性的,本申请实施例中的电子设备可以是手机、平板电脑、穿戴式设备(如智能手表或智能手环)、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备等能够播放视频的设备,本申请实施例对该电子设备的具体形态不作特殊限制。
以电子设备为手机为例,参照图2所示,该电子设备可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。
其中,上述传感器模块180可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,温度传感器,触摸传感器,环境光传感器,骨传导传感器等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视 频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器神经网络处理器(neural-network processing unit,NPU),和/或微控制单元(micro controller unit,MCU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,串行外设接口(serial peripheral interface,SPI),集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如Wi-Fi网络),蓝牙(blue tooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),NFC,红外技术(infrared,IR)等无线通信的解决方案。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显 示信息。
显示屏194用于显示图像,视频等。该显示屏可以是触摸屏。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。ISP用于处理摄像头193反馈的数据。摄像头193用于捕获静态图像或视频。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:贴膜状态识别,图像修复、图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
触摸传感器,也称“触控面板(TP)”。触摸传感器可以设置于显示屏194,由触摸传感器与显示屏194组成触摸屏,也称“触控屏”。触摸传感器用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
按键190包括开机键,音量键等。马达191可以产生振动提示。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口195用于连接SIM卡。
本申请实施例提供一种刷新率调整方法,该方法可以应用于具备有显示屏的电子设备中。以电子设备为手机为例,参照图3所示,该刷新率调整方法可以包括301-310:
301、手机接收第一操作,响应于该第一操作,采用第一刷新率播放至少一个视频源文件。
其中,第一操作用于触发该手机播放至少一个视频源文件,第一刷新率小于或等于该电子设备的显示屏的最大刷新率。第一刷新率可以提前根据经验值获取后在手机 中预先设置,也可以交由用户设置(通过各类交互方式设置,具体可参照后续第二刷新率和第三刷新率的设置方式的相关表述)。
示例性的,第一操作可以是在手机的触摸屏上点击某个应用中的视频,也可以是用户通过语音唤醒手机的智能助手并发布相应打开某个应用中视频的语音指令,还可以是其他任意可行方式。
在第一种应用场景中,参照图4所示,手机显示如图4中(a)所示的应用A的预览界面,该预览界面中可以包括有多个视频的缩略图。第一操作可以为用户对该预览界面中视频B的点击操作。响应于用户对视频B的点击操作,手机采用第一刷新率播放视频B,如图4中(b)所示。以手机本身支持的最大刷新率为90Hz为例,该第一刷新率可以为60Hz。
在第二种应用场景中,第一操作可以为用户对手机说出的用于指示播放视频源文件的语音指令。具体的,手机可以参照图5中(a)所示,首先利用自身的麦克风接收用户说出的智能助手唤醒指令,例如“你好,YOYO”,然后手机会显示如图5中(b)所示的智能助手界面。然后,参照图5中(c)所示,手机的智能助手便会调用手机本身的麦克风获取并识别用户接下来的语音指令,例如“用A应用打开视频B”,并在智能助手界面上显示。然后,手机的智能助手便会如图5中(d)所示,跳转至A应用的视频播放界面并使用第一刷新率播放视频B。当然,实际中语音助手的唤醒指令可以根据不同手机的设计而定,用户输入/说出的语音指令也可以是任意可以表明需要用A应用打开视频B的语音指令。
在第三种应用场景中,第一操作可以是用于对视频请求接收图标的点击操作。具体的,参照图6中(a)所示,在某个社交软件组间的通信群组中,若某个组员向其他组员发送了视频请求时,手机会响应于该请求,在界面上显示视频请求拒绝图标C1和视频请求接收图标C2。而后,参照图6中(b)所示,手机可以响应用于对视频请求接收图标C2的点击操作,采用第一刷新率通过多个小屏显示所有组员的视频通话界面(C3、C4、C5、C6)并播放视频画面。
在第四种应用场景中,第一操作可以是用户在观看某个视频源文件时,对其好友发送的视频通话请求图标的点击操作。具体的,参照图7中(a)所示,手机通过某个应用在播放视频A供用户观看时,响应于其他用户的手机发送的视频通话请求,在界面上显示视频通话请求图标D。然后,若用户视频通话请求图标D进行了点击,则手机可以响应该用户对视频通话请求图标D的点击操作,如图7中(b)所示,采用第一刷新率通过小屏方式显示该视频通话界面E。其中,需要说明的是,该视频A在被手机播放且未手机接收到视频请求时,手机需要根据本申请实施例提供的刷新率调整方法确定播放该视频A的刷新率。
当然,实际中还存在其他任意可行的视频显示场景,上述四种场景仅为示例,不作为对本申请实施例的具体限制。
302、手机获取至少一个视频源文件的第一帧率以及至少一个视频源文件中每个视频源文件的播放状态。
其中,该播放状态包括正在播放或停止播放,停止播放可以包括暂停或播放结束。第一帧率在本申请用于表征至少一个视频源文件中所有视频源文件总体的帧率大小, 其具体可以由至少一个视频源文件中每个视频源文件的帧率确定。
具体的,结合图3,参照图8所示,302步骤具体可以包括3021-3024:
3021、手机获取至少一个视频源文件中每个视频源文件的播放状态。
示例性的,手机可以通过监听播放视频源文件的应用的相关状态参数或者其他任意可行方式,确定每个视频源文件的播放状态。对此,本申请不做具体限制。
3022、手机获取至少一个视频源文件中每个视频源文件的帧率。
示例性的,3022具体的实现可以有以下几种方式:
第一种方式:手机针对至少一个视频源文件中每个视频源文件执行以下操作,以获取至少一个视频源文件中每个视频源文件的帧率:在第一视频源文件的属性信息中包含帧率信息的情况下,手机可以获取第一视频源文件的属性信息中的帧率。
其中,第一视频源文件可以是至少一个视频源文件中的任一个视频源文件。本申请实施例中以获取第一视频源文件的帧率为例,介绍手机获取至少一个视频源文件中每个视频源文件的帧率的方法。后续的第一视频源文件同理。
这样一来,手机可以快速获取至少一个视频源文件中每个视频源文件的帧率,为后续刷新率的调整提供数据支持。
第二种方式:手机针对至少一个视频源文件中每个视频源文件执行以下操作,以获取至少一个视频源文件中每个视频源文件的帧率:在第一视频源文件的属性信息中不包含帧率信息的情况下,手机可以从搜索平台搜索第一视频源文件,以从搜索平台获取第一视频源文件的帧率。
这样一来,手机可以在视频源文件的属性信息中不存在帧率相关的信息时,快速获取至少一个视频源文件中每个视频源文件的帧率,为后续刷新率的调整提供数据支持。
第三种方式:因为某些视频源文件(例如直播视频)常常会存在丢帧的情况,从而使得其在被播放时的实际帧率和其属性信息中标明的帧率不一致。所以为了更准确的获取这类视频源文件的实际帧率,手机可以针对至少一个视频源文件中每个视频源文件执行以下操作,以获取至少一个视频源文件中每个视频源文件的帧率:在第一视频源文件的类型为预设类型(例如直播类型等容易掉帧的视频源文件)的情况下,手机根据第一视频源文件的特征参数,计算第一视频源文件的帧率;特征参数包括大小、时长和分辨率;第一视频源文件为至少一个视频源文件中的任一个。
示例性的,根据第一视频源文件的特征参数,计算第一视频源文件的帧率,具体公式可以为:帧率=视频大小/(时长*分辨率系数)。其中分辨率系数根据不同规格的分辨率确定,例如,分辨率720P对应的分辨率系数为50,分辨率480P对应的分辨率系数为35,分辨率1080P对应的分辨率系数为75。
当然,上述三种方式,仅为示例,实际中还可以是其他任意可行的实现方式,对此本申请不做具体限制。
3023、手机根据至少一个视频源文件中所有视频源文件的帧率,依据预设规则确定第二帧率。
其中,预设规则可以为以下三种可行方案中的任一种:第一种方案,将至少一个视频源文件中所有视频源文件的帧率中最大的帧率作为第二帧率;第二种方案,将至少 一个视频源文件中所有视频源文件的帧率的平均值作为第二帧率;第三种方案,接收用户对至少一个视频源文件中所有视频源文件的帧率的选择操作,将用户选择的帧率作为第二帧率。
上述的第一种方案的优势在于第二帧率可以很好兼容所有的视频源文件的帧率,保证了今后续根据第二帧率确定的第一帧率调整显示屏的刷新率后,用户对所有视频源文件的观看体验。但是如果至少一个视频源文件中仅一个视频源文件的帧率较高,则会导致第二帧率设定的较高,最终依据第二帧率确定的第一帧率确定的刷新率也可能会较高,进而会造成手机的耗能不必要的增加。
上述的第二种的方案的优势则在于,采用所有视频源文件的帧率的平均值,既可以在一定程度上代表所有视频源文件的帧率,也使得在所有视频源文件的帧率中仅个别帧率较大这种情况下最终的第二帧率不会太大,降低了手机的耗能。
上述的第三种方案的优势则在于,完全将第二帧率的选择交由用户确定,也就使得最终显示屏的刷新率收到用户的控制,可以很好的保证用户的需求。
示例性的,以至少一个视频源文件包括第一视频源文件、第二视频源文件和第三视频源文件为例,上述第三种方案的一种可实现方式中,手机在播放至少一个视频源文件时,可以在显示屏上显示一个弹框,该弹框中可以存在有“第一视频源文件的帧率-60hz”、“第二视频源文件的帧率-50hz”和“第三视频源文件的帧率-55hz”三个控件选项,用户可以根据自身需求选择点击其中的一个,手机便可以响应于用户的点击操作决定最终的第二帧率。第三种方案的另一种可实现方式中,手机可以先向用户发出语音指令以提示用户说出其选择的第二帧率,例如“请说出您想要用当前显示的哪一个视频的帧率代表所有显示的视频”,然后接收用户根据自身需求说出的语音指令(例如“我选择古装偶像剧的帧率作为所有视频的帧率”),最后识别该语音指令后,选择用户确定的视频源文件的帧率作为第二帧率。
3024、手机根据第二帧率确定第一帧率。
基于上述技术方案,因为基于了一定的规则确定了电子设备当前播放的至少一个视频源文件的第一帧率,用该第一帧率代表了至少一个视频源文件中所有视频源文件的帧率,后续电子设备根据该第一帧率确定的显示屏的刷新率,也就可以在一定程度上匹配所有的视频源文件,使得用户的观看效果更佳。需要说明的是,上述3021步骤可以在3022-3024步骤中任一个步骤的前后,图8仅为一种可能的实现方式,实际中可以为其他任意可行的实现方式。
一种可实现的方式中,可以直接将第二帧率确定为第一帧率。
另一种可实现的方式中,结合图8,参照图9所示,上述3024步骤可以包括30241-30243:
30241、手机判断第二帧率是否在预设帧率范围内。
当确定第二帧率在预设帧率范围内时,手机执行30242;当确定第二帧率不再预设帧率范围内时,手机执行30243。其中,预设帧率范围中的最小值可以是视频源文件播放时人眼能够察觉到明显的图片切换(卡顿)时视频源文件的帧率(24Hz),预设帧率范围中的最大值可以是预设最大帧率(例如400Hz)。
若第二帧率不在预设帧率范围内或者其不存在,则表明该第二帧率在获取过程中 可能存在获取规则的不适合或者视频源帧率获取时的误差。这种情况下得到的第二帧率是异常的,不属于正常视频源的帧率范围。所以此时第二帧率则不能作为确定第一帧率的基础。
另外,实际中可以不存在上述30241步骤,手机直接在第二帧率在预设帧率范围内的情况下执行30242,在第二帧率不在预设帧率范围内的情况下执行30243即可。
30242、手机将第二帧率作为第一帧率。
30243、手机将第三刷新率对应的帧率作为第一帧率。
其中,第三刷新率小于或等于手机的显示屏支持的最大刷新率,第三刷新率可以是预先配置的刷新率,例如根据实际中用户观看视频的相关数据(例如多个用户观看的所有视频的帧率中占比最大帧率)决定合适的刷新率后在手机中预先设置,也可以是手机响应于用户的设置操作设置的。
这样一来,基于上述30241-30243对应的技术方案,在初步根据至少一个视频源文件中所有视频源文件的帧率确定了第二帧率后,在第二帧率处于合适的帧率范围内(预设帧率范围)时,才会将该第二帧率确定为第一帧率。这样一来,也就保证了电子设备(例如手机)顺利播放该视频源文件并且播放过程中保证用户的观看体验(不察觉到卡顿)。而在第二帧率不在预设帧率范围内时,将提前设置好的第三刷新率对应的帧率作为该第一帧率,从而保证了电子设备对视频源文件的顺利播放。
其中,预先配置可以是依据实际对大量视频和电子设备进行调查的结果得出,从而使得电子设备在以第三刷新率在播放视频源文件,保证该电子设备的使用者的使用体验。例如电子设备为某种专注于游戏的手机时,因为游戏视频的帧率较高,所以该第三刷新率可以被预先配置为60帧以上;又例如某种专注于拍照的手机时,因为其常播放的视频可能并不具备很大的帧率,所以该第三刷新率可以被预先配置为60帧左右乃至更小。
对于其中手机响应于用户的设置操作设置第三刷新率的方式,可以为以下几种可能的场景:
在第一种可能的场景中,用户可以通过手机本身的设置功能设置第三刷新率。具体的,参照图10中(a)所示,手机可以接收用户对设置界面中的第三刷新率设置选项的点击操作。然后,手机可以响应于用户的点击操作,如图10中(b)所示,显示第三刷新率可以设置的几个值(图中以“50hz”、“60hz”和“90hz”为例)。其中,因为考虑到延长手机使用时间的目的,手机生产商可以推荐用户选择既能保证使用体验又不很耗电的选项,如可以在图10中(b)所示的“60hz”的右上角标注“推荐”,以给出用户一定的选择建议。手机也可以如图10中(c)所示,响应于用户的点击操作,显示一个滑条20,其上可以存在有一个滑块21,滑条20上方可以存在预设区域22用于显示当前滑块21位置对应的刷新率。当滑块21被用户滑动到滑条20的最左端时,则滑块21的位置对应的刷新率可以为预设最小值(例如25hz),滑块21向右滑动则对应的帧率逐渐变大,当其滑动到滑条的最右侧时,则对应的刷新率为手机支持的最大刷新率(例如144hz)。
在第二种可能的场景中,用户可以在播放视频源文件的应用的设置界面对第三刷新率进行设置。具体的,手机可以响应于用户在应用的设置界面中的对应第三刷新率 的设置选项的点击操作,显示所有可选的第三刷新率的值(可以类似图10中(b)中的各个第三刷新率的可选值)或者一种第三刷新率的选择控件(可以类似图10中(c)中的滑条和滑块)。然后响应于用户的相关操作确定第三刷新率。具体实现方式可以参照第一种场景中的表述,此处不再赘述。
在第三种可能的场景中,用户可以通过手机本身的智能助手设置第三刷新率。具体可以手机先响应于用户说出的智能助手唤醒指令显示智能助手界面。然后手机可以响应于用户说出的设置第三刷新率的相关语音指令(例如“将第三刷新率(实际中为方便用户理解,第三刷新率可以是常态刷新率)设置为60hz”),确定第三刷新率。其中,因为智能助手具备一定的AI智能,所以设置第三刷新率的相关语音指令可以是任意可被识别的语音指令,本申请对此不做具体限制。
在第四种可能的场景中,手机可以在开始播放视频源文件时,引导用户设置第三刷新率。具体的,如图11中(a)所示,手机可以在开始播放视频源文件,显示弹窗31,弹窗中可以存在有“请输入播放视频时的刷新率(最小25Hz,最大144Hz)”。其中,()中的内容旨在提示用户输入的刷新率的可行范围,其中的最小25Hz为是人眼察觉不到图片切换的视频帧率对应的刷新率,最大144Hz为手机的显示屏可以支持的最大刷新率。弹窗中最开始显示的提示语可以在用户电机该弹框的内部后消失。而后,手机可以基于用户在该弹窗中输入的值,例如图11中(b)所示的“60hz”,确定第三刷新率。当然,该弹窗还可以为其他任意可行样式,只要可使用户输入或选择第三刷新率的选择值即可。
当然,实际中还可以存在其他任意可能的场景,和其他任意可行的第三刷新率的设置方式,前述四种场景的相关表述仅为示例,对实际的设置过程并不做具体限制。
303、手机判断当前是否接收到交互操作。
其中,交互操作可以为针对至少一个视频源文件中任一个视频源文件的播放界面的交互操作(例如滑动,发弹幕等),也可以为针对某个视频源文件的交互操作(例如语音指令、按键操作等)。
如果手机接收到交互操作时,手机执行304;如果手机未接收到交互操作时,手机执行305。
示例性的,交互操作包括但不限于以下任一项:触屏滑动、点击、语音控制、按键操作、隔空手势、遥控、远程控制、鼠标操作、键盘操作、视觉控制、面部表情识别。
实际中,手机可以根据其内设置的各类传感器确定其是否接收到交互操作,例如触摸传感器、按键下的压力传感器等。
因为交互操作大多需要一定的动画效果,而动画效果所需的帧率一般也较大,所以在确定使用何种刷新率播放视频源文件时,也需要进行是否接收到交互操作的判断。
另外,实际中可以不存在上述303步骤,手机直接在当前未接收到交互操作的情况下执行304,在当前接收到交互操作的情况下执行305即可。
304、手机将自身显示屏的刷新率调整为第二刷新率。
其中,第二刷新率小于或等于电子设备的显示屏的最大刷新率,且第二刷新率对应的帧率处于交互操作对应的动画效果所需的帧率的预设范围内。第二刷新率可以由 手机预先设置,也可以是手机响应于用户的设置操作设置的。其中,第二刷新率设置的具体实现与第三刷新率雷同,可参照前述第三刷新率设置的具体场景表述,此处不再赘述。
在一种可能的实现方式中,在第二刷新率为预先设置的刷新率的情况下,为了使得用户实施交互操作过程中的交互体验更好,第二刷新率对应的帧率可以为交互操作对应的动画效果所需的帧率的预设范围内的最大值。例如预设范围为60Hz-90Hz,则第二刷新率可以为90Hz的帧率对应的刷新率。这样一来,使用交互操作对应的动画效果所需的帧率的预设范围内的最大值对应的刷新率作为第二刷新率,可以使得用户在观看电子设备播放的视频源文件过程中实施的交互操作呈现的动画效果更为顺滑,用户的交互体验也就更好。
在一种可能的设计方式中,因为实际中用户在控制电子设备播放了某个视频后,很有可能根据自己的喜好进一步进行一定的交互操作。这种情况下,可以将第一操作认为是一个交互操作,并将第一刷新率设置的与第二刷新率相同。这样一来,便减少了一次刷新率切换的动作,也就避免了用户在观看视频过程中因为察觉出刷新率变化而产生的一些视觉不适,提高了用户体验。
另外,在一种可能的实现方式中,因为实际中交互操作对应的动画效果的帧率往往会比视频源文件的帧率要大,所以本申请中,第三刷新率大于第二刷新率。
305、手机判断接收到第一操作或上一个针对视频源文件的交互操作的时刻距离当前时刻的目标时长是否大于或等于预设时长。
当手机确定的目标时长大于或等于预设时长,则执行306;当手机确定目标时长小于预设时长,则重新执行305。305步骤的具体可以理解为判断手机接收到第一操作或上一个交互操作开始的预设时长内是否未再次接收到交互操作。
该305步骤的目的在于,因为手机需要根据用户对视频源文件的交互操作、第一帧率和视频源文件额播放状态,来确定播放视频源文件的刷新率,有交互操作和无交互操作时确定的刷新率是不同的。如果用户一直每隔一小会便连续进行交互操作,会导致手机反复不断的进行刷新率的调整,不仅会增大用户察觉到刷新率变化的可能性(会降低用户体验),还会增加手机的耗电。所以这里可以设定一个预设时长,如果用户进行第一操作或交互操作后预设时长内都未再次进行交互操作,则表明接下来用户大概率不会很快进行交互操作,此时可以放心将手机的显示屏的刷新率调增为无交互操作时对应的刷新率。
示例性的,305步骤的实现方式可以是手机设置一个不断计时的计时器,该计时器在手机接收到第一操作或每次接收到交互操作时,则会重置重新开始计时。手机便可以根据该计时器的计时时间确定手机接收到第一操作或上一个交互操作开始的预设时长内是否未再次接收到交互操作。若计时器的计时时长以达到预设时长,则表明手机接收到第一操作或上一个交互操作开始的预设时长内未再次接收到交互操作。若计时器的计时时长未达到预设时长,则表明手机接收到第一操作或上一个交互操作开始的预设时长内未再次接收到交互操作。
另外,实际中可以不存在上述305步骤,手机直接在确定的目标时长大于或等于预设时长时执行306;当手机确定目标时长小于预设时长时重新执行305即可。
306、手机判断至少一个视频源文件中是否存在正在播放的视频源文件。
当手机确定至少一个视频源文件中存在正在播放的视频源文件时,执行307;当手机确定至少一个视频源文件中不存在正在播放的视频源文件时,执行308。
306步骤的意义在于,因为如果当前手机已经不需要播放任一个视频源文件且不需要播放交互操作对应的动画,则可以使显示屏只在有送显内容的时候刷新,没有送显内容的时候不刷新即可。从而起到很好的省电效果,提高用户体验。
另外,实际中可以不存在上述306步骤,手机直接在确定至少一个视频源文件中存在正在播放的视频源文件时执行307;当手机确定至少一个视频源文件中不存在正在播放的视频源文件时执行308即可。
307、手机判断第一帧率是否大于第三刷新率对应的帧率。
当手机确定第一帧率大于第三刷新率对应的帧率,则执行309;当手机确定第一帧率小于或等于第三刷新率对应的帧率,则执行310。
因为在第一帧率大于第三刷新率对应的帧率的情况下,表明视频源文件的最好播放效果(使用对应第一帧率的刷新率播放至少一个视频源文件)其实已经超出了用户的需要。所以此时直接使用第三刷新率播放至少一个视频源文件,便可以以较低的功耗达到用户的需求(309步骤)。
在第一帧率小于或等于第三刷新率对应的帧率的情况下,则表明用户需求的刷新率完全可以实现该视频源文件的最好的播放效果。所以此时可以使用对应第一帧率的刷新率播放至少一个视频源文件(310步骤),既满足了用户体验,又起到了避免无效刷帧和省电的效果。
另外,实际中可以不存在上述307步骤,手机直接在确定第一帧率大于第三刷新率对应的帧率时执行309;当确定第一帧率小于或等于第三刷新率对应的帧率时执行310即可。
308、手机按照自身的送显内容调整手机的显示屏的刷新率。
具体的,此时若手机没有送显内容,则显示屏的刷新率可以为0,起到了极大的省电效果。
309、手机将自身显示屏的刷新率调整为第三刷新率。
310、手机将自身显示屏的刷新率调整为第一帧率对应的刷新率。
基于本申请实施例提供的技术方案,电子设备在对视频源文件的播放过程中,会结合当前播放的至少一个视频源文件的第一帧率和每个视频源文件的播放状态,以及是否接收到用户操作三个方面的因素来调整显示屏的刷新率。在这三个方面的因素中,视频源文件的帧率的大小决定了其自身在被播放时所需要的合适刷新率,视频源文件是否正在被播放则直接决定了当前是否有需要显示屏刷新显示的内容。而用户产生的交互操作则所需的动画效果则需要较高的刷新率才能不卡顿的显示,所以本申请在结合了这三个方面的因素后,可以合理的调整播放视频源文件时显示屏的刷新率,使得电子设备的显示屏的刷新率与视频源文件播放过程中所需的刷新率更为接近或相等;而视频源文件的播放是否流畅是由视频源文件的播放过程中需要的刷新率与显示屏的刷新率的相近程度决定的,两者越相近,则播放过程就越流畅且越省电,用户体验也就越好。因而综上所述,本申请提供的技术方案,能够提高电子设备在播放视频源文 件时的用户体验度。
可以理解的是,上述设备等为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请实施例的范围。
本申请实施例可以根据上述方法示例对上述电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用对应各个功能划分各个功能模块的情况下,参照图12所示,本申请实施例提供了一种电子设备12,包括:交互检测模块121、帧率解析模块122、状态检测模块123、配置模块124和控制模块125。该电子设备12中的各个模块可以结合起来实现前述实施例中提供的刷新率调整方法。
参照图12所示,具体工作原理如下:
在用户对电子设备12进行了第一操作后,电子设备12则会响应该第一操作开始使用第一刷新率播放至少一个视频源文件。而后,交互检测模块121、帧率解析模块122、状态检测模块123、配置模块124和控制模块125便会被电子设备启用。
其中,交互检测模块121会实时向控制模块125上报电子设备接收到的交互指令。
帧率解析模块122会获取至少一个视频源文件的第一帧率上报给控制模块125。相当于执行前述实施例中302步骤中的获取至少一个视频源文件的第一帧率,具体可以包括前述实施例中的3022、3023和3024(包括30241-30243)等步骤。
状态检测模块123则会向控制模块上报至少一个视频源文件中每个视频源文件的播放状态。相当于执行前述实施例中302步骤中的获取至少一个视频源文件中每个视频源文件的播放状态。
配置模块124则会向控制模块125上报第二刷新率、第三刷新率和预设时长;具体的,其中第二刷新率和第三刷新率可以预先设置在配置模块124中,也可以由配置模块124执行前述实施例中第二刷新率和第三刷新率相关经由用户设置的具体过程。
控制模块125则根据交互检测模块121、帧率解析模块122、状态检测模块123和配置模块124上报的所有数据,进行刷新率的确定,具体可以为执行前述实施例中的303-310步骤。参照图12所示,具体包括以下几种情况:
S1、在确定电子设备接收到交互操作的情况下,将电子设备的显示屏的刷新率调整为第二刷新率。
S2、在确定电子设备接收到第一操作或上一次交互操作后预设时长内没有再接收到交互操作,且至少一个视频源文件中存在正在播放的视频的情况下,若第一帧率大于第三刷新率对应的帧率,则确定显示屏的刷新率为第三刷新率。若第一帧率小于或等于第三刷新率对应的帧率,则确定显示屏的刷新率为第一帧率对应的刷新率。
S3、在确定电子设备接收到第一操作或上一次交互操作后预设时长内没有再接收到交互操作,且至少一个视频源文件中不存在正在播放的视频的情况下,根据电子设备的送显内容调整电子设备的显示屏的刷新率。
关于上述实施例中的电子设备,其中各个模块执行操作的具体方式已经在前述实施例中的刷新率调整方法的实施例中进行了详细描述,此处不再具体阐述。其相关的有益效果也可参照前述刷新率调整方法的相关有益效果,此处不再赘述。
本申请实施例还提供一种电子设备,该电子设备包括显示屏、存储器和一个或多个处理器;显示屏、存储器与处理器耦合;其中,存储器中存储有计算机程序代码,计算机程序代码包括计算机指令,当计算机指令被处理器执行时,使得电子设备执行如前述实施例提供的刷新率调整方法。该电子设备的具体结果可参照图1中所示的电子设备100的结构。
具体的,当计算机指令被处理器执行时,使得电子设备执行如下步骤:电子设备接收第一操作,第一操作用于触发电子设备播放至少一个视频源文件;处理器响应于第一操作,控制显示屏采用第一刷新率播放至少一个视频源文件,并获取至少一个视频源文件的第一帧率,以及至少一个视频源文件中每个视频源文件的播放状态,播放状态包括正在播放或停止播放;第一刷新率小于或等于电子设备的显示屏的最大刷新率;在电子设备接收到用户在至少一个视频源文件中任一个视频源文件的播放界面的交互操作的情况下,处理器将电子设备的显示屏的刷新率调整为第二刷新率;第二刷新率小于或等于电子设备的显示屏的最大刷新率;第二刷新率对应的帧率处于交互操作对应的动画效果所需的帧率的预设范围内;在电子设备从接收到第一操作或上一个交互操作开始的预设时长内未再次接收到交互操作,且至少一个视频源文件中存在正在播放的视频源文件的情况下,若第一帧率大于第三刷新率对应的帧率,处理器将电子设备的显示屏的刷新率调整为第三刷新率;若第一帧率小于或等于第三刷新率对应的帧率,控制器则将电子设备的显示屏的刷新率调整为第一帧率对应的刷新率;第三刷新率小于或等于电子设备的显示屏的最大刷新率。
可选的,当该计算机指令被处理器执行时,使得电子设备还执行如下步骤:若电子设备从接收到第一操作或上一个交互操作开始的预设时长内未再次接收到交互操作,且至少一个视频源文件中不存在正在播放的视频源文件,则处理器按照电子设备的送显内容调整电子设备的显示屏的刷新率。
可选的,第一刷新率与第二刷新率相等。
可选的,当该计算机指令被处理器执行时,使得电子设备具体执行如下步骤:处理器获取至少一个视频源文件中每个视频源文件的帧率;处理器将至少一个视频源文件中所有视频源文件的帧率中最大的帧率作为第二帧率,或者,处理器将至少一个视频源文件中所有视频源文件的帧率的平均值作为第二帧率,或者,处理器接收用户对至少一个视频源文件中所有视频源文件的帧率的选择操作,将用户选择的帧率作为第二帧率;处理器根据第二帧率,确定第一帧率。
可选的,当该计算机指令被处理器执行时,使得电子设备具体执行如下步骤:若第二帧率在预设帧率范围内,则处理器将第二帧率作为第一帧率。
可选的,当该计算机指令被处理器执行时,使得电子设备还具体执行如下步骤: 若第二帧率不在预设帧率范围内,则处理器将第三刷新率对应的帧率作为第一帧率。
可选的,当该计算机指令被处理器执行时,使得电子设备具体执行如下步骤:处理器针对至少一个视频源文件中每个视频源文件执行以下操作,以获取至少一个视频源文件中每个视频源文件的帧率:处理器获取第一视频源文件的属性信息中的帧率;或者,处理器从搜索平台搜索第一视频源文件,以从搜索平台获取第一视频源文件的帧率;或者,处理器根据第一视频源文件的特征参数,计算第一视频源文件的帧率;特征参数包括大小、时长和分辨率;第一视频源文件为至少一个视频源文件中的任一个。
可选的,第二刷新率和第三刷新率是预先配置的刷新率;或者,第二刷新率和第三刷新率是电子设备响应于用户的设置操作设置的。
可选的,第三刷新率大于第二刷新率。
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质包括计算机指令,当所述计算机指令在电子设备上运行时,使得电子设备执行如前述实施例提供的刷新率调整方法,或者使电子设备执行前述实施例中手机执行的各个功能或步骤。
本申请实施例还提供一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行如前述实施例提供的刷新率调整方法,或者使计算机执行前述实施例中手机执行的各个功能或步骤。其中,该计算机可以是前述的电子设备
通过以上实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的 全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (12)

  1. 一种刷新率调整方法,应用于电子设备,其特征在于,所述方法包括:
    所述电子设备接收第一操作,所述第一操作用于触发所述电子设备播放至少一个视频源文件;
    所述电子设备响应于所述第一操作,采用第一刷新率播放至少一个视频源文件,并获取所述至少一个视频源文件的第一帧率,以及所述至少一个视频源文件中每个视频源文件的播放状态,所述播放状态包括正在播放或停止播放;所述第一刷新率小于或等于所述电子设备的显示屏的最大刷新率;
    在所述电子设备接收到用户在所述至少一个视频源文件中任一个视频源文件的播放界面的交互操作的情况下,所述电子设备将所述电子设备的显示屏的刷新率调整为所述第二刷新率;所述第二刷新率小于或等于所述电子设备的显示屏的最大刷新率;所述第二刷新率对应的帧率处于所述交互操作对应的动画效果所需的帧率的预设范围内;
    在所述电子设备从接收到所述第一操作或上一个交互操作开始的预设时长内未再次接收到交互操作,且所述至少一个视频源文件中存在正在播放的视频源文件的情况下,若所述第一帧率大于第三刷新率对应的帧率,所述电子设备将所述电子设备的显示屏的刷新率调整为所述第三刷新率;若所述第一帧率小于或等于所述第三刷新率对应的帧率,所述电子设备则将所述电子设备的显示屏的刷新率调整为所述第一帧率对应的刷新率;所述第三刷新率小于或等于所述电子设备的显示屏的最大刷新率。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    若所述电子设备从接收到所述第一操作或上一个交互操作开始的预设时长内未再次接收到交互操作,且所述至少一个视频源文件中不存在正在播放的视频源文件,则按照所述电子设备的送显内容调整所述电子设备的显示屏的刷新率。
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一刷新率与所述第二刷新率相等。
  4. 根据权利要求1或2所述的方法,其特征在于,所述获取所述至少一个视频源文件的第一帧率,包括:
    所述电子设备获取所述至少一个视频源文件中每个视频源文件的帧率;
    所述电子设备将所述至少一个视频源文件中所有视频源文件的帧率中最大的帧率作为第二帧率,或者,所述电子设备将所述至少一个视频源文件中所有视频源文件的帧率的平均值作为第二帧率,或者,所述电子设备接收用户对所述至少一个视频源文件中所有视频源文件的帧率的选择操作,将用户选择的帧率作为第二帧率;
    根据所述第二帧率,确定所述第一帧率。
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述第二帧率,确定所述第一帧率,包括:
    若所述第二帧率在预设帧率范围内,则将所述第二帧率作为所述第一帧率。
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:
    若所述第二帧率不在所述预设帧率范围内,则将所述第三刷新率对应的帧率作为所述第一帧率。
  7. 根据权利要求4-6任一项所述的方法,其特征在于,所述电子设备获取所述至少一个视频源文件中每个视频源文件的帧率,包括:
    所述电子设备针对所述至少一个视频源文件中每个视频源文件执行以下操作,以获取所述至少一个视频源文件中每个视频源文件的帧率:
    所述电子设备获取第一视频源文件的属性信息中的帧率;或者,
    所述电子设备从搜索平台搜索所述第一视频源文件,以从所述搜索平台获取所述第一视频源文件的帧率;或者,
    所述电子设备根据所述第一视频源文件的特征参数,计算第一视频源文件的帧率;所述特征参数包括大小、时长和分辨率;所述第一视频源文件为所述至少一个视频源文件中的任一个。
  8. 根据权利要求1-7中任一项所述的方法,其特征在于,
    所述第二刷新率和所述第三刷新率是预先配置的刷新率;或者,所述第二刷新率和所述第三刷新率是所述电子设备响应于用户的设置操作设置的。
  9. 根据权利要求8所述的方法,其特征在于,在所述第二刷新率是预先配置的刷新率的情况下,所述第二刷新率对应的帧率为所述交互操作对应的动画效果所需的帧率的预设范围内的最大值。
  10. 根据权利要求1-9中任一项所述的方法,其特征在于,所述第三刷新率大于所述第二刷新率。
  11. 一种电子设备,其特征在于,包括:显示屏、存储器和一个或多个处理器;所述显示屏、所述存储器与所述处理器耦合;其中,所述存储器中存储有计算机程序代码,所述计算机程序代码包括计算机指令,当所述计算机指令被所述处理器执行时,使得所述电子设备执行如权利要求1-10任一项所述的刷新率调整方法。
  12. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-10中任一项所述的刷新率调整方法。
PCT/CN2022/072608 2021-05-19 2022-01-18 一种刷新率调整方法和电子设备 WO2022242213A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN202280003539.5A CN115552916B (zh) 2021-05-19 2022-01-18 一种刷新率调整方法和电子设备
JP2022573569A JP2023529589A (ja) 2021-05-19 2022-01-18 リフレッシュ・レート調整方法及び電子デバイス
EP22793369.4A EP4131982A4 (en) 2021-05-19 2022-01-18 UPDATE RATE SETTING METHOD AND ELECTRONIC DEVICE

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110548052.2 2021-05-19
CN202110548052.2A CN113438552B (zh) 2021-05-19 2021-05-19 一种刷新率调整方法和电子设备

Publications (2)

Publication Number Publication Date
WO2022242213A1 true WO2022242213A1 (zh) 2022-11-24
WO2022242213A9 WO2022242213A9 (zh) 2023-11-16

Family

ID=77802463

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/072608 WO2022242213A1 (zh) 2021-05-19 2022-01-18 一种刷新率调整方法和电子设备

Country Status (4)

Country Link
EP (1) EP4131982A4 (zh)
JP (1) JP2023529589A (zh)
CN (2) CN113438552B (zh)
WO (1) WO2022242213A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113438552B (zh) * 2021-05-19 2022-04-19 荣耀终端有限公司 一种刷新率调整方法和电子设备
CN114327127B (zh) * 2021-11-27 2022-12-23 荣耀终端有限公司 滑动丢帧检测的方法和装置
CN114205673A (zh) * 2021-12-16 2022-03-18 荣耀终端有限公司 刷新率的设置方法及相关设备
CN114245208A (zh) * 2021-12-16 2022-03-25 荣耀终端有限公司 刷新率的设置方法及相关设备
CN116501210A (zh) * 2022-01-10 2023-07-28 荣耀终端有限公司 一种显示方法、电子设备及存储介质

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080100598A1 (en) * 2006-10-31 2008-05-01 Dell Products, Lp System and method for providing dynamic refresh rates for displays
CN104347049A (zh) * 2014-09-24 2015-02-11 广东欧珀移动通信有限公司 一种调整屏幕刷新频率的方法及装置
CN105869560A (zh) * 2016-04-01 2016-08-17 广东欧珀移动通信有限公司 一种显示屏刷新帧率调整方法及装置
CN109640168A (zh) * 2018-11-27 2019-04-16 Oppo广东移动通信有限公司 视频处理方法、装置、电子设备和计算机可读介质
US20190180705A1 (en) * 2017-12-07 2019-06-13 Qualcomm Incorporated Dynamic control of display refresh rate based on user interface activity
CN111324235A (zh) * 2020-02-26 2020-06-23 维沃移动通信有限公司 一种屏幕刷新频率调整方法及电子设备
CN111767013A (zh) * 2020-06-01 2020-10-13 Oppo(重庆)智能科技有限公司 控制方法、控制装置、电子装置、计算机可读存储介质
CN111782458A (zh) * 2020-06-01 2020-10-16 Oppo(重庆)智能科技有限公司 屏幕刷新率调节方法、装置、存储介质与电子设备
CN113438552A (zh) * 2021-05-19 2021-09-24 荣耀终端有限公司 一种刷新率调整方法和电子设备

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9589540B2 (en) * 2011-12-05 2017-03-07 Microsoft Technology Licensing, Llc Adaptive control of display refresh rate based on video frame rate and power efficiency
US8884977B2 (en) * 2012-08-24 2014-11-11 Analogix Semiconductor, Inc. Panel self refreshing with changing dynamic refresh rate
CN105007443B (zh) * 2015-07-08 2019-01-08 福州瑞芯微电子股份有限公司 一种视频变频播放方法及装置
CN110875978A (zh) * 2018-08-31 2020-03-10 努比亚技术有限公司 一种终端显示的控制方法、终端及计算机可读存储介质
CN109688461B (zh) * 2019-01-16 2022-05-10 京东方科技集团股份有限公司 视频播放方法及装置
US10861424B2 (en) * 2019-02-07 2020-12-08 Intel Corporation Adjusting display refresh rates based on user activity
CN112445315A (zh) * 2019-08-28 2021-03-05 北京小米移动软件有限公司 屏幕刷新帧率的控制方法、装置及存储介质
CN111899680B (zh) * 2020-07-14 2023-04-18 青岛海信医疗设备股份有限公司 一种显示设备及其设置方法
US20210116988A1 (en) * 2020-12-24 2021-04-22 Intel Corporation Technologies for self-refresh display power saving

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080100598A1 (en) * 2006-10-31 2008-05-01 Dell Products, Lp System and method for providing dynamic refresh rates for displays
CN104347049A (zh) * 2014-09-24 2015-02-11 广东欧珀移动通信有限公司 一种调整屏幕刷新频率的方法及装置
CN105869560A (zh) * 2016-04-01 2016-08-17 广东欧珀移动通信有限公司 一种显示屏刷新帧率调整方法及装置
US20190180705A1 (en) * 2017-12-07 2019-06-13 Qualcomm Incorporated Dynamic control of display refresh rate based on user interface activity
CN109640168A (zh) * 2018-11-27 2019-04-16 Oppo广东移动通信有限公司 视频处理方法、装置、电子设备和计算机可读介质
CN111324235A (zh) * 2020-02-26 2020-06-23 维沃移动通信有限公司 一种屏幕刷新频率调整方法及电子设备
CN111767013A (zh) * 2020-06-01 2020-10-13 Oppo(重庆)智能科技有限公司 控制方法、控制装置、电子装置、计算机可读存储介质
CN111782458A (zh) * 2020-06-01 2020-10-16 Oppo(重庆)智能科技有限公司 屏幕刷新率调节方法、装置、存储介质与电子设备
CN113438552A (zh) * 2021-05-19 2021-09-24 荣耀终端有限公司 一种刷新率调整方法和电子设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4131982A4

Also Published As

Publication number Publication date
CN115552916A (zh) 2022-12-30
CN113438552A (zh) 2021-09-24
CN115552916B (zh) 2023-11-07
CN113438552B (zh) 2022-04-19
JP2023529589A (ja) 2023-07-11
EP4131982A4 (en) 2023-12-20
EP4131982A1 (en) 2023-02-08
WO2022242213A9 (zh) 2023-11-16

Similar Documents

Publication Publication Date Title
WO2022242213A1 (zh) 一种刷新率调整方法和电子设备
CN112717370B (zh) 一种控制方法和电子设备
WO2017129082A1 (zh) 一种终端控制方法及终端
AU2014230175B2 (en) Display control method and apparatus
CN110543289B (zh) 控制音量的方法和电子设备
WO2020216156A1 (zh) 投屏方法和计算设备
US11632584B2 (en) Video switching during music playback
WO2021088514A1 (zh) 内容数据预加载的方法、电子设备及存储介质
EP4024844A1 (en) Slow-motion video filming method and electronic device
KR20160119239A (ko) 콘텐츠를 표시하는 방법 및 이를 위한 전자 장치
JP2018503845A (ja) 液晶表示方法および装置
CN109147714A (zh) 屏幕的刷新率调整方法及装置、计算机可读存储介质
US20240129620A1 (en) Video Shooting Method and Electronic Device
JP2018505432A (ja) 液晶表示方法および装置
CN113963659A (zh) 显示设备的调整方法及显示设备
WO2022257451A1 (zh) 一种显示方法、电子设备及计算机存储介质
CN114661263B (zh) 一种显示方法、电子设备及存储介质
EP3961491A1 (en) Method for extracting video clip, apparatus for extracting video clip, and storage medium
EP4120668A1 (en) Video processing method and electronic device
WO2021179829A1 (zh) 一种人机交互方法及设备
US20230350631A1 (en) Projection display method and electronic device
EP4273684A1 (en) Photographing method and electronic device
US20220294844A1 (en) Information Transmission Method And Electronic Device
CN114422686A (zh) 参数调整方法及相关装置
WO2023010912A1 (zh) 一种图像处理方法及电子设备

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2022793369

Country of ref document: EP

Effective date: 20221102

WWE Wipo information: entry into national phase

Ref document number: 17998910

Country of ref document: US

ENP Entry into the national phase

Ref document number: 2022573569

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE