Chapters from MKV File not having correct times

There doesn’t happen to be any documentation on chapterdb and plex? I searched google for plex chapterdb but didn’t see anything with much relevance.

Got it, thank you. My misunderstanding. I will recreate the library from scratch tonight.

I have same issue. It’s definitely related to chapter tags, i.e. when chapters have names.
So far I have tried the following -
Removed any double “” in chapter names - still issue
edited chapters of a movie with named chapters and removed all chapter names - chapter images then display fine.

This issue is currently investigated by the developers.

To anyone still seeing file exhibiting this problem do me a favor: Run analyze on the file and see if it corrects it. My suspicion is that it will.

I tried running Analyze on one example I had (i.e., Ghostbusters 1984), and that seemed to then put the times in the correct order, but the chapter names were still messed up (i.e., out of order). This example (Ghostbusters 1984) has some titles surrounded by quotes and other that aren’t. It appears the chapter titles are assigned alphabetically, with the ones surrounded in quotes being listed first.

Since you didn’t contribute to this thread earlier I don’t have the context in your situation the others provided. Can you provide the same XML the other provided. In particular, the chapterSource attribute.

I went back and looked at this movie (Ghostbusters 1984) again today. It appeared the Analyze settings didn’t stick, as the chapter times were out of order again. I took a snapshot of the XML before and after the analyze operation. I also took a snapshot of the first part of the chapter thumbnails on my phone both before and after doing this too.

Initially, the chapter names (and index) are in correct order as I would expect, but it looks like the time offsets are way off. I’m also going by this chapter ordering: ChapterDB Listing

chapterSource="mixed"

Before Analyze

<Chapter id="2359" filter="thumb=2359" tag="Start" index="1" startTimeOffset="2926715" endTimeOffset="3135882" thumb="/library/media/393860/chapterImages/1"/>
<Chapter id="3191" filter="thumb=3191" tag="Shock the Nerd" index="2" startTimeOffset="946445" endTimeOffset="1310058" thumb="/library/media/393860/chapterImages/2"/>
<Chapter id="3192" filter="thumb=3192" tag=""Get Her!"" index="3" startTimeOffset="4241946" endTimeOffset="4415285" thumb="/library/media/393860/chapterImages/3"/>
<Chapter id="3193" filter="thumb=3193" tag="Terminated" index="4" startTimeOffset="4415285" endTimeOffset="4738525" thumb="/library/media/393860/chapterImages/4"/>
<Chapter id="3194" filter="thumb=3194" tag="Fixer-Upper" index="5" startTimeOffset="3873411" endTimeOffset="4241946" thumb="/library/media/393860/chapterImages/5"/>
<Chapter id="3195" filter="thumb=3195" tag="Spook Central" index="6" startTimeOffset="3304050" endTimeOffset="3873411" thumb="/library/media/393860/chapterImages/6"/>
<Chapter id="3196" filter="thumb=3196" tag="Fried Eggs & Zuul" index="7" startTimeOffset="5444730" endTimeOffset="6308343" thumb="/library/media/393860/chapterImages/7"/>
<Chapter id="3197" filter="thumb=3197" tag=""Bug-Eyes Thing"" index="8" startTimeOffset="5117028" endTimeOffset="5444730" thumb="/library/media/393860/chapterImages/8"/>
<Chapter id="3198" filter="thumb=3198" tag="The 1st Customer" index="9" startTimeOffset="1715755" endTimeOffset="2091964" thumb="/library/media/393860/chapterImages/9"/>
<Chapter id="3199" filter="thumb=3199" tag="Checking Out Dana" index="10" startTimeOffset="2346677" endTimeOffset="2926715" thumb="/library/media/393860/chapterImages/10"/>
<Chapter id="3200" filter="thumb=3200" tag=""We Got One!"" index="11" startTimeOffset="399065" endTimeOffset="946445" thumb="/library/media/393860/chapterImages/11"/>
<Chapter id="3201" filter="thumb=3201" tag=""He Slimed Me."" index="12" startTimeOffset="2091964" endTimeOffset="2346677" thumb="/library/media/393860/chapterImages/12"/>
<Chapter id="3202" filter="thumb=3202" tag=""Nice Shootin', Tex."" index="13" startTimeOffset="0" endTimeOffset="399065" thumb="/library/media/393860/chapterImages/13"/>
<Chapter id="3203" filter="thumb=3203" tag="Welcome Aboard" index="14" startTimeOffset="1310058" endTimeOffset="1715755" thumb="/library/media/393860/chapterImages/14"/>
<Chapter id="3204" filter="thumb=3204" tag="E.P.A. Man" index="15" startTimeOffset="3135882" endTimeOffset="3304050" thumb="/library/media/393860/chapterImages/15"/>
<Chapter id="3205" filter="thumb=3205" tag="Dogs Drag Dana" index="16" startTimeOffset="4738525" endTimeOffset="5117028" thumb="/library/media/393860/chapterImages/16"/>




After Analyze

<Chapter id="3197" filter="thumb=3197" tag=""Bug-Eyes Thing"" index="1" startTimeOffset="0" endTimeOffset="399065" thumb="/library/media/393860/chapterImages/1"/>
<Chapter id="3192" filter="thumb=3192" tag=""Get Her!"" index="2" startTimeOffset="399065" endTimeOffset="946445" thumb="/library/media/393860/chapterImages/2"/>
<Chapter id="3201" filter="thumb=3201" tag=""He Slimed Me."" index="3" startTimeOffset="946445" endTimeOffset="1310058" thumb="/library/media/393860/chapterImages/3"/>
<Chapter id="3202" filter="thumb=3202" tag=""Nice Shootin', Tex."" index="4" startTimeOffset="1310058" endTimeOffset="1715755" thumb="/library/media/393860/chapterImages/4"/>
<Chapter id="3200" filter="thumb=3200" tag=""We Got One!"" index="5" startTimeOffset="1715755" endTimeOffset="2091964" thumb="/library/media/393860/chapterImages/5"/>
<Chapter id="3199" filter="thumb=3199" tag="Checking Out Dana" index="6" startTimeOffset="2091964" endTimeOffset="2346677" thumb="/library/media/393860/chapterImages/6"/>
<Chapter id="3205" filter="thumb=3205" tag="Dogs Drag Dana" index="7" startTimeOffset="2346677" endTimeOffset="2926715" thumb="/library/media/393860/chapterImages/7"/>
<Chapter id="3204" filter="thumb=3204" tag="E.P.A. Man" index="8" startTimeOffset="2926715" endTimeOffset="3135882" thumb="/library/media/393860/chapterImages/8"/>
<Chapter id="3194" filter="thumb=3194" tag="Fixer-Upper" index="9" startTimeOffset="3135882" endTimeOffset="3304050" thumb="/library/media/393860/chapterImages/9"/>
<Chapter id="3196" filter="thumb=3196" tag="Fried Eggs & Zuul" index="10" startTimeOffset="3304050" endTimeOffset="3873411" thumb="/library/media/393860/chapterImages/10"/>
<Chapter id="3191" filter="thumb=3191" tag="Shock the Nerd" index="11" startTimeOffset="3873411" endTimeOffset="4241946" thumb="/library/media/393860/chapterImages/11"/>
<Chapter id="3195" filter="thumb=3195" tag="Spook Central" index="12" startTimeOffset="4241946" endTimeOffset="4415285" thumb="/library/media/393860/chapterImages/12"/>
<Chapter id="2359" filter="thumb=2359" tag="Start" index="13" startTimeOffset="4415285" endTimeOffset="4738525" thumb="/library/media/393860/chapterImages/13"/>
<Chapter id="3193" filter="thumb=3193" tag="Terminated" index="14" startTimeOffset="4738525" endTimeOffset="5117028" thumb="/library/media/393860/chapterImages/14"/>
<Chapter id="3198" filter="thumb=3198" tag="The 1st Customer" index="15" startTimeOffset="5117028" endTimeOffset="5444730" thumb="/library/media/393860/chapterImages/15"/>
<Chapter id="3203" filter="thumb=3203" tag="Welcome Aboard" index="16" startTimeOffset="5444730" endTimeOffset="6308343" thumb="/library/media/393860/chapterImages/16"/>

The “Analyze setting not sticking” is likely due to the chapter agent. The above is about what I was expecting. Thanks.

Found a fix for this (should be similar on other OSes) - Uninstall current version and install v1.13.3 from the link below then run command below.

Replace section # with actual section number. My movies library is the first one that got created so it’s 1. You can check the database table “library_sections” with DB Browser for SQlite if you’re not sure.

"C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Scanner.exe" --force --generate --chapter-thumbs-only --section 1

Version right before this got broken - https://downloads.plex.tv/plex-media-server/1.13.3.5223-cd1e0da1b/Plex-Media-Server-1.13.3.5223-cd1e0da1b.exe

Also delete cache images by deleting the \Cache\PhotoTranscoder folder so that clients get served up the fresh thumbnails.

How’s this coming along…

It might be fixed in the next or the one after the next beta versions.

Has this been fixed yet?

Yes.

(Metadata) Chapters and respective images were out of order (issues#195)

I noticed that all the chapters were regenerated after upgrading to that version so as to redo all the out of order ones.

Yes, it’ll do this as a butler task. It takes time to go through them so it may not correct all items immediately.

Hello, there.

I believe I’m having some chapter issues similar to those discussed in this thread. I’m running Version 1.14.1.5488 of the server on my QNAP NAS.

In my case, all of the chapters appear correctly timed, but the thumbnail generation is producing from the following chapter. In other words, Chapter 01 has a blank thumbnail, but Chapter 02 has the thumbnail for Chapter 01.

Worse yet, Chapter 02 has the proper name and time indicated for its position, but the movie starts at the Chapter 01 position. Further, the time in the player indicates it’s ahead of where it’s actually playing. For example, Chapter 02 starts at 1:48, and the player indicates that’s where it’s playing from. However, it’s decidedly playing from the 0:00 of Chapter 01.

I’ve confirmed the Metadata is correct on the media file itself, and it does play appropriately in VLC, etc. I’ve removed the file and all versions of it otherwise.

This issue differs from the original post in the fact that it appears to be in sequence. I have run the Analyze after the fact, and that doesn’t appear to fix the issue.

For giggles, I thought I’d include the Chapter XML to see if there’s anything glaring to a more experienced eye (below).

<Chapter id="505" filter="thumb=505" tag="Opening Credits" index="1" startTimeOffset="0" endTimeOffset="108000" thumb="/library/media/4571/chapterImages/1"/>
<Chapter id="2417" filter="thumb=2417" tag=""Frozen Heart"" index="2" startTimeOffset="108000" endTimeOffset="215000" thumb="/library/media/4571/chapterImages/2"/>
<Chapter id="2422" filter="thumb=2422" tag="An Accident" index="3" startTimeOffset="215000" endTimeOffset="359817" thumb="/library/media/4571/chapterImages/3"/>
<Chapter id="1773" filter="thumb=1773" tag="Concealing Her Powers" index="4" startTimeOffset="359817" endTimeOffset="495000" thumb="/library/media/4571/chapterImages/4"/>
<Chapter id="2413" filter="thumb=2413" tag=""Do You Want to Build a Snowman?"" index="5" startTimeOffset="495000" endTimeOffset="697947" thumb="/library/media/4571/chapterImages/5"/>
<Chapter id="1861" filter="thumb=1861" tag="Coronation Day" index="6" startTimeOffset="697947" endTimeOffset="801000" thumb="/library/media/4571/chapterImages/6"/>
<Chapter id="2416" filter="thumb=2416" tag=""For the First Time in Forever"" index="7" startTimeOffset="801000" endTimeOffset="1193734" thumb="/library/media/4571/chapterImages/7"/>
<Chapter id="1862" filter="thumb=1862" tag="Puppy Love" index="8" startTimeOffset="1193734" endTimeOffset="1420000" thumb="/library/media/4571/chapterImages/8"/>
<Chapter id="2420" filter="thumb=2420" tag=""Love is an Open Door"" index="9" startTimeOffset="1420000" endTimeOffset="1618000" thumb="/library/media/4571/chapterImages/9"/>
<Chapter id="2423" filter="thumb=2423" tag="The Party is Over" index="10" startTimeOffset="1618000" endTimeOffset="1863194" thumb="/library/media/4571/chapterImages/10"/>
<Chapter id="2419" filter="thumb=2419" tag=""Let It Go"" index="11" startTimeOffset="1863194" endTimeOffset="2088000" thumb="/library/media/4571/chapterImages/11"/>
<Chapter id="1863" filter="thumb=1863" tag="The Search for Elsa" index="12" startTimeOffset="2088000" endTimeOffset="2319483" thumb="/library/media/4571/chapterImages/12"/>
<Chapter id="2421" filter="thumb=2421" tag=""Reindeer(s) Are Better Than People"" index="13" startTimeOffset="2319483" endTimeOffset="2414000" thumb="/library/media/4571/chapterImages/13"/>
<Chapter id="1864" filter="thumb=1864" tag="A Ride" index="14" startTimeOffset="2414000" endTimeOffset="2692500" thumb="/library/media/4571/chapterImages/14"/>
<Chapter id="1865" filter="thumb=1865" tag="Olaf" index="15" startTimeOffset="2692500" endTimeOffset="2852000" thumb="/library/media/4571/chapterImages/15"/>
<Chapter id="2418" filter="thumb=2418" tag=""In Summer"" index="16" startTimeOffset="2852000" endTimeOffset="3051506" thumb="/library/media/4571/chapterImages/16"/>
<Chapter id="1866" filter="thumb=1866" tag="Finding Elsa" index="17" startTimeOffset="3051506" endTimeOffset="3346000" thumb="/library/media/4571/chapterImages/17"/>
<Chapter id="2415" filter="thumb=2415" tag=""For the First Time in Forever (Reprise)"" index="18" startTimeOffset="3346000" endTimeOffset="3491000" thumb="/library/media/4571/chapterImages/18"/>
<Chapter id="1867" filter="thumb=1867" tag="Snow Monster" index="19" startTimeOffset="3491000" endTimeOffset="3777398" thumb="/library/media/4571/chapterImages/19"/>
<Chapter id="1868" filter="thumb=1868" tag="Family" index="20" startTimeOffset="3777398" endTimeOffset="3937000" thumb="/library/media/4571/chapterImages/20"/>
<Chapter id="2414" filter="thumb=2414" tag=""Fixer Upper"" index="21" startTimeOffset="3937000" endTimeOffset="4414868" thumb="/library/media/4571/chapterImages/21"/>
<Chapter id="1870" filter="thumb=1870" tag="Betrayal" index="22" startTimeOffset="4414868" endTimeOffset="4687599" thumb="/library/media/4571/chapterImages/22"/>
<Chapter id="1871" filter="thumb=1871" tag="What Is Love?" index="23" startTimeOffset="4687599" endTimeOffset="4953740" thumb="/library/media/4571/chapterImages/23"/>
<Chapter id="1872" filter="thumb=1872" tag="An Act of Love" index="24" startTimeOffset="4953740" endTimeOffset="5230808" thumb="/library/media/4571/chapterImages/24"/>
<Chapter id="1873" filter="thumb=1873" tag="Open Gates" index="25" startTimeOffset="5230808" endTimeOffset="5553506" thumb="/library/media/4571/chapterImages/25"/>
<Chapter id="58" filter="thumb=58" tag="End Credits" index="26" startTimeOffset="5553506" endTimeOffset="6133043" thumb="/library/media/4571/chapterImages/26"/>

Here’s a screenshot. The “Frozen Heart” thumbnail is on chapter 3. The chapter 3 thumbnail is highlighted, but it’s, actually, playing from chapter 2. However, the time is completely wrong (the count is further ahead than it should be).

Any thoughts would be appreciated!

  • Dave

Does this movie have several versions?
Did you upgrade the quality of this movie at some point?

It did have several versions. I removed them all and started over. However, there could be carry-over in the cache (or something) that I didn’t know to clear.

Ultimately, I settled on keeping the 3D version separate from the 2D (as recommended in the documentation), but it seemed like thumbnails were overlapping. Specifically, I was getting the 2D thumbnails on the 3D (which has the Side-by-Side image). Thus, I knew there was something funky going on.

Please perform the Plex Dance with this movie.
It can only be performed successfully, if the server is not busy doing other things - particularly updating other libraries.

Fortunately, I don’t have a lot on my NAS in terms of PLEX media, so it’s easy enough to perform the Plex Dance. That said, it didn’t make a difference for me. Everything is offset by a chapter as before. I’ve run through the process a few times.

Something else of note: if I’m removing all trace of a title, why does PLEX still seem to remember the point where I’d left off (last viewing location/time)? It seems like we’re not getting all of the ancillary data associated with playback of the film with the Plex Dance.

I’m re-muxing the file and ensuring that no stray metadata is included. If I see any different results, I will, certainly, post. Otherwise, I’d appreciate any other thoughts.

Thank you, again.

Just a follow-up. I put a different file (same film) up on the server after running the PLEX Dance procedure, and the chapter selection persists. I’m not sure where to go from here.

I think PLEX is still retaining some data from the previously removed file. Again, why does PLEX remember the time and position of the last viewing if I, theoretically, cleared out all the artifacts from the entry in PLEX? Perhaps I’m missing some more fool-proof method to purge the old data?

Again, any feedback or insight is appreciated.