Extract video chapters

Extract the chapters in a video as structured JSON

You can query a model directly and test the results returned when using different parameter values with the Cloud console, or by calling the Vertex AI API directly.

Prompt Freeform

Chapterize the video content by grouping the video content into chapters and providing a summary for each chapter. Please only capture key events and highlights. If you are not sure about any info, please do not make it up. Return the result in the JSON format with keys as follows : "timecode", "chapterSummary"

Response

I've compiled a schedule of events from the video, each with its duration and a description.

[
 {
  "timecode": "00:00 - 00:19",
  "chapterSummary": "The video opens with breathtaking aerial views of Rio de Janeiro, showcasing iconic landmarks like Christ the Redeemer and Sugarloaf Mountain. It highlights the well-known tourist spots such as Ipanema and Copacabana beaches, depicting a vibrant city life with surfing, beach vendors, and music."
 },
 {
  "timecode": "00:19 - 00:33",
  "chapterSummary": "The focus shifts to the lesser-known side of Rio: the favelas. The narrator explains that one in five residents live here and that these areas are often only known through negative news reports about crime and poverty."
 },
 {
  "timecode": "00:33 - 00:48",
  "chapterSummary": "This chapter reveals that the negative stereotypes are only a small part of the story. It introduces Google's initiative to work with locals to map the favelas, emphasizing that having an address is a key part of identity. The video shows scenes of everyday life, community, and culture within the favelas."
 },
 {
  "timecode": "00:48 - 00:57",
  "chapterSummary": "The video concludes with a call to action, stating that over 1.4 million people live in Rio's favelas. It invites viewers to explore these communities in a 360-degree experience to see the reality for themselves, providing a link to the project."
 }
]
Model: gemini-2.5-pro
Temperature: 0.2
Max output tokens: 8192
TopK: 40.0
TopP: 0.95