I bought a PI2 to use it as a media streaming device for my TV. I've been fiddling around with it since the begging of summer and have been unable to set it up exactly as I want.
The (main) problem I'm currently facing is video stuttering while streaming (using KODI). It doesn't exactly stutter, the sound stops and video is slowed down. It' doesn't show a buffering message, and pausing to let it buffer doesn't help. It only happens when playing HD video.
Here's my setup and the troubleshooting I did: My pc is running linux and is connected to my wi-fi router (Asus rt-n12e) via ethernet. On the pc I have a ntfs drive that's shared using SMB (I'm planing to switch to NFS). My PI2 is in the other room, and it's connected to the home network using a wi-fi adaptor (Asus n10 nano). The PI is powered by a 2A tablet charger (this is like the 4th one I tried). Also I have a powered USB hard disk connected to the PI, but removing it doesn't help. I'm running Raspbian Jessie with 4.1.13-v7+ kernel, installed on a 32GB SanDisk Ultra sd card. I have 320MB RAM allocated for the GPU, and am running at 900MHz. KODI version is 15.1.
The most probable culprit for the problem I'm facing would be the wi-fi connection. When I test the network connection (using iperf) i get 70Mb/s down and 40Mb/s up (average over 100s). But tonight I was watching a 107min long 4.3GB mp4, which is ~6Mb/s and the issue occurred. I was monitoring the network usage at the time and it was around 8Mb/s pretty much constantly, before, during and after the stutter. Both the PC and PI were not under serious load at the time. Additionally when I returned to the "problematic" bit of the movie after finishing it, everything was fine...
Do you guys have any ideas what could be causing my issue? Thanks!