[FFmpeg-devel] [PATCH] Add libx265 encoder

Robert Ludwig rob.ludwig at lyricallabs.com
Tue Feb 11 20:50:46 CET 2014


On 2/11/2014 12:39 PM, Derek Buitenhuis wrote:
> Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
> ---
>   Changelog              |   1 +
>   configure              |   7 ++
>   libavcodec/Makefile    |   1 +
>   libavcodec/allcodecs.c |   1 +
>   libavcodec/libx265.c   | 279 +++++++++++++++++++++++++++++++++++++++++++++++++
>   libavcodec/version.h   |   2 +-
>   6 files changed, 290 insertions(+), 1 deletion(-)
>   create mode 100644 libavcodec/libx265.c
>
> +#define OFFSET(x) offsetof(libx265Context, x)
> +#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
> +static const AVOption options[] = {
> +    { "preset",      "Set the x265 preset.",                                                        OFFSET(preset),    AV_OPT_TYPE_STRING, { 0 }, 0, 0, VE },
> +    { "tune",        "Set*  /teh/*  x265 tune parameter.",                                                OFFSET(tune),      AV_OPT_TYPE_STRING, { 0 }, 0, 0, VE },
> +    { "x265-params", "Set the x265 configuration using a :-separated list of key=value parameters", OFFSET(x265_opts), AV_OPT_TYPE_STRING, { 0 }, 0, 0, VE },
> +    { NULL },
> +};
>

Might as well nip this typo in the bud while you're at it as well.



More information about the ffmpeg-devel mailing list