Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 910380

Summary: media-video/vlc-3.0.18-r3 causes ffmpeg-6 downgrade to media-video/ffmpeg-4.4.4-r2
Product: Gentoo Linux Reporter: Martin Mokrejš <mmokrejs>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Martin Mokrejš 2023-07-15 04:52:16 UTC
Hi,
  I cannot figure out why media-video/simplescreenrecorder causes the following downgrade:

!!! existing preserved libs:
>>> package: media-video/ffmpeg-4.4.4-r2
 *  - /usr/lib64/libswresample.so.3
 *  - /usr/lib64/libswresample.so.3.9.100
 *  - /usr/lib64/libswscale.so.5
 *  - /usr/lib64/libswscale.so.5.9.100
 *      used by /usr/bin/simplescreenrecorder (media-video/simplescreenrecorder-0.4.4-r3)
 *  - /usr/lib64/libavformat.so.58
 *  - /usr/lib64/libavformat.so.58.76.100
 *      used by /usr/bin/simplescreenrecorder (media-video/simplescreenrecorder-0.4.4-r3)
 *  - /usr/lib64/libavcodec.so.58
 *  - /usr/lib64/libavcodec.so.58.134.100
 *      used by /usr/bin/simplescreenrecorder (media-video/simplescreenrecorder-0.4.4-r3)
 *  - /usr/lib64/libavutil.so.56
 *  - /usr/lib64/libavutil.so.56.70.100
 *      used by /usr/bin/simplescreenrecorder (media-video/simplescreenrecorder-0.4.4-r3)



Calculating dependencies... done!
Dependency resolution took 27.42 s.

[ebuild  r  UD ] media-video/ffmpeg-4.4.4-r2 [6.0-r1]
[ebuild  rR    ] media-libs/opencv-4.7.0 
[ebuild  rR    ] media-plugins/gst-plugins-libav-1.22.3 
[ebuild  N     ] media-video/vlc-3.0.18-r3  USE="X a52 alsa aom archive bluray dav1d dbus dts dvbpsi dvd encode faad fdk ffmpeg flac fontconfig gcrypt gstreamer gui jpeg libnotify libsamplerate live mad matroska mp3 mpeg mtp ncurses nfs ogg opus png samba srt ssl svg truetype twolame udev upnp v4l vaapi vnc vpx wayland x264 x265 xml -aribsub -bidi -cddb -chromaprint -chromecast -dc1394 -debug (-directx) -fluidsynth -gme -ieee1394 -jack -kate -keyring -libass -libcaca -libtar -libtiger -linsys -lirc -lua -macosx-notifications -modplug -musepack -omxil -optimisememory -projectm -pulseaudio -rdp -run-as-root -sdl-image -sftp -shout -sid -skins -soxr -speex -taglib -test -theora -tremor -vdpau -zeroconf -zvbi" CPU_FLAGS_X86="mmx sse" LUA_SINGLE_TARGET="lua5-1" 
[ebuild  rR    ] gui-libs/neatvnc-0.6.0 
[ebuild  rR    ] media-gfx/pqiv-2.11 
[ebuild  rR    ] media-libs/gegl-0.4.46 
[ebuild  rR    ] media-video/ffmpegthumbnailer-2.2.2-r1 
[ebuild  rR    ] media-libs/libopenshot-0.3.2-r1 
[ebuild  rR    ] media-plugins/alsa-plugins-1.2.7.1-r1 

WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:

media-video/ffmpeg:0

  (media-video/ffmpeg-6.0-r1:0/58.60.60::gentoo, ebuild scheduled for merge) USE="X alsa amr amrenc bluray bzip2 cdio chromium codec2 cpudetection dav1d encode fdk fontconfig gmp gnutls gpl iconv jpeg2k jpegxl ladspa lcms libaom libdrm librtmp libsoxr libtesseract libv4l libxml2 lzma mp3 network openal opencl opengl openh264 openssl opus postproc rav1e rubberband samba sdl sndio srt ssh svg svt-av1 theora threads truetype twolame v4l vaapi vidstab vmaf vorbis vpx vulkan webp x264 x265 xvid zlib -amf (-appkit) -bs2b -chromaprint -cuda -debug -doc -flite -frei0r -fribidi -gcrypt -gme -gsm -hardcoded-tables -iec61883 -ieee1394 -jack -kvazaar -libaribb24 -libass -libcaca -libilbc -libplacebo -lv2 (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -modplug -nvenc -oss -pic -pulseaudio -qsv -snappy -speex -static-libs -test -vdpau -verify-sig -zeromq -zimg -zvbi" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3 -3dnow -3dnowext -fma4 -xop" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher" conflicts with
    media-video/ffmpeg:0/56.58.58=[vorbis,vpx,x264,mp3] required by (media-video/simplescreenrecorder-0.4.4-r3:0/0::gentoo, installed) USE="asm mp3 opengl v4l vorbis vpx x264 -jack -pulseaudio -theora"
                      ^^^^^^^^^^^^                     
    <media-video/ffmpeg-5 required by (media-video/vlc-3.0.18-r3:0/5-9::gentoo, ebuild scheduled for merge) USE="X a52 alsa aom archive bluray dav1d dbus dts dvbpsi dvd encode faad fdk ffmpeg flac fontconfig gcrypt gstreamer gui jpeg libnotify libsamplerate live mad matroska mp3 mpeg mtp ncurses nfs ogg opus png samba srt ssl svg truetype twolame udev upnp v4l vaapi vnc vpx wayland x264 x265 xml -aribsub -bidi -cddb -chromaprint -chromecast -dc1394 -debug (-directx) -fluidsynth -gme -ieee1394 -jack -kate -keyring -libass -libcaca -libtar -libtiger -linsys -lirc -lua -macosx-notifications -modplug -musepack -omxil -optimisememory -projectm -pulseaudio -rdp -run-as-root -sdl-image -sftp -shout -sid -skins -soxr -speex -taglib -test -theora -tremor -vdpau -zeroconf -zvbi" CPU_FLAGS_X86="mmx sse" LUA_SINGLE_TARGET="lua5-1"
    ^                   ^

...


The following packages are causing rebuilds:

  (media-video/ffmpeg-4.4.4-r2:0/56.58.58::gentoo, ebuild scheduled for merge) causes rebuilds for:
    (media-video/ffmpegthumbnailer-2.2.2-r1:0/0::gentoo, ebuild scheduled for merge)
    (gui-libs/neatvnc-0.6.0:0/0::gentoo, ebuild scheduled for merge)
    (media-gfx/pqiv-2.11:0/0::gentoo, ebuild scheduled for merge)
    (media-video/vlc-3.0.18-r3:0/5-9::gentoo, ebuild scheduled for merge)
    (media-libs/opencv-4.7.0:0/4.7.0::gentoo, ebuild scheduled for merge)
    (media-libs/libopenshot-0.3.2-r1:0/21::gentoo, ebuild scheduled for merge)
    (media-libs/gegl-0.4.46:0.4/0.4::gentoo, ebuild scheduled for merge)
    (media-plugins/alsa-plugins-1.2.7.1-r1:0/0::gentoo, ebuild scheduled for merge)
    (media-plugins/gst-plugins-libav-1.22.3:1.0/1.0::gentoo, ebuild scheduled for merge)

Would you like to merge these packages? [Yes/No] No


# emerge --info
Portage 3.0.49 (python 3.11.4-final-0, default/linux/amd64/17.1/no-multilib/systemd, gcc-13, glibc-2.37-r3, 6.5.0-rc1-gentoo-dist+ x86_64)
=================================================================
System uname: Linux-6.5.0-rc1-gentoo-dist+-x86_64-13th_Gen_Intel-R-_Core-TM-_i7-13700K-with-glibc2.37
KiB Mem:   131649572 total, 111995632 free
KiB Swap:  134217724 total, 134217724 free
Timestamp of repository gentoo: Thu, 13 Jul 2023 15:30:01 +0000
Head commit of repository gentoo: 77d0183a93f35804acaeceae6605d277c38f7ac8
sh bash 5.2_p15-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r6::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.36.1-r2::gentoo
dev-lang/python:           3.11.4::gentoo, 3.12.0_beta4::gentoo
dev-lang/rust:             1.70.0::gentoo
dev-util/cmake:            3.26.4-r1::gentoo
dev-util/meson:            1.1.1::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/sandbox:          2.36::gentoo
sys-apps/systemd:          253.6::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.5::gentoo
sys-devel/gcc:             12.3.1_p20230526::gentoo, 13.1.1_p20230527::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.5::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE @FREE @BINARY-REDISTRIBUTABLE dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE IBM-J1.6 NPSL Nero-EULA-US AdobeFlash-10.3 AdobeFlash-11.x OPERA-2014 RAR Intel-SDP intel-ucode Skype-TOS vmware linux-firmware ICS ipw3945 Aladdin AVASYS truecrypt-3.0 pyvcf Non-profit-OSL-3.0 Adobe cctbx-2.0 bh-luxi ARIADNE unRAR all-rights-reserved trf annovar_personal_only stampy-academic BSD-BroadInstitute freedist free-noncomm sun-jlfgr PSTT netperf sun-jsr67 xv vim.org OSGi-Specification-2.0 colt mod_fastcgi googleearth google-chrome ACE AFL no-source-code linux-fw-redistributable ISSL JSON MPEG-4 Apache-2.0 BSD MIT BSD-2 FSFAP unicode Subversion OPERA-2018 ms-teams-pre TeamViewer PSF-2.4 merlin android julius CROSSOVER-3 lha PUEL-11 master-pdf-editor"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe -march=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nostrip parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="https://mirror.dkm.cz/gentoo/     rsync://mirror.dkm.cz/gentoo/     http://gentoo.mirror.web4u.cz/     ftp://gentoo.mirror.web4u.cz/"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en_US en_GB en cs"
MAKEOPTS="-j16"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 amr amrenc aom apache apache2 archive armadillo asm audit av1 avx avx2 berkdb blas bluray bmp boost branding bz2 bzip2 cairo caps cdda cdio cdr cdrom cgi chromium cli codec2 coin cpudetection crypt cryptlib cryptsetup cups curl cxx d3d9 dav1d dbus device-mapper dhcp directfb directx dri dri3 drm dts dvbpsi dvd dvda dvdr dxf dxva2 egl encode eselect-ldso eudev exif faad fax fbcon fdk ffmpeg fftw flac fontconfig foomatic fortran fuse gbm gd gdal gdbm geoip geolocation georeferencer geos gif gimp gles1 gles2 glpk gml gmp gpm gps grass gstreamer gtk gtk3 gui h.264 h.265 h264 h265 hal haptic hdf5 heif hevc hpijs hwdb iconv icu id3tag imaging innodb inotify intel-ucode iproute2 ipv6 java javafx javascript jce jpeg jpeg2k jpegxl jpg js jscript kdrive keymap kms ladspa lapack laptop las lcms libaom libdrm libkms libnotify librtmp libsoxr libtesseract libtirpc libv4l libxml2 live lm-sensors lm_sensors lz4 lzma mad mariadb matroska mjpeg mmal mmx mng modemmanager mp3 mp4 mpeg mtp mysql ncurses netcdf networkmanager nfs nls nptl nptlonly nscd nss ntfsprogs objc ocr odbc ogdi ogg openal opencl opengl openh264 openmp openssl opus pam pango parport pbs pcre pcre16 pcsc-lite pdal pdf perl php png polar policykit polkit postgres ppds pppd python qemu qml qt3support qt4 qt5 rav1e readline redistributable rendering resolvconf romio rubberband samba sdl sdl2 seccomp server session sha slideshow smartcard snasndfile sndio sound spatialite spell split-usr sqlite srt sse sse2 sse3 sse4_1 sse4_2 ssh ssl sslv3 ssse3 startup-notification suexec svg svt-av1 systemd tcl tcpd test-rust threads tiff tk tools truetype twolame udev unicode unwind upnp usb v4l v4l2 vaapi vidstab vim-syntax virtualbox vmaf vnc vorbis vp8 vp9 vpx vulkan wavpack wayland webp wifi wmf wxwidgets x11 x264 x265 xa xattr xcb xephyr xft xls xml xmp xorg xpm xrandr xv xvfb xvid xvmc zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="ast vesa virtualbox vboxvideo vmware vmvga vmwgfx fbdev intel iris i915 i965 d3d9 d3d12" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-15 04:56:36 UTC
No, vlc is causing the downgrade.
Comment 2 Martin Mokrejš 2023-07-15 05:10:00 UTC
# vim /etc/portage/package.mask/ffmpeg
# emerge -pv vlc

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 3.90 s.


!!! All ebuilds that could satisfy "<media-video/ffmpeg-5" have been masked.
!!! One of the following masked packages is required to complete your request:
- media-video/ffmpeg-4.4.4-r2::gentoo (masked by: package.mask)
- media-video/ffmpeg-4.2.9::gentoo (masked by: package.mask)

(dependency required by "media-video/vlc-3.0.18-r3::gentoo[vaapi]" [ebuild])
(dependency required by "vlc" [argument])
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.


 * IMPORTANT: 18 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

# USE=-vaapi emerge -pv vlc

These are the packages that would be merged, in order:

Calculating dependencies                                                                                                                          
... done!

Dependency resolution took 2.93 s.

[ebuild  N     ] media-video/vlc-3.0.18-r3:0/5-9::gentoo  USE="X a52 alsa aom archive bluray dav1d dbus dts dvbpsi dvd encode faad fdk ffmpeg flac fontconfig gcrypt gstreamer gui jpeg libnotify libsamplerate live mad matroska mp3 mpeg mtp ncurses nfs ogg opus png samba srt ssl svg truetype twolame udev upnp v4l vnc vpx wayland x264 x265 xml -aribsub -bidi -cddb -chromaprint -chromecast -dc1394 -debug (-directx) -fluidsynth -gme -ieee1394 -jack -kate -keyring -libass -libcaca -libtar -libtiger -linsys -lirc -lua -macosx-notifications -modplug -musepack -omxil -optimisememory -projectm -pulseaudio -rdp -run-as-root -sdl-image -sftp -shout -sid -skins -soxr -speex -taglib -test -theora -tremor -vaapi -vdpau -zeroconf -zvbi" CPU_FLAGS_X86="mmx sse" LUA_SINGLE_TARGET="lua5-1" 0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB

 * IMPORTANT: 18 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

#
Comment 3 Martin Mokrejš 2023-07-15 05:14:33 UTC
Bug #864721
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-15 05:15:57 UTC
Yep, all looks fine.
Comment 5 Martin Mokrejš 2023-07-15 05:38:36 UTC
But why vlc cannout support Intel QuickSyncVideo with >=media-video/ffmpeg-6? I am running on x11, not wayland on this host, AFAICT.


$ vainfo 
Trying display: wayland
Trying display: x11
libva info: VA-API version 1.18.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib64/va/drivers/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_18
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.18 (libva 2.18.2)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 23.2.3 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileNone                   :	VAEntrypointStats
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Simple            :	VAEntrypointEncSlice
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointFEI
      VAProfileH264Main               :	VAEntrypointEncSliceLP
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointFEI
      VAProfileH264High               :	VAEntrypointEncSliceLP
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:	VAEntrypointFEI
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSliceLP
      VAProfileVP8Version0_3          :	VAEntrypointVLD
      VAProfileVP8Version0_3          :	VAEntrypointEncSlice
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointEncSlice
      VAProfileHEVCMain               :	VAEntrypointFEI
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointEncSlice
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
$

$ xdpyinfo  | head
name of display:    :0.0
version number:    11.0
vendor string:    The X.Org Foundation
vendor release number:    12101008
X.Org version: 21.1.8
maximum request size:  16777212 bytes
motion buffer size:  256
bitmap unit, bit order, padding:    32, LSBFirst, 32
image byte order:    LSBFirst
number of supported pixmap formats:    7
$

$ xdriinfo 
Screen 0: iris
$

Per graphics in https://wiki.ubuntu.com/IntelQuickSyncVideo it seems having the latest ffmpeg is the key step ahead.

I just blocked <=media-video/ffmpeg-6.0 to prevent it.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-15 05:51:03 UTC
(In reply to Martin Mokrejš from comment #5)
> But why vlc cannout support Intel QuickSyncVideo with
> >=media-video/ffmpeg-6? I am running on x11, not wayland on this host,
> AFAICT.
> 

It's purely with USE=vaapi and you can see the linked upstream bugs for why.
Comment 7 Martin Mokrejš 2023-07-15 06:13:33 UTC
I see the error but I do not really understand why ffmpeg-6.0 does not configure the vaapi, although it is still mentioned in current docs https://ffmpeg.org/index.html#news .

checking for libavutil variant... ffmpeg
checking for AVCODEC... yes
checking for libavcodec/avcodec.h... yes
checking for libavutil/avutil.h... yes
checking for LIBVA... yes
checking for LIBVA_DRM... yes
checking for LIBVA_X11... yes
checking for LIBVA_WL... yes
checking for libavcodec/vaapi.h... no
configure: error: libva is present but libavcodec/vaapi.h is missing

Anyway, seems I should more focus on getting --enable-libmfx passed to ffmpeg's configure per https://ffmpeg.org/general.html to get "1.10 Intel QuickSync Video".

And at least per "1.18 OpenH264" I should actually disable open264: "For decoding, this library is much more limited than the built-in decoder in libavcodec; currently, this library lacks support for decoding B-frames and some other main/high profile features. (It currently only supports constrained baseline profile and CABAC.) Using it is mostly useful for testing ...".

I think should better enfore USE=-vaapi to vlc.
Comment 8 Martin Mokrejš 2023-07-15 08:18:43 UTC
Why is glx configure feature deliberately disabled in media-libs/libva ebuild? 
See https://bugs.gentoo.org/905453#c1 

It used to be guided by USE="X" variable although it was about "opengl" and "vaapi"?
https://github.com/intel/libva/blob/master/va/glx/va_glx.c
https://github.com/intel/libva/blob/master/configure.ac

https://github.com/zaps166/QMPlay2/issues/604

I think >=ffmpeg-5 simply does not provide the file libavcodec/vaapi.h and subsequently vlc's configure bails out that it cannot fullfill the USE=vaapi requirement. But at the same time, ffmpeg version 6.0 says: 

$ ffmpeg -hwaccels 2>/dev/null | grep vaapi
vaapi
$
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-15 08:21:18 UTC
(In reply to Martin Mokrejš from comment #8)
> Why is glx configure feature deliberately disabled in media-libs/libva
> ebuild? 

I don't know, I assume it's something to do with libglvnd. 

> 
> I think >=ffmpeg-5 simply does not provide the file libavcodec/vaapi.h and
> subsequently vlc's configure bails out that it cannot fullfill the USE=vaapi
> requirement. But at the same time, ffmpeg version 6.0 says: 
> 
> $ ffmpeg -hwaccels 2>/dev/null | grep vaapi
> vaapi
> $

Per the linked bugs on the VLC bug, it's fixed in VLC master, but it's too complex to backport to 3.x.