Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 574798 - media-video/vlc-2.2.x fails to build with ffmpeg-3.0
Summary: media-video/vlc-2.2.x fails to build with ffmpeg-3.0
Status: RESOLVED DUPLICATE of bug 575072
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Nick Andrade
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-15 14:34 UTC by Alexis Ballier
Modified: 2016-09-04 14:24 UTC (History)
7 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis Ballier gentoo-dev 2016-02-15 14:34:04 UTC
checking for AVCODEC... yes
configure: error: libavutil versions 55 and later are not supported.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/media-video/vlc-2.2.2/work/vlc-2.2.2/config.log
 * ERROR: media-video/vlc-2.2.2::gentoo failed (configure phase):
 *   econf failed
Comment 1 Nick Andrade 2016-02-17 07:20:19 UTC
Alexis, can you provide your "emerge --info vlc"?  

I just tested as was able to build it:
[ebuild   R   #] media-video/ffmpeg-3.0:0/55.57.57::gentoo  USE="X alsa bluray bzip2 cdio cpudetection encode faac gpl gsm hardcoded-tables iconv ieee1394 jpeg2k libv4l mp3 network openal opengl openssl postproc pulseaudio schroedinger sdl ssh theora threads truetype twolame v4l vaapi vdpau vorbis vpx wavpack webp x264 x265 xvid zlib (-altivec) -amr -amrenc (-armv5te) (-armv6) (-armv6t2) (-armvfp) -bs2b -celt -chromaprint -debug -doc -fdk -flite -fontconfig -frei0r -fribidi -gcrypt -gme -gmp -gnutls -iec61883 -jack -kvazaar -ladspa -libass -libcaca -librtmp -libsoxr -lzma (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -modplug (-neon) -nvenc -openh264 -opus -oss -pic -rubberband -samba -snappy -speex -static-libs {-test} -xcb -zimg -zvbi" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="avx mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3 -3dnow -3dnowext -aes -avx2 -fma3 -fma4 -xop" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher" 0 KiB
[ebuild   R    ] media-video/vlc-2.2.2:0/5-8::gentoo [2.2.2:0/5-8::vlc-overlay] USE="X a52 alsa avcodec avformat bluray cdda cddb dbus dts dvbpsi dvd encode faad ffmpeg flac gcrypt httpd ieee1394 jpeg libnotify libsamplerate lirc lua matroska mp3 ncurses ogg opencv opengl png postproc pulseaudio qt4* rdp rtsp schroedinger sdl sftp shout svg swscale taglib theora truetype twolame udev upnp v4l vaapi vdpau vorbis vpx x264 x265 xcb xml xv -aalib (-altivec) -atmo (-audioqueue) -bidi -chromaprint -dc1394 -debug -directfb (-directx) -dvb (-dxva2) -fdk -fluidsynth -fontconfig -gme -gnome -gnutls -growl -jack -kate -kde -libass -libav -libcaca -libtar -libtiger -linsys -live (-macosx-dialog-provider) (-macosx-eyetv) (-macosx-qtkit) (-macosx-quartztext) (-media-library) -modplug -mpeg -mtp -musepack (-neon) -omxil -optimisememory -opus -projectm -qt5* -run-as-root -samba -sdl-image -sid -skins* -speex {-test} -tremor -vcdx -vlm -vnc -wma-fixed -zeroconf -zvbi" CPU_FLAGS_X86="mmx sse" 0 KiB
Comment 2 Nick Andrade 2016-02-17 08:48:31 UTC
You can disregard the previous post; I just realized I was on a second system when I did a rebuild of vlc-2.2.2, not the system I had updated ffmpeg to 3.0 on.  The 2.2.2 that I see in my previous post is the one installed prior to upgrading ffmpeg. 

The limit on ffmpeg versions seems to only apply if you're leveraging vaapi or vdpau.  I have logic limiting ffmpeg to =< 2.9 if using either of those USE flags in the live ebuild, and will likely backport that logic after more testing.
Comment 3 Nick Andrade 2016-02-17 09:42:55 UTC
Upon further testing, the changes are quite a bit more significant than I first thought.  VLC-2.2.2 still uses references such as PIX_FMT_ instead of AV_PIX_FMT_ which appear to have been dropped in ffmpeg 3.0.  

I have tested the live VLC ebuild against ffmpeg-3.0 and that indeed does build (with the VDPAU/VAAPI limits mentioned previously):

media-video/vlc-9999::gentoo was built with the following:
USE="X a52 alsa avcodec avformat bluray cddb chromecast dbus dts dvbpsi dvd encode faad ffmpeg flac gcrypt httpd ieee1394 jpeg libnotify libsamplerate lirc lua matroska mp3 ncurses ogg opencv opengl png postproc pulseaudio qt4 rdp rtsp schroedinger sdl sftp shout svg swscale taglib theora truetype twolame udev upnp v4l vorbis vpx x264 x265 xcb xml xv -aalib (-altivec) (-audioqueue) -bidi -chromaprint -dc1394 -debug -directfb (-directx) -dvb (-dxva2) -fdk -fluidsynth -fontconfig -gme -gnutls -jack -kate -kde -libass -libav -libcaca -libtar -libtiger -linsys -live (-macosx-dialog-provider) (-macosx-eyetv) -macosx-notifications (-macosx-qtkit) (-macosx-quartztext) (-media-library) -modplug -mpeg -mtp -musepack (-neon) -omxil -optimisememory -opus -projectm -qt5 -run-as-root -samba -sdl-image -sid -skins -speex -test -tremor -vaapi -vcd -vdpau -vlm -vnc -wma-fixed -zeroconf -zvbi" ABI_X86="64" CPU_FLAGS_X86="mmx sse"

$ ldd /usr/lib/vlc/plugins/codec/libavcodec_plugin.so  | grep libav
	libavcodec.so.57 => /usr/lib64/libavcodec.so.57 (0x00007f8c46f5a000)
	libavutil.so.55 => /usr/lib64/libavutil.so.55 (0x00007f8c46cf4000)

I will attempt to update the VLC 2.2.2 code to support ffmpeg 3.0, but most likely we'll have to wait until either VLC 2.2.3 or VLC 3.0.
Comment 4 Arfrever Frehtes Taifersar Arahesis 2016-09-04 14:24:26 UTC

*** This bug has been marked as a duplicate of bug 575072 ***