CN105847970A - Video display quality calculating method and equipment - Google Patents
Video display quality calculating method and equipment Download PDFInfo
- Publication number
- CN105847970A CN105847970A CN201610209567.9A CN201610209567A CN105847970A CN 105847970 A CN105847970 A CN 105847970A CN 201610209567 A CN201610209567 A CN 201610209567A CN 105847970 A CN105847970 A CN 105847970A
- Authority
- CN
- China
- Prior art keywords
- video
- display
- resolution
- screen
- quality
- 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
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/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
-
- 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/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
-
- 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/4508—Management of client data or end-user data
- H04N21/4516—Management of client data or end-user data involving client characteristics, e.g. Set-Top-Box type, software version or amount of memory available
-
- 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/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
-
- 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/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47205—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
Description
技术领域technical field
本发明涉及多媒体技术领域,特别涉及一种视频显示质量的计算方法及设备。The invention relates to the field of multimedia technologies, in particular to a method and device for calculating video display quality.
背景技术Background technique
随着多媒体技术的快速发展,视频数据已成为网络传输的主要数据,视频显示质量也成为衡量网络服务质量的关键指标。因此,如何便捷有效地确定视频显示质量成为一个亟待解决的问题。With the rapid development of multimedia technology, video data has become the main data of network transmission, and video display quality has also become a key indicator to measure network service quality. Therefore, how to conveniently and effectively determine the video display quality has become an urgent problem to be solved.
现有技术中,在一种实现方式下,根据视频帧类型、视频帧大小、帧率和码率进行计算得到视频质量;在另一种实现方式下,计算视频数据的峰值信噪比(英文:Peak Signal to Noise Ratio,简称:PSNR),以此确定视频质量。In the prior art, in one implementation mode, the video quality is obtained by calculating according to the video frame type, video frame size, frame rate and code rate; in another implementation mode, the peak signal-to-noise ratio (PSNR) of the video data is calculated. : Peak Signal to Noise Ratio, referred to as: PSNR), to determine the video quality.
在实现上述计算视频质量的过程中,发明人发现现有技术中只是根据视频数据自身的参数进行计算,只能确定视频压缩编码的质量,或是视频传输过程中的质量,无法准确体现视频显示质量。In the process of realizing the above calculation of video quality, the inventor found that in the prior art, the calculation is only based on the parameters of the video data itself, which can only determine the quality of video compression coding, or the quality of the video transmission process, and cannot accurately reflect the video display. quality.
发明内容Contents of the invention
为了解决现有技术中的视频质量计算方法无法准确体现视频显示质量的问题,本发明实施例提供了一种视频显示质量的计算方法及设备。所述技术方案如下:In order to solve the problem that the video quality calculation method in the prior art cannot accurately reflect the video display quality, the embodiments of the present invention provide a video display quality calculation method and device. Described technical scheme is as follows:
第一方面,本发明提供一种视频显示质量的计算方法,该方法包括:In a first aspect, the present invention provides a method for calculating video display quality, the method comprising:
获取视频的屏幕显示质量,屏幕显示质量用于指示视频在显示屏幕上的显示质量的最高取值;Obtain the screen display quality of the video, and the screen display quality is used to indicate the highest value of the display quality of the video on the display screen;
获取视频的帧率和视频的码率;Obtain the frame rate of the video and the bit rate of the video;
根据屏幕显示质量、视频的帧率、视频的码率按照第一预设算法计算视频显示质量,视频显示质量用于指示视频在显示屏幕上的显示质量。The video display quality is calculated according to the screen display quality, the video frame rate, and the video bit rate according to a first preset algorithm, and the video display quality is used to indicate the display quality of the video on the display screen.
在一种可能的实现中,视频显示质量与屏幕显示质量呈正相关关系,视频显示质量与视频的帧率呈正相关关系,视频显示质量与视频的码率呈正相关关系。In a possible implementation, the video display quality is positively correlated with the screen display quality, the video display quality is positively correlated with the video frame rate, and the video display quality is positively correlated with the video bit rate.
在一种可能的实现中,获取视频的屏幕显示质量,包括:In a possible implementation, obtaining the screen display quality of the video includes:
根据显示屏幕的尺寸、显示分辨率按照第二预设算法计算屏幕显示质量,显示屏幕的尺寸用于指示显示屏幕的大小,显示分辨率包含视频的分辨率和显示屏幕的分辨率中的至少一项,显示屏幕的尺寸与屏幕显示质量呈负相关关系,显示分辨率与屏幕显示质量呈正相关关系。Calculate the screen display quality according to the size of the display screen and the display resolution according to the second preset algorithm, the size of the display screen is used to indicate the size of the display screen, and the display resolution includes at least one of the resolution of the video and the resolution of the display screen item, the size of the display screen is negatively correlated with the screen display quality, and the display resolution is positively correlated with the screen display quality.
示例性的,该显示屏幕可以是矩形的,该显示屏幕的尺寸可以是该显示屏幕的对角线长度。Exemplarily, the display screen may be rectangular, and the size of the display screen may be a diagonal length of the display screen.
在一种可能的实现中,根据显示屏幕的尺寸、显示分辨率按照第二预设算法计算屏幕显示质量,包括:In a possible implementation, the screen display quality is calculated according to a second preset algorithm according to the size and display resolution of the display screen, including:
获取有效显示像素密度,根据第一公式计算屏幕显示质量,第一公式为:Obtain the effective display pixel density, and calculate the screen display quality according to the first formula, the first formula is:
其中,Qsc为屏幕显示质量,Qmax为常数,用于指示显示质量的最大值,P为有效显示像素密度,有效显示像素密度是根据显示分辨率和显示屏幕的尺寸计算得到的,Ds为显示屏幕的尺寸,d、e、f为常数。Among them, Q sc is the screen display quality, Q max is a constant, used to indicate the maximum value of the display quality, P is the effective display pixel density, the effective display pixel density is calculated according to the display resolution and the size of the display screen, D s For the size of the display screen, d, e, f are constants.
示例性的,有效显示像素密度P用于指示视频在显示屏幕的单位面积内实际显示的像素数。Exemplarily, the effective display pixel density P is used to indicate the number of pixels actually displayed in the video per unit area of the display screen.
在一种可能的实现中,显示分辨率为视频的分辨率,或者,显示分辨率为显示屏幕的分辨率,获取有效显示像素密度,包括:根据第二公式计算有效显示像素密度,第二公式为:In a possible implementation, the display resolution is the resolution of the video, or the display resolution is the resolution of the display screen, and obtaining the effective display pixel density includes: calculating the effective display pixel density according to the second formula, the second formula for:
其中,Sw为显示分辨率的宽度,Sh为显示分辨率的高度。Among them, S w is the width of the display resolution, Sh is the height of the display resolution.
在一种可能的实现中,当视频的分辨率大于显示屏幕的分辨率时,显示分辨率为显示屏幕的分辨率,当视频的分辨率小于显示屏幕的分辨率时,显示分辨率为视频的分辨率。In a possible implementation, when the resolution of the video is greater than the resolution of the display screen, the display resolution is the resolution of the display screen; when the resolution of the video is smaller than the resolution of the display screen, the display resolution is the resolution of the video resolution.
在一种可能的实现中,显示分辨率包含视频的分辨率和显示屏幕的分辨率,获取有效显示像素密度,还包括:In a possible implementation, the display resolution includes the resolution of the video and the resolution of the display screen, and obtaining an effective display pixel density also includes:
根据第三公式计算有效显示像素密度,第三公式为:The effective display pixel density is calculated according to the third formula, which is:
其中,θ为分辨率匹配因子,当视频的分辨率小于或等于显示屏幕的分辨率时,θ=1,当视频的分辨率大于显示屏幕的分辨率时, Among them, θ is the resolution matching factor, when the resolution of the video is less than or equal to the resolution of the display screen, θ=1, when the resolution of the video is greater than the resolution of the display screen,
Vw为视频的分辨率的宽度,Vh为视频的分辨率的高度,Dw为显示屏幕的分辨率的宽度,Dh为显示屏幕的分辨率的高度,g为常数。V w is the width of the resolution of the video, V h is the height of the resolution of the video, D w is the width of the resolution of the display screen, D h is the height of the resolution of the display screen, and g is a constant.
在一种可能的实现中,根据屏幕显示质量、视频的帧率、视频的码率按照第一预设算法计算视频显示质量,包括:In a possible implementation, the video display quality is calculated according to the first preset algorithm according to the screen display quality, the frame rate of the video, and the bit rate of the video, including:
根据第四公式计算视频显示质量Qv,第四公式为:Calculate the video display quality Q v according to the fourth formula, the fourth formula is:
其中,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,U为调节函数,随λ增大而增大,Y1为第一质量因子,Y2为第二质量因子。Among them, λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, Q sc is the screen display quality, and Q min is a constant , used to indicate the minimum value of the display quality, a and c are constants, U is an adjustment function, which increases with the increase of λ, Y 1 is the first quality factor, and Y 2 is the second quality factor.
在一种可能的实现中,In one possible implementation,
其中,b为常数。Among them, b is a constant.
在一种可能的实现中,根据屏幕显示质量、视频的帧率、视频的码率按照第一预设算法计算视频显示质量,包括:In a possible implementation, the video display quality is calculated according to the first preset algorithm according to the screen display quality, the frame rate of the video, and the bit rate of the video, including:
根据第五公式计算视频显示质量Qv,第五公式为:Calculate the video display quality Q v according to the fifth formula, the fifth formula is:
Qv=QB·func(λ);Q v = Q B func(λ);
其中,QB为参考质量,Among them, Q B is the reference mass,
func(λ)为修正因子,随λ增大而减小,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,Y1为第一质量因子,Y2为第二质量因子。func(λ) is the correction factor, which decreases with the increase of λ, λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, and B v is the video frame rate Code rate, Q sc is the screen display quality, Q min is a constant, used to indicate the minimum value of the display quality, a, c are constants, Y 1 is the first quality factor, Y 2 is the second quality factor.
在一种可能的实现中,In one possible implementation,
当λ>1时,func(λ)=a1-a2·log(a3·λ),(a1,a2,a3>0);When λ>1, func(λ)=a 1 -a 2 ·log(a 3 ·λ), (a 1 , a 2 , a 3 >0);
当λ<1时, When λ<1,
其中,a1,a2,a3,b1,b2,b3为常数。Wherein, a 1 , a 2 , a 3 , b 1 , b 2 , and b 3 are constants.
在一种可能的实现中,当视频的帧率大于基准帧率时,根据屏幕显示质量、视频的帧率、视频的码率按照第一预设算法计算视频显示质量,包括:In a possible implementation, when the frame rate of the video is greater than the reference frame rate, the video display quality is calculated according to the first preset algorithm according to the screen display quality, the frame rate of the video, and the bit rate of the video, including:
根据第六公式计算视频显示质量Qv,第六公式为:Calculate the video display quality Q v according to the sixth formula, the sixth formula is:
Qv=func(QB,λ);Q v = func(Q B ,λ);
其中,c1,c2,c3,c4为常数,QB为参考质量,in, c 1 , c 2 , c 3 , c 4 are constants, Q B is the reference mass,
λ为帧率因子,且λ<1,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,Y1为第一质量因子,Y2为第二质量因子。λ is the frame rate factor, and λ<1, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, Q sc is the screen display quality, Q min is a constant, used to indicate the minimum value of display quality, a and c are constants, Y 1 is the first quality factor, and Y 2 is the second quality factor.
在一种可能的实现中,In one possible implementation,
Y1=1,Y2=1,或者,Y 1 =1, Y 2 =1, or,
Y1=fun1(Vc),Y1=fun2(Vc),Vc用于指示视频的内容复杂度,fun1(Vc)和fun2(Vc)为关于Vc的函数,且均随Vc的增大而增大。Y 1 =fun1(V c ), Y 1 =fun2(V c ), V c is used to indicate the content complexity of the video, fun1(V c ) and fun2(V c ) are functions on V c , and both vary with Vc increases and increases.
示例性的,视频的内容复杂度包含时间复杂度和内容复杂度。Exemplarily, the content complexity of the video includes time complexity and content complexity.
在一种可能的实现中,该方法还包括:In one possible implementation, the method also includes:
获取视频的内容复杂度。Get the content complexity of the video.
第二方面,本发明提供一种电子设备,包括:In a second aspect, the present invention provides an electronic device, comprising:
第一获取单元,用于获取视频的屏幕显示质量,屏幕显示质量用于指示视频在显示屏幕上的显示质量的最高取值;The first acquisition unit is used to acquire the screen display quality of the video, and the screen display quality is used to indicate the highest value of the display quality of the video on the display screen;
第二获取单元,用于获取视频的帧率和视频的码率;计算单元,用于根据第一获取单元获取的屏幕显示质量、第二获取单元获取的视频的帧率及视频的码率按照第一预设算法计算视频显示质量,视频显示质量用于指示视频在显示屏幕上的显示质量。The second acquisition unit is used to acquire the frame rate of the video and the code rate of the video; the calculation unit is used to obtain the screen display quality according to the first acquisition unit, the frame rate of the video acquired by the second acquisition unit and the code rate of the video according to The first preset algorithm calculates the video display quality, which is used to indicate the display quality of the video on the display screen.
在一种可能的实现中,第一获取单元,具体用于根据显示屏幕的尺寸、显示分辨率按照第二预设算法计算屏幕显示质量,显示屏幕的尺寸用于指示显示屏幕的大小,显示分辨率包含视频的分辨率和显示屏幕的分辨率中的至少一项,显示屏幕的尺寸与屏幕显示质量呈负相关关系,显示分辨率与屏幕显示质量呈正相关关系。In a possible implementation, the first acquisition unit is specifically configured to calculate the screen display quality according to the second preset algorithm according to the size and display resolution of the display screen, the size of the display screen is used to indicate the size of the display screen, and the display resolution The rate includes at least one of video resolution and display screen resolution, the size of the display screen is negatively correlated with screen display quality, and the display resolution is positively correlated with screen display quality.
示例性的,该电子设备包含该显示屏幕,或者,该显示屏幕不属于该电子设备。Exemplarily, the electronic device includes the display screen, or, the display screen does not belong to the electronic device.
在一种可能的实现中,第一获取单元,具体用于获取有效显示像素密度,根据第一公式计算屏幕显示质量,第一公式为:In a possible implementation, the first acquiring unit is specifically configured to acquire the effective display pixel density, and calculate the screen display quality according to a first formula, and the first formula is:
其中,Qsc为屏幕显示质量,Qmax为常数,用于指示显示质量的最大值,P为有效显示像素密度,有效显示像素密度是根据显示分辨率和显示屏幕的尺寸计算得到的,Ds为显示屏幕的尺寸,d、e、f为常数。Among them, Q sc is the screen display quality, Q max is a constant, used to indicate the maximum value of the display quality, P is the effective display pixel density, the effective display pixel density is calculated according to the display resolution and the size of the display screen, D s For the size of the display screen, d, e, f are constants.
在一种可能的实现中,显示分辨率为视频的分辨率,或者,显示分辨率为显示屏幕的分辨率,第一获取单元,具体用于根据第二公式计算有效显示像素密度,第二公式为:In a possible implementation, the display resolution is the resolution of the video, or the display resolution is the resolution of the display screen, and the first acquisition unit is specifically used to calculate the effective display pixel density according to the second formula, the second formula for:
其中,Sw为显示分辨率的宽度,Sh为显示分辨率的高度。Among them, S w is the width of the display resolution, Sh is the height of the display resolution.
在一种可能的实现中,当视频的分辨率大于显示屏幕的分辨率时,显示分辨率为显示屏幕的分辨率,当视频的分辨率小于显示屏幕的分辨率时,显示分辨率为视频的分辨率。In a possible implementation, when the resolution of the video is greater than the resolution of the display screen, the display resolution is the resolution of the display screen; when the resolution of the video is smaller than the resolution of the display screen, the display resolution is the resolution of the video resolution.
在一种可能的实现中,显示分辨率包含视频的分辨率和显示屏幕的分辨率,In a possible implementation, the display resolution includes the resolution of the video and the resolution of the display screen,
第一获取单元,具体用于根据第三公式计算有效显示像素密度,第三公式为:The first acquisition unit is specifically used to calculate the effective display pixel density according to the third formula, and the third formula is:
其中,θ为分辨率匹配因子,当视频的分辨率小于或等于显示屏幕的分辨率时,θ=1,当视频的分辨率大于显示屏幕的分辨率时, Among them, θ is the resolution matching factor, when the resolution of the video is less than or equal to the resolution of the display screen, θ=1, when the resolution of the video is greater than the resolution of the display screen,
Vw为视频的分辨率的宽度,Vh为视频的分辨率的高度,Dw为显示屏幕的分辨率的宽度,Dh为显示屏幕的分辨率的高度,g为常数。V w is the width of the resolution of the video, V h is the height of the resolution of the video, D w is the width of the resolution of the display screen, D h is the height of the resolution of the display screen, and g is a constant.
在一种可能的实现中,In one possible implementation,
计算单元,具体用于根据第四公式计算视频显示质量Qv,第四公式为:The calculation unit is specifically used to calculate the video display quality Q v according to the fourth formula, the fourth formula is:
其中,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,U为调节函数,随λ增大而增大,Y1为第一质量因子,Y2为第二质量因子。Among them, λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, Q sc is the screen display quality, and Q min is a constant , used to indicate the minimum value of the display quality, a and c are constants, U is an adjustment function, which increases with the increase of λ, Y 1 is the first quality factor, and Y 2 is the second quality factor.
在一种可能的实现中,In one possible implementation,
其中,b为常数。Among them, b is a constant.
在一种可能的实现中,In one possible implementation,
计算单元,具体用于根据第五公式计算视频显示质量Qv,第五公式为:The calculation unit is specifically used to calculate the video display quality Q v according to the fifth formula, and the fifth formula is:
Qv=QB·func(λ);Q v = Q B func(λ);
其中,QB为参考质量,Among them, Q B is the reference mass,
func(λ)为修正因子,随λ增大而减小,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,Y1为第一质量因子,Y2为第二质量因子。func(λ) is the correction factor, which decreases with the increase of λ, λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, and B v is the video frame rate Code rate, Q sc is the screen display quality, Q min is a constant, used to indicate the minimum value of the display quality, a, c are constants, Y 1 is the first quality factor, Y 2 is the second quality factor.
在一种可能的实现中,In one possible implementation,
当λ>1时,func(λ)=a1-a2·log(a3·λ),(a1,a2,a3>0);When λ>1, func(λ)=a 1 -a 2 ·log(a 3 ·λ), (a 1 , a 2 , a 3 >0);
当λ<1时, When λ<1,
其中,a1,a2,a3,b1,b2,b3为常数。Wherein, a 1 , a 2 , a 3 , b 1 , b 2 , and b 3 are constants.
在一种可能的实现中,In one possible implementation,
计算单元,具体用于当视频的帧率大于基准帧率时,根据第六公式计算视频显示质量Qv,第六公式为:The calculation unit is specifically used to calculate the video display quality Q v according to the sixth formula when the frame rate of the video is greater than the reference frame rate. The sixth formula is:
Qv=func(QB,λ);Q v = func(Q B ,λ);
其中,c1,c2,c3,c4为常数,QB为参考质量,in, c 1 , c 2 , c 3 , c 4 are constants, Q B is the reference mass,
λ为帧率因子,且λ<1,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,U为调节函数,随λ增大而增大,Y1为第一质量因子,Y2为第二质量因子。λ is the frame rate factor, and λ<1, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, Q sc is the screen display quality, Q min is a constant, used to indicate the minimum value of display quality, a and c are constants, U is an adjustment function, which increases with the increase of λ, Y 1 is the first quality factor, and Y 2 is the second quality factor.
在一种可能的实现中,In one possible implementation,
Y1=1,Y2=1,或者,Y 1 =1, Y 2 =1, or,
Y1=fun1(Vc),Y1=fun2(Vc),Vc用于指示视频的内容复杂度,fun1(Vc)和fun2(Vc)为关于Vc的函数,且均随Vc的增大而增大。Y 1 =fun1(V c ), Y 1 =fun2(V c ), V c is used to indicate the content complexity of the video, fun1(V c ) and fun2(V c ) are functions on V c , and both vary with Vc increases and increases.
在一种可能的实现中,In one possible implementation,
获取单元,还用于获取视频的内容复杂度。The acquiring unit is also used to acquire the content complexity of the video.
第三方面,本本发明提供一种电子设备,包括:电子设备包括:处理器、存储器及总线,处理器及存储器通过总线相互连接,存储器用于存储程序和数据,处理器用于调用存储器存储的程序执行视频显示质量的计算方法;In a third aspect, the present invention provides an electronic device, including: the electronic device includes: a processor, a memory, and a bus, the processor and the memory are connected to each other through the bus, the memory is used to store programs and data, and the processor is used to call the programs stored in the memory Implement a method for calculating video display quality;
处理器,用于获取视频的屏幕显示质量,屏幕显示质量用于指示视频在显示屏幕上的显示质量的最高取值;获取视频的帧率和视频的码率;根据屏幕显示质量、视频的帧率、视频的码率按照第一预设算法计算视频显示质量,视频显示质量用于指示视频在显示屏幕上的显示质量。The processor is used to obtain the screen display quality of the video, and the screen display quality is used to indicate the highest value of the display quality of the video on the display screen; obtain the frame rate of the video and the bit rate of the video; according to the screen display quality, the frame of the video The video display quality is calculated according to the first preset algorithm, and the video display quality is used to indicate the display quality of the video on the display screen.
在一种可能的实现中,处理器,具体用于根据显示屏幕的尺寸、显示分辨率按照第二预设算法计算屏幕显示质量,显示屏幕的尺寸用于指示显示屏幕的大小,显示分辨率包含视频的分辨率和显示屏幕的分辨率中的至少一项,显示屏幕的尺寸与屏幕显示质量呈负相关关系,显示分辨率与屏幕显示质量呈正相关关系。In a possible implementation, the processor is specifically configured to calculate the screen display quality according to a second preset algorithm according to the size and display resolution of the display screen, where the size of the display screen is used to indicate the size of the display screen, and the display resolution includes At least one of the resolution of the video and the resolution of the display screen, the size of the display screen is negatively correlated with the quality of the screen display, and the display resolution is positively correlated with the quality of the screen display.
在一种可能的实现中,处理器,具体用于获取有效显示像素密度,根据第一公式计算屏幕显示质量,第一公式为:In a possible implementation, the processor is specifically configured to obtain an effective display pixel density, and calculate the screen display quality according to a first formula, where the first formula is:
其中,Qsc为屏幕显示质量,Qmax为常数,用于指示显示质量的最大值,P为有效显示像素密度,有效显示像素密度是根据显示分辨率和显示屏幕的尺寸计算得到的,Ds为显示屏幕的尺寸,d、e、f为常数。Among them, Q sc is the screen display quality, Q max is a constant, used to indicate the maximum value of the display quality, P is the effective display pixel density, the effective display pixel density is calculated according to the display resolution and the size of the display screen, D s For the size of the display screen, d, e, f are constants.
在一种可能的实现中,显示分辨率为视频的分辨率,或者,显示分辨率为显示屏幕的分辨率,处理器,具体用于根据第二公式计算有效显示像素密度,第二公式为:In a possible implementation, the display resolution is the resolution of the video, or the display resolution is the resolution of the display screen, and the processor is specifically used to calculate the effective display pixel density according to the second formula, and the second formula is:
其中,Sw为显示分辨率的宽度,Sh为显示分辨率的高度。Among them, S w is the width of the display resolution, Sh is the height of the display resolution.
在一种可能的实现中,当视频的分辨率大于显示屏幕的分辨率时,显示分辨率为显示屏幕的分辨率,当视频的分辨率小于显示屏幕的分辨率时,显示分辨率为视频的分辨率。In a possible implementation, when the resolution of the video is greater than the resolution of the display screen, the display resolution is the resolution of the display screen; when the resolution of the video is smaller than the resolution of the display screen, the display resolution is the resolution of the video resolution.
在一种可能的实现中,显示分辨率包含视频的分辨率和显示屏幕的分辨率,处理器,具体用于根据第三公式计算有效显示像素密度,第三公式为:In a possible implementation, the display resolution includes the resolution of the video and the resolution of the display screen, and the processor is specifically used to calculate the effective display pixel density according to the third formula. The third formula is:
其中,θ为分辨率匹配因子,当视频的分辨率小于或等于显示屏幕的分辨率时,θ=1,当视频的分辨率大于显示屏幕的分辨率时, Among them, θ is the resolution matching factor, when the resolution of the video is less than or equal to the resolution of the display screen, θ=1, when the resolution of the video is greater than the resolution of the display screen,
Vw为视频的分辨率的宽度,Vh为视频的分辨率的高度,Dw为显示屏幕的分辨率的宽度,Dh为显示屏幕的分辨率的高度,g为常数。V w is the width of the resolution of the video, V h is the height of the resolution of the video, D w is the width of the resolution of the display screen, D h is the height of the resolution of the display screen, and g is a constant.
在一种可能的实现中,In one possible implementation,
处理器,具体用于根据第四公式计算视频显示质量Qv,第四公式为:The processor is specifically configured to calculate the video display quality Q v according to the fourth formula, the fourth formula is:
其中,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,U为调节函数,随λ增大而增大,Y1为第一质量因子,Y2为第二质量因子。Among them, λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, Q sc is the screen display quality, and Q min is a constant , used to indicate the minimum value of the display quality, a and c are constants, U is an adjustment function, which increases with the increase of λ, Y 1 is the first quality factor, and Y 2 is the second quality factor.
在一种可能的实现中,In one possible implementation,
其中,b为常数。Among them, b is a constant.
在一种可能的实现中,In one possible implementation,
处理器,具体用于根据第五公式计算视频显示质量Qv,第五公式为:The processor is specifically used to calculate the video display quality Q v according to the fifth formula, the fifth formula is:
Qv=QB·func(λ);Q v = Q B func(λ);
其中,QB为参考质量,Among them, Q B is the reference mass,
func(λ)为修正因子,随λ增大而减小,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,Y1为第一质量因子,Y2为第二质量因子。func(λ) is the correction factor, which decreases with the increase of λ, λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, and B v is the video frame rate Code rate, Q sc is the screen display quality, Q min is a constant, used to indicate the minimum value of the display quality, a, c are constants, Y 1 is the first quality factor, Y 2 is the second quality factor.
在一种可能的实现中,In one possible implementation,
当λ>1时,func(λ)=a1-a2·log(a3·λ),(a1,a2,a3>0);When λ>1, func(λ)=a 1 -a 2 ·log(a 3 ·λ), (a 1 , a 2 , a 3 >0);
当λ<1时, When λ<1,
其中,a1,a2,a3,b1,b2,b3为常数。Wherein, a 1 , a 2 , a 3 , b 1 , b 2 , and b 3 are constants.
在一种可能的实现中,In one possible implementation,
处理器,具体用于当视频的帧率大于基准帧率时,根据第六公式计算视频显示质量Qv,第六公式为:The processor is specifically used to calculate the video display quality Q v according to the sixth formula when the frame rate of the video is greater than the reference frame rate, and the sixth formula is:
Qv=func(QB,λ);Q v = func(Q B ,λ);
其中,c1,c2,c3,c4为常数,QB为参考质量,in, c 1 , c 2 , c 3 , c 4 are constants, Q B is the reference mass,
λ为帧率因子,且λ<1,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,U为调节函数,随λ增大而增大,Y1为第一质量因子,Y2为第二质量因子。λ is the frame rate factor, and λ<1, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, Q sc is the screen display quality, Q min is a constant, used to indicate the minimum value of display quality, a and c are constants, U is an adjustment function, which increases with the increase of λ, Y 1 is the first quality factor, and Y 2 is the second quality factor.
在一种可能的实现中,In one possible implementation,
Y1=1,Y2=1,或者,Y 1 =1, Y 2 =1, or,
Y1=fun1(Vc),Y1=fun2(Vc),Vc用于指示视频的内容复杂度,fun1(Vc)和fun2(Vc)为关于Vc的函数,且均随Vc的增大而增大。Y 1 =fun1(V c ), Y 1 =fun2(V c ), V c is used to indicate the content complexity of the video, fun1(V c ) and fun2(V c ) are functions on V c , and both vary with Vc increases and increases.
在一种可能的实现中,In one possible implementation,
处理器,还用于获取视频的内容复杂度。The processor is also used to obtain the content complexity of the video.
本发明提供的视频显示质量的计算方法及设备,获取视频的屏幕显示质量、视频的帧率、视频的码率,根据屏幕显示质量、视频的帧率及视频的码率按照第一预设算法计算视频显示质量,其中,屏幕显示质量用于指示视频在显示屏幕上的显示质量的最高取值。综合屏幕显示质量以及视频的帧率、视频的码率对视频显示质量进行计算,不仅仅是根据视频数据自身的参数进行计算,兼顾了视频在显示屏幕的显示情况,能够更加准确地体现视频显示质量。The method and device for calculating the video display quality provided by the present invention obtain the screen display quality of the video, the frame rate of the video, and the bit rate of the video, and follow the first preset algorithm according to the screen display quality, the frame rate of the video, and the bit rate of the video Calculate the display quality of the video, where the screen display quality is used to indicate the highest value of the display quality of the video on the display screen. The video display quality is calculated based on the screen display quality, video frame rate, and video bit rate, not only based on the parameters of the video data itself, but also taking into account the display of the video on the display screen, which can more accurately reflect the video display quality.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.
图1是本发明实施例提供的一种网络系统的结构示意图;FIG. 1 is a schematic structural diagram of a network system provided by an embodiment of the present invention;
图2是本发明实施例提供的一种视频显示质量的计算方法的流程示意图;2 is a schematic flowchart of a method for calculating video display quality provided by an embodiment of the present invention;
图3是本发明实施例提供的一种电子设备的结构示意图;Fig. 3 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention;
图4是本发明另一实施例提供的一种电子设备的结构示意图。Fig. 4 is a schematic structural diagram of an electronic device provided by another embodiment of the present invention.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.
本发明实施例提供了一种视频显示质量的计算方法,用于对视频显示质量进行计算,能够准确体现视频在显示屏幕上的显示质量。An embodiment of the present invention provides a method for calculating video display quality, which is used for calculating video display quality, and can accurately reflect the display quality of video on a display screen.
优选的,用户在网络上观看视频时,本实施例提供的视频显示质量的计算方法可以准确地计算出用户所观看的视频的显示质量,参照图1所示,图1示出一种网络系统的结构,在该网络系统10中,服务器101将视频通过接入网102传输至终端设备103,用户在终端设备103上观看视频,该终端设备103可以是平板电脑、手机、电视机、电脑等,本发明对此不做限制。在视频通过接入网102传输的过程中,因为丢包、传输速度等原因可能会影响视频的显示质量;在不同的终端设备103上观看视频时,不同的终端设备103因为尺寸、显示屏幕的分辨率等原因,其显示出的视频的质量也各不相同,因此,可以利用本实施例提供的视频显示质量的计算方法准确反映视频显示质量。本实施例提供的视频显示质量的计算方法可以由终端设备103执行,也可以由其他电子设备执行,对此,本发明不做限制。在本发明中,视频是可以在显示屏幕上持续播放的图像集合,只要能够用本发明所提供的视频显示质量的计算方法进行计算的对象,均属于本发明中所指代的视频,不应以人们日常生活中对视频惯有的理解去限定本发明所要求保护的范围。Preferably, when a user watches a video on the network, the method for calculating the video display quality provided by this embodiment can accurately calculate the display quality of the video watched by the user, as shown in FIG. 1 , which shows a network system In the network system 10, the server 101 transmits the video to the terminal device 103 through the access network 102, and the user watches the video on the terminal device 103, which can be a tablet computer, a mobile phone, a TV, a computer, etc. , the present invention is not limited thereto. In the process of video transmission through the access network 102, the display quality of the video may be affected due to reasons such as packet loss and transmission speed; Due to reasons such as resolution, the displayed video quality is also different. Therefore, the video display quality calculation method provided in this embodiment can be used to accurately reflect the video display quality. The method for calculating the video display quality provided in this embodiment may be executed by the terminal device 103 or by other electronic devices, which is not limited in the present invention. In the present invention, video is a collection of images that can be continuously played on the display screen. As long as the objects that can be calculated by the calculation method of video display quality provided by the present invention belong to the video referred to in the present invention, they should not The scope of protection claimed by the present invention is limited based on people's usual understanding of video in daily life.
具体的,参见图2,本实施例提供的视频显示质量的计算方法包括以下步骤:Specifically, referring to FIG. 2, the method for calculating the video display quality provided in this embodiment includes the following steps:
201、获取视频的屏幕显示质量。201. Acquire the screen display quality of the video.
其中,屏幕显示质量用于指示视频在显示屏幕上的显示质量的最高取值,屏幕显示质量是根据显示屏幕的尺寸以及显示分辨率计算得到的。Wherein, the screen display quality is used to indicate the highest value of the display quality of the video on the display screen, and the screen display quality is calculated according to the size of the display screen and the display resolution.
示例性的,该显示屏幕可以是矩形的,该显示屏幕的尺寸可以是该显示屏幕的对角线长度。Exemplarily, the display screen may be rectangular, and the size of the display screen may be a diagonal length of the display screen.
可选的,根据显示屏幕的尺寸、显示分辨率按照第二预设算法计算屏幕显示质量,显示屏幕的尺寸用于指示显示屏幕的大小,显示分辨率包含视频的分辨率和显示屏幕的分辨率中的至少一项,显示屏幕的尺寸与屏幕显示质量呈负相关关系,显示分辨率与屏幕显示质量呈正相关关系,即显示屏幕的尺寸越大,屏幕显示质量越小;显示分辨率越高,屏幕显示质量越大。Optionally, the screen display quality is calculated according to the second preset algorithm according to the size and display resolution of the display screen, the size of the display screen is used to indicate the size of the display screen, and the display resolution includes the resolution of the video and the resolution of the display screen At least one of them, the size of the display screen is negatively correlated with the quality of the screen display, and the display resolution is positively correlated with the quality of the screen display, that is, the larger the size of the display screen, the lower the quality of the screen display; the higher the display resolution, The higher the quality of the screen display.
优选的,视频显示质量与屏幕显示质量呈正相关关系,视频显示质量与视频的帧率呈正相关关系,视频显示质量与视频的码率呈正相关关系。Preferably, the video display quality is positively correlated with the screen display quality, the video display quality is positively correlated with the video frame rate, and the video display quality is positively correlated with the video bit rate.
优选的,本实施例中显示质量的最大值为Qmax,显示质量的最小值为Qmin,例如,可以将显示质量的最大值设定为5,最小值设定为1,这两个边界值适用于所有的显示设备,而不同的显示设备可以计算各自不同的屏幕显示质量,这样,就使得不同的显示设备有共同的显示质量标准,能够更准确地反应视频的显示质量,两个不同的视频即使是分别在不同的显示设备上观看,也可以对比其显示质量。此处,可选的,本实施例提供一种具体的计算屏幕显示质量的方式,当然,计算屏幕显示质量的方式不止一种,此处只是列举一种优选的实现方式进行说明,并不代表本发明局限于此。可选的,获取有效显示像素密度,根据第一公式计算屏幕显示质量,第一公式为:Preferably, in this embodiment, the maximum value of the display quality is Q max , and the minimum value of the display quality is Q min . For example, the maximum value of the display quality can be set to 5, and the minimum value can be set to 1. These two boundaries The value is applicable to all display devices, and different display devices can calculate their different screen display quality. In this way, different display devices have a common display quality standard, which can more accurately reflect the display quality of the video. Two different You can compare the display quality of your videos even if you watch them on different display devices. Here, optionally, this embodiment provides a specific method for calculating the screen display quality. Of course, there are more than one method for calculating the screen display quality. Here, a preferred implementation method is only listed for illustration, and it does not represent The present invention is limited thereto. Optionally, the effective display pixel density is obtained, and the screen display quality is calculated according to the first formula. The first formula is:
其中,Qsc为屏幕显示质量,Qmax为常数,用于指示显示质量的最大值,P为有效显示像素密度,有效显示像素密度是根据显示分辨率和显示屏幕的尺寸计算得到的,Ds为显示屏幕的尺寸,d、e、f为常数,d、e、f可以是模型训练所得的常数。有效显示像素密度P用于指示视频在显示屏幕的单位面积内实际显示的像素数。Among them, Q sc is the screen display quality, Q max is a constant, used to indicate the maximum value of the display quality, P is the effective display pixel density, the effective display pixel density is calculated according to the display resolution and the size of the display screen, D s For the size of the display screen, d, e, and f are constants, and d, e, and f can be constants obtained from model training. The effective display pixel density P is used to indicate the number of pixels actually displayed in the unit area of the display screen.
在一种应用场景中,显示分辨率为视频的分辨率,或者,显示分辨率为显示屏幕的分辨率,根据第二公式计算有效显示像素密度,第二公式为:In an application scenario, the display resolution is the resolution of the video, or the display resolution is the resolution of the display screen, and the effective display pixel density is calculated according to the second formula, and the second formula is:
其中,Sw为显示分辨率的宽度,Sh为显示分辨率的高度。可选的,如果显示分辨率只包含视频的分辨率,则Sw为视频的分辨率的宽度,Sh为视频的分辨率的高度;如果显示分辨率只包含显示屏幕的分辨率,则Sw为显示屏幕的分辨率的宽度,Sh为显示屏幕的分辨率的高度;如果显示分辨率包含视频的分辨率和显示屏幕的分辨率,当视频的分辨率大于显示屏幕的分辨率时,显示分辨率为显示屏幕的分辨率,当视频的分辨率小于显示屏幕的分辨率时,显示分辨率为视频的分辨率。Among them, S w is the width of the display resolution, Sh is the height of the display resolution. Optionally, if the display resolution only includes the resolution of the video, then S w is the width of the video resolution, and Sh is the height of the video resolution; if the display resolution only includes the resolution of the display screen, then S w is the width of the resolution of the display screen, Sh is the height of the resolution of the display screen; if the display resolution includes the resolution of the video and the resolution of the display screen, when the resolution of the video is greater than the resolution of the display screen, The display resolution is the resolution of the display screen. When the resolution of the video is smaller than the resolution of the display screen, the display resolution is the resolution of the video.
在另一种应用场景中,显示分辨率包含视频的分辨率和显示屏幕的分辨率,根据第三公式计算有效显示像素密度,第三公式为:In another application scenario, the display resolution includes the resolution of the video and the resolution of the display screen, and the effective display pixel density is calculated according to the third formula, which is:
其中,θ为分辨率匹配因子,当视频的分辨率小于或等于显示屏幕的分辨率时,θ=1,当视频的分辨率大于显示屏幕的分辨率时, Among them, θ is the resolution matching factor, when the resolution of the video is less than or equal to the resolution of the display screen, θ=1, when the resolution of the video is greater than the resolution of the display screen,
Vw为视频的分辨率的宽度,Vh为视频的分辨率的高度,Dw为显示屏幕的分辨率的宽度,Dh为显示屏幕的分辨率的高度,g为常数,可以是一个很小的正数,优选的,g可以是0.05。V w is the width of the resolution of the video, V h is the height of the resolution of the video, D w is the width of the resolution of the display screen, D h is the height of the resolution of the display screen, and g is a constant, which can be a very A small positive number, preferably, g can be 0.05.
202、获取视频的帧率和视频的码率。202. Acquire the frame rate of the video and the bit rate of the video.
示例性的,该视频的码率用于指示该视频单位时间内传输的比特数,该视频的帧率用于指示该视频每秒显示的帧数。Exemplarily, the code rate of the video is used to indicate the number of bits transmitted per unit time of the video, and the frame rate of the video is used to indicate the number of frames displayed per second of the video.
203、根据屏幕显示质量、视频的帧率、视频的码率按照第一预设算法计算视频显示质量。203. Calculate the video display quality according to a first preset algorithm according to the screen display quality, the frame rate of the video, and the bit rate of the video.
其中,视频显示质量用于指示视频在显示屏幕上的显示质量。Wherein, the video display quality is used to indicate the display quality of the video on the display screen.
可选的,本实施例提供三种具体的方式计算视频显示质量,当然,也可以通过其他算法计算视频显示质量,此处只是举例说明本发明可以实现的方式,具体算法如下:Optionally, this embodiment provides three specific ways to calculate the video display quality. Of course, other algorithms can also be used to calculate the video display quality. This is just an example to illustrate the way the present invention can be implemented. The specific algorithm is as follows:
第一种方式:The first way:
根据第四公式计算视频显示质量Qv,第四公式为:Calculate the video display quality Q v according to the fourth formula, the fourth formula is:
其中,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,a、c的大小与视频的编码类型和分辨率相关,U为调节函数,随λ增大而增大,Y1为第一质量因子,Y2为第二质量因子。Among them, λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, Q sc is the screen display quality, and Q min is a constant , used to indicate the minimum value of the display quality, a, c are constants, the size of a, c is related to the encoding type and resolution of the video, U is an adjustment function, which increases with the increase of λ, and Y 1 is the first quality factor, Y2 is the second quality factor.
进一步的,U可以是关于λ的函数,随λ增大而增大,在一种可能的实现中,Further, U can be a function of λ, which increases as λ increases. In a possible implementation,
其中,b为常数,可以是一个很小的正数,优选的,b可以是0.05。Wherein, b is a constant, which can be a very small positive number, preferably, b can be 0.05.
第二种方式:The second way:
根据第五公式计算视频显示质量Qv,第五公式为:Calculate the video display quality Q v according to the fifth formula, the fifth formula is:
Qv=QB·func(λ);Q v = Q B func(λ);
其中,QB为参考质量,Among them, Q B is the reference mass,
func(λ)为修正因子,随λ增大而减小,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,a、c的大小与视频的编码类型和分辨率相关,Y1为第一质量因子,Y2为第二质量因子。func(λ) is the correction factor, which decreases with the increase of λ, λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, and B v is the video frame rate Code rate, Q sc is the screen display quality, Q min is a constant, used to indicate the minimum value of the display quality, a, c are constants, the size of a, c is related to the encoding type and resolution of the video, Y 1 is the first quality factor, Y2 is the second quality factor.
可选的,当λ>1时,func(λ)=a1-a2·log(a3·λ),(a1,a2,a3>0);当λ<1时,a1,a2,a3,b1,b2,b3为常数。Optionally, when λ>1, func(λ)=a 1 -a 2 ·log(a 3 ·λ), (a 1 , a 2 , a 3 >0); when λ<1, a 1 , a 2 , a 3 , b 1 , b 2 , and b 3 are constants.
第三种方式:当视频的帧率大于基准帧率时;The third method: when the frame rate of the video is greater than the reference frame rate;
根据第六公式计算视频显示质量Qv,第六公式为:Calculate the video display quality Q v according to the sixth formula, the sixth formula is:
Qv=func(QB,λ);Q v = func(Q B ,λ);
其中,c1,c2,c3,c4为常数,QB为参考质量,in, c 1 , c 2 , c 3 , c 4 are constants, Q B is the reference mass,
λ为帧率因子,且λ<1,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,Y1为第一质量因子,Y2为第二质量因子。λ is the frame rate factor, and λ<1, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, Q sc is the screen display quality, Q min is a constant, used to indicate the minimum value of display quality, a and c are constants, Y 1 is the first quality factor, and Y 2 is the second quality factor.
在上述三种计算视频显示质量的方式中,基准帧率FB是视频可以流畅播放的帧率,单位是帧每秒(英文:Frame Per Second,简称FPS),一般24FPS-30FPS即可视为流畅播放,基准帧率可以根据具体情况进行设定,本发明对此不做限制。In the above three methods of calculating video display quality, the reference frame rate F B is the frame rate at which the video can be played smoothly, and the unit is frame per second (English: Frame Per Second, FPS for short). Generally, 24FPS-30FPS can be regarded as For smooth playback, the reference frame rate can be set according to specific conditions, which is not limited by the present invention.
另外,可选的,第一质量因子Y1和第二质量因子Y2用于调节视频显示质量,Y1=1,Y2=1,或者,In addition, optionally, the first quality factor Y 1 and the second quality factor Y 2 are used to adjust the video display quality, Y 1 =1, Y 2 =1, or,
Y1=fun1(Vc),Y1=fun2(Vc),Vc用于指示视频的内容复杂度,fun1(Vc)和fun2(Vc)为关于Vc的函数,且均随Vc的增大而增大,并使得Qsc随之减小,即视频的内容复杂度越大,视频显示质量越小。在视频的内容复杂度未知时,可以将第一质量因子Y1以及第二质量因子Y2设定为1,当已知视频的内容复杂度时,可以在计算视频显示质量的时候加入视频的内容复杂度的影响,需要说明的是,本实施例提供的视频显示质量的计算方法还可以包括获取视频的内容复杂度的步骤。在考虑视频的内容复杂度的情况下,可以使得计算出的结果更加准确地反应视频显示质量。Y 1 =fun1(V c ), Y 1 =fun2(V c ), V c is used to indicate the content complexity of the video, fun1(V c ) and fun2(V c ) are functions on V c , and both vary with The increase of V c increases, and makes Q sc decrease accordingly, that is, the greater the complexity of the video content, the lower the video display quality. When the content complexity of the video is unknown, the first quality factor Y1 and the second quality factor Y2 can be set to 1. When the content complexity of the video is known, the video quality can be added when calculating the video display quality Influence of the content complexity, it should be noted that the method for calculating the video display quality provided in this embodiment may further include a step of obtaining the content complexity of the video. In the case of considering the content complexity of the video, the calculated result can reflect the display quality of the video more accurately.
其中,视频的内容复杂度可以包含视频的时间复杂度和视频的空间复杂度中的至少一项,时间复杂度用于指示视频一帧与一帧之间的包含的图像的变化程度,两帧之间视频的图像相差越大,时间复杂度越高,也可以说时间复杂度用于指示视频的序列随时间的变化程度,视频的内容运动较快的序列的时间复杂度越高;空间复杂度用于指示一帧中图像的纹理复杂度,视频的图像所显示的场景越复杂,其空间复杂度越高。视频的时间复杂度可以根据视频一帧的大小以及码率确定,具体的,可以根据公式:Wherein, the content complexity of the video may include at least one of the time complexity of the video and the space complexity of the video, and the time complexity is used to indicate the change degree of the included image between one frame and one frame of the video, and two frames The greater the image difference between the videos, the higher the time complexity. It can also be said that the time complexity is used to indicate the degree of change of the video sequence over time, and the time complexity of the sequence with faster video content movement is higher; the space complexity The degree is used to indicate the texture complexity of the image in a frame, and the more complex the scene displayed by the image of the video, the higher its spatial complexity. The time complexity of a video can be determined according to the size of one video frame and the bit rate. Specifically, it can be determined according to the formula:
计算; calculate;
TCC为视频的时间复杂度,Bv为视频的码率,ABI为平均一帧的大小,t0为常数。TCC is the time complexity of the video, B v is the bit rate of the video, ABI is the average size of one frame, and t 0 is a constant.
视频的空间复杂度可以根据视频一帧中一个像素的比特数及参量x计算得到。The space complexity of the video can be calculated according to the number of bits of a pixel in a frame of the video and the parameter x.
当然,此处只是举例说明,视频的内容复杂度也可以根据其他方式进行计算,视频的内容复杂度用于指示视频播放的难易程度,视频的内容复杂度越大,视频显示质量越小,视频的内容复杂度越小,视频显示质量越大。Of course, this is just an example. The content complexity of the video can also be calculated in other ways. The content complexity of the video is used to indicate the difficulty of playing the video. The greater the complexity of the video content, the lower the video display quality. The smaller the content complexity of the video, the higher the video display quality.
本实施例提供的视频显示质量的计算方法,获取视频的屏幕显示质量、视频的帧率、视频的码率,根据屏幕显示质量、视频的帧率及视频的码率按照第一预设算法计算视频显示质量,其中,屏幕显示质量用于指示视频在显示屏幕上的显示质量的最高取值。综合屏幕显示质量以及视频的帧率、视频的码率对视频显示质量进行计算,不仅仅是根据视频数据自身的参数进行计算,兼顾了视频在显示屏幕的显示情况,能够更加准确地体现视频显示质量。The method for calculating the video display quality provided by this embodiment obtains the screen display quality of the video, the frame rate of the video, and the bit rate of the video, and calculates according to the first preset algorithm according to the screen display quality, the frame rate of the video, and the bit rate of the video The video display quality, wherein, the screen display quality is used to indicate the highest value of the display quality of the video on the display screen. The video display quality is calculated based on the screen display quality, video frame rate, and video bit rate, not only based on the parameters of the video data itself, but also taking into account the display of the video on the display screen, which can more accurately reflect the video display quality.
基于上述图2对应的实施例中所描述的视频显示质量的计算方法,本发明实施例提供一种电子设备,用于执行上述图2对应的实施例中所描述的视频显示质量的计算方法,参照图3所示,该电子设备30包括:第一获取单元301、第二获取单元302和计算单元303。Based on the method for calculating video display quality described in the embodiment corresponding to FIG. 2 above, an embodiment of the present invention provides an electronic device for performing the method for calculating video display quality described in the embodiment corresponding to FIG. 2 above, Referring to FIG. 3 , the electronic device 30 includes: a first acquisition unit 301 , a second acquisition unit 302 and a calculation unit 303 .
其中,第一获取单元301,用于获取视频的屏幕显示质量,屏幕显示质量用于指示视频在显示屏幕上的显示质量的最高取值;Wherein, the first obtaining unit 301 is used to obtain the screen display quality of the video, and the screen display quality is used to indicate the highest value of the display quality of the video on the display screen;
第二获取单元302,用于获取视频的帧率和视频的码率;计算单元303,用于根据第一获取单元301获取的屏幕显示质量、第二获取单元302获取的视频的帧率及视频的码率按照第一预设算法计算视频显示质量,视频显示质量用于指示视频在显示屏幕上的显示质量。The second acquisition unit 302 is used to acquire the frame rate of the video and the code rate of the video; the calculation unit 303 is used to obtain the screen display quality according to the first acquisition unit 301, the frame rate of the video acquired by the second acquisition unit 302 and the video The bit rate of the video is calculated according to the first preset algorithm, and the video display quality is used to indicate the display quality of the video on the display screen.
可选的,第一获取单元301,具体用于根据显示屏幕的尺寸、显示分辨率按照第二预设算法计算屏幕显示质量,显示屏幕的尺寸用于指示显示屏幕的大小,显示分辨率包含视频的分辨率和显示屏幕的分辨率中的至少一项,显示屏幕的尺寸与屏幕显示质量呈负相关关系,显示分辨率与屏幕显示质量呈正相关关系,即显示屏幕的尺寸越大,屏幕显示质量越小;显示分辨率越高,屏幕显示质量越大。Optionally, the first acquisition unit 301 is specifically configured to calculate the screen display quality according to the second preset algorithm according to the size and display resolution of the display screen, the size of the display screen is used to indicate the size of the display screen, and the display resolution includes video At least one of the resolution and the resolution of the display screen, the size of the display screen is negatively correlated with the quality of the screen display, and the display resolution is positively correlated with the quality of the screen display, that is, the larger the size of the display screen, the better the quality of the screen display The smaller it is; the higher the display resolution, the greater the quality of the screen display.
示例性的,该电子设备包含该显示屏幕,或者,该显示屏幕不属于该电子设备。Exemplarily, the electronic device includes the display screen, or, the display screen does not belong to the electronic device.
优选的,第一获取单元301,具体用于获取有效显示像素密度,根据第一公式计算屏幕显示质量,第一公式为:Preferably, the first acquiring unit 301 is specifically configured to acquire the effective display pixel density, and calculate the screen display quality according to the first formula, the first formula is:
其中,Qsc为屏幕显示质量,Qmax为常数,用于指示显示质量的最大值,P为有效显示像素密度,有效显示像素密度是根据显示分辨率和显示屏幕的尺寸计算得到的,Ds为显示屏幕的尺寸,d、e、f为常数。Among them, Q sc is the screen display quality, Q max is a constant, used to indicate the maximum value of the display quality, P is the effective display pixel density, the effective display pixel density is calculated according to the display resolution and the size of the display screen, D s For the size of the display screen, d, e, f are constants.
在一种应用场景中,显示分辨率为视频的分辨率,或者,显示分辨率为显示屏幕的分辨率,第一获取单元301,具体用于根据第二公式计算有效显示像素密度,第二公式为:In an application scenario, the display resolution is the resolution of the video, or the display resolution is the resolution of the display screen, and the first acquisition unit 301 is specifically used to calculate the effective display pixel density according to the second formula, the second formula for:
其中,Sw为显示分辨率的宽度,Sh为显示分辨率的高度。可选的,如果显示分辨率包含视频的分辨率和显示屏幕的分辨率,当视频的分辨率大于显示屏幕的分辨率时,显示分辨率为显示屏幕的分辨率,当视频的分辨率小于显示屏幕的分辨率时,显示分辨率为视频的分辨率。Among them, S w is the width of the display resolution, Sh is the height of the display resolution. Optionally, if the display resolution includes the resolution of the video and the resolution of the display screen, when the resolution of the video is greater than the resolution of the display screen, the display resolution is the resolution of the display screen; When specifying the resolution of the screen, the display resolution is the resolution of the video.
在另一种应用场景中,显示分辨率包含视频的分辨率和显示屏幕的分辨率,第一获取单元301,具体用于根据第三公式计算有效显示像素密度,第三公式为:In another application scenario, the display resolution includes the resolution of the video and the resolution of the display screen. The first acquisition unit 301 is specifically used to calculate the effective display pixel density according to the third formula. The third formula is:
其中,θ为分辨率匹配因子,当视频的分辨率小于或等于显示屏幕的分辨率时,θ=1,当视频的分辨率大于显示屏幕的分辨率时, Among them, θ is the resolution matching factor, when the resolution of the video is less than or equal to the resolution of the display screen, θ=1, when the resolution of the video is greater than the resolution of the display screen,
Vw为视频的分辨率的宽度,Vh为视频的分辨率的高度,Dw为显示屏幕的分辨率的宽度,Dh为显示屏幕的分辨率的高度,g为常数。V w is the width of the resolution of the video, V h is the height of the resolution of the video, D w is the width of the resolution of the display screen, D h is the height of the resolution of the display screen, and g is a constant.
可选的,计算单元303,具体用于根据第四公式计算视频显示质量Qv,第四公式为:Optionally, the calculation unit 303 is specifically configured to calculate the video display quality Qv according to a fourth formula, the fourth formula is:
其中,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,U为调节函数,随λ增大而增大,Y1为第一质量因子,Y2为第二质量因子。Among them, λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, Q sc is the screen display quality, and Q min is a constant , used to indicate the minimum value of the display quality, a and c are constants, U is an adjustment function, which increases with the increase of λ, Y 1 is the first quality factor, and Y 2 is the second quality factor.
可选的,optional,
其中,b为常数。Among them, b is a constant.
可选的,计算单元303,具体用于根据第五公式计算视频显示质量Qv,第五公式为:Optionally, the calculation unit 303 is specifically configured to calculate the video display quality Q v according to a fifth formula, the fifth formula is:
Qv=QB·func(λ);Q v = Q B func(λ);
其中,QB为参考质量,Among them, Q B is the reference mass,
func(λ)为修正因子,随λ增大而减小,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,Y1为第一质量因子,Y2为第二质量因子。func(λ) is the correction factor, which decreases with the increase of λ, λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, and B v is the video frame rate Code rate, Q sc is the screen display quality, Q min is a constant, used to indicate the minimum value of the display quality, a, c are constants, Y 1 is the first quality factor, Y 2 is the second quality factor.
进一步可选的,当λ>1时,func(λ)=a1-a2·log(a3·λ),(a1,a2,a3>0);当λ<1时,其中,a1,a2,a3,b1,b2,b3为常数。Further optionally, when λ>1, func(λ)=a 1 -a 2 ·log(a 3 ·λ), (a 1 , a 2 , a 3 >0); when λ<1, Wherein, a 1 , a 2 , a 3 , b 1 , b 2 , and b 3 are constants.
可选的,计算单元303,具体用于当视频的帧率大于基准帧率时,根据第六公式计算视频显示质量Qv,第六公式为:Optionally, the calculation unit 303 is specifically configured to calculate the video display quality Qv according to the sixth formula when the frame rate of the video is greater than the reference frame rate, and the sixth formula is:
Qv=func(QB,λ);Q v = func(Q B ,λ);
其中,c1,c2,c3,c4为常数,QB为参考质量,in, c 1 , c 2 , c 3 , c 4 are constants, Q B is the reference mass,
λ为帧率因子,且λ<1,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,Y1为第一质量因子,Y2为第二质量因子。λ is the frame rate factor, and λ<1, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, Q sc is the screen display quality, Q min is a constant, used to indicate the minimum value of display quality, a and c are constants, Y 1 is the first quality factor, and Y 2 is the second quality factor.
可选的,Y1=1,Y2=1,或者,Y1=fun1(Vc),Y1=fun2(Vc),Vc用于指示视频的内容复杂度,fun1(Vc)和fun2(Vc)为关于Vc的函数,且均随Vc的增大而增大。Optionally, Y 1 =1, Y 2 =1, or, Y 1 =fun1(V c ), Y 1 =fun2(V c ), V c is used to indicate the content complexity of the video, fun1(V c ) and fun2(V c ) are functions on V c , and both increase with the increase of V c .
另外,可选的,获取单元301,具体用于获取视频的内容复杂度。In addition, optionally, the acquiring unit 301 is specifically configured to acquire the content complexity of the video.
当然,本实施例中只是以虚拟模块对电子设备的结构进行说明,其具体的实现方式可以是将实现本发明视频显示质量的计算方法的程序及数据存储于存储器中,处理器调用存储器中的程序实现本发明视频显示质量的计算方法,电子设备根据各个步骤中功能的不同可以划分为本实施例中的虚拟模块,并不代表各个电子设备包含各个虚拟模块的实体结构。Of course, in this embodiment, the structure of the electronic device is only described with a virtual module, and its specific implementation may be to store the program and data that realize the calculation method of the video display quality of the present invention in the memory, and the processor calls the memory in the memory. The program implements the method for calculating the video display quality of the present invention, and the electronic devices can be divided into virtual modules in this embodiment according to the different functions in each step, which does not mean that each electronic device includes the physical structure of each virtual module.
基于上述图2对应的实施例中所描述的视频显示质量的计算方法,本发明另一实施例提供一种电子设备,用于执行上述图2对应的实施例中所描述的视频显示质量的计算方法,参照图4所示,该电子设备40包括:包括:处理器401、存储器402及总线403,处理器401及存储器402通过总线相互连接,存储器402用于存储程序和数据,处理器401用于调用存储器存储的程序执行视频显示质量的计算方法;Based on the calculation method of video display quality described in the embodiment corresponding to FIG. 2 above, another embodiment of the present invention provides an electronic device for performing the calculation of video display quality described in the embodiment corresponding to FIG. 2 above. Method, with reference to shown in Figure 4, this electronic equipment 40 comprises: comprise: processor 401, memory 402 and bus 403, processor 401 and memory 402 are interconnected by bus, memory 402 is used for storing program and data, and processor 401 uses The method for calculating the video display quality is executed by calling the program stored in the memory;
处理器401,用于获取视频的屏幕显示质量,屏幕显示质量用于指示视频在显示屏幕上的显示质量的最高取值;获取视频的帧率和视频的码率;根据屏幕显示质量、视频的帧率、视频的码率按照第一预设算法计算视频显示质量,视频显示质量用于指示视频在显示屏幕上的显示质量。The processor 401 is used to obtain the screen display quality of the video, and the screen display quality is used to indicate the highest value of the display quality of the video on the display screen; obtain the frame rate of the video and the code rate of the video; The frame rate and the bit rate of the video are used to calculate the video display quality according to the first preset algorithm, and the video display quality is used to indicate the display quality of the video on the display screen.
可选的,处理器401,具体用于根据显示屏幕的尺寸、显示分辨率按照第二预设算法计算屏幕显示质量,显示屏幕的尺寸用于指示显示屏幕的大小,显示分辨率包含视频的分辨率和显示屏幕的分辨率中的至少一项,显示屏幕的尺寸与屏幕显示质量呈负相关关系,显示分辨率与屏幕显示质量呈正相关关系。Optionally, the processor 401 is specifically configured to calculate the screen display quality according to the second preset algorithm according to the size and display resolution of the display screen, the size of the display screen is used to indicate the size of the display screen, and the display resolution includes video resolution The size of the display screen is negatively correlated with the screen display quality, and the display resolution is positively correlated with the screen display quality.
可选的,处理器401,具体用于获取有效显示像素密度,根据第一公式计算屏幕显示质量,第一公式为:Optionally, the processor 401 is specifically configured to obtain an effective display pixel density, and calculate the screen display quality according to a first formula, and the first formula is:
其中,Qsc为屏幕显示质量,Qmax为常数,用于指示显示质量的最大值,P为有效显示像素密度,有效显示像素密度是根据显示分辨率和显示屏幕的尺寸计算得到的,Ds为显示屏幕的尺寸,d、e、f为常数。Among them, Q sc is the screen display quality, Q max is a constant, used to indicate the maximum value of the display quality, P is the effective display pixel density, the effective display pixel density is calculated according to the display resolution and the size of the display screen, D s For the size of the display screen, d, e, f are constants.
可选的,在一种应用场景中,显示分辨率为视频的分辨率,或者,显示分辨率为显示屏幕的分辨率,处理器401,具体用于根据第二公式计算有效显示像素密度,第二公式为:Optionally, in an application scenario, the display resolution is the resolution of the video, or the display resolution is the resolution of the display screen, and the processor 401 is specifically used to calculate the effective display pixel density according to the second formula, the first The second formula is:
其中,Sw为显示分辨率的宽度,Sh为显示分辨率的高度。优选的,当视频的分辨率大于显示屏幕的分辨率时,显示分辨率为显示屏幕的分辨率,当视频的分辨率小于显示屏幕的分辨率时,显示分辨率为视频的分辨率。Among them, S w is the width of the display resolution, and Sh is the height of the display resolution. Preferably, when the resolution of the video is greater than the resolution of the display screen, the display resolution is the resolution of the display screen, and when the resolution of the video is smaller than the resolution of the display screen, the display resolution is the resolution of the video.
可选的,在另一种应用场景中,显示分辨率包含视频的分辨率和显示屏幕的分辨率,Optionally, in another application scenario, the display resolution includes video resolution and display screen resolution,
处理器401,具体用于根据第三公式计算有效显示像素密度,第三公式为:The processor 401 is specifically configured to calculate the effective display pixel density according to a third formula, and the third formula is:
其中,θ为分辨率匹配因子,当视频的分辨率小于或等于显示屏幕的分辨率时,θ=1,当视频的分辨率大于显示屏幕的分辨率时, Among them, θ is the resolution matching factor, when the resolution of the video is less than or equal to the resolution of the display screen, θ=1, when the resolution of the video is greater than the resolution of the display screen,
Vw为视频的分辨率的宽度,Vh为视频的分辨率的高度,Dw为显示屏幕的分辨率的宽度,Dh为显示屏幕的分辨率的高度,g为常数。V w is the width of the resolution of the video, V h is the height of the resolution of the video, D w is the width of the resolution of the display screen, D h is the height of the resolution of the display screen, and g is a constant.
可选的,处理器401,具体用于根据第四公式计算视频显示质量Qv,第四公式为:Optionally, the processor 401 is specifically configured to calculate the video display quality Qv according to a fourth formula, and the fourth formula is:
其中,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,U为调节函数,随λ增大而增大,Y1为第一质量因子,Y2为第二质量因子。Among them, λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, Q sc is the screen display quality, and Q min is a constant , used to indicate the minimum value of the display quality, a and c are constants, U is an adjustment function, which increases with the increase of λ, Y 1 is the first quality factor, and Y 2 is the second quality factor.
进一步的,further,
其中,b为常数。Among them, b is a constant.
可选的,处理器401,具体用于根据第五公式计算视频显示质量Qv,第五公式为:Optionally, the processor 401 is specifically configured to calculate the video display quality Q v according to a fifth formula, and the fifth formula is:
Qv=QB·func(λ);Q v = Q B func(λ);
其中,QB为参考质量,Among them, Q B is the reference mass,
func(λ)为修正因子,随λ增大而减小,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,Y1为第一质量因子,Y2为第二质量因子。func(λ) is the correction factor, which decreases with the increase of λ, λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, and B v is the video frame rate Code rate, Q sc is the screen display quality, Q min is a constant, used to indicate the minimum value of the display quality, a, c are constants, Y 1 is the first quality factor, Y 2 is the second quality factor.
进一步的,当λ>1时,func(λ)=a1-a2·log(a3·λ),(a1,a2,a3>0);Further, when λ>1, func(λ)=a 1 -a 2 ·log(a 3 ·λ), (a 1 , a 2 , a 3 >0);
当λ<1时, When λ<1,
其中,a1,a2,a3,b1,b2,b3为常数。Wherein, a 1 , a 2 , a 3 , b 1 , b 2 , and b 3 are constants.
可选的,处理器401,具体用于当视频的帧率大于基准帧率时,根据第六公式计算视频显示质量Qv,第六公式为:Optionally, the processor 401 is specifically configured to calculate the video display quality Q v according to the sixth formula when the frame rate of the video is greater than the reference frame rate. The sixth formula is:
Qv=func(QB,λ);Q v = func(Q B ,λ);
其中,c1,c2,c3,c4为常数,QB为参考质量,in, c 1 , c 2 , c 3 , c 4 are constants, Q B is the reference mass,
λ为帧率因子,且λ<1,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,U为调节函数,随λ增大而增大,Y1为第一质量因子,Y2为第二质量因子。λ is the frame rate factor, and λ<1, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, Q sc is the screen display quality, Q min is a constant, used to indicate the minimum value of display quality, a and c are constants, U is an adjustment function, which increases with the increase of λ, Y 1 is the first quality factor, and Y 2 is the second quality factor.
进一步的,Y1=1,Y2=1,或者,Further, Y 1 =1, Y 2 =1, or,
Y1=fun1(Vc),Y1=fun2(Vc),Vc用于指示视频的内容复杂度,fun1(Vc)和fun2(Vc)为关于Vc的函数,且均随Vc的增大而增大。Y 1 =fun1(V c ), Y 1 =fun2(V c ), V c is used to indicate the content complexity of the video, fun1(V c ) and fun2(V c ) are functions on V c , and both vary with Vc increases and increases.
在一种可能的实现中,In one possible implementation,
处理器401,还用于获取视频的内容复杂度。The processor 401 is further configured to acquire the content complexity of the video.
本实施例提供的电子设备,获取视频的屏幕显示质量、视频的帧率、视频的码率,根据屏幕显示质量、视频的帧率及视频的码率按照第一预设算法计算视频显示质量,其中,屏幕显示质量用于指示视频在显示屏幕上的显示质量的最高取值。综合屏幕显示质量以及视频的帧率、视频的码率对视频显示质量进行计算,不仅仅是根据视频数据自身的参数进行计算,兼顾了视频在显示屏幕的显示情况,能够更加准确地体现视频显示质量。The electronic device provided in this embodiment acquires the screen display quality of the video, the frame rate of the video, and the bit rate of the video, and calculates the video display quality according to the first preset algorithm according to the screen display quality, the frame rate of the video, and the bit rate of the video, Wherein, the screen display quality is used to indicate the highest value of the display quality of the video on the display screen. The video display quality is calculated based on the screen display quality, video frame rate, and video bit rate, not only based on the parameters of the video data itself, but also taking into account the display of the video on the display screen, which can more accurately reflect the video display quality.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described devices and units can refer to the corresponding process in the foregoing method embodiments, and details are not repeated here. The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within range.
Claims (19)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610209567.9A CN105847970A (en) | 2016-04-06 | 2016-04-06 | Video display quality calculating method and equipment |
| PCT/CN2016/104245 WO2017173817A1 (en) | 2016-04-06 | 2016-11-01 | Computing method and apparatus for video display quality |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610209567.9A CN105847970A (en) | 2016-04-06 | 2016-04-06 | Video display quality calculating method and equipment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN105847970A true CN105847970A (en) | 2016-08-10 |
Family
ID=56596720
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610209567.9A Pending CN105847970A (en) | 2016-04-06 | 2016-04-06 | Video display quality calculating method and equipment |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105847970A (en) |
| WO (1) | WO2017173817A1 (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106792156A (en) * | 2016-12-08 | 2017-05-31 | 深圳Tcl新技术有限公司 | Lift the method and device of Internet video definition |
| CN106791846A (en) * | 2016-12-09 | 2017-05-31 | 浙江宇视科技有限公司 | The method of adjustment and device of a kind of Image Coding quality factor |
| WO2017173817A1 (en) * | 2016-04-06 | 2017-10-12 | 华为技术有限公司 | Computing method and apparatus for video display quality |
| CN109889816A (en) * | 2019-02-19 | 2019-06-14 | 西安电子科技大学 | A video quality assessment method, device, device and storage medium based on spatiotemporal resolution |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115225911B (en) * | 2022-08-19 | 2022-12-06 | 腾讯科技(深圳)有限公司 | Code rate self-adaption method and device, computer equipment and storage medium |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102740108A (en) * | 2011-04-11 | 2012-10-17 | 华为技术有限公司 | A video data quality assessment method and device |
| CN103152599A (en) * | 2013-02-01 | 2013-06-12 | 浙江大学 | Mobile video service user experience quality evaluation method based on ordinal regression |
| CN103379360A (en) * | 2012-04-23 | 2013-10-30 | 华为技术有限公司 | Assessment method and device for video quality |
| CN103533367A (en) * | 2013-10-23 | 2014-01-22 | 传线网络科技(上海)有限公司 | No-reference video quality evaluation method and device |
| CN103634594A (en) * | 2012-08-21 | 2014-03-12 | 华为技术有限公司 | A method and device for obtaining video coding compression quality |
| CN104023232A (en) * | 2014-06-27 | 2014-09-03 | 北京邮电大学 | Mobile video quality assessment method based on hierarchy analysis and multiple linear regressions |
| CN104618924A (en) * | 2015-01-30 | 2015-05-13 | 南京邮电大学 | Wireless ubiquitous network-based quality of experience index system and measuring method |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100568972C (en) * | 2006-05-09 | 2009-12-09 | 日本电信电话株式会社 | Video quality estimating device and method |
| JP4451856B2 (en) * | 2006-05-09 | 2010-04-14 | 日本電信電話株式会社 | Video quality estimation apparatus, method, and program |
| CN105847970A (en) * | 2016-04-06 | 2016-08-10 | 华为技术有限公司 | Video display quality calculating method and equipment |
-
2016
- 2016-04-06 CN CN201610209567.9A patent/CN105847970A/en active Pending
- 2016-11-01 WO PCT/CN2016/104245 patent/WO2017173817A1/en active Application Filing
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102740108A (en) * | 2011-04-11 | 2012-10-17 | 华为技术有限公司 | A video data quality assessment method and device |
| CN103379360A (en) * | 2012-04-23 | 2013-10-30 | 华为技术有限公司 | Assessment method and device for video quality |
| CN103634594A (en) * | 2012-08-21 | 2014-03-12 | 华为技术有限公司 | A method and device for obtaining video coding compression quality |
| CN103152599A (en) * | 2013-02-01 | 2013-06-12 | 浙江大学 | Mobile video service user experience quality evaluation method based on ordinal regression |
| CN103533367A (en) * | 2013-10-23 | 2014-01-22 | 传线网络科技(上海)有限公司 | No-reference video quality evaluation method and device |
| CN104023232A (en) * | 2014-06-27 | 2014-09-03 | 北京邮电大学 | Mobile video quality assessment method based on hierarchy analysis and multiple linear regressions |
| CN104618924A (en) * | 2015-01-30 | 2015-05-13 | 南京邮电大学 | Wireless ubiquitous network-based quality of experience index system and measuring method |
Non-Patent Citations (2)
| Title |
|---|
| ABDUL REHMAN, KAI ZENG, ZHOU WANG: "Display device-adopted video quality-of-experience assessment", 《HUMAN VISION AND ELECTRONIC IMAGING INTERNATIONAL SOCIETY FOR OPTICS AND PHOTONICS》 * |
| 刘祺: "智能终端视频质量评估", 《中国硕士学位论文全文数据库》 * |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2017173817A1 (en) * | 2016-04-06 | 2017-10-12 | 华为技术有限公司 | Computing method and apparatus for video display quality |
| CN106792156A (en) * | 2016-12-08 | 2017-05-31 | 深圳Tcl新技术有限公司 | Lift the method and device of Internet video definition |
| CN106791846A (en) * | 2016-12-09 | 2017-05-31 | 浙江宇视科技有限公司 | The method of adjustment and device of a kind of Image Coding quality factor |
| CN106791846B (en) * | 2016-12-09 | 2019-12-13 | 浙江宇视科技有限公司 | Method and device for adjusting image coding quality factor |
| CN109889816A (en) * | 2019-02-19 | 2019-06-14 | 西安电子科技大学 | A video quality assessment method, device, device and storage medium based on spatiotemporal resolution |
| CN109889816B (en) * | 2019-02-19 | 2020-09-25 | 西安电子科技大学 | Video quality evaluation method, device, equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2017173817A1 (en) | 2017-10-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111193923B (en) | Video quality evaluation method and device, electronic equipment and computer storage medium | |
| CN111918066B (en) | Video encoding method, device, equipment and storage medium | |
| CN104618195B (en) | Bandwidth estimation method and apparatus | |
| US10467737B2 (en) | Method and device for adjusting grayscale values of image | |
| CN105847970A (en) | Video display quality calculating method and equipment | |
| CN109688465B (en) | Video enhancement control method, device and electronic device | |
| CN102572502B (en) | A Method for Selecting Key Frames for Video Quality Evaluation | |
| Zhou et al. | Reduced-reference stereoscopic image quality assessment based on view and disparity zero-watermarks | |
| WO2023056896A1 (en) | Definition determination method and apparatus, and device | |
| CN106664404B (en) | Block partitioning scheme processing method and relevant apparatus in Video coding | |
| CN105208388B (en) | Dynamically adjustment encodes the method and system of frame per second in video communication | |
| CN110740316A (en) | Data coding method and device | |
| CN106791915A (en) | A kind of method and apparatus for showing video image | |
| CN111524110A (en) | Video quality evaluation model construction method, evaluation method and device | |
| CN110677728B (en) | Method, device and equipment for playing video and storage medium | |
| WO2018192518A1 (en) | Data processing method and device and storage medium | |
| US20140348418A1 (en) | Image processing apparatus and image processing method | |
| TWI520048B (en) | Method for outputting cloud image data and cloud server | |
| CN107547913B (en) | Video data playing and processing method, client and equipment | |
| TWI330978B (en) | ||
| CN110062225B (en) | Picture filtering method and device | |
| CN114827583A (en) | System and method for objective video quality assessment in lightweight real-time video communication | |
| CN110062226B (en) | Video coding method, video decoding method, device, system and medium | |
| CN106210590B (en) | An image acquisition method, device and storage medium | |
| CN117729357B (en) | Video processing method, device, computer equipment and medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160810 |