To provide some statistical vision, a limited portion of the data generated in section 3.3, UHD resolution of Myanmar video sequence is presented in Table 1 for each codec. This table is followed by an evaluation of bitrate, PSNR, and VMAF variables according to the CRF changes. In fact, we are analysing the values of these variables for any specific CRF and looking to discover the general trend of the changes in their values to see by increasing the CRF values, their trend is decremental or incremental.
As it is demonstrated by actual evidence and we expected owing to our literature review, by increasing CRFs, bitrate, PSNR, and VMAF are decreasing. For any step of 5-unit increase in the CRF, bitrate, experiences about 50 percent reduction in its value. PSNR and VMAF have also a decremental trend when the CRF values are Increasing.
4.3 Mathematical models of the PSNR Convex Hulls
By having the convex hull of the Bitrate-PSNR curves, the last step of the project which is modelling the convex hulls mathematically is implemented and the results for three codecs are provided below. For each codec, the points constructing the convex hulls of nine videos are put together and modelled. The number of points is presented in Table 2. Figures 4.3, 4.4, and 4.5 are demonstrating the modelled curves for H.264, H.265, and VP9, respectively. For each modelled curve, the related polynomial modelled curve with its accuracy is provided as well.
Table 2
Convex Hulls Points for Each Codec.
H.264 | H.265 | VP9 |
129 | 139 | 135 |
4.3.1 H.264
Linear model Poly6: (It is worth mentioning that we have considered the bitrate logarithmic which means that in the following equation x is replaced with (log x).)
f(x) = p1*x^6 + p2*x^5 + p3*x^4 + p4*x^3 + p5*x^2 + p6*x + p7
Coefficients (with 95% confidence bounds):
p1 = -0.0007881 (-0.002044, 0.0004681)
p2 = 0.04001 (-0.02975, 0.1098)
p3 = -0.8077 (-2.382, 0.7671)
p4 = 8.251 (-10.21, 26.71)
p5 = -44.67 (-163, 73.7)
p6 = 123.2 (-269.8, 516.1)
p7 = -111.5 (-638.7, 415.6)
Therefore, the convex hull of H.264 is modelled as 6th order polynomial.
4.3.2 H.265
Linear model Poly5: (It is worth mentioning that we have considered the bitrate logarithmic which means that in the following equation x is replaced with (log x).)
f(x) = p1*x^5 + p2*x^4 + p3*x^3 + p4*x^2 + p5*x + p6
Coefficients (with 95% confidence bounds):
p1 = -0.002066 (-0.005009, 0.0008759)
p2 = 0.09133 (-0.0403, 0.2229)
p3 = -1.536 (-3.815, 0.7438)
p4 = 12.27 (-6.772, 31.31)
p5 = -44.14 (-120.6, 32.32)
p6 = 83.72 (-34.02, 201.4)
Therefore, the convex hull of H.265 is modelled as 5th order polynomial.
4.3.3 VP9
Linear model Poly5: (It is worth mentioning that we have considered the bitrate logarithmic which means that in the following equation x is replaced with (log x).)
f(x) = p1*log(x)^5 + p2*log(x)^4 + p3*log(x)^3 + p4*log(x)^2 + p5*log(x) + p6
where x is normalized by mean 10.35 and std 2.132
Coefficients (with 95% confidence bounds):
p1 = -0.1925 (-0.5627, 0.1778)
p2 = -0.3535 (-0.7647, 0.05772)
p3 = 1.113 (-0.5089, 2.734)
p4 = 2.601 (1.254, 3.947)
p5 = 4.443 (2.879, 6.007)
p6 = 40.56 (39.81, 41.3)
As it is demonstrated above H.264 is modelled as a 6th order polynomial and H.265 and VP9 are modelled as 5th order polynomial. The reason is that we were changing the degree from 1 to 8 to find the best accuracy.
Table 2 is exhibiting the RMSE and R-square values and our final choice for each codec that has a lower RMSE and higher R-Squared.
Table 3
RMSE and R-Squared Values for Each Degree in Polynomial Modelling
Encoding | H264 | H265 | VP9 |
Poly order | RMSE | R-Squared | RMSE | R-Squared | RMSE | R-Squared |
1 | 2.421 | 0.9095 | 2.455 | 0.9 | 3.054 | 0.7732 |
2 | 2.368 | 0.9141 | 2.387 | 0.9062 | 2.64 | 0.8319 |
3 | 2.346 | 0.9164 | 2.365 | 0.9086 | 2.616 | 0.8361 |
4 | 2.348 | 0.9169 | 2.373 | 0.9086 | 2.606 | 0.8386 |
5 | 2.31 | 0.9202 | 2.365 | 0.9099 | 2.605 | 0.8399 |
6 | 2.305 | 0.9212 | 2.366 | 0.9065 | 0.61 | 0.8406 |
7 | 2.313 | 0.9167 | 2.374 | 0.9106 | 2.611 | 0.8417 |
8 | 2.322 | 0.9213 | 2.371 | 0.9061 | 2.621 | 0.8418 |
As it is demonstrated, the highlighted values, have a lower RMSE and higher R-Squared which resulted to a more accurate modelled curve.