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

Add support for SMPTE timecode #809

Open
3 tasks
njsauriol opened this issue Apr 19, 2023 · 1 comment
Open
3 tasks

Add support for SMPTE timecode #809

njsauriol opened this issue Apr 19, 2023 · 1 comment
Labels
feature New feature or request

Comments

@njsauriol
Copy link

njsauriol commented Apr 19, 2023

Describe:

Add support form SMPTE timecode in player.

  • Display the current time position in SMPTE timecode format (video and audio)
  • Provide a starting timecode for a media (video and audio)
  • Enable frame-accurate playback (video only)

Alternatives:

For reference - VideoFrame - HTML5 Video SMPTE Time Code and Frame Seeking API

Anything Else?

SMPTE timecode is presented in hour:minute:second:frame format, where sub-second timecode time values are expressed in terms of frames (instead of milliseconds), based on the video/audio framerate.

Most commonly used framerates: 23.976 (23.98), 24, 25, 29.97, 30, 59.94, 60

@njsauriol njsauriol added the feature New feature or request label Apr 19, 2023
@ThaUnknown
Copy link
Contributor

VideoFrame isn't a good solution for this, it effectively just tries it's best to guess, which doesn't work well at all for variable framerate videos [mkv and webm], you're way better off using requestVideoFrameCallback() which is supported by most browsers, and those that don't support it can use a roughly accurate polyfill which uses frame rendering stats, but the polyfill suffers from the same issues as VideoFrame

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

Successfully merging a pull request may close this issue.

2 participants