Raspi3: High bitrate .mkv files freezing

It only seems to happen on the 1080p and 720 high bitrate files. The rest never gives problems.


The file plays well, CPU-KODI is under 30% (or so) and suddenly the movie freezes.

I use SMB now but i did try it via NFS and exactly the same happens.

I tried adjusting buffer/ turning of the hardware rendering options but no difference.

Ill add the Media info output under here, hope this is ok, hope you see something because i have ran out of options

Unique ID : 198745317271589993566312564830671682513 (0x9584F4AE42C7A44C94F442879C2F3BD1)
Complete name : Audition.1999.720p\Audition.1999.720p.mkv
Format : Matroska
Format version : Version 2
File size : 6.56 GiB
Duration : 1 h 55 min
Overall bit rate : 8 123 kb/s
Encoded date : UTC 2009-09-30 21:51:20
Writing application : mkvmerge v2.9.8 (‘C’est le bon’) built on Aug 13 2009 12:49:06
Writing library : libebml v0.7.7 + libmatroska v0.8.1

ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, RefFrames : 5 frames
Duration : 1 h 55 min
Bit rate : 6 613 kb/s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.299
Stream size : 5.21 GiB (79%)
Writing library : x264 core 75 r1259 dd026f2
Encoding settings : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=7 / psy=1 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=6 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=6613 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Language : Japanese
Default : Yes
Forced : No

ID : 2
Format : DTS
Format/Info : Digital Theater Systems
Mode : 16
Format settings, Endianness : Big
Codec ID : A_DTS
Duration : 1 h 55 min
Bit rate mode : Constant
Bit rate : 1 509 kb/s
Channel(s) : 5 channels
Channel positions : Front: L C R, Side: L R
Sampling rate : 48.0 kHz
Frame rate : 93.750 FPS (512 SPF)
Bit depth : 24 bits
Compression mode : Lossy
Stream size : 1.22 GiB (19%)
Language : Japanese
Default : Yes
Forced : No

ID : 3
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Language : English
Default : Yes
Forced : No

Do they play without issue from a USB drive connected directly to the pi?

Hi, yes is does play from USB.

My set up is a WDMyCloudEX2 NAS connected to the router. The name of the router is given by the provider and is commonly known as “Horizon” box.

I just finished a test, clean install with NFS. Freezes more or less the same as SMB, maybe even worse

. The log is here:



You should consider adjusting the video cache:


Thanks Tom.

Hi, I manually edited the advancedsettings.xml (home/osmc/.kodi.userdata/) with your settings.

The movie is now playing different, a little better(longer), it does not freeze/ crash immediately but stops and buffers (round count down ) and you can see it wants to ‘go’ the end result is the same : A big freeze that lasts a minute or little more and then comes back into the menu.

Only after this i know how to save a log so those are my findings for the moment.

Log here under:


The log above showed some error concearning the advancedsettings.xml file.

I made another log that, as far as ia can see does not have the error and is maybe more useful. Different movie file but same freeze. Its always the high bitrate ones:


Hi there,

Unfortunately we’ve had to remove your thread from public viewing because it mentions a pirate addon, repository or website. We cannot provide any support for piracy. You should seek support from the developer of the addon or provider of the repo.

To get a better idea of our piracy policy, please see this link here FAQ - OSMC Forums You are welcome to edit your post and request for it to be re-listed at anytime.

Thank you for your understanding

I manually edited the advancedsettings file and made some logs:



On Tom’s advice i raised the readbuffer to 5. Too bad but stil it freezed, i wish it wasnt , log here under:


Can you remove the reference to software which only exists to enable piracy?

Hi, removed the reference

pirate reference removed by op


Have you considered mounting the share via fstab, as these shares tend to have better throughput.

Thanks Tom.

Hi, i did at the time but it seemed to much hassle then.

I need to be root first and then edit the fstab file in /etc

Is there anymore to it then that ?


sudo nano /etc/fstab


Sorry for off topic! I just wanted to say Very good movie you are trying to watch Takashi Miike is a beast and definitely one of my favorite Asian movie Directors!

Just some advice Don’t watch this movie with a girlfriend unless you know for certain that she’ll enjoy it :wink:


So i been looking into how to edit my shares in fstab. Since im not sure id like to post my share string and the way i think it should be edited in fstab. Could you look for me if this is correct.

I deceided to do the NFS share variant, i hope you can give me some advice on this since i feel its probably not completely correcnt but i cant really verify this.

My shares:


mkdir –p /mnt/NIEUW
mkdir –p /mnt/MORE.MOVIES
mkdir –p /mnt/FILMS.OLD

Then create a smb credential on your osmc home
nano /home/osmc/.smbcredentials

With these entries:

Finally in /etc/fstab
nfs:// cifs credentials=/home/osmc/.smbcredentials,x-systemd.automount,noauto,iocharset=utf8,sec=ntlm 0 0

nfs:// cifs credentials=/home/osmc/.smbcredentials,x-systemd.automount,noauto,iocharset=utf8,sec=ntlm 0 0

nfs:// cifs credentials=/home/osmc/.smbcredentials,x-systemd.automount,noauto,iocharset=utf8,sec=ntlm 0 0

Its probably this format, since i am mounting the NFS from within OSMC now and this it what i get to see when browsing for it:

nfs:// cifs credentials=/home/osmc/.smbcredentials,x-systemd.automount,noauto,iocharset=utf8,sec=ntlm 0 0