moq icon indicating copy to clipboard operation
moq copied to clipboard

Measuring bitrate of the video in client (moq/js)

Open pellju opened this issue 2 months ago • 1 comments

Greetings!

Has anyone managed to measure the bitrate of a videostream using the frontend (moq/js)? I'm wondering if there's a robust way of doing that (my video stream has a variable bitrate and I would like to see the overall bitrate).

I tried creating a piece of script subscribing the data from the video stream (somewhat according what's defined in the README.md of moq), but cannot get it to work (but it's freezing my stream). Therefore, I am wondering if someone has successfully developed such functionality (or if it's meant to be included in the package).

pellju avatar Oct 20 '25 19:10 pellju

Greetings!

Has anyone managed to measure the bitrate of a videostream using the frontend (moq/js)? I'm wondering if there's a robust way of doing that (my video stream has a variable bitrate and I would like to see the overall bitrate).

I tried creating a piece of script subscribing the data from the video stream (somewhat according what's defined in the README.md of moq), but cannot get it to work (but it's freezing my stream). Therefore, I am wondering if someone has successfully developed such functionality (or if it's meant to be included in the package).

You should be able to use the generic MoQ client but either way, it should be easy to add to hang.

What about a signal with the cumulative number of bytes sent (publish) or received (watch)? You could then poll that every so often and calculate the bitrate at whatever granularity you want.

kixelated avatar Oct 20 '25 20:10 kixelated