Video Compression

VideoNerd

The PSNR/VMAF BD-rate is a measure of coding efficiency in the terms of the average change in bitrate for a fixed PSNR or VMAF quality between two video compression methods. Additional information on BD-Rate is present here (“Bjontegaard Delta-Rate Metric” by Maxim Sharabayko)

 

For example, if PSNR BD-rate is -10% between codec A and codec B , this means that the given same PSNR quality the codec A in average gets a bit-rate saving of 10%, i.e. the codec A is more code efficient.

How to compute BD-Rate?

There is a free python script bjontegaard_metric.py, to clone the script use:

git clone https://github.com/Anserw/Bjontegaard_metric.git

actually the code in bjontegaard_metric.py is a replica of the corresponding Matlab code for BD-rate calculation.   So, we can trust this code.

You need at least four points (Qualit, Rate) to compute BD-Rate. Piecewise cubic interpolation is commonly used to join all data points.

 

For  example i ran x264 and x265 on same ‘evil’ testing sequence with an aligned settings and obtained the following results:

x264:

         target bitrates (Mbps)  10         15              20              25

bitrates (Mbps):       9.525,   14.270,      19.113,      24.393

psnr:                       37.73,     39.07,       40.07,         40.95

 

x265:

         target bitrates (Mbps)  10         15              20              25

bitrates (Mbps):        8.914,  13.330,    17.880,    22.990

psnr:                          37.02,  38.37,    39.42,      40.35

 

 

The python code to apply bjontegaard_metric function BD_RATE and get PSNR BD-Rate:

 

from bjontegaard_metric import *

 

         ratesx264 = np.array([9.525,14.27,19.113,24.393])

         psnrx264 = np.array([37.73,39.07,40.07,40.95])

         ratesx265 = np.array([8.914,13.330,17.880,22.990])

          psnrx265=np.array([37.02,38.37,39.42,40.35])

         BD_RATE(ratesx265, psnrx265, ratesx264, psnrx264)
         -12.098

 

 

Note:

 

  • Choice of metric can change BD-Rate results, it’s not uncommon that in PSNR metric codec A is better than codec B and in VMAF metric codec B is better than codec A:

 

17 Responses

  1. Hi! Do you know if they make any plugins to assist with SEO? I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good results. If you know of any please share. Thank you!

  2. Heya i’m for the first time here. I found this board and I find It truly useful & it helped me out a lot. I hope to give something back and aid others like you aided me.

  3. The very root of your writing whilst sounding reasonable in the beginning, did not really work well with me after some time. Somewhere within the paragraphs you actually were able to make me a believer unfortunately only for a while. I nevertheless have a problem with your leaps in assumptions and you might do well to help fill in those breaks. If you can accomplish that, I would undoubtedly be impressed.

  4. Great V I should definitely pronounce, impressed with your site. I had no trouble navigating through all the tabs and related information ended up being truly easy to do to access. I recently found what I hoped for before you know it at all. Reasonably unusual. Is likely to appreciate it for those who add forums or something, website theme . a tones way for your client to communicate. Excellent task..

  5. you are in reality a good webmaster. The site loading speed is amazing. It kind of feels that you’re doing any unique trick. Moreover, The contents are masterpiece. you have performed a great task in this matter!

  6. Someone necessarily lend a hand to make significantly articles I might state. That is the very first time I frequented your web page and to this point? I amazed with the analysis you made to create this actual submit incredible. Excellent task!

  7. I would like to show my love for your kindness for folks that should have help on the topic. Your very own dedication to getting the message across appeared to be exceedingly advantageous and have regularly encouraged those much like me to get to their pursuits. Your new invaluable publication means much to me and even more to my office colleagues. Thanks a ton; from everyone of us.

Leave a Reply

Your email address will not be published. Required fields are marked *