Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 772251 - media-plugins/gst-plugins-libav-1.16.3: Build failure with media-video/ffmpeg-4.4
Summary: media-plugins/gst-plugins-libav-1.16.3: Build failure with media-video/ffmpeg...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: GStreamer package maintainers
Keywords: PATCH
Depends on:
Reported: 2021-02-23 16:43 UTC by orbea
Modified: 2022-03-05 08:31 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

Build log. (build.log,59.85 KB, text/x-log)
2021-02-23 16:43 UTC, orbea

Note You need to log in before you can comment on or make changes to this bug.
Description orbea 2021-02-23 16:43:10 UTC
Created attachment 688146 [details]
Build log.

The build fails with media-video/ffmpeg-9999.

  gst-libav-1.16.3/ext/libav/gstavdemux.c:486:24: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘index_entries

This is due to ffmpeg marking index_entries as part of their private API since it was not intended to be public.

This started in the following ffmpeg commit:;a=commitdiff;h=cea7c19cda0ea1630ae1de8c102ab14231b9db10

Upstream issue:
ffmpeg issue:
ffmpeg mailing list discussion:

My currently installed ffmpeg commit is:

  $ bzgrep 'EGIT_VERSION="' /var/db/pkg/media-video/ffmpeg-9999/environment.bz2 
  declare -x EGIT_VERSION="f569ac4ce0514bf4e0dd768c5ed007c82548d326"
Comment 1 orbea 2021-02-23 16:49:14 UTC
A workaround would be to add a use flag to control --with-system-libav in the gst-plugins-libav ebuild. With this the user could still build with the bundled ffmpeg version although that is far from ideal.
Comment 2 jospezial 2021-03-25 12:03:41 UTC
ffmpeg branch release/4.4 has been created and has
"Revert "lavf: move AVStream.*index_entries* to AVStreamInternal"
This reverts commit cea7c19.
Until an API is added to make index_entries public in a proper way, keeping
this here is harmless."

So next ffmpeg-4.4.x releases will not affect gst-plugins-libav.
emerge tested
Comment 3 orbea 2021-03-25 17:33:32 UTC
Unfortunately that doesn't help ffmpeg-9999.
Comment 4 jospezial 2021-04-13 06:47:16 UTC
"avdemux: fix build with FFmpeg 4.4

Direct access to avstream->index_entries was removed
in favour of the newly added avformat_index_get_entry()
and friends."


The patch applies to media-plugins/gst-plugins-libav-1.16.3 cleanly.
emerge tested against ffmpeg 4.4 and master git branch (with media-video/ffmpeg-9999).
Comment 5 jospezial 2022-03-04 11:45:29 UTC
Please add
to media-plugins/gst-plugins-libav-1.16.3 ebuild.

See also Bug 831604
Comment 6 jospezial 2022-03-04 11:59:19 UTC
And please change title to
media-plugins/gst-plugins-libav-1.16.3: Build failure with media-video/ffmpeg-4.4