Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Building tvheadend fails with ffmpeg-7.1.1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Jimini
l33t
l33t


Joined: 31 Oct 2006
Posts: 618
Location: Germany

PostPosted: Sun Apr 27, 2025 7:05 am    Post subject: [solved] Building tvheadend fails with ffmpeg-7.1.1 Reply with quote

Good day,

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:
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_layout


Here is the relevant information - please let me know if something is missing:

Output 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
_________________
"The most merciful thing in the world, I think, is the inability of the human mind to correlate all its contents." (H.P. Lovecraft: The Call of Cthulhu)


Last edited by Jimini on Sun Apr 27, 2025 2:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23355

PostPosted: Sun Apr 27, 2025 2:07 pm    Post subject: Reply with quote

This looks like you ran into media-tv/tvheadend-4.3_p20240618 fails to compile with media-video/ffmpeg-7.1.1. Ionen recently committed a change that hopefully helps.
Back to top
View user's profile Send private message
Jimini
l33t
l33t


Joined: 31 Oct 2006
Posts: 618
Location: Germany

PostPosted: Sun Apr 27, 2025 2:57 pm    Post subject: Reply with quote

Thank you, Hu! When I created this thread, the bug report did not exist yet - but I can confirm, that the workaround seems to help, I just rebuilt tvheadend with ffmpeg-compat.

Kind regards
Jimini
_________________
"The most merciful thing in the world, I think, is the inability of the human mind to correlate all its contents." (H.P. Lovecraft: The Call of Cthulhu)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum