Skip to content

Can't decode a frame when use seek_to_frame function #62

@egorsmkv

Description

@egorsmkv

I've wrote this code: https://github.com/egorsmkv/read-video-rs/blob/master/src/main.rs

Its goal is to read each frame per second but it seems like seek_to_frame + decode functions do not work.

Full log of a program: https://gist.github.com/egorsmkv/73f2b3d2bdd2beb63c92d3ef6018d5a4

Shortly:

Successfully sought to frame near index 0.
Frame time: 0
Successfully sought to frame near index 30.
Frame time: 8.332895221071446
Successfully sought to frame near index 60.
Frame time: 8.332895221071446
Successfully sought to frame near index 90.
Frame time: 8.332895221071446

It stuck on the second frame until the end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions