Hls.js: Can we extract frame rate of video being played

Created on 3 Jun 2016  路  2Comments  路  Source: video-dev/hls.js

we are trying to implement frame accurate seeking, generic for any HLS video.
most of the examples in INTERNET assuming 29.9/25 frame rate ps.

Like to know if can obtain fps from HLS.js .

Question Wontfix

Most helpful comment

HLS.js respects transport stream frame rate (which could be fixed/variable)
one easy way to get the frame rate could be to listen to FRAG_PARSING_DATA

onFragParsingData(data) {
  if (data.type === 'video') {
     let fps = data.nb/(data.endPTS - data.startPTS);
  }
}

All 2 comments

HLS.js respects transport stream frame rate (which could be fixed/variable)
one easy way to get the frame rate could be to listen to FRAG_PARSING_DATA

onFragParsingData(data) {
  if (data.type === 'video') {
     let fps = data.nb/(data.endPTS - data.startPTS);
  }
}

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PeterBassemYoussef picture PeterBassemYoussef  路  3Comments

NicholasAsimov picture NicholasAsimov  路  3Comments

eteubert picture eteubert  路  3Comments

itsjamie picture itsjamie  路  3Comments

neuman picture neuman  路  4Comments