I started thinking about bitrate again, and probably the best way to check the bitrate is to use the equation (The size of the mp3 in bytes) * 8 / (the length of the song in seconds) / (1000) = kbps of the mp3 + size of tags/metadata/etc. Since the metadata is usually very small, the calculated bitrate tends to run out only 1kbps larger than normal, so if you use the equation above and say only set off the error if the bitrate is greater than 196, it is probably fine.
Other things I noticed about bitrate:
You need to be able to check vbr and cbr (there are others, but these 2 are the most open)
The most accurate way to check the average bitrate is to constantly measure the bitrate of the song at every instance and add them up (basically a giant integral , several thousand parts per second is close enough to an integral for me). Afterward divide the entire number by the length of the song, and you will get the final number
Doing the above method is incredibly difficult.
Other things I noticed about bitrate:
You need to be able to check vbr and cbr (there are others, but these 2 are the most open)
The most accurate way to check the average bitrate is to constantly measure the bitrate of the song at every instance and add them up (basically a giant integral , several thousand parts per second is close enough to an integral for me). Afterward divide the entire number by the length of the song, and you will get the final number
Doing the above method is incredibly difficult.