[mythtv] Android mediacodec woes

Peter Bennett pb.mythtv at gmail.com
Tue Jun 26 23:01:30 UTC 2018



On 06/26/2018 04:19 PM, Aman Gupta wrote:
> If you really want 30fps deinterlaced output, you can use the 
> following patch. However this is a private/undocumented 
> SHIELD-specific option and will not work on other devices.
>
> @@ -383,6 +382,7 @@ static av_cold int 
> mediacodec_decode_init(AVCodecContext *avctx)
>      ff_AMediaFormat_setString(format, "mime", codec_mime);
>      ff_AMediaFormat_setInt32(format, "width", avctx->width);
>      ff_AMediaFormat_setInt32(format, "height", avctx->height);
> +    ff_AMediaFormat_setInt32(format, "deinterlace-method", 1);
>
>      s->ctx = av_mallocz(sizeof(*s->ctx));
>      if (!s->ctx) {

Thanks for the suggestion. I will keep it in mind, but I would rather 
stay away from making more ffmpeg changes and preferably work towards 
getting rid of the ones we have.  Also, we are not developing for Shield 
exclusively.

Peter


More information about the mythtv-dev mailing list