Posts: 8
Joined: Mar 2017
Reputation:
0
2017-03-01, 21:29
(This post was last modified: 2017-03-10, 18:07 by V1de0Lovr.)
Videos with a variable frame-rate are not working correctly on Kodi 17.0 and 17.1 RC1 on Windows. Source of video is European TV recordings in AVC format, and the frame rate varies between 25 and 50 FPS. Thumbnails of these videos are not displayed and playback does not start at the beginning of the files. The worst one I have jumps over a minute into the video before starting to play.
Posts: 13,680
Joined: Mar 2010
Reputation:
506
PatK
Team-Kodi Member
Posts: 13,680
2017-03-02, 21:21
(This post was last modified: 2017-03-03, 19:42 by PatK.)
I can confirm that your video plays well with my set-up using stand alone players VLC and MPC-HCx64, Gotham 13.2, Isengard 15.2 and Jarvis 16.1 but not Krypton 17 or 17.1RC
Posts: 8
Joined: Mar 2017
Reputation:
0
Thanks for confirming that. I tried turning off hardware acceleration DXVA2 in 17.0, but the video would not play at all until I turned hardware back on. I tried to submit a bug report but my forum login does not work for that.
Posts: 8
Joined: Mar 2017
Reputation:
0
2017-03-04, 22:26
(This post was last modified: 2017-03-05, 00:00 by V1de0Lovr.)
Thanks! Found a link to the test builds and will see if 0303 works.
Posts: 8
Joined: Mar 2017
Reputation:
0
OK tried the 0303 build and it does work better in that you can hear the audio right away, but the video freezes for several seconds before starting to play.
Posts: 6,810
Joined: Jul 2010
Reputation:
198
Yes, that's because it takes the fallback path if the stream has no key frame. Kodi's video decoders are also used to extract thumbnails. You don't want a pixelated thumbnail shown in you library, do you? That is the reason kodi makes sure that the first frame it gets out of decoder is not corrupted. When dealing with so many requirements that is always one party thats feels unconsidered.
Posts: 8
Joined: Mar 2017
Reputation:
0
Thanks, it might be possible that this video was cut in the middle of a GOP and not on a keyframe, but I have many similar videos that don't play correctly on the test build. I personally cut most of them on keyframes using AviDemux. They all play perfect on Kodi 16.1, but not on 17 or the latest test build with your change. Videos with constant framerate play fine, but videos from european sources and variable framerates do not.
Posts: 6,810
Joined: Jul 2010
Reputation:
198
The problem with the video that you posted is that is does not have any keyframes. A keyframe is either an IDR frame or a recovery point coded in SEI message. Maybe AviDemux eats those messages.
Posts: 6,810
Joined: Jul 2010
Reputation:
198
As I already mentioned above: v16 did not check for keyframes and as a result thumbnails were pixelated.
Posts: 6,810
Joined: Jul 2010
Reputation:
198
No keyframes in your sample:
./ffprobe -select_streams v:0 -show_frames TestKeyframe.ts | grep 'key_frame=1'
Posts: 8
Joined: Mar 2017
Reputation:
0
Bizarre. Even so, videos missing 10 seconds from the beginning are a whole lot more important than what the thumbnail looks like.
Posts: 6,810
Joined: Jul 2010
Reputation:
198
2017-03-10, 20:33
(This post was last modified: 2017-03-10, 20:54 by FernetMenta.)
but video corruption done by users lower the prio
EDIT:
I try to be more verbose. There were users who inversted their spare time during alpha and beta phases. They brought up the issue with the pixelated thumbnails. Now you come along and say that your self-cut video issue is more important. Feels not correct, does it?
Please point us to a source of unmanipulated videos that show the issue.