Skip to content

Seek to a frame number #361

Open
Open
@tobiasBora

Description

@tobiasBora

I would like to be able to decode (using webcodecs) all frames between two fixed position (say 100-th frame to 200-th frame). I saw that mp4box provides a seek function, but it accepts time instead of frame number. Is there another way to seek a specific frame? I’m thinking to save all elements given to onSamples and loop over this list to find the data of a specific frame (starting earlier to find a RAP), but I don't know how memory efficient this is since I need to load in memory the whole video file, and I don't know if it is the recommended approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions