1080P 25/50 fps plays jerky Vero V

I am currently watching the series “Fool me once” and it plays jerky, as if it skips a frame or whatever it is. It plays smooth on my LG TV through the Plex app, so it has to be either Kodi or OSMC or the combination.
I played the file directly from storage on the Vero V to take away any other influences and it shows like that as well, so it isn’t an add-on issue either.
The TV shows that it is receiving 1080p/50Hz

Here the mediainfo info:

General
Unique ID                                : 76581706439202576104054804643743867683 (0x399D19A43D6FBB12014C7D22C5052323)
Complete name                            : Fool.Me.Once.S01E03.1080p.WEB.H264-SuccessfulCrab.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 1.57 GiB
Duration                                 : 40 min 50 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 5 500 kb/s
Frame rate                               : 25.000 FPS
Writing application                      : mkvmerge v77.0 ('Elemental') 64-bit
Writing library                          : libebml v1.4.4 + libmatroska v1.7.1 / Lavf58.45.100

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L4
Format settings                          : CABAC / 3 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 3 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 40 min 50 s
Bit rate mode                            : Variable
Bit rate                                 : 4 622 kb/s
Nominal bit rate                         : 5 000 kb/s
Maximum bit rate                         : 7 500 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 FPS
Original frame rate                      : 50.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.089
Stream size                              : 1.32 GiB (84%)
Writing library                          : x264 core 148 r2727 7d026e8
Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x1:0x111 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / stitchable=1 / constrained_intra=0 / bframes=2 / b_pyramid=0 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=126 / scenecut=0 / intra_refresh=0 / rc_lookahead=50 / rc=2pass / mbtree=1 / bitrate=5000 / ratetol=1.0 / qcomp=0.50 / qpmin=6 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=7500 / vbv_bufsize=10000 / nal_hrd=vbr / filler=0 / ip_ratio=1.40 / aq=1:1.00
Default                                  : Yes
Forced                                   : No

Audio
ID                                       : 2
Format                                   : E-AC-3 JOC
Format/Info                              : Enhanced AC-3 with Joint Object Coding
Commercial name                          : Dolby Digital Plus with Dolby Atmos
Codec ID                                 : A_EAC3
Duration                                 : 40 min 50 s
Bit rate mode                            : Constant
Bit rate                                 : 768 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 224 MiB (14%)
Language                                 : English
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No
Complexity index                         : 16
Number of dynamic objects                : 15
Bed channel count                        : 1 channel
Bed channel configuration                : LFE

Text #1
ID                                       : 3
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : English [SDH]
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
Title                                    : Arabic
Language                                 : Arabic
Default                                  : No
Forced                                   : No

Text #3
ID                                       : 5
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Basque
Language                                 : Basque
Default                                  : No
Forced                                   : No

Text #4
ID                                       : 6
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Catalan
Language                                 : Catalan
Default                                  : No
Forced                                   : No

Text #5
ID                                       : 7
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Chinese Simplified
Language                                 : Chinese
Default                                  : No
Forced                                   : No

Text #6
ID                                       : 8
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Chinese Traditional
Language                                 : Chinese
Default                                  : No
Forced                                   : No

Text #7
ID                                       : 9
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Croatian
Language                                 : Croatian
Default                                  : No
Forced                                   : No

Text #8
ID                                       : 10
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Czech
Language                                 : Czech
Default                                  : No
Forced                                   : No

Text #9
ID                                       : 11
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Danish
Language                                 : Danish
Default                                  : No
Forced                                   : No

Text #10
ID                                       : 12
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Dutch
Language                                 : Dutch
Default                                  : No
Forced                                   : No

Text #11
ID                                       : 13
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : European Spanish
Language                                 : Spanish
Default                                  : No
Forced                                   : No

Text #12
ID                                       : 14
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : European Spanish [SDH]
Language                                 : Spanish
Default                                  : No
Forced                                   : No

Text #13
ID                                       : 15
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Filipino
Language                                 : Filipino
Default                                  : No
Forced                                   : No

Text #14
ID                                       : 16
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Finnish
Language                                 : Finnish
Default                                  : No
Forced                                   : No

Text #15
ID                                       : 17
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : French
Language                                 : French
Default                                  : No
Forced                                   : No

Text #16
ID                                       : 18
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : French [SDH]
Language                                 : French
Default                                  : No
Forced                                   : No

Text #17
ID                                       : 19
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Galician
Language                                 : Galician
Default                                  : No
Forced                                   : No

Text #18
ID                                       : 20
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : German
Language                                 : German
Default                                  : No
Forced                                   : No

Text #19
ID                                       : 21
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : German [SDH]
Language                                 : German
Default                                  : No
Forced                                   : No

Text #20
ID                                       : 22
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Greek
Language                                 : Greek
Default                                  : No
Forced                                   : No

Text #21
ID                                       : 23
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Hebrew
Language                                 : Hebrew
Default                                  : No
Forced                                   : No

Text #22
ID                                       : 24
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Hungarian
Language                                 : Hungarian
Default                                  : No
Forced                                   : No

Text #23
ID                                       : 25
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Indonesian
Language                                 : Indonesian
Default                                  : No
Forced                                   : No

Text #24
ID                                       : 26
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Italian
Language                                 : Italian
Default                                  : No
Forced                                   : No

Text #25
ID                                       : 27
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Japanese
Language                                 : Japanese
Default                                  : No
Forced                                   : No

Text #26
ID                                       : 28
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Korean
Language                                 : Korean
Default                                  : No
Forced                                   : No

Text #27
ID                                       : 29
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Malay
Language                                 : Malay
Default                                  : No
Forced                                   : No

Text #28
ID                                       : 30
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Norwegian Bokmål
Language                                 : Norwegian Bokmal
Default                                  : No
Forced                                   : No

Text #29
ID                                       : 31
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Polish
Language                                 : Polish
Default                                  : No
Forced                                   : No

Text #30
ID                                       : 32
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Portuguese
Language                                 : Portuguese
Default                                  : No
Forced                                   : No

Text #31
ID                                       : 33
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Portuguese Brazilian
Language                                 : Portuguese
Default                                  : No
Forced                                   : No

Text #32
ID                                       : 34
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Romanian
Language                                 : Romanian
Default                                  : No
Forced                                   : No

Text #33
ID                                       : 35
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Russian
Language                                 : Russian
Default                                  : No
Forced                                   : No

Text #34
ID                                       : 36
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Spanish
Language                                 : Spanish
Default                                  : No
Forced                                   : No

Text #35
ID                                       : 37
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Swedish
Language                                 : Swedish
Default                                  : No
Forced                                   : No

Text #36
ID                                       : 38
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Thai
Language                                 : Thai
Default                                  : No
Forced                                   : No

Text #37
ID                                       : 39
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Turkish
Language                                 : Turkish
Default                                  : No
Forced                                   : No

Text #38
ID                                       : 40
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Ukrainian
Language                                 : Ukrainian
Default                                  : No
Forced                                   : No

Text #39
ID                                       : 41
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Vietnamese
Language                                 : Vietnamese
Default                                  : No
Forced                                   : No

I also downloaded a different version of it, Ethel’s, and it has the same “issue”. It does the same thing on my LG TV when I connect the Vero V to that. So it isn’t the TV mode or anything.

If you need a snippet of the file, how can I best do so?

I’m not an OSMC person, just another end-user, but I can make a suggestion about that: you could try using WeTransfer.com for files up to 2GB.

Out of curiosity, if you whitelist all available resolutions and then, during playback, manually switch the output mode to 1080p/25Hz (instead of 1080p/50Hz) does it then play smoothly?

Thanks for the suggestions! Will try the output mode before I will upload anything.

How do you whitelist resolutions btw?

I once wrote a guide to the whitelist feature; you can find it here: [HowTo] Guide to the Kodi whitelist function and related settings

1 Like

Thanks for the effort you put into that guide! It did solve my issue indeed.

But now I am wondering, why didn’t it work in the first place? Probably more a question towards Sam.
1080p25Hz isn’t that strange of a resolution to not put it out as is, or is it?

What I had to do on top of the whitelisting, is disable the “Allow double refresh rates” setting, as you described in your guide onder the point 20 and towards Pi users. When I left that setting to “on”, I still had the jerky display and my TV showed it as 1080p50Hz, after disabling it (which makes sens of course, but just trying to be thorough in my information), it showed as 1080p25Hz and played smooth again.

@sam_nazarko Is this a bug, intended or something else?

Disabling the “Allow double refresh rates” option, as of right now, will cause problems if you watch 1080i/50 material (as opposed to 1080p/25). If you never watch 1080i stuff then disabling that option is fine; but if you do then I suggest keeping it enabled and manually switching to 1080p/25Hz output during playback.

All this stuff has been the cause of considerable discussion between me and @grahamh in the past, and he has said once or twice that he intends to eventually change the whitelist logic so that videos like yours default to 1080p/25Hz; but there always seems to be something more urgent to work on.

1 Like

Flattery will get you nowhere.

1 Like

So, the issue is that there is no perfect solution around all the formats that can be fed/put out to the TV. Too bad, I would think it shouldn’t be too hard to put a script behind this.

You gave them the info that will work for 99% of the people. Though I get that there is a backlog and this is probably an issue that doesn’t happen too often, but if it does, the best way to solve it is to inquire about it for 99% of the people too, as this isn’t a clear issue/solution to get to on one’s own merits.

But glad I got it sorted and am watching this pretty interesting show smoothly now :wink:

Unfortunately, it is hard. It would be wrong to think this is solvable with a simple whitelist algo change. The problem is there are many different types of ‘interlacing’ and lots of video that lies about whether it is ‘interlaced’ or truly progressive. The situation is also different depending on the codec of the video. It’s therefore very hard/impossible to find out from the first few frames what would be the best framerate to play at. You probably know already that Kodi doesn’t rely on the stream header to set up the video but uses ffmpeg to read some frames and make a guess how best to play it.

But other media players manage this, don’t they? Yes but that’s probably with a lot more power in their GPU so they don’t have to pick the ideal framerate and can manage smooth playback with a setup that’s sub-optimal.

The problem is also closely tied up with the recent work that’s gone into getting Kodi and the AMLogic kernel working better together to avoid lipsync issues and stuttering from other causes. The team hasn’t been sitting on its hands.

We may eventually find the silver bullet. Meanwhile, selecting the best refreshrate manually provides a solution.

Figuring out why the box can’t output a 25fps video at 50Hz by simply showing each frame twice would be the perfect solution. :slight_smile:

Yeah, as a user you always think things are easy to fix, while in reality it couldn’t be more difficult.

Glad I got a solution, but as angry.sardine brought up, isn’t it fixable in this instance? It seems the doubling is not working as intended.
Or is that an issue caused by the limitations of the GPU/CPU as well?

It’s a matter of communication between Kodi and the kernel so that they run in lockstep. They seem to have different ideas about what is a field and what is a frame. If you really want to know the detail, @tanio99 is your man.

Interlaced playback is that kind of things that I will never really understand :frowning: . What I’ve experienced while I was working on the AV sync issue is, that some clips that say they’re 1080p25 have also interlaced flags set that are also shown by tools like mediainfo. And, to make things worse, even if the container metadata says that it’s progressive, the data stored in the frames say they’re interlaced.

What those clips have in common is, that they play fine at 50 fps and jerky at 25 fps. But in your case here it seems the other way round?

Can you provide me a short clip (about 1 min) that can be used to reproduce that issue?

I will do that later today, thanks for looking into that.
It isn’t an interlaced video by the way, it is a progressive video. 1080p25 shouldn’t be interlaced as far as I know, as the p stands for progressive, but might be doing too many assumptions here.

That’s what mediainfo says, but it also says Original framerate 50, suggesting it started out as interlaced and has been mangled somehow. Please make sure you clip without messing with the metadata.

That is what YOU think, but your mediainfo contains the following lines and that makes me doubt:

What tool is best to make a clip, without messing with the metadata?

On Vero or any other linux system

dd count=80k if=Fool.Me.Once.S01E03.1080p.WEB.H264-SuccessfulCrab.mkv of=FoolMeClip.mkv

will make a clip 40MB which should be about 1 minute if I’ve got the maths right.

1 Like

With mkv’s you can use MKVToolNix GUI. You can drag a file into it and click in the output tab and use the splitting options to chop it into parts based on size or timestamps. It is a handy tool to have around generally to make tweaks to video files.

1 Like

Here is a snippet of it:
https://file.io/P0lOR5Px05yS