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

Description
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.