On 20/02/2019 10:33, Jing SUN wrote: > This implements app controlled frame skipping > in vaapi encoding. To make a frame skipped, > allocate its frame side data of the newly > added AV_FRAME_DATA_SKIP_FRAME type and set > its value to 1. > > Signed-off-by: Jing SUN <jing.a....@intel.com> > --- > libavcodec/vaapi_encode.c | 112 > ++++++++++++++++++++++++++++++++++++++++++++-- > libavcodec/vaapi_encode.h | 5 +++ > libavutil/frame.c | 1 + > libavutil/frame.h | 5 +++ > 4 files changed, 119 insertions(+), 4 deletions(-)
Have a look at <https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2019-February/239989.html>, which tries to implement this feature in a more general way without adding any ad-hoc API. - Mark _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel