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

Update to latest mp4 rev #7470

Merged
merged 8 commits into from
Sep 23, 2024
Merged

Update to latest mp4 rev #7470

merged 8 commits into from
Sep 23, 2024

Conversation

jprochazk
Copy link
Member

@jprochazk jprochazk commented Sep 23, 2024

What

We 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

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested the web demo (if applicable):
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG
  • If applicable, add a new check to the release checklist!
  • If have noted any breaking changes to the log API in CHANGELOG.md and the migration guide

To run all checks from main, comment on the PR with @rerun-bot full-check.

@jprochazk jprochazk added exclude from changelog PRs with this won't show up in CHANGELOG.md 🎞️ video labels Sep 23, 2024
@Wumpf Wumpf self-requested a review September 23, 2024 09:50
Copy link
Member

@Wumpf Wumpf left a 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!

Cargo.toml Outdated Show resolved Hide resolved
crates/viewer/re_renderer/src/video/mod.rs Outdated Show resolved Hide resolved
crates/store/re_video/src/lib.rs Show resolved Hide resolved
crates/top/rerun_c/src/video.rs Outdated Show resolved Hide resolved
VideoFrame(frame),
));
let composition_timestamp =
Time::from_micros(frame.timestamp().unwrap_or(0.0), timescale);
Copy link
Member

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!

Copy link
Member Author

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:

https://github.com/rerun-io/video-decode-test/blob/885bad29aa27f0ed87560696cc8dec953274d6b9/index.js#L269-L270

Copy link
Member Author

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

https://w3c.github.io/webcodecs/#output-videoframes @ 1. 1.

@Wumpf Wumpf self-requested a review September 23, 2024 10:16
@jprochazk jprochazk merged commit de49fce into main Sep 23, 2024
33 checks passed
@jprochazk jprochazk deleted the jan/update-to-latest-mp4-0 branch September 23, 2024 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exclude from changelog PRs with this won't show up in CHANGELOG.md 🎞️ video
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants