-
Notifications
You must be signed in to change notification settings - Fork 334
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
Support h.264 video decoding on web #7511
Conversation
Seems like the lint failure comes from main |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
really well document, also like it a lot how you split up the concerns of frame_at further and made everything more precise!
// Some terminology: | ||
// - presentation timestamp = composition timestamp | ||
// = the time at which the frame should be shown | ||
// - decode timestamp | ||
// = determines the decoding order of samples |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good call to document that here, makes this stuff a lot more maintainable 👍
|
||
// 2. Search _backwards_, starting at `decode_sample_idx`, looking for | ||
// the first sample where `sample.composition_timestamp <= presentation_timestamp`. | ||
// This is the sample the user requested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: "uhm, actually" the user technically doesn't request a sample. A single sample is not able to represent the user's request
... but I don't know how to describe it better either right now. Fine to leave it this way I think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed it to "This is the sample which when decoded will be presented at the timestamp the user requested."
What
re_video
#7375EncodedVideoChunk
s are now given the composition timestamp of the sample instead of its decode timestamp, so the outputVideoFrame
objects are in composition timestamp order.Checklist
main
build: rerun.io/viewernightly
build: rerun.io/viewerCHANGELOG.md
and the migration guideTo run all checks from
main
, comment on the PR with@rerun-bot full-check
.