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 video_replay sample #1593

Open
wants to merge 3 commits into
base: gh-pages
Choose a base branch
from
Open

add video_replay sample #1593

wants to merge 3 commits into from

Conversation

fippo
Copy link
Collaborator

@fippo fippo commented Feb 27, 2023

which allows replaying IVF files generated by video_replay in the browser. This is useful for debugging issues like
https://bugs.chromium.org/p/chromium/issues/detail?id=1418596
where the native video_replay is using software decoder which do not show the issue.

@fippo

This comment was marked as outdated.

const nextFrame = await ivf.readFrame();
if (nextFrame) {
decoder.decode(new EncodedVideoChunk({
timestamp: Number(nextFrame.timestamp - firstFrame.timestamp) * 1000,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure this is correct or it takes the headers timescale into account. But I don't have a great sample file to check at hand.

which allows replaying IVF files generated by video_replay
in the browser. This is useful for debugging issues like
  https://bugs.chromium.org/p/chromium/issues/detail?id=1418596
where the native video_replay is using software decoder which
do not show the issue.
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

Successfully merging this pull request may close these issues.

1 participant