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
Created attachment 766057 [details] build.log.gz
Created attachment 766058 [details] emerge-info.txt
Compiles fine with: * USE=ffmpeg and ffmpeg-4.4.1 * USE=-ffmpeg and ffmpeg-5.0
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.
(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. :|
Ping
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.
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(-)
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
Yep, upstream got there in the end. I'll make a snapshot bump tomorrow.
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(-)
Nice, thanks