Kodi Community Forum

Full Version: 25fps video detected as 100fps?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

While setting up modelines for my new TV I noticed that some of my 25fps HEVC encoded videos were detected as 100fps according to the Kodi log:

Code:
16:53:54 T:140129104537344  NOTICE:  fps: 100.000000, pwidth: 720, pheight: 404, dwidth: 720, dheight: 404
16:53:54 T:140129104537344   DEBUG: OutputPicture - change configuration. 720x404. framerate: 100.00. format: VAAPI
16:53:54 T:140129104537344   DEBUG: Resolution 3840x2160@ 50.00 - Full Screen (16) not a very good match for fps 100.000 (weight: 0.500), trying 2:3 cadence
16:53:54 T:140129104537344   DEBUG: Resolution 3840x2160@ 50.00 - Full Screen (16) not a very good match for fps 100.000 with 2:3 cadence (weight: 0.800), choosing 60 hertz
16:53:54 T:140129104537344  NOTICE: Display resolution ADJUST : DP1: 3840x2160_60.00 @ 60.00Hz (27) (weight: 0.400)

As you can see above, this makes Kodi change the refresh rate to a non-optimal 60Hz refresh rate rather than 50Hz.

If I at any time during playback press "o" to show the codec info, Kodi will show "fr:25.000".

Full debug log:
http://pastebin.com/raw/epUNGbgC

If I run mediainfo against the file, the output tells that the "Frame rate mode" is variable and between 14.286fps and 25.000fps. I suppose this is what confuses Kodi...or is the 100fps a hardcoded value used by Kodi whenever a variable frame rate is detected, to ensure selection of the highest refresh rate possible?
http://pastebin.com/raw/Fzzayi3g

While I think it would make better sense for Kodi to default to 50Hz or 25Hz, when fps tops at 25.000, then I suppose that there isn't much to do about it, besides avoiding videos with variable refresh rate?
You got a sample?
Absolutely...if I could just succeed in creating one Smile

Doing a raw cut with dd creates an invalid unplayable file. Using ffmpeg copying both the video and audio into a new m4v-container fails. Using ffmpeg to copy the streams into a mp4-container fixes the issue...

Any ideas for a good HEVC-compatible cutter?

The full file is 430MB in total and I can easily upload it and share it in a PM...if I just had permissions to send you a PM... Big Grin
What's the source of the file? It seems that the program recording it has some sever error :-) as ffmpeg seems to fix it.
It's a DVB-C MPEG2 or H.264 recording, which a friend of mine converted with HandBrake into H.265. I know that he was messing with the settings in order to make the file playable on his Mac.

I have multiple of these files from the same source, converted in the same way and all with the same error.

I'll do some more high-level debugging when time permits it, to see if I can narrow down if this is a HandBrake bug or what it is.

The fact that FFMPEG wouldn't let me do a clean copy of streams from M4V -> M4V, while M4V -> MP4 was fine, makes me wonder if HandBrake is allowing the user to do something out-of-spec for the M4V format.