Stuttering 25fps video

I’m having a stuttering problem with a specific video. It is bad enough that it cannot be watched. The video itself I believe is fine, because I then casted it with my phone to the TV using PLEX and it was perfectly smooth. I remember having this problems a couple of times before, always with British (25fps) episodes. Almost all the episodes play perfectly, but every once in a while I get one that OSMC doesn’t handle well.
Are there any settings that I can play with?

EDIT: I noticed that for OSMC switches automatically to 50fps.

Sorry, I realized that I didn’t post this in the Vero4k section like I should have done. Maybe an admin can move this. Thanks!

It might be fixed with the latest improvements.

I’d appreciate it if you could test this and provide feedback before we potentially release this as an update to other users. To test this update:

  1. Login via the command line
  2. Edit the file /etc/apt/sources.list
  3. Add the following line: deb stretch-devel main
  4. Run the following commands to update: sudo apt-get update && sudo apt-get dist-upgrade && reboot
  5. Your system should have have received the update.

Please see if the issue is resolved.

I also recommend you edit /etc/apt/sources.list again and remove the line that you added after updating. This will return you to the normal update channel.

Hi Sam,
thanks! Unfortunately the problem is not solved, the stuttering is the same.
New set of logs, in case they’re helpful:

do you know why kodi switches to 50fps instead of 25fps?
to see the detected available modes I did:

   cat /sys/devices/virtual/amhdmitx/amhdmitx0/disp_cap

the mediainfo for the problem file is:

Format                                   : Matroska
Format version                           : Version 4 / Version 2
File size                                : 1.46 GiB
Duration                                 : 58 min 18 s
Overall bit rate                         : 3 578 kb/s
Writing application                      : Lavf57.71.100
Writing library                          : Lavf57.71.100
ErrorDetectionType                       : Per level 1

ID                                       : 2
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 58 min 18 s
Bit rate                                 : 3 314 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Original frame rate                      : 25.000 FPS
Standard                                 : Component
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : MBAFF
Scan type, store method                  : Interleaved fields
Scan order                               : Top Field First
Stream size                              : 1.35 GiB (93%)
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

ID                                       : 1
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Codec ID                                 : A_AC3
Duration                                 : 58 min 18 s
Bit rate mode                            : Constant
Bit rate                                 : 192 kb/s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 80.1 MiB (5%)
Language                                 : English
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No

I would have expected that the resolution would switch to 1080p25hz but instead it goes to 1080p50hz.


It looks like the source is 25i, so it’s being switched to 50p.

Thanks! I found a lot of posts on kodi forums about stuttering 25fps, some of them are several years old, but I couldn’t find a solution. Any suggestions on how to minimize the problem (apart from keeping plex ready to go when one of these files comes along)?

I have another file (same series, but episode of the following week), that is also 25fps interlaced and has no issues. I did a diff of the mediainfo and found only these differences:

bad file:

Frame rate mode                          : Variable
Original frame rate                      : 25.000 FPS

Good file:

Frame rate mode                          : Constant
Frame rate                               : 25.000 FPS
Bits/(Pixel*Frame)                       : 0.059

So one file (bad one) is variable refresh rate.

Do you have the Adjust Refresh Rate set to Start/Stop or Always?


I think that last update included some changes for refresh rate. Try setting it to Always and see what happens.

Thanks. That didn’t help. Maybe this file is just crappy. It is true that it played ok when casted through Plex, but yesterday I powered up my Shield and both Kodi Leia and Plex had stuttering.
Actually, in osmc, disabling refresh rate switching and enabling sync to display makes the playback almost acceptable, but not smooth by any means.
So I’m not going to worry about this and just write it off as a had quality video.