[FFmpeg-devel] Chromium 110 and ffmpeg 5.1.2

Neal Gompa ngompa13 at gmail.com
Thu Feb 23 05:00:22 EET 2023

On Wed, Feb 22, 2023 at 7:28 PM Hendrik Leppkes <h.leppkes at gmail.com> wrote:
> On Wed, Feb 22, 2023 at 9:42 PM Drew Abbott <abbotta4 at gmail.com> wrote:
> >
> > Hello,
> >
> > I am trying to build Chromium 110 with ffmpeg version 5.1.2. One of
> > the errors I get while building has to do with the API for accessing
> > first_dts. It looks like previously it was just a member of AVStream,
> > but now it can only be accessed with av_stream_get_first_dts:
> > https://github.com/chromium/chromium/commit/b94755e4633045be96ab5e0bdde0db7e16a804bd
> > I can see now first_dts is a member of FFStream, but I don't know how
> > to go from an AVStream to an FFStream without using internals of
> > libavformat, if that is even possible. How was first_dts accessed in
> > 5.1.2 from an AVStream?
> Chrome hacks their ffmpeg rather then fixing their code. You can't
> build it with anything but their canned version.

There's an upstream bug for it:

There was an attempt by Andreas Schneider to fix this, but the fix
wasn't complete enough for their testsuite:

The Chromium people don't seem to engage with upstream projects (in
particular ffmpeg) based on this lovely gem:

In Fedora, we're carrying the patch, as it seems to work for us. I
hope the fix lands upstream someday.

真実はいつも一つ!/ Always, there's only one truth!

More information about the ffmpeg-devel mailing list