2025-10-06, 08:21 PM
(This post was last modified: 2025-10-06, 08:34 PM by Frage. Edited 6 times in total.)
Hi,
I just finished editing my entire movie collection so that the chapter timecodes match i-frame/scene changes. A lot of remuxes have chapters at the wrong timecodes (sometimes showing half a frame from the previous scene, etc.).
I used AviSynth with the FFmpeg plugin to check each frame along with its type (intra, predictive, etc.) and its timecode.
The problem is that Jellyfin and Kodi don’t show the same frame I see in AviSynth.
For example, here's the first chapter from The Departed
AviSynth (AvsPmod) : Frame 7268
Kodi : (I don't have the exact Kodi screenshot, but this is the frame I can see) Frame 7250
Jellyfin : Seems to show the same frame as AviSynth
For example, here’s the end credits chapter :
AviSynth (AvsPmod) : Frame 208309
Jellyfin : Frame 208313 I guess
MKVToolNix Chapter :
So in both players I get different behavior, and sometime it seems Jellyfin pick up the next iframe.
Do you have any idea how to fix this 'issue' ?
Script :
I just finished editing my entire movie collection so that the chapter timecodes match i-frame/scene changes. A lot of remuxes have chapters at the wrong timecodes (sometimes showing half a frame from the previous scene, etc.).
I used AviSynth with the FFmpeg plugin to check each frame along with its type (intra, predictive, etc.) and its timecode.
The problem is that Jellyfin and Kodi don’t show the same frame I see in AviSynth.
For example, here's the first chapter from The Departed
- In Jellyfin, the app seems to use the correct iframe.
- In Kodi (CoreELEC), it shows yet another frame, which seems to be the previous i-frame.
AviSynth (AvsPmod) : Frame 7268
Kodi : (I don't have the exact Kodi screenshot, but this is the frame I can see) Frame 7250
Jellyfin : Seems to show the same frame as AviSynth
For example, here’s the end credits chapter :
AviSynth (AvsPmod) : Frame 208309
Jellyfin : Frame 208313 I guess
MKVToolNix Chapter :
So in both players I get different behavior, and sometime it seems Jellyfin pick up the next iframe.
Do you have any idea how to fix this 'issue' ?
Script :
Code:
import("C:/Users/Nicolas/Downloads/Tools/AvsPmod_64/ffms2-5.0-msvc/FFMS2.avsi")
LoadPlugin("C:/Users/Nicolas/Downloads/Tools/AvsPmod_64/ffms2-5.0-msvc/x64/ffms2.dll")
FFVideoSource("C:\Users\Nicolas\Downloads\The Departed (2006).mkv")
FFInfo(framenum=true,frametype=true,cfrtime=true,vfrtime=false,version=false,cropping=false,colorrange=false,colorspace=false,sar=false)