Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to calculate FPS for current video time / fragment #4700

Open
User15GitRepo opened this issue Feb 23, 2025 · 1 comment
Open

Need to calculate FPS for current video time / fragment #4700

User15GitRepo opened this issue Feb 23, 2025 · 1 comment

Comments

@User15GitRepo
Copy link

User15GitRepo commented Feb 23, 2025

Hi Team,

we are using dash JS to play the video with mixed frame rate (video will have different FPS accross video) , we have seek use case based on frame rate. is it possible to get FPS dynamically from Dash js for the particular time duration and fragment.

@dsilhavy
Copy link
Collaborator

Hi,
it is possible to get the framerate from the MPD using dash.js. An example is provided here: https://reference.dashif.org/dash.js/nightly/samples/advanced/monitoring.html

You can also check if the video element on your target platform provides information such as video.webkitDecodedFrameCount and video.webkitDroppedFrameCount. The compare this to the current presentation time to get the frames per second.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants