[Libav-user] Adjust fps

Carl Eugen Hoyos ceffmpeg at gmail.com
Thu Sep 15 18:23:45 EEST 2016


2016-09-09 18:53 GMT+02:00 Leandro Raffo <ljraffo at gmail.com>:
> 2016-09-09 12:53 GMT-03:00 Carl Eugen Hoyos <ceffmpeg at gmail.com>:

>> AVFrame->pict_type tells you the type of frames.
>>
>> Please test with -skip_frame nointra if this is usable for you
>> before investing more time.

Don't skip this!

>> When doing this, you can also test -skip_frame noref

This is probably more interesting.

>> which may be an alternative: Drop those (h264) frames
>> that will not be needed to decode future frames. I am
>> not sure if this information is available outside libavcodec,
>> you may have to do some additional programing.
>
> The thing is I dont actually have AVFrames, I have
> AVPakets, I want to avoid the decode/encode pipeline
> since it takes too much CPU and I'm already getting stuff
> encoded in the codec I already want (h264).

At least for some containers you cannot know if a packet
contains a frame at all, and therefore not if it is a keyframe.

The parser tells you all you need to know and has less
overhead than the decoder

Carl Eugen


More information about the Libav-user mailing list