I have a list of .mp3 files over the Internet, and I would like to receive a file of the highest quality. The quality in multimedia files is equal to their bit rate.
The bit rate itself should be found in the file headers. If not, you can use the length of the audio track. (File size / Track length = Bit rate)
These things would be easy if I had these files locally, but I would like to receive this information via HTTP and determine which file is of the highest quality.
Can I get the length of an audio track from HTTP headers? If not, is it possible to get only bits that describe the length / bit rate instead of downloading the whole file?
I am writing code in python, but the question is pretty general, so I don't put it as a python question.
iTayb source share