Video processing method, electronic device and computer-readable medium
AssigneeGuangdong Oppo Mobile Telecommunications Corp., Ltd.
InventorLizhong Wang
Life of this patent
Estimating the term…
Abstract
A video-processing method includes: obtaining a video frame rate of received video data; determining whether the video frame rate is less than the refreshing frame rate of a screen; and if yes, modifying at least one of the video frame rate of the video data or the refreshing frequency, so that the video frame rate of the video data is greater than or equal to the refreshing frame rate after modification. According to the present application, the effect that the video frame rate of a video file is greater than or equal to the refreshing frequency of the screen can be guaranteed, thus images corresponding to the video file can be displayed when the screen is refreshed, thereby avoiding standstill phenomena of video playback.
Claims16
A method of video-processing for an electronic device, the electronic device comprising a screen, and the method comprising:
- acquiring a video frame rate of video data, wherein a number of video data is more than one, and the video frame rate comprises more than one video frame rates;
- and
- modifying at least one of the video frame rate of the video data and a refreshing rate of the screen in response to the video frame rate being less than the refreshing rate of the screen, wherein, after the modifying, the video frame rate of the video is greater than the refreshing rate, comprising:
- placing the more than one video frame rates in an order from a lowest video frame rate to a highest video frame rate;
- obtaining a video frame rate sequence;
- comparing each of the more than one video frame rates in the video frame rate sequence with the refreshing rate of the screen one by one from the lowest video frame rate, and determining the video frame rate less than the refreshing rate of the screen in the more than one video frame rates, comprising:
- determining the lowest video frame rate in the video frame rate sequence;
- comparing the lowest video frame rate with the refreshing rate of the screen;
- and
- determining the video frame rate less than the refreshing rate of the screen in the more than one video frame rates, in response to the lowest video frame rate being less than the refreshing rate of the screen;
- taking video data corresponding to the video frame rate less than the refreshing rate of the screen as a first video data, in response to the video frame rate less than the refreshing rate of the screen being in the more than one video frame rates;
- taking a lowest video frame rate of the first video data as a target frame rate;
- and
- modifying the refreshing rate of the screen based on the target frame rate, the video frame rate of the first video data being greater than or equal to the modified refreshing rate of the screen.
An electronic device, comprising:
- a screen;
- at least one processor;
- and
- at least one non-transitory memory comprising program code;
- the at least one non-transitory memory and the program code being configured to, with the at least one processor, cause the electronic device to perform:
- acquiring a video frame rate of video data, wherein a number of video data is more than one, and the video frame rate comprises more than one video frame rates;
- and
- modifying at least one of the video frame rate of the video data and a refreshing rate of the screen in response to the video frame rate being less than the refreshing rate of the screen, wherein, after the modifying, the video frame rate of the video is greater than the refreshing rate, comprising:
- placing the more than one video frame rates in an order from a lowest video frame rate to a highest video frame rate;
- obtaining a video frame rate sequence;
- comparing each of the more than one video frame rates in the video frame rate sequence with the refreshing rate of the screen one by one from the lowest video frame rate, and determining the video frame rate less than the refreshing rate of the screen in the more than one video frame rates, comprising:
- determining the lowest video frame rate in the video frame rate sequence;
- comparing the lowest video frame rate with the refreshing rate of the screen;
- and
- determining the video frame rate less than the refreshing rate of the screen in the more than one video frame rates, in response to the lowest video frame rate being less than the refreshing rate of the screen;
- taking video data corresponding to the video frame rate less than the refreshing rate of the screen as a first video data, in response to the video frame rate less than the refreshing rate of the screen being in the more than one video frame rates;
- taking a lowest video frame rate of the first video data as a target frame rate;
- and
- modifying the refreshing rate of the screen based on the target frame rate, the video frame rate of the first video data being greater than or equal to the modified refreshing rate of the screen.
A non-transitory computer-readable medium, having a computer code stored therein, wherein the computer code is capable of being invoked by a processor to execute operations of:
- acquiring a video frame rate of video data, wherein a number of video data is more than one, and the video frame rate comprises more than one video frame rates;
- and
- modifying at least one of the video frame rate of the video data and a refreshing rate of a screen in response to the video frame rate being less than the refreshing rate of the screen, wherein, after the modifying, the video frame rate of the video is greater than the refreshing rate, comprising:
- placing the more than one video frame rates in an order from a lowest video frame rate to a highest video frame rate;
- obtaining a video frame rate sequence;
- comparing each of the more than one video frame rates in the video frame rate sequence with the refreshing rate of the screen one by one from the lowest video frame rate, and determining the video frame rate less than the refreshing rate of the screen in the more than one video frame rates, comprising:
- determining the lowest video frame rate in the video frame rate sequence;
- comparing the lowest video frame rate with the refreshing rate of the screen;
- and
- determining the video frame rate less than the refreshing rate of the screen in the more than one video frame rates, in response to the lowest video frame rate being less than the refreshing rate of the screen;
- taking video data corresponding to the video frame rate less than the refreshing rate of the screen as a first video data, in response to the video frame rate less than the refreshing rate of the screen being in the more than one video frame rates;
- taking a lowest video frame rate of the first video data as a target frame rate;
- and
- modifying the refreshing rate of the screen based on the target frame rate, the video frame rate of the first video data being greater than or equal to the modified refreshing rate of the screen.
Dependencies are inferred from the claim text.