2018-08-02, 23:08
<Check the EDIT below please>
Hey guys,
i hope i am in the right forum-scetion here. I have a problem and I am running out of ideas.
Since four days now I am trying different *.img files, from LibreElec, OSMC, Raspian StretchLite to Frankenmatic.
But apart from the Frankenmatic one, i have always tiny amounts of lags / stuttering while watching a movies.
I really do not understand why Frankenmatic - which is the biggest IMG file from all tested - runs smooth because it does always load it's deskop too before / while launching kodi.
The other IMG files are way smaller and only load into termial or directly into kodi and are less heavy at all, but still not lag free, while Frankematic runs really smooth.
I want to achieve a smooth playback using the rapsbian strech lite img because i want to be able to install even more software on top of kodi. Nextcloud would be another goal, to be able to synchronize calendar and contact-data from my android phone. But first I have to get rid of the lag in kodi to do so.
The main difference I see between Raspbian and Frankenmatic is the Kernel build, and the number of running and sleeping processes.
Raspbian:
Frankenmatic:
I am asking myself how it is possible to have 173 processes, but only 1 running - which is kodi - and to have 172 sleeping.
My setup is always as follows:
EDIT: I have been able to fix the stuttering videos. Unfortunately my audiofiles (from mp3 over flac to wav) are stuttering:
I have fixed the stuttering when playing video in Raspbian by switching the hardware acceleration option from MMAL to OMXPlayer.
Unfortunately i have stuttering when playing audiofiles from my music library check https://forum.kodi.tv/showthread.php?tid=334464
Hey guys,
i hope i am in the right forum-scetion here. I have a problem and I am running out of ideas.
Since four days now I am trying different *.img files, from LibreElec, OSMC, Raspian StretchLite to Frankenmatic.
But apart from the Frankenmatic one, i have always tiny amounts of lags / stuttering while watching a movies.
I really do not understand why Frankenmatic - which is the biggest IMG file from all tested - runs smooth because it does always load it's deskop too before / while launching kodi.
The other IMG files are way smaller and only load into termial or directly into kodi and are less heavy at all, but still not lag free, while Frankematic runs really smooth.
I want to achieve a smooth playback using the rapsbian strech lite img because i want to be able to install even more software on top of kodi. Nextcloud would be another goal, to be able to synchronize calendar and contact-data from my android phone. But first I have to get rid of the lag in kodi to do so.
The main difference I see between Raspbian and Frankenmatic is the Kernel build, and the number of running and sleeping processes.
Raspbian:
Code:
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.14.52-v7+ #1123 SMP Wed Jun 27 17:35:49 BST 2018 armv7l GNU/Linux
pi@raspberrypi:~ $ top
Tasks: 101 total, 1 running, 58 sleeping, 0 stopped, 0 zombie
%Cpu(s): 1,2 us, 0,5 sy, 0,0 ni, 98,3 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st
Frankenmatic:
Code:
pi@frankenmatic:~ $ uname -a
Linux frankenmatic 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux
pi@frankenmatic:~ $ top
Tasks: 173 total, 1 running, 172 sleeping, 0 stopped, 0 zombie
%Cpu(s): 2.1 us, 1.1 sy, 0.0 ni, 96.0 id, 0.8 wa, 0.0 hi, 0.0 si, 0.0 st
I am asking myself how it is possible to have 173 processes, but only 1 running - which is kodi - and to have 172 sleeping.
My setup is always as follows:
- dd img to sdcard
- Startup Pi
- When possible I run raspi-config and turn on SSH, turn off VNC, setup Language/Keyboard, Set GPU mem to 256, Expand Filesystem and set Wait for Network at Boot to NO
- Reboot
- Then, Code:
apt-get update && apt-get -y dist-upgrade && reboot
- Add the MPG2 key and WVC1 key to config.txt
- Next: Code:
apt-get -y install openvpn sshfs rng-tools bmon iotop htop kodi
- create advancedsettings.xml in .kodi/userdata/ with
Code:
<advancedsettings>
<cache>
<buffermode>1</buffermode>
<memorysize>69206016</memorysize>
<readfactor>40</readfactor>
</cache>
</advancedsettings>
- In general I turn off Swap - but makes no difference
- start an openvpn connection to my home-server with:
Code:
client
dev tun
proto udp
port 1094
remote hostname.com
ca /etc/openvpn/pi3-transparent/ca.crt
cert /etc/openvpn/pi3-transparent/pi3-transparent.crt
key /etc/openvpn/pi3-transparent/pi3-transparent.key
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
verb 2
cipher AES-256-CBC
#cipher none
#mtu-test
fragment 1440
mssfix 1440
- start sshfs with:
Code:
fs -p 2202 [email protected]:/home/alex/Filme-HDD/ /home/pi/media-fs/filme/ -o IdentityFile=/home/pi/.ssh/id_rsa,reconnect,Ciphers=arcfour,max_write=1024
EDIT: I have been able to fix the stuttering videos. Unfortunately my audiofiles (from mp3 over flac to wav) are stuttering:
I have fixed the stuttering when playing video in Raspbian by switching the hardware acceleration option from MMAL to OMXPlayer.
Unfortunately i have stuttering when playing audiofiles from my music library check https://forum.kodi.tv/showthread.php?tid=334464