CN110753266A - Video definition adjusting method and device and storage medium - Google Patents
Video definition adjusting method and device and storage medium Download PDFInfo
- Publication number
- CN110753266A CN110753266A CN201911014612.5A CN201911014612A CN110753266A CN 110753266 A CN110753266 A CN 110753266A CN 201911014612 A CN201911014612 A CN 201911014612A CN 110753266 A CN110753266 A CN 110753266A
- Authority
- CN
- China
- Prior art keywords
- video
- network
- definition
- speed
- current
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 67
- 230000003139 buffering effect Effects 0.000 claims description 35
- 238000004891 communication Methods 0.000 description 6
- 238000000691 measurement method Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000005484 gravity Effects 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/442—Monitoring 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/44209—Monitoring of downstream path of the transmission network originating from a server, e.g. bandwidth variations of a wireless network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440263—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/442—Monitoring 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/44227—Monitoring of local network, e.g. connection or bandwidth variations; Detecting new devices in the local network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/462—Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
- H04N21/4621—Controlling the complexity of the content stream or additional data, e.g. lowering the resolution or bit-rate of the video stream for a mobile client with a small screen
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a video definition adjusting method. The method comprises the following steps: acquiring the network downloading speed of a currently played video and a corresponding network speed fluctuation range; determining network speed threshold values corresponding to different video definitions according to the network speed fluctuation range; and comparing the network downloading speed with the network speed threshold value to determine whether to adjust the video definition. The invention also discloses a video definition adjusting device and a computer readable storage medium. The invention can self-adaptively adjust the video definition according to the condition of the intelligent equipment.
Description
Technical Field
The present invention relates to the field of television picture technologies, and in particular, to a method and an apparatus for adjusting video sharpness, and a computer-readable storage medium.
Background
At present, with the popularization of intelligent mobile devices, people increasingly rely on the intelligent mobile devices in life, such as checking information, listening to music, playing videos and the like on the intelligent mobile devices.
However, at present, in the process of playing videos on an intelligent mobile device, people often cannot know how to adjust the definition of the videos, or people cannot realize that the definition of the videos needs to be adjusted at all, often the definition of the videos can have great influence on the watching experience of users, and if the videos are not adjusted to the good definition, the watching experience of the users can be affected badly.
Disclosure of Invention
The invention mainly aims to provide a method, a device and a computer readable storage medium for adjusting video definition, and aims to realize self-adaptive adjustment of video definition according to network conditions.
In order to achieve the above object, the present invention provides a method for adjusting video definition, which includes the following steps:
acquiring the network downloading speed of a currently played video and a corresponding network speed fluctuation range;
determining network speed threshold values corresponding to different video definitions according to the network speed fluctuation range;
and comparing the network downloading speed with the network speed threshold value to determine whether to adjust the video definition.
Optionally, the step of obtaining the network download speed of the currently playing video includes:
acquiring the network downloading speed of the current playing video within a preset time period under the current definition;
acquiring the network downloading speed of the buffering time period under the current video definition in the network downloading speeds in the preset time period under the current video definition through a preset algorithm;
and calculating an average value according to the network downloading speed of the buffering time period under the current video definition to obtain the network downloading speed under the current video definition.
Optionally, the step of obtaining the network speed fluctuation range corresponding to the currently played video includes:
acquiring the network downloading speed of the current playing video within a preset time period under the current definition;
acquiring the network downloading speed of the buffering time period under the current video definition in the network downloading speeds in the preset time period under the current video definition through a preset algorithm;
and calculating according to the network downloading speed of the buffering time period under the current video definition to obtain the network speed fluctuation range under the current video definition.
Optionally, the step of determining the network speed thresholds corresponding to different video definitions according to the network speed fluctuation range includes:
obtaining the network speed fluctuation range of the currently played video under different definitions;
and solving the lowest value of the network speed fluctuation range of the currently played video under different definitions, and determining that the lowest value of the currently played video under different definitions is the network speed threshold corresponding to different video definitions.
Optionally, the step of determining whether to adjust video definition according to the comparison between the network download speed and the network speed threshold further includes:
if the video definition needs to be adjusted, acquiring the set highest video definition;
and comparing the highest video definition with the video definition determined to be adjusted to judge whether the video definition is adjusted.
Optionally, the step of setting the maximum video definition by the system includes:
acquiring the resolution of equipment and the code rate of a video;
calculating according to the resolution of the equipment and the code rate of the video to obtain the optimal video definition clearly watched by the user;
setting the optimal video definition to a highest video definition.
Optionally, the step of obtaining the network download speed of the currently played video and the corresponding network speed fluctuation range further includes, before the step of obtaining the network download speed of the currently played video and the corresponding network speed fluctuation range:
acquiring the current network type of a video;
judging whether the network type is a preset network type or not;
and if so, acquiring the network downloading speed of the currently played video and the corresponding network speed fluctuation range.
Optionally, after the step of determining whether the network type is a preset network type, the method further includes:
if not, displaying prompt information, and determining whether to acquire the network downloading speed of the currently played video and the corresponding network speed fluctuation range according to the selection result of the user on the prompt information.
In addition, to achieve the above object, the present invention further provides an apparatus for adjusting video definition, including: the video definition adjusting method comprises a memory, a processor and a video definition adjusting program which is stored on the memory and can run on the processor, wherein the video definition adjusting program realizes the steps of the video definition adjusting method when being executed by the processor.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, on which a video definition adjusting program is stored, and the video definition adjusting program implements the steps of the video definition adjusting method when executed by a processor.
The invention provides a method and a device for adjusting video definition and a computer storage medium. In the method, the network downloading speed of the current playing video and the corresponding network speed fluctuation range are obtained; determining network speed threshold values corresponding to different video definitions according to the network speed fluctuation range; and comparing the network downloading speed with the network speed threshold value to determine whether to adjust the video definition. Through the mode, the video definition can be automatically adjusted according to the current video network downloading speed and the network speed fluctuation range, namely according to the current video network condition, and the video can be in good video definition according to the network condition without manual adjustment. The method reduces the operation of manual adjustment and improves the watching experience of the user under the condition of providing good video definition.
Drawings
FIG. 1 is a schematic diagram of an apparatus in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a video sharpness adjustment method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a video sharpness adjustment method according to the present invention;
FIG. 4 is a flowchart illustrating a video sharpness adjustment method according to a third embodiment of the present invention;
FIG. 5 is a flowchart illustrating a fourth embodiment of a video sharpness adjustment method according to the present invention;
FIG. 6 is a flowchart illustrating a fifth embodiment of a video sharpness adjustment method according to the present invention;
FIG. 7 is a flowchart illustrating a method for adjusting video sharpness according to a sixth embodiment of the present invention;
FIG. 8 is a flowchart illustrating a method for adjusting video sharpness according to a seventh embodiment of the present invention;
FIG. 9 is a schematic view of a distribution of download speed data according to a second embodiment of the method for adjusting video sharpness;
fig. 10 is a schematic view of distribution of download speed data according to a third embodiment of the video sharpness adjustment method of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a PC, and can also be a terminal device with a data processing function, such as a smart phone, a tablet computer, a portable computer and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a Wi-Fi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile terminal is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of the mobile terminal; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a video definition adjustment program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the video sharpness adjustment program stored in the memory 1005, and perform the following operations:
acquiring the network downloading speed of a currently played video and a corresponding network speed fluctuation range;
determining network speed threshold values corresponding to different video definitions according to the network speed fluctuation range;
and comparing the network downloading speed with the network speed threshold value to determine whether to adjust the video definition.
Further, the processor 1001 may call the adjustment program of video sharpness stored in the memory 1005, and also perform the following operations:
the step of obtaining the network downloading speed of the currently played video comprises the following steps:
acquiring the network downloading speed of the current playing video within a preset time period under the current definition;
acquiring the network downloading speed of the buffering time period under the current video definition in the network downloading speeds in the preset time period under the current video definition through a preset algorithm;
and calculating an average value according to the network downloading speed of the buffering time period under the current video definition to obtain the network downloading speed under the current video definition.
Further, the processor 1001 may call the adjustment program of video sharpness stored in the memory 1005, and also perform the following operations:
the step of obtaining the network speed fluctuation range corresponding to the currently played video comprises the following steps:
acquiring the network downloading speed of the current playing video within a preset time period under the current definition;
acquiring the network downloading speed of the buffering time period under the current video definition in the network downloading speeds in the preset time period under the current video definition through a preset algorithm;
and calculating according to the network downloading speed of the buffering time period under the current video definition to obtain the network speed fluctuation range under the current video definition.
Further, the processor 1001 may call the adjustment program of video sharpness stored in the memory 1005, and also perform the following operations:
the step of determining the network speed threshold values corresponding to different video definitions according to the network speed fluctuation range comprises the following steps:
obtaining the network speed fluctuation range of the currently played video under different definitions;
and solving the lowest value of the network speed fluctuation range of the currently played video under different definitions, and determining that the lowest value of the currently played video under different definitions is the network speed threshold corresponding to different video definitions.
Further, the processor 1001 may call the adjustment program of video sharpness stored in the memory 1005, and also perform the following operations:
after the step of determining whether to adjust the video definition according to the comparison between the network download speed and the network speed threshold, the method further comprises:
if the video definition needs to be adjusted, acquiring the set highest video definition;
and comparing the highest video definition with the video definition determined to be adjusted to judge whether the video definition is adjusted.
Further, the processor 1001 may call the adjustment program of video sharpness stored in the memory 1005, and also perform the following operations:
the step of the system setting the highest video definition comprises:
acquiring the resolution of equipment and the code rate of a video;
calculating according to the resolution of the equipment and the code rate of the video to obtain the optimal video definition clearly watched by the user;
setting the optimal video definition to a highest video definition.
Further, the processor 1001 may call the adjustment program of video sharpness stored in the memory 1005, and also perform the following operations:
the step of obtaining the network downloading speed and the corresponding network speed fluctuation range of the currently played video further comprises the following steps:
acquiring the current network type of a video;
judging whether the network type is a preset network type or not;
and if so, acquiring the network downloading speed of the currently played video and the corresponding network speed fluctuation range.
Further, the processor 1001 may call the adjustment program of video sharpness stored in the memory 1005, and also perform the following operations:
after the step of judging whether the network type is a preset network type, the method further comprises the following steps:
if not, displaying prompt information, and determining whether to acquire the network downloading speed of the currently played video and the corresponding network speed fluctuation range according to the selection result of the user on the prompt information.
The specific embodiment of the video sharpness adjustment apparatus of the present invention is substantially the same as the following embodiments of the video sharpness adjustment method, and will not be described herein again.
Referring to fig. 2, fig. 2 is a flowchart illustrating a video sharpness adjusting method according to a first embodiment of the present invention, where the video sharpness adjusting method includes:
step S100, acquiring the network downloading speed of the currently played video and the corresponding network speed fluctuation range;
according to the implementation method, when the user plays the video, the definition of the video is automatically adjusted, so that the video playing is under good definition, and the watching experience of the user is enhanced. In this embodiment, adjusting the definition of the video requires first obtaining the network download speed of the currently played video and the corresponding network speed fluctuation range. The video needs to be tested, and the network downloading speed and the corresponding network speed fluctuation range of the currently played video are obtained through testing the speed. Of course, this includes the network download speed and the corresponding network speed fluctuation range of the currently played video at the current definition, and also includes the network download speed and the corresponding network speed fluctuation range of the currently played video at different definitions.
Step S200, determining network speed threshold values corresponding to different video definitions according to the network speed fluctuation range;
after the network speed fluctuation range of the currently played video is obtained, the network speed threshold values corresponding to different video definitions can be determined according to the network speed fluctuation range of the currently played video under different definitions, and if the network speed fluctuation range is 800kb/s to 1000kb/s under the definition of 4K, the network speed threshold value under the definition of 4K can be determined according to the lowest value or the average value of the network speed fluctuation range. Of course, the network speed threshold values at different video resolutions can also be determined in other ways.
And step S300, comparing the network downloading speed with the network speed threshold value to determine whether to adjust the video definition.
After the network speed threshold values corresponding to different video definitions are determined according to the network speed fluctuation range, the network downloading speed can be compared with the network speed threshold values corresponding to different video definitions to determine whether to adjust the video definitions. If the determined network speed threshold value is 800kb/s under the definition of 4K, comparing the current network downloading speed with the network speed threshold value of 800kb/s, and when the network downloading speed is greater than 800kb/s, adjusting the definition to 4K. Of course, in order to avoid frequent adjustment of the definition due to fluctuation of the network speed, time limitation may be performed, for example, when the network download speed is greater than the network speed threshold for a time period longer than the network speed threshold, the adjustment may be performed.
The invention provides a method and a device for adjusting video definition and a computer storage medium. In the method, the network downloading speed of the current playing video and the corresponding network speed fluctuation range are obtained; determining network speed threshold values corresponding to different video definitions according to the network speed fluctuation range; and comparing the network downloading speed with the network speed threshold value to determine whether to adjust the video definition. Through the mode, the video definition can be automatically adjusted according to the current video network downloading speed and the network speed fluctuation range, namely according to the current video network condition, and the video can be in good video definition according to the network condition without manual adjustment. The method reduces the operation of manual adjustment and improves the watching experience of the user under the condition of providing good video definition.
Referring to fig. 3, fig. 3 is a flowchart illustrating a video sharpness adjustment method according to a second embodiment of the present invention.
Based on the foregoing embodiment, in this embodiment, step S100 includes:
step S110, acquiring the network downloading speed within a preset time period under the current definition of the current playing video;
in this embodiment, the network download speed under the current video definition is obtained. The network downloading speed under the current video definition is obtained by measuring the speed. The conventional speed measurement method is to calculate by collecting the flow difference of two time points and dividing the flow difference by the time difference. However, in the speed measurement method, when the user plays the movie normally and there is no pause, there is no way to collect the normal network speed of the user. Since the currently played clip is likely to be a downloaded clip, no downloading is currently performed, which results in no traffic difference and thus no network speed for the user. Therefore, the method provides a new speed measurement method. And constructing a queue for storing the real-time network speed of the user, and storing the downloading speed of the user within a preset time period, such as the downloading speed within 5 minutes.
Step S120, obtaining the network downloading speed of the buffering time period under the current video definition in the network downloading speeds in the preset time period under the current video definition through a preset algorithm;
and after the downloading speed within the preset time period is obtained, the network downloading speed of the buffering time period under the current video definition in the network downloading speeds within the preset time period under the current video definition is obtained through a preset algorithm. For example, if the user network is stable, a relatively stable speed difference can be formed in the buffering time period and the non-buffering time period within 5 minutes, and the data of the non-downloading time period, namely the non-buffering time period, is removed through an optimization algorithm, and the downloading speed data of the buffering time period is extracted. I.e. the download speed data for the obtained buffering period is extracted. Fig. 9 shows a distribution diagram of the download speed data in the buffering time period and the download speed data in the non-buffering time period within the preset time. In the figure, 0 to 200 are data values of the non-buffer period and 200 to 300 are data values of the buffer period, and therefore, data of the period of 200 to 300 is extracted.
Step S130, calculating an average value according to the network downloading speed of the buffering time period under the current video definition, and obtaining the network downloading speed under the current video definition.
And after the downloading speed data of the buffering time period is obtained, calculating an average value to obtain the network downloading speed under the current video definition. That is, the download speed data of the buffering time period is extracted, and the average value Vavg of the average download speed of the current device is calculated according to the data, and is used as the basis for adjusting the definition.
Referring to fig. 4, fig. 4 is a flowchart illustrating a video sharpness adjustment method according to a third embodiment of the present invention.
Based on the foregoing embodiment, in this embodiment, step S100 includes:
step S140, acquiring the network downloading speed within a preset time period under the current definition of the current playing video;
in this embodiment, the network download speed under the current video definition is obtained. The network downloading speed under the current video definition is obtained by measuring the speed. The conventional speed measurement method is to calculate by collecting the flow difference of two time points and dividing the flow difference by the time difference. However, in the speed measurement method, when the user plays the movie normally and there is no pause, there is no way to collect the normal network speed of the user. Since the currently played clip is likely to be a downloaded clip, no downloading is currently performed, which results in no traffic difference and thus no network speed for the user. Therefore, the method provides a new speed measurement method. And constructing a queue for storing the real-time network speed of the user, and storing the downloading speed of the user within a preset time period, such as the downloading speed within 5 minutes.
Step S150, acquiring the network downloading speed of the buffering time period under the current video definition in the network downloading speeds in the preset time period under the current video definition through a preset algorithm;
and after the downloading speed within the preset time period is obtained, the network downloading speed of the buffering time period under the current video definition in the network downloading speeds within the preset time period under the current video definition is obtained through a preset algorithm. For example, if the user network is stable, a relatively stable speed difference can be formed in the buffering time period and the non-buffering time period within 5 minutes, and the data of the non-downloading time period, namely the non-buffering time period, is removed through an optimization algorithm, and the downloading speed data of the buffering time period is extracted. I.e. the download speed data for the obtained buffering period is extracted.
Of course, if the user network is relatively unstable, invalid data with very large fluctuation in a short time is removed from the stored data queue, and then data in a non-buffer time period is removed, and meanwhile, under the condition that stable buffer data exceeding two minutes exists in a preset time from the current time, such as two minutes, the current network stable fluctuation range Vchg (network speed fluctuation range under normal conditions) is calculated by using the data and used as the basis for adjusting the definition. A schematic diagram of the distribution of the download speed data within the preset time can be seen in fig. 10. In the figure, 0 to 100 are invalid data, 100 to 170 are data values of a non-buffer period, and 170 to 300 are data values of a buffer period, and thus, data of the period of 170 to 300 is extracted. Of course, if the user network is extremely unstable, resulting in continuous buffering, it is only necessary to reduce the definition to the case of no jamming. And the speed measurement is not needed.
And step S160, calculating according to the network downloading speed of the buffering time period under the current video definition to obtain the network speed fluctuation range under the current video definition.
And after the downloading speed data of the buffering time period is obtained, calculating an average value to obtain the network downloading speed under the current video definition. Namely, the download speed data of the buffering time period is extracted, and the current network stable fluctuation range Vchg (the network speed stable fluctuation range under the normal condition) is calculated according to the download speed data, and is used as the basis for adjusting the definition.
Referring to fig. 5, fig. 5 is a flowchart illustrating a video sharpness adjustment method according to a fourth embodiment of the invention.
Based on the foregoing embodiment, in this embodiment, step S200 includes:
step S210, obtaining the network speed fluctuation range of the currently played video under different definitions;
in this embodiment, the network speed fluctuation ranges of all the definitions of the video can be obtained through the network speed fluctuation ranges of the video at different definitions. Namely, the network speed fluctuation range of the currently played video under different definitions is obtained.
And step S220, calculating the lowest value of the network speed fluctuation range of the currently played video under different definitions, and determining that the lowest value of the currently played video under different definitions is the network speed threshold corresponding to different video definitions.
After the network speed fluctuation ranges of the currently played video with different definitions are obtained, the lowest value of the network speed fluctuation ranges of the currently played video with different definitions can be obtained, and the lowest value of the currently played video with different definitions is determined to be the network speed threshold corresponding to different video definitions. If the network speed fluctuation range is 800kb/s to 1000kb/s under the definition of 4K, the network speed threshold value of 800kb/s under the definition of 4K can be determined through the lowest value of the network speed fluctuation range.
Referring to fig. 6, fig. 6 is a flowchart illustrating a video sharpness adjustment method according to a fifth embodiment of the present invention.
Based on the foregoing embodiment, in this embodiment, step S300 includes:
step S310, if the video definition needs to be adjusted, the set highest video definition is obtained;
in this embodiment, if it is determined that the video definition needs to be adjusted, the set highest video definition is obtained. And if the set highest video definition does not exist, the highest video definition is defaulted to be absent, and subsequent operation is not required to be continued.
And step S320, comparing the highest video definition with the video definition determined to be adjusted, and judging whether to adjust the video definition.
And after the highest video definition is obtained, comparing the highest video definition with the video definition determined to be adjusted, and judging whether the video definition is adjusted. If the definition of the video needing to be adjusted is higher than or better than the highest video definition, no adjustment is carried out; and if the definition of the video needing to be adjusted is lower or weaker than the highest video definition, adjusting according to the definition of the video needing to be adjusted. Specifically, the present implementation method allows for switching to an optimal and most suitable definition for the user while ensuring image quality and lower switching frequency. Firstly, a downloading speed standard, namely a network speed threshold value (for example, high definition corresponds to 400kb/s, super definition corresponds to 500kb/s, and 4k corresponds to 800kb/s) required by smooth playing with different definitions is calculated. And then determining a threshold value of each definition to be increased or decreased according to the calculated download speed standard and the network stable fluctuation range Vchg (for example, when the current definition is super-definition, and the current network speed Vavg is greater than 800+ Vchg, an action of switching to 4k definition is automatically executed, and when the network speed Vavg is less than 500 or the network speed Vavg is stuck, an action of switching to high definition or lower definition is automatically executed to ensure the watching fluency), wherein the introduction of Vchg prevents the influence of frequent switching on user experience and enhances the user experience.
Referring to fig. 7, fig. 7 is a flowchart illustrating a method for adjusting video sharpness according to a sixth embodiment of the invention.
Based on the foregoing embodiment, in this embodiment, step S310 includes:
step S311, acquiring the resolution of the equipment and the code rate of the video;
in this embodiment, the highest video definition of the video is set, the resolution of the device and the code rate of the video may be obtained first, and the resolution of the device may have different resolution values according to the difference of the device.
Step S312, calculating according to the resolution of the equipment and the code rate of the video, and acquiring the optimal video definition clearly watched by a user;
and calculating after the resolution of the equipment and the code rate of the video are obtained, and obtaining the optimal video definition clearly watched by the user according to the calculation of the prior art.
Step 313, the optimal video definition is set as the highest video definition.
The method can obtain the resolution of the current used equipment and the code rate of the current film, and calculate the code stream which is enough to be clearly watched by the current user, and the code stream is taken as the self-adaptive highest code stream. Locally, the optimal experience is achieved and the cost is controlled. Avoiding the need to pursue the highest resolution and putting great pressure on the bandwidth cost. Certainly, the maximum video definition can be set manually, and if a background control part is required to be added for the whole network software, the maximum definition of the whole network self-adaptive strategy can be adjusted at any time. In emergency, the interface can rapidly reduce the whole network self-adaptive code flow to reduce the bandwidth pressure and integrally control the cost.
Referring to fig. 8, fig. 8 is a flowchart illustrating a method for adjusting video sharpness according to a seventh embodiment of the invention.
Based on the foregoing embodiment, in this embodiment, before step S100, the method further includes:
step S010, acquiring the current network type of the video;
in this embodiment, before the network download speed of the currently played video and the corresponding network speed fluctuation range are obtained, the current network type of the video, such as a WIFI network, or a data traffic network, is obtained.
Step S020, judging whether the network type is a preset network type;
after the current network type of the video is obtained, whether the current network type is a preset network type is determined according to the network type. And if the preset network type is the WIFI network, judging according to the current network type.
If yes, go to step S100: and acquiring the network downloading speed of the currently played video and the corresponding network speed fluctuation range.
If the network type is preset, continuing to operate: and acquiring the network downloading speed of the currently played video and the corresponding network speed fluctuation range.
Further, the method comprises the following steps of;
if not, executing step S400: and displaying the prompt information, and determining whether to acquire the network downloading speed of the currently played video and the corresponding network speed fluctuation range according to the selection result of the user on the prompt information.
If the current video is not the preset network type, displaying the prompt information, and determining whether to acquire the network downloading speed of the current playing video and the corresponding network speed fluctuation range according to the selection result of the user on the prompt information. The network type is detected, when a user uses wifi and broadband, the code stream can be automatically adjusted to the highest code stream, when the user uses a mobile phone card to pay for the flow, user prompt is made, and automatic adjustment is guaranteed under the condition that the user knows. The cost can be controlled, and the flow trouble for the user is avoided.
In addition, the embodiment of the invention also provides a computer readable storage medium.
The computer-readable storage medium of the present invention stores a video sharpness adjustment program, and the video sharpness adjustment program, when executed by a processor, implements the steps of the video sharpness adjustment method described above.
The method implemented when the video sharpness adjustment program running on the processor is executed may refer to each embodiment of the video sharpness adjustment method of the present invention, and details are not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. A method for adjusting video definition is characterized by comprising the following steps:
acquiring the network downloading speed of a currently played video and a corresponding network speed fluctuation range;
determining network speed threshold values corresponding to different video definitions according to the network speed fluctuation range;
and comparing the network downloading speed with the network speed threshold value to determine whether to adjust the video definition.
2. The method for adjusting video sharpness according to claim 1, wherein the step of obtaining the network download speed of the currently playing video comprises:
acquiring the network downloading speed of the current playing video within a preset time period under the current definition;
acquiring the network downloading speed of the buffering time period under the current video definition in the network downloading speeds in the preset time period under the current video definition through a preset algorithm;
and calculating an average value according to the network downloading speed of the buffering time period under the current video definition to obtain the network downloading speed under the current video definition.
3. The method for adjusting video sharpness according to claim 1, wherein the step of obtaining a network speed fluctuation range corresponding to a currently played video includes:
acquiring the network downloading speed of the current playing video within a preset time period under the current definition;
acquiring the network downloading speed of the buffering time period under the current video definition in the network downloading speeds in the preset time period under the current video definition through a preset algorithm;
and calculating according to the network downloading speed of the buffering time period under the current video definition to obtain the network speed fluctuation range under the current video definition.
4. The method for adjusting video sharpness according to claim 1, wherein the step of determining the network speed threshold values corresponding to different video sharpness according to the network speed fluctuation range includes:
obtaining the network speed fluctuation range of the currently played video under different definitions;
and solving the lowest value of the network speed fluctuation range of the currently played video under different definitions, and determining that the lowest value of the currently played video under different definitions is the network speed threshold corresponding to different video definitions.
5. The method for adjusting video sharpness according to claim 1, wherein the step of determining whether to adjust video sharpness based on the comparison of the network download speed and the network speed threshold further comprises:
if the video definition needs to be adjusted, acquiring the set highest video definition;
and comparing the highest video definition with the video definition determined to be adjusted to judge whether the video definition is adjusted.
6. The method for adjusting video sharpness of claim 5, wherein the step of the system setting the highest video sharpness comprises:
acquiring the resolution of equipment and the code rate of a video;
calculating according to the resolution of the equipment and the code rate of the video to obtain the optimal video definition clearly watched by the user;
setting the optimal video definition to a highest video definition.
7. The method for adjusting video sharpness according to claim 1, wherein the step of obtaining the network download speed and the corresponding network speed fluctuation range of the currently played video further comprises:
acquiring the current network type of a video;
judging whether the network type is a preset network type or not;
and if so, acquiring the network downloading speed of the currently played video and the corresponding network speed fluctuation range.
8. The method for adjusting video sharpness according to claim 7, wherein the step of determining whether the network type is a preset network type further comprises:
if not, displaying prompt information, and determining whether to acquire the network downloading speed of the currently played video and the corresponding network speed fluctuation range according to the selection result of the user on the prompt information.
9. An apparatus for adjusting video sharpness, comprising: a memory, a processor and a video sharpness adjustment program stored on the memory and executable on the processor, the video sharpness adjustment program, when executed by the processor, implementing the steps of the video sharpness adjustment method according to any one of claims 1 to 8.
10. A computer-readable storage medium, having a video sharpness adjustment program stored thereon, the video sharpness adjustment program, when executed by a processor, implementing the steps of the video sharpness adjustment method according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911014612.5A CN110753266A (en) | 2019-10-23 | 2019-10-23 | Video definition adjusting method and device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911014612.5A CN110753266A (en) | 2019-10-23 | 2019-10-23 | Video definition adjusting method and device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110753266A true CN110753266A (en) | 2020-02-04 |
Family
ID=69279616
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911014612.5A Pending CN110753266A (en) | 2019-10-23 | 2019-10-23 | Video definition adjusting method and device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110753266A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111447415A (en) * | 2020-04-02 | 2020-07-24 | 吴敏 | System and method for adjusting voice and video definition based on remote operation |
CN112929711A (en) * | 2021-01-26 | 2021-06-08 | 广州欢网科技有限责任公司 | Short video feed stream dynamic loading method and equipment suitable for smart television |
CN115052190A (en) * | 2022-06-08 | 2022-09-13 | 上海哔哩哔哩科技有限公司 | Video playing method and device |
CN116781951A (en) * | 2023-08-24 | 2023-09-19 | 湖南快乐阳光互动娱乐传媒有限公司 | Definition adjusting method, device and server |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103155580A (en) * | 2010-09-02 | 2013-06-12 | 英国电讯有限公司 | Adaptive streaming of video at different quality levels |
CN106487808A (en) * | 2016-11-21 | 2017-03-08 | 武汉斗鱼网络科技有限公司 | A kind of dynamic method for uploading of live video and system |
CN107197371A (en) * | 2016-03-15 | 2017-09-22 | 广州市动景计算机科技有限公司 | The switching method and device of video definition |
US20170302990A1 (en) * | 2015-04-15 | 2017-10-19 | Tencent Technology (Shenzhen) Company Limited | Method, terminal, and system for processing data of video stream |
WO2018032361A1 (en) * | 2016-08-16 | 2018-02-22 | 华为技术有限公司 | Video quality assessment method and device |
CN108111910A (en) * | 2017-12-22 | 2018-06-01 | 烽火通信科技股份有限公司 | A kind of method and system for adjusting video playing clarity |
CN109547846A (en) * | 2019-01-31 | 2019-03-29 | 青岛海信电器股份有限公司 | A kind of HLS bitstreams switching method, apparatus and equipment |
CN109889303A (en) * | 2018-12-28 | 2019-06-14 | 努比亚技术有限公司 | Video play mode switching method, device and computer readable storage medium |
-
2019
- 2019-10-23 CN CN201911014612.5A patent/CN110753266A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103155580A (en) * | 2010-09-02 | 2013-06-12 | 英国电讯有限公司 | Adaptive streaming of video at different quality levels |
US20170302990A1 (en) * | 2015-04-15 | 2017-10-19 | Tencent Technology (Shenzhen) Company Limited | Method, terminal, and system for processing data of video stream |
CN107197371A (en) * | 2016-03-15 | 2017-09-22 | 广州市动景计算机科技有限公司 | The switching method and device of video definition |
WO2018032361A1 (en) * | 2016-08-16 | 2018-02-22 | 华为技术有限公司 | Video quality assessment method and device |
CN106487808A (en) * | 2016-11-21 | 2017-03-08 | 武汉斗鱼网络科技有限公司 | A kind of dynamic method for uploading of live video and system |
CN108111910A (en) * | 2017-12-22 | 2018-06-01 | 烽火通信科技股份有限公司 | A kind of method and system for adjusting video playing clarity |
CN109889303A (en) * | 2018-12-28 | 2019-06-14 | 努比亚技术有限公司 | Video play mode switching method, device and computer readable storage medium |
CN109547846A (en) * | 2019-01-31 | 2019-03-29 | 青岛海信电器股份有限公司 | A kind of HLS bitstreams switching method, apparatus and equipment |
Non-Patent Citations (1)
Title |
---|
沙发管家资讯: "你家的网速能看什么片源?真机实测各清晰度需求网速", 《INEWS.IFENG.COM/MIP/49541712/NEWS.SHTML》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111447415A (en) * | 2020-04-02 | 2020-07-24 | 吴敏 | System and method for adjusting voice and video definition based on remote operation |
CN112929711A (en) * | 2021-01-26 | 2021-06-08 | 广州欢网科技有限责任公司 | Short video feed stream dynamic loading method and equipment suitable for smart television |
CN115052190A (en) * | 2022-06-08 | 2022-09-13 | 上海哔哩哔哩科技有限公司 | Video playing method and device |
CN115052190B (en) * | 2022-06-08 | 2024-04-02 | 上海哔哩哔哩科技有限公司 | Video playing method and device |
CN116781951A (en) * | 2023-08-24 | 2023-09-19 | 湖南快乐阳光互动娱乐传媒有限公司 | Definition adjusting method, device and server |
CN116781951B (en) * | 2023-08-24 | 2023-12-05 | 湖南快乐阳光互动娱乐传媒有限公司 | Definition adjusting method, device and server |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110753266A (en) | Video definition adjusting method and device and storage medium | |
US11343556B2 (en) | Method of controlling a horizontal screen or vertical screen of television, device, and storage medium | |
CN107247572B (en) | Audio playing method, terminal and computer readable storage medium | |
US20200068161A1 (en) | Television terminal, method for converting hdr image into sdr image, and computer readable storage medium | |
KR20190031032A (en) | Method and apparatus for executing a content | |
CN109474784B (en) | Preview image processing method and terminal equipment | |
CN113076007A (en) | Display screen visual angle adjusting method and device and storage medium | |
CN112565204A (en) | Control method and device for video data transmission and computer readable storage medium | |
CN107800869B (en) | Split screen display method, mobile terminal and storage medium | |
CN108021630B (en) | Junk file cleaning method, intelligent terminal and computer readable storage medium | |
US20190373318A1 (en) | Method and device for adjusting an intelligent system, and a computer readable storage medium | |
CN110971783A (en) | Television sound and picture synchronous self-tuning method, device and storage medium | |
CN110827770B (en) | Regional backlight brightness adjusting method and device for display image and storage medium | |
CN112333541B (en) | Method, device and equipment for controlling startup and shutdown of display terminal and readable storage medium | |
CN107589987B (en) | Software control method, device and computer readable storage medium | |
CN111028192A (en) | Image synthesis method and electronic equipment | |
CN114489549B (en) | Screen projection image processing method and device, electronic equipment and storage medium | |
CN114647468A (en) | Screen projection image display method and device, electronic equipment and storage medium | |
CN111277784A (en) | Volume automatic control method, device, terminal and readable storage medium | |
CN109032651B (en) | Application updating method, intelligent terminal and computer readable storage medium | |
CN112650872A (en) | Dynamic picture playing method, device and equipment and computer readable storage medium | |
CN112449241A (en) | Power consumption adjusting method and device and computer readable storage medium | |
CN108965973B (en) | Method and device for ordering video navigation menu and computer readable storage medium | |
CN111093114B (en) | Advertisement playing progress adjusting method and device and computer readable storage medium | |
CN114724528B (en) | Display control method and device of display device, electronic device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Room 2306, east block, Skyworth semiconductor design building, 18 Gaoxin South 4th Road, Gaoxin community, Yuehai street, Nanshan District, Shenzhen, Guangdong 518108 Applicant after: Shenzhen Kukai Network Technology Co.,Ltd. Address before: 518108 Room 601, block C, Skyworth building, 008 Gaoxin South 1st Road, Nanshan District, Shenzhen City, Guangdong Province Applicant before: Shenzhen Coocaa Network Technology Co.,Ltd. |
|
CB02 | Change of applicant information | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200204 |
|
RJ01 | Rejection of invention patent application after publication |