-
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
Update to latest mp4
rev
#7470
Update to latest mp4
rev
#7470
Conversation
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.
looking forward to this one!
VideoFrame(frame), | ||
)); | ||
let composition_timestamp = | ||
Time::from_micros(frame.timestamp().unwrap_or(0.0), timescale); |
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.
this was TimeMs::new(frame.timestamp().unwrap_or(0.0)),
before but now we interpret the timestamp
as microseconds where we assumed milliseconds before. That looks like a bug!
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.
That's intentional, the value returned here is the same as the one passed in when we create the EncodedVideoChunk
. We want to match video-decode-test
behavior more closely (because it Just Works ™️), and it uses microseconds as well, so I switched to using microseconds here:
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.
Note that the VideoFrame
API guarantees that the values passed in are the same as the ones passed out
What
mp4
to the latest commit on https://github.com/rerun-io/re_mp4/tree/jan/fixesWe should land the following PR first:
(we can leave that one be and land this, but then we'd have to update the
rev
again once that lands)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
.