with the most current version of ffmpeg, building tvheadend leads to an error. Am I overlooking something or have I run into a bug?
With media-video/ffmpeg-6.1.2-r1 building media-tv/tvheadend-4.3_p20240618 works fine.
With media-video/ffmpeg-7.1.1 building media-tv/tvheadend-4.3_p20240618 fails with numerous errors with audio.c, like the following:
Code: Select all
src/transcoding/transcode/audio.c: In function '_audio_context_channel_layout':
src/transcoding/transcode/audio.c:87:38: error: 'AVCodecContext' has no member named 'channel_layout'; did you mean 'ch_layout'?
87 | uint64_t ilayout = self->iavctx->channel_layout;
| ^~~~~~~~~~~~~~
| ch_layout
src/transcoding/transcode/audio.c:94:21: error: implicit declaration of function 'av_get_channel_layout_nb_channels' [-Wimplicit-function-declaration]
94 | ichannels = av_get_channel_layout_nb_channels(ilayout);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/transcoding/transcode/audio.c:106:9: error: implicit declaration of function 'av_get_channel_layout_string'; did you mean 'av_channel_layout_subset'? [-Wimplicit-function-declaration]
106 | av_get_channel_layout_string(obuf, sizeof(obuf), 0, olayout);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| av_channel_layout_subset
src/transcoding/transcode/audio.c: In function 'tvh_audio_context_open_encoder':
src/transcoding/transcode/audio.c:142:19: error: 'AVCodecContext' has no member named 'channel_layout'; did you mean 'ch_layout'?
142 | self->oavctx->channel_layout = _audio_context_channel_layout(self, opts);
| ^~~~~~~~~~~~~~
| ch_layout
src/transcoding/transcode/audio.c:143:24: error: 'AVCodecContext' has no member named 'channel_layout'; did you mean 'ch_layout'?
143 | if (!self->oavctx->channel_layout) {
| ^~~~~~~~~~~~~~
| ch_layoutOutput of emerge --info '=media-tv/tvheadend-4.3_p20240618::gentoo': https://paste.gentoo.zip/3KSxLo9h
Output of emerge -pqv '=media-tv/tvheadend-4.3_p20240618::gentoo': https://paste.gentoo.zip/5b6N4ucS
build.log: https://paste.gentoo.zip/pjPt1NME
ebuild environment: https://paste.gentoo.zip/eOcanDJf
Kind regards
Jimini

