Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834399 - media-tv/tvheadend-4.2.8-r2 with ffmpeg-5.0: src/plumbing/transcoding.c:26:10: fatal error: libavresample/avresample.h: No such file or directory
Summary: media-tv/tvheadend-4.2.8-r2 with ffmpeg-5.0: src/plumbing/transcoding.c:26:10...
Status: IN_PROGRESS
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: James Le Cuirot
URL: https://github.com/tvheadend/tvheaden...
Whiteboard: Workaround dep applied; could disable...
Keywords:
Depends on:
Blocks: ffmpeg-5.0
  Show dependency tree
 
Reported: 2022-02-28 20:37 UTC by Kobboi
Modified: 2024-03-25 18:37 UTC (History)
2 users (show)

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


Attachments
build.log.gz (build.log.gz,6.63 KB, application/gzip)
2022-02-28 20:38 UTC, Kobboi
Details
emerge-info.txt (emerge-info.txt,8.00 KB, text/plain)
2022-02-28 20:38 UTC, Kobboi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2022-02-28 20:37:53 UTC
Perhaps you should add the directory containing `libavresample.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libavresample', required by 'virtual:world', not found
CC              src/descrambler/ffdecsa/ffdecsa_sse2.o
CC              src/descrambler/libaesdec/libaesdec.o
Package libavresample was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavresample.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libavresample', required by 'virtual:world', not found
Package libavresample was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavresample.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libavresample', required by 'virtual:world', not found
src/plumbing/transcoding.c:26:10: fatal error: libavresample/avresample.h: No such file or directory
   26 | #include <libavresample/avresample.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:642: /var/tmp/portage/media-tv/tvheadend-4.2.8-r2/work/tvheadend-4.2.8/build.linux/src/plumbing/transcoding.o] Error 1
make: *** Waiting for unfinished jobs....
Package libavresample was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavresample.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libavresample', required by 'virtual:world', not found
Package libavresample was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavresample.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libavresample', required by 'virtual:world', not found
CC              src/dbus.o
src/muxer/muxer_libav.c:37:3: error: unknown type name ‘AVBitStreamFilterContext’
   37 |   AVBitStreamFilterContext *lm_h264_filter;
      |   ^~~~~~~~~~~~~~~~~~~~~~~~
src/muxer/muxer_libav.c:38:3: error: unknown type name ‘AVBitStreamFilterContext’
   38 |   AVBitStreamFilterContext *lm_hevc_filter;
      |   ^~~~~~~~~~~~~~~~~~~~~~~~
src/muxer/muxer_libav.c: In function ‘lav_muxer_add_stream’:
src/muxer/muxer_libav.c:81:3: error: unknown type name ‘AVCodecContext’; use ‘struct’ keyword to refer to the type
   81 |   AVCodecContext *c;
      |   ^~~~~~~~~~~~~~
      |   struct 
src/muxer/muxer_libav.c:88:9: error: ‘AVStream’ has no member named ‘codec’
   88 |   c = st->codec;
      |         ^~
src/muxer/muxer_libav.c:89:4: error: request for member ‘codec_id’ in something not a structure or union
   89 |   c->codec_id = streaming_component_type2codec_id(ssc->ssc_type);
      |    ^~
src/muxer/muxer_libav.c:100:6: error: request for member ‘rc_buffer_size’ in something not a structure or union
  100 |     c->rc_buffer_size = 224*1024*8;
      |      ^~
src/muxer/muxer_libav.c:123:8: error: request for member ‘extradata_size’ in something not a structure or union
  123 |       c->extradata_size = hdr.sb_ptr;


Reproducible: Always
Comment 1 Kobboi 2022-02-28 20:38:09 UTC
Created attachment 766057 [details]
build.log.gz
Comment 2 Kobboi 2022-02-28 20:38:11 UTC
Created attachment 766058 [details]
emerge-info.txt
Comment 3 Kobboi 2022-02-28 20:41:03 UTC
Compiles fine with:
* USE=ffmpeg and ffmpeg-4.4.1
* USE=-ffmpeg and ffmpeg-5.0
Comment 4 James Le Cuirot gentoo-dev 2022-05-28 07:44:32 UTC
I've tried to do this API migration myself, but it's not easy. I'm not hugely motivated because I don't use FFmpeg with Tvheadend, and for the time being, I'm not even using Tvheadend at all. I've submitted what I have so far anyway.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-26 05:22:22 UTC
(In reply to James Le Cuirot from comment #4)
> I've tried to do this API migration myself, but it's not easy. I'm not
> hugely motivated because I don't use FFmpeg with Tvheadend, and for the time
> being, I'm not even using Tvheadend at all. I've submitted what I have so
> far anyway.

Thank you! I'd offer to help but.. my fragile Pi setup with a bunch of TV tuners stuck into it isn't running right now either. :|
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-28 12:41:41 UTC
Ping
Comment 7 James Le Cuirot gentoo-dev 2023-01-28 13:06:24 UTC
I've gone as far as I am comfortable with for this. It's still the case that I'm not using Tvheadend at all due to hardware issues. Upstream have not been helpful either. If you want to drop FFmpeg 4 at some point then we may just have to drop/mask the flag.
Comment 8 Larry the Git Cow gentoo-dev 2023-02-15 06:23:22 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d46a719da13dfcdae9a1689fe3b6d2f37242cff9

commit d46a719da13dfcdae9a1689fe3b6d2f37242cff9
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-15 06:19:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-15 06:19:24 +0000

    media-tv/tvheadend: depend on <ffmpeg-5
    
    Bug: https://bugs.gentoo.org/834399
    Signed-off-by: Sam James <sam@gentoo.org>

 media-tv/tvheadend/tvheadend-4.2.8-r2.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 9 Pacho Ramos gentoo-dev 2024-03-19 14:08:12 UTC
Fedora RPMFusion people look to use a snapshot that, supposedly, works with ffmpeg6:
https://download1.rpmfusion.org/free/fedora/development/rawhide/Everything/source/SRPMS//repoview/tvheadend.html
Comment 10 James Le Cuirot gentoo-dev 2024-03-23 23:06:03 UTC
Yep, upstream got there in the end. I'll make a snapshot bump tomorrow.
Comment 11 Larry the Git Cow gentoo-dev 2024-03-24 15:37:05 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78abc588b5811a3b597cc476a58f9881efc6adb9

commit 78abc588b5811a3b597cc476a58f9881efc6adb9
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2024-03-24 15:36:31 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2024-03-24 15:36:31 +0000

    media-tv/tvheadend: Bump to 20240322 snapshot for ffmpeg 5+, fix Python deps
    
    Bug: https://bugs.gentoo.org/834399
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 media-tv/tvheadend/Manifest                       |   1 +
 media-tv/tvheadend/tvheadend-4.3_p20240322.ebuild | 168 ++++++++++++++++++++++
 media-tv/tvheadend/tvheadend-9999.ebuild          |  21 +--
 3 files changed, 182 insertions(+), 8 deletions(-)
Comment 12 Pacho Ramos gentoo-dev 2024-03-25 18:37:34 UTC
Nice, thanks