[FFmpeg-devel] [PATCH] avcodec/mediacodec: Add VP8 encoder

Zhao Zhili quinkblack at foxmail.com
Sun May 7 11:26:08 EEST 2023


On Fri, 2023-04-28 at 11:07 +0000, Samuel Raposo Vieira Mira wrote:
> Connected FFmpeg to Mediacodec VP8 encoder.
> Minor Version bump.
> ---
> configure                       |  1 +
> libavcodec/Makefile             |  1 +
> libavcodec/allcodecs.c          |  1 +
> libavcodec/mediacodec_wrapper.c |  4 ++++
> libavcodec/mediacodecenc.c      | 29 +++++++++++++++++++++++++++++
> libavcodec/version.h            |  2 +-
> 6 files changed, 37 insertions(+), 1 deletion(-)

The patch file format is broken (missing a space before unchanged lines).
Please send it via git send-email or add the patch as attachment.

> 
> @@ -387,6 +389,8 @@ int ff_AMediaCodecProfile_getProfileFromAVCodecContext(AVCodecContext *avctx)
>          case FF_PROFILE_HEVC_MAIN_10:
>              return HEVCProfileMain10;
>          }
> +    } else if (avctx->codec_id == AV_CODEC_ID_VP8) {
> +        return VP8ProfileMain;
>      } else if (avctx->codec_id == AV_CODEC_ID_VP9) {
>          switch (avctx->profile) {
>          case FF_PROFILE_VP9_0:

The function is a map from avctx->profile to MediaCodec profile.
It's not supposed to select a default profile.



More information about the ffmpeg-devel mailing list