Forum

Full Version: Stutter while playing music
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Software
XBian version: STABLE - XBIAN 20150304-2
XBMC/Kodi version: Kodi 14.2 RC1
Overclock settings: XBian defaults (840 MHz)

Hardware
Device type and model (e.g. Raspberry Pi Model A/B 256/512 MB, CuBox-i i4Pro, ...): RPi Model B 512 MB
Power supply rating: Nokia Phone power supply 1.3 A
SD card size and make/type: Sandisk Ultra 8 GB Class 10 (SD Card)
Network (Ethernet or wireless): Ethernet 100 MB (My Ethernet switch can provide speed up to 1 GBps)
Connected devices (TV, USB, network storage, ...): NAS Synology DS213J over NFS - TV Samsung (HDMI)

My XBian /etc/fstab
Terminal
192.168.0.10:/volume1/music /media/nfs-music nfs udp,noatime,rsize=32768,wsize=32768,nolock,nfsvers=3 0 0
192.168.0.10:/volume1/video/films /media/nfs-films nfs udp,noatime,rsize=32768,wsize=32768,nolock,nfsvers=3 0 0
192.168.0.10:/volume1/video/series /media/nfs-series nfs udp,noatime,rsize=32768,wsize=32768,nolock,nfsvers=3 0 0
none /run/lock tmpfs noauto 0 0
none /run/shm tmpfs noauto 0 0
none /run/user tmpfs noauto 0 0
# UNCONFIGURED FSTAB FOR BASE SYSTEM
/dev/root /home xbian subvol=home/@,noatime,nobootwait 0 0
/dev/root /lib/modules xbian subvol=modules/@,noatime,nobootwait 0 0
/dev/root / xbian noatime,nobootwait 0 0
/dev/mmcblk0p1 /boot xbian rw,nobootwait 0 1

#######

Hi,
I noticed that I can hear stutter while playing music (FLAC or MP3) during 1 or 2 seconds max. It seems to be random while songs are playing.
I found in the log file that each time I hear stutter, the following line appears
Terminal
14:42:46 T:3024557072 NOTICE: CAESinkPi:AddPackets Underrun (delay:0.00 frames:2205)
14:45:30 T:2883580944 NOTICE: Previous line repeats 56 times.

If the screen saver is lauched (after 3 minutes without human activity), the line appears too
Terminal
14:45:30 T:2883580944 NOTICE: XBian : on saver
14:45:30 T:3024557072 NOTICE: CAESinkPi:AddPackets Underrun (delay:0.00 frames:2205)

I tried to change values of NFS mount share without success (like rsize and wsize).
I totally deleted .kodi directory, and the system created a new one. No data has been restored from previous to check if the problem was into the profile: no success

Thank you for your help.

Eruurk
Perhaps turn off/on caching, depending on your current setting.
(29th Mar, 2015 02:26 AM)f1vefour Wrote: [ -> ]Perhaps turn off/on caching, depending on your current setting.

Thanks for your reply, but which caching option are you talking about?
NFS and/or Kodi?

My NFS share are set read-only on NAS side. I added "ro" in each line, but it didn't change anything.
(30th Mar, 2015 07:06 PM)Fabio72 Wrote: [ -> ]http://kodi.wiki/view/HOW-TO:Modify_the_video_cache
try set buffermode to 1

Thanks, I will check and give you the results here Blush
(30th Mar, 2015 07:06 PM)Fabio72 Wrote: [ -> ]http://kodi.wiki/view/HOW-TO:Modify_the_video_cache
try set buffermode to 1

Fabio72, I tried this but it take ages when I am playing a video Sad
It seems to works for music, but it still stutter at the end of each music track (maybe LastFM plugin when it scrobbles).
I would try commenting out the FSTAB entries and add the music via XBMC/KODI Add Music..

Then ssh into your NAS and check "top" to make sure it's not your NAS causing the delay.

I've seen something like this before and it was the NAS causing the delay but I only saw it with movies, not music.

Post the output of dmesg, vmstat 5 50 and kodi.log via pastebin and the output of vmstat 5 50 on the NAS when your playing a music track that gives problems.

I would also look at disabling any addons you may have as these "could" cause an issue.
(3rd Apr, 2015 01:23 AM)IriDium Wrote: [ -> ]I would try commenting out the FSTAB entries and add the music via XBMC/KODI Add Music..

Then ssh into your NAS and check "top" to make sure it's not your NAS causing the delay.

I've seen something like this before and it was the NAS causing the delay but I only saw it with movies, not music.

Post the output of dmesg, vmstat 5 50 and kodi.log via pastebin and the output of vmstat 5 50 on the NAS when your playing a music track that gives problems.

I would also look at disabling any addons you may have as these "could" cause an issue.
I did your advices for "movies", "tv shows" and "music" libraries.
It seems the faulty component is "Last.FM plugin" because it just stutter at the end (last 2-3 seconds) of the track, when scrobble is sent to the Last.FM server.
Thank you IrDium Wink
Reference URL's