How are chapters scanned?

Hello,

I have a MP4 movie that is missing the usual chapter selection. The rest of my movies are fine.

If I open the file in QuickTime on the Mac I can see the chapters:

But in Plex they are missing.

How can I fix this? I tried looking for errors in my server logs but couldn’t see anything about chapters or the name of the movie.

Thanks.
Ashley

If the chapter information is in the file, Plex will read it directly from the file.

Please post the XML from Plex. If you have the program mediainfo, also provide the text output from that for this file.

I’ve attached those to this post. thanks!

Any ideas on this MovieFan.Plex?

Most Plex clients don’t have a visual representation of chapters yet.
The only exception is the iOS client I think.
But many Plex clients do support jumping back and forth from chapter markers.

In the web client, this is achieved by pressing Alt+ and Alt+

Plex Media Player in fullscreen mode uses and

@“MovieFan.Plex” said:
If the chapter information is in the file, Plex will read it directly from the file.

Please post the XML from Plex. If you have the program mediainfo, also provide the text output from that for this file.

Where are the chapters stored for episodes? I assume the chapters isnt read from the file everytime i call http://127.0.0.1:32400/library/metadata/36?includeChapters=1 ← 36 is a episode!

@Hellowlol said:
Where are the chapters stored for episodes? I assume the chapters isnt read from the file everytime i call http://127.0.0.1:32400/library/metadata/36?includeChapters=1 ← 36 is a episode!

If the episode has chapters, they are imported into the Plex database.
For movies, Plex will fetch chapters from chapterdb.com. But for episodes there is not a comparable service. Therefore the chapters need to be in the media files themselves.
I know Plex reads them from MKV files. Not sure if the same applioes to mp4 files too.

Look at the bottom:

<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="17" librarySectionTitle="Anime Serien" librarySectionUUID="193154db-bb3f-4542-86ab-f4062c8db87b" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1521048616">
<Video ratingKey="126463" key="/library/metadata/126463" skipParent="1" grandparentRatingKey="126461" guid="com.plexapp.agents.thetvdb://245451/1/1?lang=de" librarySectionTitle="Anime Serien" librarySectionID="17" librarySectionKey="/library/sections/17" type="episode" title="Der nemëische Löwe" titleSort="nemeische Lowe" grandparentKey="/library/metadata/126461" grandparentTitle="Appleseed XIII" parentTitle="Staffel 1" contentRating="TV-14" summary="Die futurxxxxxxxxxxx" index="1" parentIndex="1" rating="7.0" year="2011" thumb="/library/metadata/126463/thumb/1488466930" art="/library/metadata/126461/art/1488466931" parentThumb="/library/metadata/126462/thumb/1488466931" grandparentThumb="/library/metadata/126461/thumb/1488466931" grandparentArt="/library/metadata/126461/art/1488466931" duration="1363822" originallyAvailableAt="2011-06-03" addedAt="1409013671" updatedAt="1488466930" chapterSource="media">
<Media videoResolution="1080" id="112514" duration="1363822" bitrate="9186" width="1920" height="1080" aspectRatio="1.78" audioChannels="6" audioCodec="dca" videoCodec="h264" container="mkv" videoFrameRate="24p" audioProfile="dts" videoProfile="high">
<Part accessible="1" exists="1" id="113292" key="/library/parts/113292/1365873167/file.mkv" duration="1363822" file="G:\Anime\Appleseed XIII\Appleseed.XIII.S01E01-1080p.mkv" size="1566025786" audioProfile="dts" container="mkv" indexes="sd" videoProfile="high">
<Stream id="190490" streamType="1" default="1" codec="h264" index="0" bitrate="7024" language="日本語" languageCode="jpn" bitDepth="8" cabac="1" chromaSubsampling="4:2:0" codecID="V_MPEG4/ISO/AVC" duration="1363822" frameRate="23.976" frameRateMode="cfr" hasScalingMatrix="0" height="1080" level="41" pixelFormat="yuv420p" profile="high" refFrames="4" scanType="progressive" title="Appleseed XIII - S01E01 - Der nemëische Löwe" width="1920"/>
<Stream id="190491" streamType="2" default="1" codec="dca" index="1" channels="6" bitrate="1509" language="Deutsch" languageCode="ger" audioChannelLayout="5.1(side)" bitDepth="24" bitrateMode="cbr" codecID="A_DTS" duration="1363808" profile="dts" samplingRate="48000"/>
<Stream id="190492" streamType="2" selected="1" codec="ac3" index="2" channels="6" bitrate="640" language="日本語" languageCode="jpn" audioChannelLayout="5.1(side)" bitDepth="16" bitrateMode="cbr" codecID="A_AC3" dialogNorm="-31" duration="1363808" samplingRate="48000" />
<Stream id="190493" streamType="3" default="1" forced="1" codec="pgs" index="3" language="Deutsch" languageCode="ger" codecID="S_HDMV/PGS" format="pgs" title="Forced PGS"/>
<Stream id="190494" streamType="3" codec="vobsub" index="4" language="Deutsch" languageCode="ger" codecID="S_VOBSUB" format="vobsub" title="Forced VobSub"/>
<Stream id="190495" streamType="3" selected="1" codec="pgs" index="5" language="Deutsch" languageCode="ger" codecID="S_HDMV/PGS" format="pgs" title="Full PGS"/>
<Stream id="190496" streamType="3" codec="vobsub" index="6" language="Deutsch" languageCode="ger" codecID="S_VOBSUB" format="vobsub" title="Full VobSub"/>
</Part>
</Media>
<Writer id="31526" filter="writer=31526" tag="藤咲淳一"/>
<Chapter id="31609" filter="thumb=31609" tag="" index="1" startTimeOffset="0" endTimeOffset="62020" thumb="/library/media/112514/chapterImages/1"/>
<Chapter id="31609" filter="thumb=31609" tag="" index="2" startTimeOffset="62020" endTimeOffset="622789" thumb="/library/media/112514/chapterImages/2"/>
<Chapter id="31609" filter="thumb=31609" tag="" index="3" startTimeOffset="622789" endTimeOffset="1333290" thumb="/library/media/112514/chapterImages/3"/>
<Chapter id="31609" filter="thumb=31609" tag="" index="4" startTimeOffset="1333290" endTimeOffset="1363808" thumb="/library/media/112514/chapterImages/4"/>
</Video>
</MediaContainer>

@OttoKerner said:

@Hellowlol said:
Where are the chapters stored for episodes? I assume the chapters isnt read from the file everytime i call http://127.0.0.1:32400/library/metadata/36?includeChapters=1 ← 36 is a episode!

If the episode has chapters, they are imported into the Plex database.
For movies, Plex will fetch chapters from chapterdb.com. But for episodes there is not a comparable service. Therefore the chapters need to be in the media files themselves.
I know Plex reads them from MKV files. Not sure if the same applioes to mp4 files too.

Look at the bottom:

<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="17" librarySectionTitle="Anime Serien" librarySectionUUID="193154db-bb3f-4542-86ab-f4062c8db87b" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1521048616">
<Video ratingKey="126463" key="/library/metadata/126463" skipParent="1" grandparentRatingKey="126461" guid="com.plexapp.agents.thetvdb://245451/1/1?lang=de" librarySectionTitle="Anime Serien" librarySectionID="17" librarySectionKey="/library/sections/17" type="episode" title="Der nemëische Löwe" titleSort="nemeische Lowe" grandparentKey="/library/metadata/126461" grandparentTitle="Appleseed XIII" parentTitle="Staffel 1" contentRating="TV-14" summary="Die futurxxxxxxxxxxx" index="1" parentIndex="1" rating="7.0" year="2011" thumb="/library/metadata/126463/thumb/1488466930" art="/library/metadata/126461/art/1488466931" parentThumb="/library/metadata/126462/thumb/1488466931" grandparentThumb="/library/metadata/126461/thumb/1488466931" grandparentArt="/library/metadata/126461/art/1488466931" duration="1363822" originallyAvailableAt="2011-06-03" addedAt="1409013671" updatedAt="1488466930" chapterSource="media">
<Media videoResolution="1080" id="112514" duration="1363822" bitrate="9186" width="1920" height="1080" aspectRatio="1.78" audioChannels="6" audioCodec="dca" videoCodec="h264" container="mkv" videoFrameRate="24p" audioProfile="dts" videoProfile="high">
<Part accessible="1" exists="1" id="113292" key="/library/parts/113292/1365873167/file.mkv" duration="1363822" file="G:\Anime\Appleseed XIII\Appleseed.XIII.S01E01-1080p.mkv" size="1566025786" audioProfile="dts" container="mkv" indexes="sd" videoProfile="high">
<Stream id="190490" streamType="1" default="1" codec="h264" index="0" bitrate="7024" language="日本語" languageCode="jpn" bitDepth="8" cabac="1" chromaSubsampling="4:2:0" codecID="V_MPEG4/ISO/AVC" duration="1363822" frameRate="23.976" frameRateMode="cfr" hasScalingMatrix="0" height="1080" level="41" pixelFormat="yuv420p" profile="high" refFrames="4" scanType="progressive" title="Appleseed XIII - S01E01 - Der nemëische Löwe" width="1920"/>
<Stream id="190491" streamType="2" default="1" codec="dca" index="1" channels="6" bitrate="1509" language="Deutsch" languageCode="ger" audioChannelLayout="5.1(side)" bitDepth="24" bitrateMode="cbr" codecID="A_DTS" duration="1363808" profile="dts" samplingRate="48000"/>
<Stream id="190492" streamType="2" selected="1" codec="ac3" index="2" channels="6" bitrate="640" language="日本語" languageCode="jpn" audioChannelLayout="5.1(side)" bitDepth="16" bitrateMode="cbr" codecID="A_AC3" dialogNorm="-31" duration="1363808" samplingRate="48000" />
<Stream id="190493" streamType="3" default="1" forced="1" codec="pgs" index="3" language="Deutsch" languageCode="ger" codecID="S_HDMV/PGS" format="pgs" title="Forced PGS"/>
<Stream id="190494" streamType="3" codec="vobsub" index="4" language="Deutsch" languageCode="ger" codecID="S_VOBSUB" format="vobsub" title="Forced VobSub"/>
<Stream id="190495" streamType="3" selected="1" codec="pgs" index="5" language="Deutsch" languageCode="ger" codecID="S_HDMV/PGS" format="pgs" title="Full PGS"/>
<Stream id="190496" streamType="3" codec="vobsub" index="6" language="Deutsch" languageCode="ger" codecID="S_VOBSUB" format="vobsub" title="Full VobSub"/>
</Part>
</Media>
<Writer id="31526" filter="writer=31526" tag="藤咲淳一"/>
<Chapter id="31609" filter="thumb=31609" tag="" index="1" startTimeOffset="0" endTimeOffset="62020" thumb="/library/media/112514/chapterImages/1"/>
<Chapter id="31609" filter="thumb=31609" tag="" index="2" startTimeOffset="62020" endTimeOffset="622789" thumb="/library/media/112514/chapterImages/2"/>
<Chapter id="31609" filter="thumb=31609" tag="" index="3" startTimeOffset="622789" endTimeOffset="1333290" thumb="/library/media/112514/chapterImages/3"/>
<Chapter id="31609" filter="thumb=31609" tag="" index="4" startTimeOffset="1333290" endTimeOffset="1363808" thumb="/library/media/112514/chapterImages/4"/>
</Video>
</MediaContainer>

Thanks!