(To quote a colleague
I have a annoying problem with video performance on my Pi4. It was about one year ago I emerged almost all I needed and then didn't touch it because of a rather troublesome time... But now I managed to have it up-to-date again and began to use it as it was intended: attached to the TV via HDMI to watch stuff with kodi and sometimes fire up xfce4 to watch stuff on youtube (because the add-on for youtube within kodi requires an API-key which I refuse to accquire). Unfortunatly there are framedrops/tearing/or such when watching youtube in epiphany to a degree that makes it quite unusable, no matter which quality-setting is used (I tried to give firefox or chromium a chance but both fail to emerge...). It's almost all the same amount of framedrops/tearing. (144 and 240 don't play at all - strange!) Kodi works fine most of the time but some videos stutter (audio is fluent). I tend to say it's mostly HD - h265 or such material.
The Pi4 is a 8GB and because it should play netflix (we want video performance to be OK before we get a netflix account and pay for it) it's 32bit userland with 64bit kernel. (For some ebuilds I have to boot the 32bit kernel to emerge successfully - is this to be expected? I think so but I don't know how to get around that. But that would be another question.)
I tried some stuff I found here and in other places but without much success. Is this the best one could get? Or did I something wrong?
I'd be happy to provide any information that's needed and because I don't know where to start, here are '/boot/config.txt', '/var/lib/portage/world' and 'emerge --info'.
Thanks a lot for looking into it!
Andy
Code: Select all
thalia /home/pandora # cat /boot/config.txt
#######
# 64-bit-Kernel:
arm_64bit=1
#######
dtparam=audio=on
########
# Video-Modi:
#
# works more or less:
dtoverlay=vc4-fkms-v3d
#
# wiki.gentoo.org:
#dtoverlay=vc4-kms-v3d
#
# forums.gentoo.org:
#dtoverlay=vc4-kms-v3d-pi4.dtbo
########
gpu_mem=256
disable_overscan=1
###########
# forums.gentoo.org:
#enables ffmpeg hardware accellerated video transcoding
dtoverlay=rpivid-v4l2
##########Code: Select all
thalia /home/pandora # cat /var/lib/portage/world
app-admin/logrotate
app-admin/syslog-ng
app-benchmarks/sysbench
app-editors/mousepad
app-misc/screen
app-portage/cpuid2cpuflags
app-portage/genlop
app-portage/gentoolkit
app-text/wgetpaste
dev-util/ccache
dev-util/strace
media-libs/raspberrypi-userland
media-plugins/alsa-plugins
media-plugins/gst-plugins-meta
media-plugins/kodi-inputstream-adaptive
media-sound/alsa-utils
media-sound/pavucontrol
media-tv/kodi
media-video/vlc
net-misc/ntp
net-misc/yt-dlp
net-wireless/iw
sys-apps/hdparm
sys-apps/hwinfo
sys-apps/i2c-tools
sys-apps/lshw
sys-apps/portage
sys-apps/rng-tools
sys-apps/smartmontools
sys-apps/usbutils
sys-boot/raspberrypi-firmware
sys-devel/distcc
sys-fs/dosfstools
sys-kernel/linux-firmware
sys-kernel/raspberrypi-image
sys-power/cpupower
sys-process/cronie
sys-process/htop
sys-process/iotop
www-client/epiphany
x11-apps/mesa-progs
x11-misc/lightdm
xfce-base/xfce4-meta
xfce-extra/thunar-archive-plugin
xfce-extra/xfce4-clipman-plugin
Code: Select all
thalia /home/pandora # emerge --info
Portage 3.0.30 (python 3.9.9-final-0, default/linux/arm/17.0/armv7a/desktop, gcc-11.2.0, glibc-2.33-r7, 5.10.63-v8+ aarch64)
=================================================================
System uname: Linux-5.10.63-v8+-aarch64-with-glibc2.33
KiB Mem: 7816556 total, 7412640 free
KiB Swap: 5860348 total, 5860348 free
Timestamp of repository gentoo: Sat, 19 Feb 2022 09:30:01 +0000
Head commit of repository gentoo: 2537143c1b566d794b6c6969be399920c92f64b5
sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
distcc 3.4 armv7a-unknown-linux-gnueabihf [enabled]
ccache version 4.5.1 [enabled]
app-misc/pax-utils: 1.3.3::gentoo
app-shells/bash: 5.1_p16::gentoo
dev-java/java-config: 2.3.1::gentoo
dev-lang/perl: 5.34.0-r6::gentoo
dev-lang/python: 3.8.12_p1-r1::gentoo, 3.9.9-r1::gentoo, 3.10.0_p1-r1::gentoo
dev-lang/rust-bin: 1.58.1::gentoo
dev-util/ccache: 4.5.1::gentoo
dev-util/cmake: 3.22.2::gentoo
dev-util/meson: 0.60.3::gentoo
sys-apps/baselayout: 2.7-r3::gentoo
sys-apps/openrc: 0.44.10::gentoo
sys-apps/sandbox: 2.25::gentoo
sys-devel/autoconf: 2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake: 1.16.4::gentoo
sys-devel/binutils: 2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang: 13.0.0::gentoo
sys-devel/gcc: 11.2.0::gentoo
sys-devel/gcc-config: 2.5-r1::gentoo
sys-devel/libtool: 2.4.6-r6::gentoo
sys-devel/lld: 13.0.0::gentoo
sys-devel/llvm: 13.0.0::gentoo
sys-devel/make: 4.3::gentoo
sys-kernel/linux-headers: 5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc: 2.33-r7::gentoo
Repositories:
x-portage
location: /usr/local/portage
masters: gentoo
priority: 0
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: 1
sync-rsync-verify-max-age: 24
sync-rsync-extra-opts:
sync-rsync-verify-jobs: 1
sync-rsync-verify-metamanifest: yes
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="@FREE"
CBUILD="armv7a-unknown-linux-gnueabihf"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
CHOST="armv7a-unknown-linux-gnueabihf"
CONFIG_PROTECT="/boot/cmdline.txt /boot/config.txt /etc /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=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live ccache config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
GENTOO_MIRRORS="https://104.23.128.5/gentoo/ https://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ https://ftp.fau.de/gentoo http://ftp.halifax.rwth-aachen.de/gentoo/ ftp://mirror.netcologne.de/gentoo/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de_1901 de_DE de en"
MAKEOPTS="-j11 -l4"
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 alsa arm bluetooth branding bzip2 cairo cec cli crypt dbus dri dts egl elogind encode exif fdk ffmpeg flac fortran gdbm gif gles1 gles2 gpm gtk gui hwaccel iconv ipv6 jpeg lcms libglvnd libnotify mad mng mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp opus pam pango pcre pdf png policykit pulseaudio qrcode qt5 raspberry-pi raspi readline sdl seccomp spell split-usr ssl startup-notification svg system-av1 system-cairo system-ffmpeg system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-png system-sqlite system-webp theora tiff truetype udev udisks unicode upower usb v4l v4l2 vorbis vpx webp widevine wxwidgets x264 x265 xattr xcb xml xv xvid zlib" ADA_TARGET="gnat_2020" 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_ARM="edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 v4 v5 v6 v7 thumb2" 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" L10N="de-1901 de en" 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="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="fbdev v3d vc4" 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, LEX, 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
