Video block only on certain files

Hi, I have a problem with kodi when I play certain video files. I have Kodi 17 on a raspberry pi3 and osmc 17 on a pi zero, on the pi3 the video stop playing for 2-3 seconds about 5-6 times during the episode. On the pi zero I’m not really able to watch it because the video stops every second.
In my advanced settings I have already set the buffering options:

Code:
<network>
  <buffermode>1</buffermode>
  <cachemembuffersize>52428800</cachemembuffersize>
  <readbufferfactor>2.0</readbufferfactor>
</network>

It only happens with a tv show episodes, I’ve tried two seasons and every video has this problem. Here’s the mediainfo

Code:
Format                                   : AVI
Format/Info                              : Audio Video Interleave
File size                                : 192 MiB
Duration                                 : 20mn 11s
Overall bit rate                         : 1 326 Kbps

Video
ID                                       : 0
Format                                   : MPEG-4 Visual
Format profile                           : Advanced Simple@L5
Format settings, BVOP                    : No
Format settings, QPel                    : No
Format settings, GMC                     : No warppoints
Format settings, Matrix                  : Default (H.263)
Codec ID                                 : XVID
Codec ID/Hint                            : XviD
Duration                                 : 20mn 11s
Bit rate                                 : 1 190 Kbps
Width                                    : 1 024 pixels
Height                                   : 576 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.081
Stream size                              : 172 MiB (90%)
Writing library                          : XviD 62

Audio
ID                                       : 1
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 3
Codec ID                                 : 55
Codec ID/Hint                            : MP3
Duration                                 : 20mn 11s
Bit rate mode                            : Constant
Bit rate                                 : 128 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Stream size                              : 18.5 MiB (10%)
Alignment                                : Split accross interleaves
Interleave, duration                     : 80 ms (2.00 video frames)