[FFmpeg-devel] [PATCH v2 1/1] avcodec/vaapi_encode: add frame-skip func
Mark Thompson
sw at jkqxz.net
Wed Feb 20 23:34:52 EET 2019
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.sun at 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
More information about the ffmpeg-devel
mailing list