Hello! I am experiencing similar issues as the OP and get extremely stuttery video on certain files. I've tried with and without the advancedsettings.xml and played with the numbers then rebooted. I had no luck. I find it interesting that my $30 android phone running mxplayer is a lot better than the pi 2 at decoding files that I access on a remote server. This somewhat eliminates any possible networking issues. This leaves the differences in how each devices handles the files.
MX Player is able to give hardware acceleration with zero stutter. On the same files Kodi slowly chokes with cache full/buffering issues over the same network. Here is an example file media info in case someone can figure out why its stuttery. I can play a lot of other files perfectly fine with Kodi but far too many others just choke a slow death until I get too frustrated.
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 350 MiB
Duration : 15mn 38s
Overall bit rate : 3 131 Kbps
Writing application : Lavf53.6.0
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile :
[email protected]
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 15mn 38s
Bit rate : 3 000 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 30.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.109
Stream size : 335 MiB (96%)
Writing library : x264 core 116
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=0 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=abr / mbtree=1 / bitrate=3000 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Language : English
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 15mn 38s
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 KHz
Compression mode : Lossy
Stream size : 14.3 MiB (4%)
Language : English
Hopefully the Kodi team can sort out how its decoding differently than apps like MX Player which imo plays everything I throw at it while Kodi struggles. I think being able to choose which decoder to use for individual files may help similar to how MX Player allows different SW/HW decoding for each file. I can't really tell what Kodi is doing and even less sure if its using hardware decoding at all. The phone has same amount of RAM as the Pi so I think it's coming down to how they both handle remote files (home internet to server). I hope this gets looked into further and really is just an easy bug that can be fixed.