Chapters from MKV File not having correct times

Server Version#: 1.13.6.5339
Player Version#: 3.67.1

I have an issue with all of my MKV files ripped using MakeMKV from BlueRay discs.
The movie plays fine from start to finish but when I bring up the chapter menu, the chapters are in the correct order, but the times listed on the chapters are all incorrect timestamps.

Here is a photo of the web browser app:

You can see Chapter 1, Chapter 2, Chapter 3, etc. but the times listed under the chapter names are all out of order. This makes the chapter functionality useless. The same issue occurs on the Nvidia Shield app, but on that app the chapters have their actual names instead of just Chapter 1, 2, 3, etc.

I opened the MKV file with VLC and the chapters seek at their proper timestamps. I also opened in PowerDVD and the chapters have their correct times as shown here:

Why is Plex not able to read the chapters properly?

I’m having the same issue… replying to follow thanks

I have just re-added the same movie and my chapter labels are in the correct order.
I’ve also visited a few of my concert videos (which contain hand-crafted chapters to find the songs) and they are all as they should be.

Call up the Plex XML info

now go to the address bar and replace includeExtras with includeChapters
then press Enter
copy the XML that appears below here into the message editor.
put 3 backticks ` on a separate line above and 3 backticks on a separate line below the XML to make it appear as ā€˜code’

(Do not post the URL itself! It contains your X-Plex-Token which can be used to gain access to your server.)

Scroll down, the chapters should be listed last
Here’s how they appear on my server:

chapterSource="media"
<Chapter id="31609" filter="thumb=31609" tag="" index="1" startTimeOffset="0" endTimeOffset="435685"/>
<Chapter id="31609" filter="thumb=31609" tag="" index="2" startTimeOffset="435685" endTimeOffset="719802"/>
<Chapter id="31609" filter="thumb=31609" tag="" index="3" startTimeOffset="719802" endTimeOffset="973764"/>
<Chapter id="31609" filter="thumb=31609" tag="" index="4" startTimeOffset="973764" endTimeOffset="1289579"/>
<Chapter id="31609" filter="thumb=31609" tag="" index="5" startTimeOffset="1289579" endTimeOffset="1682806"/>
<Chapter id="31609" filter="thumb=31609" tag="" index="6" startTimeOffset="1682806" endTimeOffset="1931137"/>
<Chapter id="31609" filter="thumb=31609" tag="" index="7" startTimeOffset="1931137" endTimeOffset="2116280"/>
<Chapter id="31609" filter="thumb=31609" tag="" index="8" startTimeOffset="2116280" endTimeOffset="2496869"/>
<Chapter id="31609" filter="thumb=31609" tag="" index="9" startTimeOffset="2496869" endTimeOffset="2704868"/>
<Chapter id="31609" filter="thumb=31609" tag="" index="10" startTimeOffset="2704868" endTimeOffset="2950322"/>
<Chapter id="31609" filter="thumb=31609" tag="" index="11" startTimeOffset="2950322" endTimeOffset="3201031"/>
<Chapter id="31609" filter="thumb=31609" tag="" index="12" startTimeOffset="3201031" endTimeOffset="3453324"/>
<Chapter id="31609" filter="thumb=31609" tag="" index="13" startTimeOffset="3453324" endTimeOffset="3945024"/>
<Chapter id="31609" filter="thumb=31609" tag="" index="14" startTimeOffset="3945024" endTimeOffset="4246075"/>
<Chapter id="31609" filter="thumb=31609" tag="" index="15" startTimeOffset="4246075" endTimeOffset="4371950"/>
<Chapter id="31609" filter="thumb=31609" tag="" index="16" startTimeOffset="4371950" endTimeOffset="4542120"/>
<Chapter id="31609" filter="thumb=31609" tag="" index="17" startTimeOffset="4542120" endTimeOffset="4997409"/>
<Chapter id="31609" filter="thumb=31609" tag="" index="18" startTimeOffset="4997409" endTimeOffset="5390927"/>
<Chapter id="31609" filter="thumb=31609" tag="" index="19" startTimeOffset="5390927" endTimeOffset="5773726"/>
<Chapter id="31609" filter="thumb=31609" tag="" index="20" startTimeOffset="5773726" endTimeOffset="6432832"/>

Thank you for the assistance!

Here is the XML for the list of chapters. Hopefully this gives you some good insight.

chapterSource="mixed"
<Chapter id="112530" filter="thumb=112530" tag="Tala's Tale" index="1" startTimeOffset="435685" endTimeOffset="719802" thumb="/library/media/1849679/chapterImages/1"/>
<Chapter id="112531" filter="thumb=112531" tag=""Where You Are"" index="2" startTimeOffset="0" endTimeOffset="435685" thumb="/library/media/1849679/chapterImages/2"/>
<Chapter id="112532" filter="thumb=112532" tag="Motunui" index="3" startTimeOffset="1682806" endTimeOffset="1931137" thumb="/library/media/1849679/chapterImages/3"/>
<Chapter id="112533" filter="thumb=112533" tag=""How Far I'll Go"" index="4" startTimeOffset="2950322" endTimeOffset="3201031" thumb="/library/media/1849679/chapterImages/4"/>
<Chapter id="112534" filter="thumb=112534" tag=""We Know the Way"" index="5" startTimeOffset="719802" endTimeOffset="973764" thumb="/library/media/1849679/chapterImages/5"/>
<Chapter id="112535" filter="thumb=112535" tag="Beyond the Reef" index="6" startTimeOffset="5773726" endTimeOffset="6432810" thumb="/library/media/1849679/chapterImages/6"/>
<Chapter id="112536" filter="thumb=112536" tag=""The Ocean Is a Friend of Mine"" index="7" startTimeOffset="4246075" endTimeOffset="4371950" thumb="/library/media/1849679/chapterImages/7"/>
<Chapter id="112537" filter="thumb=112537" tag=""You're Welcome"" index="8" startTimeOffset="4371950" endTimeOffset="4542120" thumb="/library/media/1849679/chapterImages/8"/>
<Chapter id="112538" filter="thumb=112538" tag=""You Will Restore the Heart"" index="9" startTimeOffset="2496869" endTimeOffset="2704868" thumb="/library/media/1849679/chapterImages/9"/>
<Chapter id="112539" filter="thumb=112539" tag="Beware the Kakamora" index="10" startTimeOffset="4997409" endTimeOffset="5390927" thumb="/library/media/1849679/chapterImages/10"/>
<Chapter id="112540" filter="thumb=112540" tag=""Hero to All"" index="11" startTimeOffset="973764" endTimeOffset="1289579" thumb="/library/media/1849679/chapterImages/11"/>
<Chapter id="112541" filter="thumb=112541" tag="The Realm of Monsters" index="12" startTimeOffset="3453324" endTimeOffset="3945024" thumb="/library/media/1849679/chapterImages/12"/>
<Chapter id="112542" filter="thumb=112542" tag=""Shiny"" index="13" startTimeOffset="4542120" endTimeOffset="4997409" thumb="/library/media/1849679/chapterImages/13"/>
<Chapter id="112543" filter="thumb=112543" tag="Every Picture Tells a Story" index="14" startTimeOffset="3945024" endTimeOffset="4246075" thumb="/library/media/1849679/chapterImages/14"/>
<Chapter id="112544" filter="thumb=112544" tag="Wayfinding" index="15" startTimeOffset="3201031" endTimeOffset="3453324" thumb="/library/media/1849679/chapterImages/15"/>
<Chapter id="112545" filter="thumb=112545" tag="Te Ka" index="16" startTimeOffset="2116280" endTimeOffset="2496869" thumb="/library/media/1849679/chapterImages/16"/>
<Chapter id="112546" filter="thumb=112546" tag=""I Am Moana"" index="17" startTimeOffset="1931137" endTimeOffset="2116280" thumb="/library/media/1849679/chapterImages/17"/>
<Chapter id="112547" filter="thumb=112547" tag=""Returning the Heart"" index="18" startTimeOffset="2704868" endTimeOffset="2950322" thumb="/library/media/1849679/chapterImages/18"/>
<Chapter id="112548" filter="thumb=112548" tag="Te Fiti" index="19" startTimeOffset="1289579" endTimeOffset="1682806" thumb="/library/media/1849679/chapterImages/19"/>
<Chapter id="57691" filter="thumb=57691" tag="End Credits" index="20" startTimeOffset="5390927" endTimeOffset="5773726" thumb="/library/media/1849679/chapterImages/20"/>```

That is so weird.
I wonder if it’s has to do with those chapter titles in double quotes.

Could you please post the rest of the XML as well?

Below is the full code. I did not add those chapter titles. Does the Plex Movie agent or The Movie Database download those chapter titles? I do notice that some movies have these titles and some do not. I think the movies without the titles are correct.

That double quote does look suspicious because it may think it is closed out before it really is. But even without the double quotes if I compare my Start Time of the first chapter to yours, they are different. It appears the Start and End times of my chapters are different than yours. For example my Chapter 2 start time is incorrectly ā€œ0ā€ and your Chapter 1 start time is ā€œ0ā€ which is correct.

Also, I only use MakeMKV when generating these files.

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="1" librarySectionTitle="Movies" librarySectionUUID="a0a4881d-a66e-4870-8153-233442f8e809" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1534768060">
<Video ratingKey="1143317" key="/library/metadata/1143317" guid="com.plexapp.agents.imdb://tt3521164?lang=en" librarySectionTitle="Movies" librarySectionID="1" librarySectionKey="/library/sections/1" studio="Walt Disney Pictures" type="movie" title="Moana" contentRating="PG" summary="In Ancient Polynesia, when a terrible curse incurred by Maui reaches an impetuous Chieftain's daughter's island, she answers the Ocean's call to seek out the demigod to set things right." rating="9.5" audienceRating="8.9" viewOffset="436000" viewCount="7" lastViewedAt="1536022559" year="2016" tagline="The ocean is calling." thumb="/library/metadata/1143317/thumb/1535222132" art="/library/metadata/1143317/art/1535222132" duration="6432810" originallyAvailableAt="2016-11-23" addedAt="1491952229" updatedAt="1535222132" audienceRatingImage="rottentomatoes://image.rating.upright" chapterSource="mixed" primaryExtraKey="/library/metadata/1143318" ratingImage="rottentomatoes://image.rating.certified">
<Media videoResolution="1080" id="1849679" duration="6432810" bitrate="29085" width="1920" height="1080" aspectRatio="1.78" audioChannels="8" audioCodec="dca-ma" videoCodec="h264" container="mkv" videoFrameRate="24p" audioProfile="ma" videoProfile="high">
<Part accessible="1" exists="1" id="1849688" key="/library/parts/1849688/1491951135/file.mkv" duration="6432810" file="\\NETWORKSTORAGE\Video\BluRays\Moana.mkv" size="23387230820" audioProfile="ma" container="mkv" deepAnalysisVersion="2" indexes="sd" requiredBandwidths="36324,35172,33886,32188,30736,30736,30736,30736" videoProfile="high">
<Stream id="3213552" streamType="1" codec="h264" index="0" bitrate="28317" language="English" languageCode="eng" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" frameRate="23.976" hasScalingMatrix="0" height="1080" level="41" profile="high" refFrames="4" requiredBandwidths="30869,29892,28211,26513,25808,25808,25808,25808" scanType="progressive" width="1920" displayTitle="English (H.264 High)"/>
<Stream id="3213553" streamType="2" selected="1" default="1" codec="dca" index="1" channels="8" bitrate="768" language="English" languageCode="eng" audioChannelLayout="7.1" bitDepth="24" profile="ma" requiredBandwidths="5317,5182,4959,4809,4734,4734,4734,4734" samplingRate="48000" title="Surround 7.1" displayTitle="Surround 7.1 (English DTS-HD MA)"/>
<Stream id="3213554" streamType="3" codec="pgs" index="2" language="English" languageCode="eng" requiredBandwidths="49,49,49,49,49,49,49,49" displayTitle="English (PGS)"/>
<Stream id="3213555" streamType="3" codec="pgs" index="3" language="English" languageCode="eng" requiredBandwidths="47,47,47,47,47,47,47,47" displayTitle="English (PGS)"/>
<Stream id="3213556" streamType="3" codec="pgs" index="4" language="English" languageCode="eng" requiredBandwidths="101,101,101,101,101,101,101,101" displayTitle="English (PGS)"/>
<Stream id="3213557" streamType="3" codec="pgs" index="5" language="English" languageCode="eng" requiredBandwidths="96,96,96,96,96,96,96,96" displayTitle="English (PGS)"/>
</Part>
</Media>
<Genre id="14751" filter="genre=14751" tag="Adventure"/>
<Genre id="682" filter="genre=682" tag="Family"/>
<Genre id="4033" filter="genre=4033" tag="Musical"/>
<Genre id="21" filter="genre=21" tag="Comedy"/>
<Genre id="927" filter="genre=927" tag="Animation"/>
<Genre id="267" filter="genre=267" tag="Fantasy"/>
<Director id="75980" filter="director=75980" tag="Ron Clements"/>
<Director id="75979" filter="director=75979" tag="John Musker"/>
<Writer id="83513" filter="writer=83513" tag="Jared Bush"/>
<Producer id="112529" filter="producer=112529" tag="Osnat Shurer"/>
<Country id="25" filter="country=25" tag="USA"/>
<Role id="112523" filter="actor=112523" tag="Auli'i Cravalho" role="Moana (voice)" thumb="http://image.tmdb.org/t/p/original/av5ZZ67BlHCzyWrUBg5xTUNGiWq.jpg"/>
<Role id="69448" filter="actor=69448" tag="Dwayne Johnson" role="Maui (voice)" thumb="http://image.tmdb.org/t/p/original/akweMz59qsSoPUJYe7QpjAc2rQp.jpg"/>
<Role id="112524" filter="actor=112524" tag="Rachel House" role="Gramma Tala (voice)" thumb="http://image.tmdb.org/t/p/original/8UGo2lHG5wtnH55lKPDm8oJ0IOk.jpg"/>
<Role id="74991" filter="actor=74991" tag="Temuera Morrison" role="Chief Tui (voice)" thumb="http://image.tmdb.org/t/p/original/A1nD5J5uRwJM4hnpXd3DdmwZGjP.jpg"/>
<Role id="68755" filter="actor=68755" tag="Jemaine Clement" role="Tamatoa (voice)" thumb="http://image.tmdb.org/t/p/original/crxCXudFMxuPqrYqYiTYKbhImhv.jpg"/>
<Role id="112525" filter="actor=112525" tag="Nicole Scherzinger" role="Sina (voice)" thumb="http://image.tmdb.org/t/p/original/aWO7fZN4W7ua4MVoruG0ZeEXur9.jpg"/>
<Role id="67251" filter="actor=67251" tag="Alan Tudyk" role="Heihei / Villager #3 (voice)" thumb="http://image.tmdb.org/t/p/original/6QuMtbD8kmhpwWhFKfNzEvHRLOu.jpg"/>
<Role id="112526" filter="actor=112526" tag="Oscar Kightley" role="Fisherman (voice)" thumb="http://image.tmdb.org/t/p/original/7yaqZT5e1UlxBmqQ3xpXAUP7SNL.jpg"/>
<Role id="78810" filter="actor=78810" tag="Troy Polamalu" role="Villager #1 (voice)" thumb="http://image.tmdb.org/t/p/original/51rD9ZZYyXNmk7xiotiVBqhBHqS.jpg"/>
<Role id="112527" filter="actor=112527" tag="Puanani Cravalho" role="Villager #2 (voice)" thumb="http://image.tmdb.org/t/p/original/qPxMhzDmrvuIQZCeamiUzynLEFz.jpg"/>
<Role id="112528" filter="actor=112528" tag="Louise Bush" role="Toddler Moana (voice)"/>
<Role id="89414" filter="actor=89414" tag="Chris Jackson" role="Chief Tui (singing voice)" thumb="http://image.tmdb.org/t/p/original/iczG0WVwwifbOTY5JWvBVz9DVaj.jpg"/>
<Chapter id="112530" filter="thumb=112530" tag="Tala's Tale" index="1" startTimeOffset="435685" endTimeOffset="719802" thumb="/library/media/1849679/chapterImages/1"/>
<Chapter id="112531" filter="thumb=112531" tag=""Where You Are"" index="2" startTimeOffset="0" endTimeOffset="435685" thumb="/library/media/1849679/chapterImages/2"/>
<Chapter id="112532" filter="thumb=112532" tag="Motunui" index="3" startTimeOffset="1682806" endTimeOffset="1931137" thumb="/library/media/1849679/chapterImages/3"/>
<Chapter id="112533" filter="thumb=112533" tag=""How Far I'll Go"" index="4" startTimeOffset="2950322" endTimeOffset="3201031" thumb="/library/media/1849679/chapterImages/4"/>
<Chapter id="112534" filter="thumb=112534" tag=""We Know the Way"" index="5" startTimeOffset="719802" endTimeOffset="973764" thumb="/library/media/1849679/chapterImages/5"/>
<Chapter id="112535" filter="thumb=112535" tag="Beyond the Reef" index="6" startTimeOffset="5773726" endTimeOffset="6432810" thumb="/library/media/1849679/chapterImages/6"/>
<Chapter id="112536" filter="thumb=112536" tag=""The Ocean Is a Friend of Mine"" index="7" startTimeOffset="4246075" endTimeOffset="4371950" thumb="/library/media/1849679/chapterImages/7"/>
<Chapter id="112537" filter="thumb=112537" tag=""You're Welcome"" index="8" startTimeOffset="4371950" endTimeOffset="4542120" thumb="/library/media/1849679/chapterImages/8"/>
<Chapter id="112538" filter="thumb=112538" tag=""You Will Restore the Heart"" index="9" startTimeOffset="2496869" endTimeOffset="2704868" thumb="/library/media/1849679/chapterImages/9"/>
<Chapter id="112539" filter="thumb=112539" tag="Beware the Kakamora" index="10" startTimeOffset="4997409" endTimeOffset="5390927" thumb="/library/media/1849679/chapterImages/10"/>
<Chapter id="112540" filter="thumb=112540" tag=""Hero to All"" index="11" startTimeOffset="973764" endTimeOffset="1289579" thumb="/library/media/1849679/chapterImages/11"/>
<Chapter id="112541" filter="thumb=112541" tag="The Realm of Monsters" index="12" startTimeOffset="3453324" endTimeOffset="3945024" thumb="/library/media/1849679/chapterImages/12"/>
<Chapter id="112542" filter="thumb=112542" tag=""Shiny"" index="13" startTimeOffset="4542120" endTimeOffset="4997409" thumb="/library/media/1849679/chapterImages/13"/>
<Chapter id="112543" filter="thumb=112543" tag="Every Picture Tells a Story" index="14" startTimeOffset="3945024" endTimeOffset="4246075" thumb="/library/media/1849679/chapterImages/14"/>
<Chapter id="112544" filter="thumb=112544" tag="Wayfinding" index="15" startTimeOffset="3201031" endTimeOffset="3453324" thumb="/library/media/1849679/chapterImages/15"/>
<Chapter id="112545" filter="thumb=112545" tag="Te Ka" index="16" startTimeOffset="2116280" endTimeOffset="2496869" thumb="/library/media/1849679/chapterImages/16"/>
<Chapter id="112546" filter="thumb=112546" tag=""I Am Moana"" index="17" startTimeOffset="1931137" endTimeOffset="2116280" thumb="/library/media/1849679/chapterImages/17"/>
<Chapter id="112547" filter="thumb=112547" tag=""Returning the Heart"" index="18" startTimeOffset="2704868" endTimeOffset="2950322" thumb="/library/media/1849679/chapterImages/18"/>
<Chapter id="112548" filter="thumb=112548" tag="Te Fiti" index="19" startTimeOffset="1289579" endTimeOffset="1682806" thumb="/library/media/1849679/chapterImages/19"/>
<Chapter id="57691" filter="thumb=57691" tag="End Credits" index="20" startTimeOffset="5390927" endTimeOffset="5773726" thumb="/library/media/1849679/chapterImages/20"/>
</Video>
</MediaContainer>

This Happened after the update ā€œ1.13.4.5251ā€ … so i had to revert back to the older version " 1.13.2.5154"… Chapter Thumbnails assigned to wrong Chapters (After Update 1.13.4.5251) , Shield TV chapter title and timestamp don’t match

Didn’t went into details as above but i guess this is what i faced when i posted but in my case timings were correct just the thumbnails were assigned randomly to different chapters… (when i checked on Nvidia Shield )

Thank you. These issue has been occurring for several months and was not specific to a single release. Also, it affects all clients that support chapters, not just the Nvidia Shield because the XML output of the chapter list has the incorrect start/end times. I have just updated to 1.13.7.5369 and the issue still exists.

Could you please extract the chapters from your file with MKVtoolnixGUI
(save as XML)
and post them here as well?

When did you add this movie into your Plex library?
If it was already several weeks ago, could you perform the full Plex Dance with the movie and re-check afterwards?

Hello,
Below is the XML of chapter output from MKVtollnixGUI. This movie was added on 4/11/2017. I’m on the beta update channel and I check for updates every other day so whatever version at that time was available was most likely the server version.

I added Top Gun on 8/9/2018 and the chapter times are also out of order.
I added Ready Player One on 7/27/2018 and the chapter times are also out of order.

<?xml version="1.0"?>
<!-- <!DOCTYPE Chapters SYSTEM "matroskachapters.dtd"> -->
<Chapters>
  <EditionEntry>
    <EditionFlagDefault>1</EditionFlagDefault>
    <EditionUID>5337347345714872686</EditionUID>
    <ChapterAtom>
      <ChapterUID>8964276915652990686</ChapterUID>
      <ChapterTimeStart>00:00:00.000000000</ChapterTimeStart>
      <ChapterTimeEnd>00:07:15.685250000</ChapterTimeEnd>
      <ChapterDisplay>
        <ChapterString>Chapter 01</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
    <ChapterAtom>
      <ChapterUID>13380614787668303218</ChapterUID>
      <ChapterTimeStart>00:07:15.685250000</ChapterTimeStart>
      <ChapterTimeEnd>00:11:59.802416666</ChapterTimeEnd>
      <ChapterDisplay>
        <ChapterString>Chapter 02</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
    <ChapterAtom>
      <ChapterUID>6342659592864369682</ChapterUID>
      <ChapterTimeStart>00:11:59.802416666</ChapterTimeStart>
      <ChapterTimeEnd>00:16:13.764458333</ChapterTimeEnd>
      <ChapterDisplay>
        <ChapterString>Chapter 03</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
    <ChapterAtom>
      <ChapterUID>5095232869258333938</ChapterUID>
      <ChapterTimeStart>00:16:13.764458333</ChapterTimeStart>
      <ChapterTimeEnd>00:21:29.579958333</ChapterTimeEnd>
      <ChapterDisplay>
        <ChapterString>Chapter 04</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
    <ChapterAtom>
      <ChapterUID>2170316222158653219</ChapterUID>
      <ChapterTimeStart>00:21:29.579958333</ChapterTimeStart>
      <ChapterTimeEnd>00:28:02.806125000</ChapterTimeEnd>
      <ChapterDisplay>
        <ChapterString>Chapter 05</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
    <ChapterAtom>
      <ChapterUID>16261231144726046082</ChapterUID>
      <ChapterTimeStart>00:28:02.806125000</ChapterTimeStart>
      <ChapterTimeEnd>00:32:11.137541666</ChapterTimeEnd>
      <ChapterDisplay>
        <ChapterString>Chapter 06</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
    <ChapterAtom>
      <ChapterUID>1826101892805514619</ChapterUID>
      <ChapterTimeStart>00:32:11.137541666</ChapterTimeStart>
      <ChapterTimeEnd>00:35:16.280833333</ChapterTimeEnd>
      <ChapterDisplay>
        <ChapterString>Chapter 07</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
    <ChapterAtom>
      <ChapterUID>7930987008618307219</ChapterUID>
      <ChapterTimeStart>00:35:16.280833333</ChapterTimeStart>
      <ChapterFlagHidden>0</ChapterFlagHidden>
      <ChapterFlagEnabled>1</ChapterFlagEnabled>
      <ChapterTimeEnd>00:41:36.869375000</ChapterTimeEnd>
      <ChapterDisplay>
        <ChapterString>Chapter 08</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
    <ChapterAtom>
      <ChapterUID>5482473338517315797</ChapterUID>
      <ChapterTimeStart>00:41:36.869375000</ChapterTimeStart>
      <ChapterTimeEnd>00:45:04.868833333</ChapterTimeEnd>
      <ChapterDisplay>
        <ChapterString>Chapter 09</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
    <ChapterAtom>
      <ChapterUID>10371639625110766431</ChapterUID>
      <ChapterTimeStart>00:45:04.868833333</ChapterTimeStart>
      <ChapterTimeEnd>00:49:10.322375000</ChapterTimeEnd>
      <ChapterDisplay>
        <ChapterString>Chapter 10</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
    <ChapterAtom>
      <ChapterUID>10457978908863115478</ChapterUID>
      <ChapterTimeStart>00:49:10.322375000</ChapterTimeStart>
      <ChapterFlagHidden>0</ChapterFlagHidden>
      <ChapterFlagEnabled>1</ChapterFlagEnabled>
      <ChapterTimeEnd>00:53:21.031166666</ChapterTimeEnd>
      <ChapterDisplay>
        <ChapterString>Chapter 11</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
    <ChapterAtom>
      <ChapterUID>9744279077618860227</ChapterUID>
      <ChapterTimeStart>00:53:21.031166666</ChapterTimeStart>
      <ChapterTimeEnd>00:57:33.324875000</ChapterTimeEnd>
      <ChapterDisplay>
        <ChapterString>Chapter 12</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
    <ChapterAtom>
      <ChapterUID>13609609710497702597</ChapterUID>
      <ChapterTimeStart>00:57:33.324875000</ChapterTimeStart>
      <ChapterFlagHidden>0</ChapterFlagHidden>
      <ChapterFlagEnabled>1</ChapterFlagEnabled>
      <ChapterTimeEnd>01:05:45.024416666</ChapterTimeEnd>
      <ChapterDisplay>
        <ChapterString>Chapter 13</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
    <ChapterAtom>
      <ChapterUID>399336114164411202</ChapterUID>
      <ChapterTimeStart>01:05:45.024416666</ChapterTimeStart>
      <ChapterFlagHidden>0</ChapterFlagHidden>
      <ChapterFlagEnabled>1</ChapterFlagEnabled>
      <ChapterTimeEnd>01:10:46.075166666</ChapterTimeEnd>
      <ChapterDisplay>
        <ChapterString>Chapter 14</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
    <ChapterAtom>
      <ChapterUID>5417802847172188214</ChapterUID>
      <ChapterTimeStart>01:10:46.075166666</ChapterTimeStart>
      <ChapterTimeEnd>01:12:51.950916666</ChapterTimeEnd>
      <ChapterDisplay>
        <ChapterString>Chapter 15</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
    <ChapterAtom>
      <ChapterUID>7946308681749189202</ChapterUID>
      <ChapterTimeStart>01:12:51.950916666</ChapterTimeStart>
      <ChapterFlagHidden>0</ChapterFlagHidden>
      <ChapterFlagEnabled>1</ChapterFlagEnabled>
      <ChapterTimeEnd>01:15:42.120916666</ChapterTimeEnd>
      <ChapterDisplay>
        <ChapterString>Chapter 16</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
    <ChapterAtom>
      <ChapterUID>2692277460654085013</ChapterUID>
      <ChapterTimeStart>01:15:42.120916666</ChapterTimeStart>
      <ChapterFlagHidden>0</ChapterFlagHidden>
      <ChapterFlagEnabled>1</ChapterFlagEnabled>
      <ChapterTimeEnd>01:23:17.409083333</ChapterTimeEnd>
      <ChapterDisplay>
        <ChapterString>Chapter 17</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
    <ChapterAtom>
      <ChapterUID>10245635213267221796</ChapterUID>
      <ChapterTimeStart>01:23:17.409083333</ChapterTimeStart>
      <ChapterFlagHidden>0</ChapterFlagHidden>
      <ChapterFlagEnabled>1</ChapterFlagEnabled>
      <ChapterTimeEnd>01:29:50.927208333</ChapterTimeEnd>
      <ChapterDisplay>
        <ChapterString>Chapter 18</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
    <ChapterAtom>
      <ChapterUID>11903342882333647470</ChapterUID>
      <ChapterTimeStart>01:29:50.927208333</ChapterTimeStart>
      <ChapterFlagHidden>0</ChapterFlagHidden>
      <ChapterFlagEnabled>1</ChapterFlagEnabled>
      <ChapterTimeEnd>01:36:13.726291666</ChapterTimeEnd>
      <ChapterDisplay>
        <ChapterString>Chapter 19</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
    <ChapterAtom>
      <ChapterUID>7495860521718183827</ChapterUID>
      <ChapterTimeStart>01:36:13.726291666</ChapterTimeStart>
      <ChapterTimeEnd>01:47:12.810666666</ChapterTimeEnd>
      <ChapterDisplay>
        <ChapterString>Chapter 20</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
  </EditionEntry>
</Chapters>

Hm, these are in order, just like they’re supposed to.
So I assume it has to do with the chapter titles from ChapterDB, which Plex fetches to augment the existing chapters.

After performing The Plex Dance on the Moana.mkv file the chaters are correct. Below is the xml output

One thing that is different are the chapters names are not there anymore, so where did these chapters names originally come from on the previous XML output?

<Chapter id="58" filter="thumb=58" tag="" index="1" startTimeOffset="0" endTimeOffset="435685"/>
<Chapter id="58" filter="thumb=58" tag="" index="2" startTimeOffset="435685" endTimeOffset="719802"/>
<Chapter id="58" filter="thumb=58" tag="" index="3" startTimeOffset="719802" endTimeOffset="973764"/>
<Chapter id="58" filter="thumb=58" tag="" index="4" startTimeOffset="973764" endTimeOffset="1289579"/>
<Chapter id="58" filter="thumb=58" tag="" index="5" startTimeOffset="1289579" endTimeOffset="1682806"/>
<Chapter id="58" filter="thumb=58" tag="" index="6" startTimeOffset="1682806" endTimeOffset="1931137"/>
<Chapter id="58" filter="thumb=58" tag="" index="7" startTimeOffset="1931137" endTimeOffset="2116280"/>
<Chapter id="58" filter="thumb=58" tag="" index="8" startTimeOffset="2116280" endTimeOffset="2496869"/>
<Chapter id="58" filter="thumb=58" tag="" index="9" startTimeOffset="2496869" endTimeOffset="2704868"/>
<Chapter id="58" filter="thumb=58" tag="" index="10" startTimeOffset="2704868" endTimeOffset="2950322"/>
<Chapter id="58" filter="thumb=58" tag="" index="11" startTimeOffset="2950322" endTimeOffset="3201031"/>
<Chapter id="58" filter="thumb=58" tag="" index="12" startTimeOffset="3201031" endTimeOffset="3453324"/>
<Chapter id="58" filter="thumb=58" tag="" index="13" startTimeOffset="3453324" endTimeOffset="3945024"/>
<Chapter id="58" filter="thumb=58" tag="" index="14" startTimeOffset="3945024" endTimeOffset="4246075"/>
<Chapter id="58" filter="thumb=58" tag="" index="15" startTimeOffset="4246075" endTimeOffset="4371950"/>
<Chapter id="58" filter="thumb=58" tag="" index="16" startTimeOffset="4371950" endTimeOffset="4542120"/>
<Chapter id="58" filter="thumb=58" tag="" index="17" startTimeOffset="4542120" endTimeOffset="4997409"/>
<Chapter id="58" filter="thumb=58" tag="" index="18" startTimeOffset="4997409" endTimeOffset="5390927"/>
<Chapter id="58" filter="thumb=58" tag="" index="19" startTimeOffset="5390927" endTimeOffset="5773726"/>
<Chapter id="58" filter="thumb=58" tag="" index="20" startTimeOffset="5773726" endTimeOffset="6432810"/>

See one post above.
Please include the content of the tag chaptersource which appears earlier in the XML to confirm.

Got it. The original XML had chapterSource=ā€œmixedā€.

I’d like to try and reproduce the issue. How is plex obtaining these chapter names from ChapterDB? I checked the agents and do not see an agent by that name. I also cannot get the names to appear after refreshing the metadata of the movie.

ChapterDB queries are integrated into the Plex Movie agent.
You could try and delete the
https://support.plex.tv/articles/202967376-clearing-plugin-channel-agent-http-caches/
Before performing the Plex Dance with an affected movie again.

Thank you. I deleted everything in the cache folder. Restarted server, performed plex dance. Chapter titles are still not appearing.

I’m assuming that when the movie was originally added it downloaded this list of chapters from here: http://chapterdb.org/browse/209167 How do I force the metadata to download the names?

Also, is there a way to clear the metadata for all the movies without having to perform the plex dance? Because if I perform the dance and re add the movies then I lose the original date/time the movie is added and we frequently arrange movies by when they were added.

Thanks!

Isn’t this thread about the chapters being out of order anymore?

Not really.
There is a workaround, but it relies on your files to have the file date of when they arrived at your hard disk.
In other words: the file date must not get changed to the current date during the move into a different folder.

If that is the case, you can simply delete the library.
When you re-create it and you add all folders before/during the library creation, then Plex will use the file dates as ā€˜Added at’.

Yes, but we still haven’t solved what caused them to be out of order in the first place. I believe the chapter titles that are downloaded to the XML file causes the times to be incorrect. Once I removed the movie and added it, then redownloaded the metadata the chapter tiles are not downloading anymore from ChapterDB. I’m trying to get the chapters titles to download again because I believe when the titles are being downloaded from ChapterDB and then merged with the existing chapters embedded into the MKV the issue occurs. But since it is no longer downloading the chapters and I do not know how to force Plex to download the chapter titles from ChapterDB.

I tried this but Plex still arranges the movies by the date they were discovered in Plex, and not by the date of the file on the HDD. For example, when Plex rediscovered the Moana movie, it showed it was added 4 hours ago, although the created and last modified date was from 4/11/17. Screenshot of that: 2018-09-07_1430

That is my assumption as well.
But why chapterdb isn’t working currently, needs to be investigated separately.

This doesn’t work if you only add a movie to an existing library.
As I said above, it will only work if you create a new library and add the media folders during the creation of the library.