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

Alex Cohn alexcohn at netvision.net.il
Sun Jul 28 16:03:26 CEST 2013


On Sun, Jul 28, 2013 at 4:28 PM, Adi Shavit <adishavit at gmail.com> wrote:
> On Sun, Jul 28, 2013 at 3:09 PM, Alex Cohn <alexcohn at netvision.net.il> wrote:
>> On Jul 28, 2013 1:56 PM, "Adi Shavit" <adishavit at gmail.com> wrote:
>>>
>>> Hi,
>>>
>>>   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?
>>>
>>> Thanks,
>>> Adi
>>>
>>> PS. reposted from here:
>>> <http://ffmpeg.gusari.org/viewtopic.php?f=16&t=972>
>>
>> Are you using the libraries in your own program, or looking for the correct
>> parameters for ffmpeg executable? In the latter case, the ffmpeg-user list
>> should be the preferred choice.
>>
>> Alex Cohn

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

BR,
Alex Cohn


More information about the Libav-user mailing list