Calculate Video data consumption per user RRS feed

  • Question

  • Hello All,

    We are creating a solution where users will stream videos from Azure Media Services. We want to bill our users depending on  the video data downloaded.

    We could not find any documentation which allows us to measure the data downloaded. Any suggestions as to how this can be done?


    Friday, August 3, 2018 5:15 AM

All replies

  • You can really only guess the worst case scenario without having any real-world data to base the assumptions on.

    You would have to estimate the following:

    • What is the highest encoded bitrate you are using for your video.  You can assume that at the worst case, every viewer watches the entire video all the way through, and that is your total worst case egress bandwidth per video, per user. 
    • If you are using adaptive bitrate streaming, you don't really know what bitrate the customer will finally get - as the player will be choosing from any one of the available bitrate tracks as network conditions change (moving from Wi-Fi to LTE/4G for example.)  So it is best to just look at the worst case scenario based on your expected customer base and where you think that they will be playing the content back from.  Sometimes you can get this more "real-world" with client side telemetry pushing data to Google analytics or PowerBI dashboard that shows you what customers average bitrate delivery is. 
    • Data downloaded is really a factor of your encoding settings, and how the content is being consumed by the client/player. You have to know those details before you can calculate much. 

    Friday, August 3, 2018 7:02 PM
  • Hello John,

    Thanks for your reply. Sorry for a late response.

    We understand the points you have raised, but our solution cannot charge a user for the worst case. We want to charge him for the actual data streamed.

    As all the calculations regarding the bitrate etc. is already done before hand -- Is there a way to determine the amount as it is sent down from the server side?

    Actually, we want our subscription plans to  like the cell plans and bill users accordingly.

    Any more guidance would be helpful.


    Wednesday, August 8, 2018 7:00 AM
  • While our service provides telemetry on *aggregate* bytes delivered (see here), such telemetry is not designed to capture the bytes delivered to each viewer. For this, you may have to resort to building custom logic in the player to track consumption by each viewer.
    Friday, August 17, 2018 10:39 PM