← The Atlas

Movie and episode chapters

A chapter lets you jump straight to a scene. Apple has shipped that simple idea in two quite different forms. In these movie purchases, you can see the difference in the way Apple stores the names, pictures and start times.

A chapter track or a chapter list

Apple’s QuickTime format describes a chapter as a named point along the movie’s timeline. An enabled movie track can carry a chap reference to a text track with a sample at each chapter start. Nine of the ten M4V movies exposed timed chapter entries. Each of those nine also carried a timed JPEG track with chapter thumbnails.

The ten HLS movies all carried chapter lists in local package metadata. Some packages held more than one equivalent copy of a list. Each list is counted once here. None of the 107 episode files exposed a chapter list.

DeliveryLists observedChapters per observed listCompanion image information
Movie, M4V9 of 105–28Timed JPEG thumbnail track in each of the nine
Movie, HLS package10 of 1011–32Chapter thumbnail references in local metadata
TV episode, M4V0 of 107No list observedNo chapter list returned by the file probe

The published format and the copy on disk

Apple’s public HLS chapter guide describes a playlist that points to a JSON document. In that document each chapter has a numeric start-time. Titles and images are arrays, so the player can choose a title by language and an image by its attributes.

Open one of the ten offline packages and the same ideas have a different spelling. The saved chapter list was in an Apple property list. Across its 193 entries, start was a decimal number written as text, titles was a dictionary keyed by language, and images was a dictionary keyed by size. All 193 had a 640x thumbnail reference. The actual image heights and pixels were outside the inspection.

That distinction matters if you build a chapter reader. A validator for Apple’s public streaming JSON expects a different structure from the one TV saved for offline use. The local files show that difference directly. They cannot tell us what the service originally sent over the network.

When the chapter name is simply a number

Apple asks film providers to preserve named chapters from the physical release when those names exist. Of 152 flat-file chapters, 48 carried the word “Chapter” followed by a number, and 104 carried other text. Each exposed one title, with no language tag reported alongside it. Assessing any individual title against Apple’s delivery guidance would also require the corresponding physical edition.

Apple’s HLS guide explicitly provides for a language-neutral title, using the tag und for something like a number. Every one of the 193 package entries included just such a numeric string. The English labels could be numbers, numbered chapter labels or descriptive text. In 112 entries, at least two language keys had different labels. The remaining 81 repeated the same label across their keys. en means English and en-US means U.S. English, so two keys alone are no guarantee of two distinct translations.

Keys present togetherMovie packagesChapter entries
en-US and und8169
en, en-US and und113
en and und111

How long does the chapter last?

The flat-file entries make the arithmetic easy. All 152 gave start and end positions in one-millisecond ticks. One chapter began at 0 and ended at 153695. That is 153.695 seconds, or 2 minutes and 33.695 seconds.

In the package lists Apple supplied only start times. Its HLS chapter guide describes duration as optional and gives a default that works here. Take two consecutive starts, 374.958 and 891.057 seconds. Their difference, 516.099 seconds, is the earlier chapter’s duration. This works for 183 package entries. For the last chapter in each movie, you need the end of the presentation or another explicit end time.

The movie without a chapter list

One movie broke the pattern. Its M4V had a 720 × 476 video track and exposed neither chapters nor a timed thumbnail track. Lower resolution makes an older delivery an intriguing possibility, but the dimensions cannot date a file or explain its missing chapters. This collection shows that both delivery styles coexist. It supplies no timeline for when Apple changed an individual title.

Apple’s developer guide describes reading chapter data through AVFoundation. The public scripting dictionary in the installed TV app exposed no chapter command or property. Whether TV’s playback controls showed chapter navigation for the exceptional movie was outside this comparison.