I was using YouTube videos for my test and I was wondering how can I get the information of bit-rate of the played video?
I used 2 methods to know the information about the bit-rate but didn't get any information.
1. Right-click on a video and choose "Stats for nerds".
2. ffmpeg -i input_video -f ffmetadata metadata.txt
I don't know if by doing the right click on the video and then properties, then details would give me the correct way of showing the bit-rate.
Any suggestions?
0075. Bitrate = file size / (number of minutes * . 0075).
In Windows, right-click the file you want to examine and choose Properties. On the window that appears, click the Details tab. Under the Video section, the piece of information you'll care about is “Total bitrate.” The total bitrate will give you a general idea of the quality of your video.
Note, YouTube recommends a 4K video use 35-45 Mbps. When you're shooting 1080 HD, you can get by with as few as 8 Mbps.
The file transfer rate in bit/s can be calculated as the file size (in bytes) divided by the file transfer time (in seconds) and multiplied by eight.
Most YouTube video use adaptive bit rate (ABR) format streaming which means that there is not just a single bit rate.
For ABR multiple bit rate versions of the video are created and each one is broken down into equal length (by time) chunks - e.g. 10 second chunks.
The client player is then able to select the next chunk from the most appropriate bit rate stream for the current network conditions - if the network gets busy it can drop down to a lower bit rate for the next chunk and visa versa if the network is good.
So there is not really the concept of a single bit rate for the whole video, but different bit rates for each chunk that is downloaded (although in practice if you have a good connection it should work up to the top bit rate and stay there).
As you say, you can see a visualisation of this on YouTube by right clicking and looking at the 'stats for nerds' option - see example below:
You can also see the available resolutions, and force the player to select a single one by clicking on the 'wheel' in the bottom right hand corner. As a general rule, a higher resolution will need a higher number of bits and hence mean a higher bit rate,
To see a more detailed view of the video buffers and the bitrate, some players provide a demo view with a representation of the change over time - see below an example from the DASH IF reference player (https://reference.dashif.org/dash.js/latest/samples/dash-if-reference-player/index.html):
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With