[mythtv] Mediacodec playback of mpeg2 on fire stick 4k

Jean-Yves Avenard jyavenard at gmail.com
Mon Dec 9 22:57:15 UTC 2019


Hi.

My experience with mediacodec and FireTV devices (both basic and 4K)
is that there's a pool of 4 surfaces max available.

So if you decode a frame and buffer it, once you have 4 frames
buffered the decoder will no longer output anything anymore until the
decoded frame and its surface has been rendered and marked as
available once again.

Seeing how much mythtv buffer before painting anything to the screen,
I wouldn't be surprised if you hit that problem

JY

On Mon, 9 Dec 2019 at 14:36, Peter Bennett <pb.mythtv at gmail.com> wrote:
>
> Hi Aman
>
> There is still the ongoing issue with decoding mpeg2 using mediacodec
> through ffmpeg. The process hangs, and never gets any frames back.
>
> As a separate project i have developed a pure android mythtv frontend
> player, using java and the exoplayer library. It is working well and I
> am surprised to find that it plays mpeg2 perfectly and also deinterlaces
> it. Exoplayer uses pure mediacodec, there is no software video decoding.
>
> Whatever the problem is with mediacodec and fire stick 4K, evidently
> there must be a way around it.
>
> If you need any more information please contact me.
>
> Regards
> Peter
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-dev
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org


More information about the mythtv-dev mailing list