How to calculate bit rate and compare it