[mythtv] FFmpeg 5.1 released

David Engel david at istwok.net
Tue Jul 26 22:26:24 UTC 2022


On Tue, Jul 26, 2022 at 12:55:25PM -0400, Peter Bennett wrote:
> 
> On 7/25/22 21:54, David Engel wrote:
> > On Mon, Jul 25, 2022 at 11:56:58PM +0000, Gary Buhrmaster wrote:
> > > On Sun, Jul 24, 2022 at 5:28 PM David Engel <david at istwok.net> wrote:
> > > 
> > > > Do you happen to know if it includes Aman's workaround for closed
> > > > captions when using mediacodec?  I doubt it does.
> > > It is not on the changelog (so I doubt it).
> > The last I heard, [some of] the other, ffmpeg devs thought it was too
> > hacky or something to that effect.  As I recall, it involves parsing
> > captions using a BitReader before the audio/video gets passed to
> > mediacodec (which ignores captions) and then attaching them to the
> > appropriate packets when mediacode returns them.  I think the hard,
> > inelegant, hacky part of doing it as an ffmpeg use is that it would
> > likely require access to ffmpeg internals.
> > 
> > David
> 
> FWIW, Leanfront uses exoplayer. Exoplayer uses mediacodec only, it has no
> software decode option, and it gets closed captions fine. I don't know how
> it does it. Exoplayer does its own parsing of the TS stream, and hands all
> decoding to mediacodec.

That might be worth digging into just to see how it's done.  Maybe
it's only available when using the full, Java API.  I'm sure if it
were easily doable in ffmpeg, Aman would already be doing it.  The
code that he wrote for Channels DVR is based on a much older version
of ffmpeg and isn't easily portable due to internal, ffmpeg changes.

David
-- 
David Engel
david at istwok.net


More information about the mythtv-dev mailing list