I have some serious frameskipping in some 4K files, which results in a very stuttering playback.
Here’s the mediainfo:
General
Unique ID : 181560397915929821937345350357778885631 (0x889742BDA2CE47849E8585F0739AEBFF)
Complete name :
Format : Matroska
Format version : Version 4 / Version 2
File size : 12.4 GiB
Duration : 52 min 9 s
Overall bit rate : 34.1 Mb/s
Encoded date : UTC 2017-04-11 15:28:30
Writing application : mkvmerge v9.6.0 (‘Slave To Your Mind’) 64bit
Writing library : libebml v1.3.4 + libmatroska v1.4.5
Group : ViSUM
Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Format settings, Endianness : Big
Codec ID : A_AC3
Duration : 52 min 9 s
Bit rate mode : Constant
Bit rate : 384 kb/s
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 spf)
Compression mode : Lossy
Stream size : 143 MiB (1%)
Language : English
Default : Yes
Forced : No
Text #1
ID : 3
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 43 min 26 s
Bit rate : 46 b/s
Count of elements : 414
Stream size : 14.7 KiB (0%)
Language : English
Default : No
Forced : No
Text #2
ID : 4
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 51 min 55 s
Bit rate : 45 b/s
Count of elements : 568
Stream size : 17.5 KiB (0%)
Title : SDH
Language : English
Default : No
Forced : No
General
Unique ID : 181170119153994717390550834488127255806 (0x884C18831DFA5CC183A3D7D77D53F4FE)
Complete name :
Format : Matroska
Format version : Version 4 / Version 2
File size : 16.4 GiB
Duration : 1 h 2 min
Overall bit rate : 37.4 Mb/s
Encoded date : UTC 2017-05-08 10:52:43
Writing application : mkvmerge v10.0.0 (‘To Drown In You’) 64bit
Writing library : libebml v1.3.4 + libmatroska v1.4.5
IsTruncated : Yes
Hi Tom, no dice I’m afraid, but thanks for the suggestion.
There is some progress though: It looks like the problem is caused by the “adjust display refresh rate” option in Kodi. When disabled the file plays almost flawlessly! But note - this is when I run the file with my default Kodi display settings which are 1920x1080 60hz.
If I change the display settings to 1920x1080 24hz and KEEP “adjust display refresh rate” disabled, the stuttering is back.
Shot in the dark here, have you tried 1920x1080 50hz and adjust rate set to always.
I know I just said lowering probably wouldn’t help, its just these are the settings I’m using and I’m having no problems with anything I throw at my 4k. Result will probably be no different, but experimenting may get us closer to the cause.
Also what are the rest of your settings #player, videos?
I looks like “Adjust display refresh rate” is doing what it should. The refresh rate gets changed, but THAT actually causes the problem: This file just wont play correctly at 24hz, even though its 24fps, and this is why the same thing happens when I turn off the refresh rate adjustment, and set the display to 24hz manually.
Strange!
Player and video settings are set to default values.
The wiki reports “This setting will force Kodi to use a cache for all video files, including local network, internet, and even the local hard drive” I maybe wrong, but I assuming this means the buffer mode can be set to 1; even for videos played back from a usb. Also there is a read factor setting, which should help with the frame skipping.
I would try these settings and see if there is any improvement for the the 4k movies:
<advancedsettings>
<cache>
<memorysize>62914560</memorysize> <!-- number of bytes used for buffering streams in memory
When set to 0 the cache will be written to disk instead of RAM -->
<buffermode>1</buffermode>
<readfactor>6.0</readfactor>
</cache>
</advancedsettings>
Again: frameskipping doesn’t occur when “Adjust display refresh rate” is disabled and display is 60hz. But that’s of course not perfect either for 24fps files…
I know you advised that player and video settings are set to default, could you please just clarify what those are; as I’m away from my vk at the moment.
Also your audio settings, may shed some light aswell.