[Libav-user] Reducing the Frame-Rate of a Network Video Stream

Adi Shavit adishavit at gmail.com
Sun Jul 28 17:16:16 CEST 2013


>>>>   I have a network video stream that I am decoding with the ffmpeg C
>>>> library.
>>>> I'd like to reduce the maximal frame rate to some maximum, say 15 fps.
>>>> I used the filter fps=fps=15, but even on a 25 fps video stream this
>>>> caused frame duplication. I presume this was due to network delays.
>>>>
>>>> Is there some way to reduce the maximal frame-rate but avoid frame
>>>> duplication and just get delays instead?
>>>>

>
>> In my program.
>> I'm passing the resizing string as an argument to avfilter_graph_parse.
>
> Then you don't need avfilter, IMHO. When you receive a decoded frame
> from avcodec, simply check if the last frame was received more than 40
> ms ago.
>

OK.
I'll try it this way.

Thanks,
Adi


More information about the Libav-user mailing list