Re: [FFmpeg-devel] How to tell CFR/VFR video apart, and determine frame rate

2017-09-29 Thread Lou Logan
On Fri, Sep 29, 2017, at 04:32 AM, Richard Ling wrote: > How can I determine whether a filter input is VFR or CFR? > > static int is_vfr(AVFilterLink *inlink) > { > return ???; > } [...] ffmpeg-devel is only for discussions regarding the development of FFmpeg and for submitting patches. Ques

[FFmpeg-devel] How to tell CFR/VFR video apart, and determine frame rate

2017-09-29 Thread Richard Ling
How can I determine whether a filter input is VFR or CFR? static int is_vfr(AVFilterLink *inlink) { return ???; } If I determine the input is CFR, how do I get the frame rate in FPS? Is it always the reciprocal of timebase, if not what is the correct implementation? static float get_constant