Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[solved] Building tvheadend fails with ffmpeg-7.1.1

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
Jimini
l33t
l33t
User avatar
Posts: 620
Joined: Tue Oct 31, 2006 8:39 am
Location: Germany

[solved] Building tvheadend fails with ffmpeg-7.1.1

  • Quote

Post by Jimini » Sun Apr 27, 2025 7:05 am

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: 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_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
Last edited by Jimini on Sun Apr 27, 2025 2:57 pm, edited 1 time in total.
"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)
Top
Hu
Administrator
Administrator
Posts: 24385
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sun Apr 27, 2025 2:07 pm

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.
Top
Jimini
l33t
l33t
User avatar
Posts: 620
Joined: Tue Oct 31, 2006 8:39 am
Location: Germany

  • Quote

Post by Jimini » Sun Apr 27, 2025 2:57 pm

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)
Top
Post Reply

3 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic