Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

RenamegetKeyFrameIndexForPts intogetKeyFrameIdentifier#1076

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
NicolasHug wants to merge5 commits intometa-pytorch:main
base:main
Choose a base branch
Loading
fromNicolasHug:aefljnaef

Conversation

@NicolasHug
Copy link
Contributor

See comment for an explanation why

@meta-clameta-clabot added the CLA SignedThis label is managed by the Meta Open Source bot. labelNov 28, 2025
// TODO we should understand why (is it because it reads the file?) and
// potentially optimize it. E.g. we may not want to ever seek, or even *check*
// if we need to seek in some cases, like if we're going to decode 80% of the
// frames anyway.
Copy link
ContributorAuthor

@NicolasHugNicolasHugNov 28, 2025
edited
Loading

Choose a reason for hiding this comment

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

Drive-by, my previous comment above is incorrect:getKeyFrameIndexForPts() in approximate mode is not slow. But it's not accurate (it doesn't return what we want it to return), so it's still the cause for the slowness. See#1077 for more details.

// in [0, num_frames) like for mp4. It really depends on the container.
//
// The range of the "identifier" doesn't matter that much, for now we only
// use it to uniquely identify a key frame in canWeAvoidSeeking().
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I can confirm the above on some test videos with 2 key frames.mkv would return 0 and 1 like in exact mode, whilemp4 returned 0 and 250!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

CLA SignedThis label is managed by the Meta Open Source bot.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@NicolasHug

[8]ページ先頭

©2009-2025 Movatter.jp