Sorry, I have translated this text with Google ...
After testing various settings to create and install an executable version on a Rpi4 2GB, I have good ones
Experiences made with following settings:
1. With the used version inputstream.adaptive.so.19.0.1 I checked https://github.com/kodi-pvr/pvr.iptvsimple/issues/294 HTTP2 disabled. Maybe at some point that won't be necessary anymore. So the "401" Errors are gone.
/storage/.kodi/userdata/advancedsettings.xml:
2. Since I had WiFi problems, I asked https://raspberrypi.stackexchange.com/questions/9660…e-off-permanent
set the powersave mode to OFF. With the Pi4, due to the described interactions between HDMI and WLAN masking the HDMI ports with copper foil (snail tape) is recommended. That has both increased reception and stability.
3. Following the notice at https://forum.kodi.tv/showthread.php?tid=343068 I have the DRM-PRIME decoding under Settings - Player completely deactivated (software and hardware). There I also switched the prime reender mode to EGL, since direct DMA use was also problematic. Also a general increase in memory split in /flash/config.txt to 256 MB brought no improvement.
4. The number of video buffers (default 3) under Settings - System - Video I reduced it to 2. All attempts to use 3 always have a short time to abort. It didn't matter whether with or without DRM-PRIME.
5. Since I'm using an openvpn connection and using the inputstream addon and AES-128-GCM problems, I adjusted the openvpn-config for Kodi 19.04 on AES-256-GCM (I removed the remote line):
client
dev tun
proto udp
auth-user-pass #PATH/pass.txt
resolv retry infinite
redirect-gateway def1
persist key
persist-tun
nobind
cipher AES-256-GCM
ncp-disable
auth SHA256
ping 5
ping exit 60
ping-timer-rem
explicit-exit-notify 2
script-security 2
remote-cert-tls server
route delay 5
verb 4
mssfix
ca #PATH/ca.crt
cert #PATH/client.crt
key #PATH/client.key
Display More
for Kodi 20 Nexus Trial (Used: LibreELEC-RPi2.arm-11.0-nightly-20220727-fcc8f2f.img.gz) you can also use CHACHA20-POLY1305 for the data-channel, which means less work for the Pi despite AES-NEON (https://forums.raspberrypi.com/viewtopic.php?t=317075):
client
dev tun
proto udp
auth-user-pass #PATH/pass.txt
resolv retry infinite
redirect-gateway def1
persist key
persist-tun
nobind
cipher AES-256-GCM
#ncp-disable
auth SHA256
ping 5
ping exit 60
ping-timer-rem
explicit-exit-notify 2
script-security 2
remote-cert-tls server
route delay 5
verb 4
mssfix
data-ciphers CHACHA20-POLY1305
data-ciphers-fallback AES-256-GCM
ca #PATH/ca.crt
cert #PATH/client.crt
key #PATH/client.key
Display More
6. The Pi temperature is quickly around 70° C when the case is open. https://en.linuxteaching.com/article/raspberry_pi_throttling The Kodi 19.04 version is currently running stabey, the Nexus test version at least more stable than without the adjustments.
I added the openvpn option mssfix to fix problems with the packet size with DSL connections.
(Default value of 1450 allows IPv4 packets to be transmitted over a link with MTU 1473 or higher without IP level fragmentation)
Maybe this experience will be useful for someone.