Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

How to extract the same number of frames as with ffmpeg #555

@darkAlert

Description

@darkAlert

For ffmpeg I use a simple command:
ffmpeg -i input.mp4 -qscale:v 2 %6d.jpeg

I initialize the VPF decoder like this:
decoder = nvc.PyNvDecoder(video_path, gpu_id)

I check the number of frames like this:
decoder.Numframes()

I have some h264 encoded videos at 30fps. And I get a different number of frames (sometimes more with ffmpeg, sometimes with VPF).

For me this is critical. Because I have annotated data extracted using ffmpeg and I want to test a model using VPF but can't compare the results frame by frame.

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