radek-k / FFMediaToolkit

FFMediaToolkit is a cross-platform video decoder/encoder library for .NET that uses FFmpeg native libraries. It supports video frames extraction, reading stream metadata and creating videos from bitmaps in any format supported by FFmpeg.
MIT License
353 stars 56 forks source link

Frames count #28

Closed korch-noobster closed 4 years ago

korch-noobster commented 4 years ago

Hello! Got a question - im trying to increase frames count, like getting every 100 frame, but it starts show something strange.It displays same frames in different order. Works well on smaller steps. Every 10th frame was displayed correctly. But every 20 - completly wrong. Could you help me with that?

korch-noobster commented 4 years ago

Also it doesnt reads correctly frames amount of video

radek-k commented 4 years ago

What version of FFMediaToolkit, OS and FFmpeg are you using? What video file have you tried to decode(file extension/codec name/fps/...)? Is this video variable frame rate? The number of frames calculation and frame access methods works well with constant frame rate videos.

korch-noobster commented 4 years ago

oh. Thanks. The problem was in variable framerate.