If you have no metadata, i.e. No play time and bit rate per stream, then the only way I can see to determine/estimate the bitrate (without decoding the entire video stream yourself) is to play the video (entirely or at least a few minutes) and calculate the number of bits processed divided by the time. This will only be approximate because the video stream may have many audio streams and has a container overhead that cannot be disentangled easily.