Summary: | media-video/ffmpegthumbnailer-2.1.0 fails to build with media-video/libav - error: av_guess_sample_aspect_ratio was not declared in this scope | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | tman <cornicx> |
Component: | Current packages | Assignee: | Gentoo Media-video project <media-video> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | chithanh, david.w.noon, dolsen, dominique.c.michel, gef.kornflakes, ikelos, saintdev, skrattaren, StormByte, toralf |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
/mnt/portage/logs/media-video:ffmpegthumbnailer-2.1.0:20151025-074140.log
trimmed escape sequence free log of the failure |
Description
tman
2015-10-25 09:15:27 UTC
Created attachment 415424 [details]
/mnt/portage/logs/media-video:ffmpegthumbnailer-2.1.0:20151025-074140.log
what version of ffmpeg or libav do you have installed ? [I] media-video/libav Available versions: 9.14(0/9)^d 9.17(0/9)^d (~)10.5(0/10)^td **10.9999(0/10)^td 11.3(0/11)^d (~)11.3-r1(0/11)^d **11.9999(0/11)^d **9999(0/12)^d {X aac alsa altivec amr armv5te armv6 armv6t2 armvfp bs2b +bzip2 cdio cpudetection custom-cflags debug doc +encode faac fdk fontconfig frei0r +gpl gsm +hardcoded-tables ieee1394 jack jpeg2k libressl mp3 neon +network openssl opus oss pic pulseaudio rtmp schroedinger sdl speex ssl static-libs test theora threads tools truetype twolame v4l vaapi vdpau vis vorbis vpx wavpack webp x264 x265 xvid +zlib ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" CPU_FLAGS_X86="3dnow 3dnowext avx avx2 fma3 fma4 mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3 xop"} Installed versions: 11.3-r1^d(16:40:22 19.10.2015)(X aac alsa bzip2 encode faac gpl hardcoded-tables ieee1394 jack jpeg2k mp3 network oss pulseaudio schroedinger sdl ssl theora threads tools truetype vaapi vdpau vorbis wavpack x264 xvid zlib -altivec -amr -armv5te -armv6 -armv6t2 -armvfp -bs2b -cdio -cpudetection -custom-cflags -debug -doc -fdk -fontconfig -frei0r -gsm -libressl -neon -openssl -opus -pic -rtmp -speex -static-libs -test -twolame -v4l -vpx -webp -x265 ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32" CPU_FLAGS_X86="mmx sse sse2 sse3 ssse3 -3dnow -3dnowext -avx -avx2 -fma3 -fma4 -mmxext -sse4_1 -sse4_2 -xop") Homepage: https://libav.org/ Description: any idea to solve this problem?? Here is upstream bug about compiling against latest ffmpeg: https://github.com/dirkvdb/ffmpegthumbnailer/issues/124 https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45ab11f0ed557d140feae5757b55d532fa47a196 Did that patch not cover this bug for libav too? With this I can compile against latest ffmpeg git. ================================================================= Package Settings ================================================================= media-video/ffmpegthumbnailer-2.1.0::gentoo was built with the following: USE="gtk jpeg png -gnome -libav -test" ABI_X86="64" media-video/ffmpeg-9999::gentoo was built with the following: USE="X aac aacplus alsa bluray bzip2 cdio encode faac fontconfig gme gnutls gpl gsm hardcoded-tables iconv jack jpeg2k ladspa libass libressl librtmp libv4l lzma modplug mp3 network openal opengl openh264 postproc pulseaudio rubberband schroedinger sdl speex ssh theora threads truetype twolame v4l vaapi vdpau vorbis vpx wavpack webp x264 x265 xcb xvid zlib zvbi (-altivec) -amr -amrenc (-armv5te) (-armv6) (-armv6t2) (-armvfp) -bs2b -celt -chromaprint -cpudetection -debug -doc -examples -fdk -flite -frei0r -fribidi -gcrypt -gmp -iec61883 -ieee1394 -kvazaar -libcaca -libsoxr (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) (-neon) -nvenc -openssl -opus -oss -pic -quvi -samba -snappy -static-libs -test -zimg" ABI_X86="32 64 -x32" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3 -3dnow -3dnowext -aes -avx -avx2 -fma3 -fma4 -sse4_1 -sse4_2 -xop" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher" Same error for me. media-video/libav-11.3-r1 Created attachment 422398 [details]
trimmed escape sequence free log of the failure
media-video/libav-9.14 to 11.3-r1 doesn't have any reference to av_guess_sample_aspect_ratio anywhere in the source. This function is defined in ffmpeg, in libavformat/utils.c (and libavformat/avformat.h). Use of av_guess_sample_aspect_ratio was introduced in ffmpegthumbnailer in commit fe76d8c2c9a5 "Fix `calculateDimensions` for anamorphic streams" for 2.1.0 [1] https://github.com/dirkvdb/ffmpegthumbnailer/commit/fe76d8c2c9a5feb0673e6c117e946f0d513ad4a1 same error in version media-video/ffmpegthumbnailer-2.1.1 since 2015 reported and still no fixe. could a developer please help here out? https://github.com/dirkvdb/ffmpegthumbnailer/releases ffmpegthumbnailer-2.1.2 and ffmpegthumbnailer-2.2.0 have been released. Please bump to the tree and then try again. this is supposedly fixed in 2.2.0... that is in the tree now I still see this build error with ffmpegthumbnailer-2.2.0 and libav-11.8 /var/tmp/portage/media-video/ffmpegthumbnailer-2.2.0/work/ffmpegthumbnailer-2.2.0/libffmpegthumbnailer/moviedecoder.cpp: In member function ‘std::__cxx11::string ffmpegthumbnailer::MovieDecoder::createScaleString(int, bool)’: /var/tmp/portage/media-video/ffmpegthumbnailer-2.2.0/work/ffmpegthumbnailer-2.2.0/libffmpegthumbnailer/moviedecoder.cpp:238:97: error: ‘av_guess_sample_aspect_ratio’ was not declared in this scope par = av_guess_sample_aspect_ratio(m_pFormatContext, m_pVideoStream, m_pFrame); ^ /var/tmp/portage/media-video/ffmpegthumbnailer-2.2.0/work/ffmpegthumbnailer-2.2.0/libffmpegthumbnailer/moviedecoder.cpp: In member function ‘void ffmpegthumbnailer::MovieDecoder::initializeFilterGraph(const AVRational&, int, bool)’: /var/tmp/portage/media-video/ffmpegthumbnailer-2.2.0/work/ffmpegthumbnailer-2.2.0/libffmpegthumbnailer/moviedecoder.cpp:264:20: error: ‘AVBufferSinkParams’ has not been declared auto del = [] (AVBufferSinkParams* p) { av_freep(p); }; ^ /var/tmp/portage/media-video/ffmpegthumbnailer-2.2.0/work/ffmpegthumbnailer-2.2.0/libffmpegthumbnailer/moviedecoder.cpp:265:21: error: ‘AVBufferSinkParams’ was not declared in this scope std::unique_ptr<AVBufferSinkParams, decltype(del)> buffersinkParams(av_buffe ^ /var/tmp/portage/media-video/ffmpegthumbnailer-2.2.0/work/ffmpegthumbnailer-2.2.0/libffmpegthumbnailer/moviedecoder.cpp:265:54: error: template argument 1 is invalid std::unique_ptr<AVBufferSinkParams, decltype(del)> buffersinkParams(av_buffe ^ /var/tmp/portage/media-video/ffmpegthumbnailer-2.2.0/work/ffmpegthumbnailer-2.2.0/libffmpegthumbnailer/moviedecoder.cpp:265:100: error: ‘av_buffersink_params_alloc’ was not declared in this scope rSinkParams, decltype(del)> buffersinkParams(av_buffersink_params_alloc(), del); ^ /var/tmp/portage/media-video/ffmpegthumbnailer-2.2.0/work/ffmpegthumbnailer-2.2.0/libffmpegthumbnailer/moviedecoder.cpp:265:106: error: expression list treated as compound expression in initializer [-fpermissive] rSinkParams, decltype(del)> buffersinkParams(av_buffersink_params_alloc(), del); ^ /var/tmp/portage/media-video/ffmpegthumbnailer-2.2.0/work/ffmpegthumbnailer-2.2.0/libffmpegthumbnailer/moviedecoder.cpp:280:21: error: base operand of ‘->’ is not a pointer buffersinkParams->pixel_fmts = pixelFormats; ^ /var/tmp/portage/media-video/ffmpegthumbnailer-2.2.0/work/ffmpegthumbnailer-2.2.0/libffmpegthumbnailer/moviedecoder.cpp:281:140: error: request for member ‘get’ in ‘buffersinkParams’, which is of non-class type ‘int’ by_name("buffersink"), "thumb_buffersink", nullptr, buffersinkParams.get(), m_pF ^ /var/tmp/portage/media-video/ffmpegthumbnailer-2.2.0/work/ffmpegthumbnailer-2.2.0/libffmpegthumbnailer/moviedecoder.cpp:283:22: error: request for member ‘release’ in ‘buffersinkParams’, which is of non-class type ‘int’ buffersinkParams.release(); ^ I confirm this one, this is becomming pretty old, any easy fix or patch for this? Using: media-video/libav-12.1:0/12::gentoo USE="X aac alsa bzip2 encode faac fontconfig gpl hardcoded-tables mp3 network nvidia opus schroedinger speex ssl theora threads tools truetype vaapi vdpau vorbis vpx webp x264 xvid zlib (-altivec) -amr (-armv5te) (-armv6) (-armv6t2) (-armvfp) -bs2b -cdio -cpudetection -custom-cflags -debug -doc -fdk -frei0r -gsm -ieee1394 -jack -jpeg2k -libressl (-neon) -openssl -oss -pic -pulseaudio -rtmp -sdl -static-libs {-test} -twolame -v4l -wavpack -x265" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="avx avx2 fma3 mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3 -3dnow -3dnowext -fma4 -xop" The problems building against libav were introduced in these commits: https://github.com/dirkvdb/ffmpegthumbnailer/commit/a2a98bc5a5d809105586f3b6f33fa45ba80dc3fa#diff-08f3c799b441618d88382e5894e15181 https://github.com/dirkvdb/ffmpegthumbnailer/commit/fbb0b4ab55c3ee01e8290d9a57ce296d26eb0cc2 libav does not provide the AVBufferSinkParams struct or the av_guess_sample_aspect_ratio function. So I don't see any easy solution except reverting these depending on USE="libav". *** Bug 654354 has been marked as a duplicate of this bug. *** Still not fixed. That's very annoying because I am in the middle of a world update. For that update to work, portage was not able to find a solution with USE="ffmpeg", which imply I shifted to USE="libav" and ffmpegthumbnailer just doesn't compile with it. Which in its turn imply I am stuck. (In reply to Chí-Thanh Christopher Nguyễn from comment #16) > The problems building against libav were introduced in these commits: > > https://github.com/dirkvdb/ffmpegthumbnailer/commit/ > a2a98bc5a5d809105586f3b6f33fa45ba80dc3fa#diff- > 08f3c799b441618d88382e5894e15181 > https://github.com/dirkvdb/ffmpegthumbnailer/commit/ > fbb0b4ab55c3ee01e8290d9a57ce296d26eb0cc2 > > libav does not provide the AVBufferSinkParams struct or the > av_guess_sample_aspect_ratio function. So I don't see any easy solution > except reverting these depending on USE="libav". ffmpeg upstream depend on ffmpeg. That imply the real problem is libav that doesn't provide these struct and function. Do you know if libav upstream is aware of that? The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae1063b59ef317fdc6dd640b60437f6fb143a2ac commit ae1063b59ef317fdc6dd640b60437f6fb143a2ac Author: Mikle Kolyada <zlogene@gentoo.org> AuthorDate: 2020-04-26 15:14:48 +0000 Commit: Mikle Kolyada <zlogene@gentoo.org> CommitDate: 2020-04-26 15:22:46 +0000 media-video/libav: remove last-rited pkg Closes: https://bugs.gentoo.org/show_bug.cgi?id=452482 Closes: https://bugs.gentoo.org/show_bug.cgi?id=458768 Closes: https://bugs.gentoo.org/show_bug.cgi?id=470764 Closes: https://bugs.gentoo.org/show_bug.cgi?id=499256 Closes: https://bugs.gentoo.org/show_bug.cgi?id=509974 Closes: https://bugs.gentoo.org/show_bug.cgi?id=519602 Closes: https://bugs.gentoo.org/show_bug.cgi?id=525070 Closes: https://bugs.gentoo.org/show_bug.cgi?id=555114 Closes: https://bugs.gentoo.org/show_bug.cgi?id=564040 Closes: https://bugs.gentoo.org/show_bug.cgi?id=587054 Closes: https://bugs.gentoo.org/show_bug.cgi?id=588986 Closes: https://bugs.gentoo.org/show_bug.cgi?id=701952 Closes: https://bugs.gentoo.org/show_bug.cgi?id=538790 Closes: https://bugs.gentoo.org/show_bug.cgi?id=711206 Closes: https://bugs.gentoo.org/show_bug.cgi?id=489922 Closes: https://bugs.gentoo.org/show_bug.cgi?id=409957 Closes: https://bugs.gentoo.org/show_bug.cgi?id=445854 Closes: https://bugs.gentoo.org/show_bug.cgi?id=474408 Closes: https://bugs.gentoo.org/show_bug.cgi?id=509294 Closes: https://bugs.gentoo.org/show_bug.cgi?id=522350 Closes: https://bugs.gentoo.org/show_bug.cgi?id=546080 Closes: https://bugs.gentoo.org/show_bug.cgi?id=588482 Closes: https://bugs.gentoo.org/show_bug.cgi?id=603726 Closes: https://bugs.gentoo.org/show_bug.cgi?id=694082 Closes: https://bugs.gentoo.org/show_bug.cgi?id=634102 Closes: https://bugs.gentoo.org/show_bug.cgi?id=542186 Closes: https://bugs.gentoo.org/show_bug.cgi?id=635524 Closes: https://bugs.gentoo.org/show_bug.cgi?id=651218 Closes: https://bugs.gentoo.org/show_bug.cgi?id=651220 Signed-off-by: Mikle Kolyada <zlogene@gentoo.org> media-video/libav/Manifest | 3 - media-video/libav/files/libav-12.3-x264.patch | 85 ------- media-video/libav/libav-12.3.ebuild | 350 -------------------------- media-video/libav/libav-13_pre20171219.ebuild | 336 ------------------------- media-video/libav/libav-9999.ebuild | 339 ------------------------- media-video/libav/metadata.xml | 35 --- 6 files changed, 1148 deletions(-) |