[FFmpeg-devel] [PATCH V3] examples/vaapi_encode: Add a VA-API encode example.

Mark Thompson sw at jkqxz.net
Wed Nov 29 00:19:03 EET 2017


On 20/11/17 01:38, Jun Zhao wrote:
> V3: Use av_hwframe_transfer_date load YUV to HW surface
> 
> From c0edef97f4f123e74e62396b45db01236ae6477d Mon Sep 17 00:00:00 2001
> From: Jun Zhao <jun.zhao at intel.com>
> Date: Mon, 6 Nov 2017 14:45:27 +0800
> Subject: [PATCH V3] examples/vaapi_encode: Add a VA-API encode example.
> 
> add a VA-API encode example, only support NV12 input, usage like:
> ./vaapi_encode 1920 1080 test.yuv test.h264
> 
> Signed-off-by: Jun Zhao <jun.zhao at intel.com>
> Signed-off-by: Liu, Kaixuan <kaixuan.liu at intel.com>
> ---
>  configure                   |   2 +
>  doc/examples/Makefile       |   1 +
>  doc/examples/vaapi_encode.c | 225 ++++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 228 insertions(+)
>  create mode 100644 doc/examples/vaapi_encode.c
> 
> diff --git a/configure b/configure
> index 8262358138..ea029750c7 100755
> --- a/configure
> +++ b/configure
> @@ -1521,6 +1521,7 @@ EXAMPLE_LIST="
>      scaling_video_example
>      transcode_aac_example
>      transcoding_example
> +    vaapi_encode_example
>  "
>  
>  EXTERNAL_AUTODETECT_LIBRARY_LIST="
> @@ -3308,6 +3309,7 @@ resampling_audio_example_deps="avutil swresample"
>  scaling_video_example_deps="avutil swscale"
>  transcode_aac_example_deps="avcodec avformat swresample"
>  transcoding_example_deps="avfilter avcodec avformat avutil"
> +vaapi_encode_example_deps="avfilter avcodec avformat avutil"

LGTM.  I removed the unused dependency on avfilter/avformat (only needs avcodec/avutil now), and applied.

Thanks,

- Mark


More information about the ffmpeg-devel mailing list