Kodi Community Forum

Full Version: Not able to get smooth playback on 23.976 and 59.94 fps content
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When playing 23.769 content at the proper refresh rate in Kodi (Adjust Display Refresh Rate is ON, Sync Playback to Display is OFF) on my RPi3 I notice a stutter every ~40 seconds. The OSD never showed skipped or dropped frames though. The OSD of the TV shows 1080p24.
I did some high speed video testing recently and captured the problem while playing the "FPS_test_1080p23.976_L4.1.mkv" test file.
Turns out at a certain moment one frame gets shown twice. You can see the problem here. Playback at 0.5 speed makes it even easier to notice (excuse the shitty quality and hand held camera): https://youtu.be/4Qe0mjmgy7o
Frame 751 gets shown twice.

The issue also occurs when playing 59.94 fps files at refresh rate 59.94 Hz. The stutter is every 16-17 seconds which means every 1000 or 1001 frames.
Playing a 60 fps file at 60 Hz seems to be fine. When I switch between 60 and 59.94 Hz my TV acts as if it changes the refresh rates (goes black for 2-3 seconds) so I suspect it does indeed change the refresh rate to 59.94 Hz.
I captured it here in a slow motion video: https://youtu.be/3ViNx1Lv6cM (best viewed at 0.5 speed). Frame 9299 (right bottom corner) is displayed twice.

The EDID of the TV is shown here: https://pastebin.com/gTWxsqFb)
The TV is a model from 2014 (it's a Philips 48PFS8159/12), so I would suspect it should have at least proper 59.94 fps support if not 23.976 as well.

Is there any indication why neither 59.94 nor 23.976 work like they should? This is really driving me crazy...
I can provide more logs or information if that would help solve the issue.

Complete debug log running 23.976 file: https://pastebin.com/6H5YHxCz
Complete debug log running 59.94 file: https://pastebin.com/zQGkQ1xp

23.976 test file: http://ufs910.mbremer.de/Test-Videos/FPS...6_L4.1.mkv
59.94 test file: http://ufs910.mbremer.de/Test-Videos/FPS...4_L4.1.mkv

Thanks
Quite some information so far, but there is still lacking a Kodi debug log (wiki) (debug-enabled) file, for more Kodi-internal information.
(2018-04-19, 10:06)Klojum Wrote: [ -> ]Quite some information so far, but there is still lacking a Kodi debug log (wiki) (debug-enabled) file, for more Kodi-internal information.
Complete debug log running 23.976 file: https://pastebin.com/6H5YHxCz
Complete debug log running 59.94 file: https://pastebin.com/zQGkQ1xp

I added them both to the original post as well.
It looks like we are switching to correct refresh rate:
Code:
15:12:36.016 T:1945456640   DEBUG: EGL set resolution 1920x1080 -> 1920x1080 @ 59.94 fps (1,16) flags:10010004 aspect:1.00

Can you ssh in and run
Code:
tvservice -s
vcgencmd measure_clock pixel
when the 59.94 video is playing just to be absolutely sure.
(2018-04-19, 11:28)popcornmix Wrote: [ -> ]It looks like we are switching to correct refresh rate:
Code:
15:12:36.016 T:1945456640   DEBUG: EGL set resolution 1920x1080 -> 1920x1080 @ 59.94 fps (1,16) flags:10010004 aspect:1.00

Can you ssh in and run  
tvservice -s
vcgencmd measure_clock pixel
when the 59.94 video is playing just to be absolutely sure.  
state 0x12000a [HDMI CEA (16) RGB lim 16:9], 1920x1080 @ 59.94Hz, progressive
frequency(29)=148351000
(2018-04-19, 12:01)meccs Wrote: [ -> ]state 0x12000a [HDMI CEA (16) RGB lim 16:9], 1920x1080 @ 59.94Hz, progressive
frequency(29)=148351000 
  
1080p60 is 148.5MHz so that is what is expected for 1080p59.94.

As a sanity check can you connect to a different display and see if there is still the same issue?
Are you directly connected to TV or thought an AVR?
(2018-04-19, 12:39)popcornmix Wrote: [ -> ]
(2018-04-19, 12:01)meccs Wrote: [ -> ]state 0x12000a [HDMI CEA (16) RGB lim 16:9], 1920x1080 @ 59.94Hz, progressive
frequency(29)=148351000 
  
1080p60 is 148.5MHz so that is what is expected for 1080p59.94.

As a sanity check can you connect to a different display and see if there is still the same issue?
Are you directly connected to TV or thought an AVR? 
I can test this on a different TV if I find the time.
The RPi3 is connected directly to the TV just make sure nothing is interfering. So I assume what you are saying is that the RPi3 sets the correct pixel clock.  Is there anything in the TV's EDID that would suggest that it can't even handle 59.94? Could this be a HDMI-Handshake problem (although I have tested two different cables)? How can a TV from 2014 not handle proper NTSC refresh rates? Have you heard of something similar before or should I just assume this is a faulty device?
(2018-04-19, 12:50)meccs Wrote: [ -> ]I can test this on a different TV if I find the time.
The RPi3 is connected directly to the TV just make sure nothing is interfering. So I assume what you are saying is that the RPi3 sets the correct pixel clock.  Is there anything in the TV's EDID that would suggest that it can't even handle 59.94? Could this be a HDMI-Handshake problem (although I have tested two different cables)? How can a TV from 2014 not handle proper NTSC refresh rates? Have you heard of something similar before or should I just assume this is a faulty device? 

The edid doesn't distinguish between the 60 and 59.94 rates - any display should handle both.
However there is a difference between accepting the HDMI signal and displaying it smoothly.
There are displays that report support for 24Hz and accept that format but do pull up/down and show it at 60Hz with resulting microstutter.

If a different display behaves the same then the problem is likely to be at the Pi end.
If a different display behaves correctly then the problem is likely to be at the display end.