Mailing List Archive

FFmpeg 5.1 released
Under the heading of no deed goes unpunished,
FFmpeg 5.1 was just released today.

Time to upgrade yet again?
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: FFmpeg 5.1 released [ In reply to ]
On Sat, Jul 23, 2022 at 03:26:18AM +0000, Gary Buhrmaster wrote:
> Under the heading of no deed goes unpunished,
> FFmpeg 5.1 was just released today.

Do you happen to know if it includes Aman's workaround for closed
captions when using mediacodec? I doubt it does. That and ac4 audio
support are the biggest things I'm waiting for.

> Time to upgrade yet again?

Hey, Scott. Gary's got a new carrot for you to chase! :)

David
--
David Engel
david@istwok.net
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: FFmpeg 5.1 released [ In reply to ]
On 7/24/22 13:27, David Engel wrote:
>> Time to upgrade yet again?
> Hey, Scott. Gary's got a new carrot for you to chase!:)

We're still using version 4.4 because merging my FFmpeg changes took
longer than expected.  Once those are finished, it makes sense to me to
just skip to 5.1 directly.

I thought Peter was the man for updating the FFmpeg version.

Regards,

Scott
Re: FFmpeg 5.1 released [ In reply to ]
On Sun, Jul 24, 2022 at 5:28 PM David Engel <david@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).

> That and ac4 audio
> support are the biggest things I'm waiting for.

ac-4 is (apparently) not included. There are,
as hinted elsewhere, issues (and not just in
the bug tracker, although there are still (last
I knew) issues with certain ac-4
content/containers too).

The current FFmpeg version-next proposals
do not call out either item either (although the
next version is intended to be extensively
threaded, which might help improve
throughput in some cases)

A quick scan of the 5.1 changelogs suggests
that support for VDPAU AV1 hardware
acceleration might be of future interest
(NVDEC AV1 hardware acceleration has
been in the code for a while, but some
still want/need VDPAU), and audio dialog
enhancement and a virtualbass filter (both
common in some better A/V receivers), and
the code finally removes the legacy XvMC
support.
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: FFmpeg 5.1 released [ In reply to ]
> On Jul 25, 2022, at 7:56 PM, Gary Buhrmaster <gary.buhrmaster@gmail.com> wrote:
>
> On Sun, Jul 24, 2022 at 5:28 PM David Engel <david@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).
>
>> That and ac4 audio
>> support are the biggest things I'm waiting for.
>
> ac-4 is (apparently) not included. There are,
> as hinted elsewhere, issues (and not just in
> the bug tracker, although there are still (last
> I knew) issues with certain ac-4
> content/containers too).
>
> The current FFmpeg version-next proposals
> do not call out either item either (although the
> next version is intended to be extensively
> threaded, which might help improve
> throughput in some cases)
>
> A quick scan of the 5.1 changelogs suggests
> that support for VDPAU AV1 hardware
> acceleration might be of future interest
> (NVDEC AV1 hardware acceleration has
> been in the code for a while, but some
> still want/need VDPAU), and audio dialog
> enhancement and a virtualbass filter (both
> common in some better A/V receivers), and
> the code finally removes the legacy XvMC
> support.

On the Macports-dev list, it was reported that it appears that ffmpeg 5.1 includes some breaking API changes. No details were provided but they think that we’ll have to provide 4.x and 5.x versions for some time as projects adapt to the changes. I don’t know if this affects Myth but thought I’d mention it.

Craig


_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: FFmpeg 5.1 released [ In reply to ]
On Mon, Jul 25, 2022 at 07:22:22PM -0400, Scott Theisen wrote:
> On 7/24/22 13:27, David Engel wrote:
> > > Time to upgrade yet again?
> > Hey, Scott. Gary's got a new carrot for you to chase!:)
>
> We're still using version 4.4 because merging my FFmpeg changes took longer
> than expected.? Once those are finished, it makes sense to me to just skip
> to 5.1 directly.
>
> I thought Peter was the man for updating the FFmpeg version.

I suspect Peter is more than willing to pass most of that
responsibility on to you and only keep the final approval part. :)

David
--
David Engel
david@istwok.net
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: FFmpeg 5.1 released [ In reply to ]
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@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
--
David Engel
david@istwok.net
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: FFmpeg 5.1 released [ In reply to ]
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@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.

Peter

_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: FFmpeg 5.1 released [ In reply to ]
On 7/25/22 21:47, David Engel wrote:
> On Mon, Jul 25, 2022 at 07:22:22PM -0400, Scott Theisen wrote:
>> On 7/24/22 13:27, David Engel wrote:
>>>> Time to upgrade yet again?
>>> Hey, Scott. Gary's got a new carrot for you to chase!:)
>> We're still using version 4.4 because merging my FFmpeg changes took longer
>> than expected.  Once those are finished, it makes sense to me to just skip
>> to 5.1 directly.
>>
>> I thought Peter was the man for updating the FFmpeg version.
> I suspect Peter is more than willing to pass most of that
> responsibility on to you and only keep the final approval part. :)
>
> David

Certainly, I am not looking forward to another FFmpeg merge and if
anybody is willing to help, please do so. Just let me know so that we
are not both working on it.

Peter.

_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: FFmpeg 5.1 released [ In reply to ]
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@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@istwok.net
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org