Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the information of bit-rate from YouTube videos?

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?

like image 413
Ashutosh Singla Avatar asked Feb 20 '17 18:02

Ashutosh Singla


People also ask

How do I find the bitrate of a video?

0075. Bitrate = file size / (number of minutes * . 0075).

How can I tell the resolution and bitrate of a video?

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.

How many bitrate is a YouTube 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.

How do you determine bitrate?

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.


1 Answers

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:

enter image description here

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):

enter image description here

like image 132
Mick Avatar answered Oct 16 '22 21:10

Mick