question

ShikharJain-5106 avatar image
0 Votes"
ShikharJain-5106 asked RoyLi-MSFT answered

Windows MediaPlayer average and peak bitrate

Hello,

While using Windows MediaPlayer in the application, we want to collect the average and peak bitrate of the currentplayback stream. However, I can only find the API for currentplayback bitrate.

Are there any API to report peak and average bitrate for a playback?
Also, CurrentPlaybackBitrate property will return peak or average or any available bitrate?

Best Regards,
Shikhar


windows-uwp
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Could you please tell me why you want to get such data? What kind of feature do you want to implement?

0 Votes 0 ·

Hi Roy Li,

We are interested in video analytics and want to collect the video information for the same.

0 Votes 0 ·
RoyLi-MSFT avatar image RoyLi-MSFT ShikharJain-5106 ·

@ShikharJain-5106 Thank you for the information. So you are not using an adaptive streaming, right? I'll consult the team to see if there are anyways to do that.

0 Votes 0 ·

1 Answer

RoyLi-MSFT avatar image
0 Votes"
RoyLi-MSFT answered

Hello,

Welcome to Microsoft Q&A!

Based on the information I got from the team, if you want to get the average and peak bitrate, you might need to look at each stream to get the information. Currently, the easiest way to do this is to check the MF property bags. Some of these (especially when talking about peak / variable bitrates) are content specific. And it might also have differences when you are using adaptive streaming or local file playback.

You may want to start here: MF_MT_AVG_BITRATE attribute (Mfapi.h) - Win32 apps | Microsoft Docs.

Thank you.


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.