On Mon, 10 Dec 2012 09:48:11 +0100, Luca Barbato <lu_z...@gentoo.org> wrote: > On 12/10/12 6:35 AM, Anton Khirnov wrote: > > > > On Tue, 04 Dec 2012 14:37:33 +0100, Arash Shafiei <shaf...@enst.fr> wrote: > >> Hi, > >> > >> When we use avconv sometimes it duplicates frames to achieve a specified > >> frame-rate. > >> > >> I would like to know at which layer this is implemented. Is this > >> internal to libavcodec which automatically duplicates frames when it > >> does not receives enough data or it's the user of libavcodec which takes > >> care of it? > >> In other word, is avcodec_encode_video which encodes a video frame in > >> charge of duplicating or the user of avcodec_encode_video? > >> > >> PS: The same for dropping frames. > >> > > > > It is done in libavfilter, in the fps filter (libavfilter/vf_fps.c). > > > > Anton doublecheck that function and the static nb_frames_foo vars in > avconv.c
Those are just the remnants of the old code which did this in avconv. I'm planning to clean it up once i find time. -- Anton Khirnov _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel