[FFmpeg-devel] [PATCH v9] VideoToolbox H.264 Encoder

Timothy Gu timothygu99 at gmail.com
Tue Mar 1 15:57:29 CET 2016


Hi,

On Mon, Feb 29, 2016 at 9:42 PM Rick Kern <kernrj at gmail.com> wrote:

> Autodetected by default. Encode using -codec:v vtenc.
>
> Signed-off-by: Rick Kern <kernrj at gmail.com>
> ---
>  MAINTAINERS            |    1 +
>  configure              |   19 +
>  libavcodec/Makefile    |    1 +
>  libavcodec/allcodecs.c |    1 +
>  libavcodec/vtenc.c     | 1339
> ++++++++++++++++++++++++++++++++++++++++++++++++
>  5 files changed, 1361 insertions(+)
>  create mode 100644 libavcodec/vtenc.c
>

We already have videotoolbox AVHWAccel. Maybe it would be better to change
the name of the file to videotoolboxenc.c so that it's easier to associate
these two files?

> +AVCodec ff_vtenc_encoder = {

> +    .name             = "vtenc",
> +    .long_name        = NULL_IF_CONFIG_SMALL("VideoToolbox H.264
> Encoder"),
>

The norm seems to be using "h264_videotoolbox" (like "h264_qsv") so that
potential future extensions to VideoToolbox can be supported without
changing the name of the codec.

Timothy


More information about the ffmpeg-devel mailing list