動画のチャプターを抽出する

動画のチャプターを構造化 JSON として抽出する

モデルにクエリを直接実行して、返された結果をテストできます。その場合、Cloud コンソールでさまざまなパラメータ値を使用することも、Vertex AI API を直接呼び出すこともできます。

自由形式のプロンプト

動画コンテンツをチャプターに分割し、各チャプターに概要を示すことで、動画コンテンツをチャプター化します。重要なイベントとハイライトのみをキャプチャしてください。不明な情報については、推測しないでください。結果を JSON 形式で返します。キーは、"timecode" と "chapterSummary" です。

レスポンス

[
  {
    "timecode": "00:00-00:04",
    "chapterSummary": "The video starts with an aerial view of Rio de Janeiro, showcasing the Christ the Redeemer statue and the coastline. The title card for \"Google presents Beyond the Map\" is displayed."
  },
  {
    "timecode": "00:04-00:10",
    "chapterSummary": "The video shows various scenes of Rio's famous beaches, including people playing soccer, a vendor selling hats, and a man relaxing on the sand. An aerial view of the city's landscape is also shown."
  },
  {
    "timecode": "00:10-00:18",
    "chapterSummary": "The video continues to showcase the well-known aspects of Rio, such as a skateboarder, a man sunbathing, and people walking along the beach. It also features a street musician playing a guitar."
  },
  {
    "timecode": "00:18-00:35",
    "chapterSummary": "The video shifts focus to the favelas, highlighting the dense housing and daily life within these communities. It also touches upon the negative perceptions often associated with favelas, such as crime and poverty."
  },
  {
    "timecode": "00:35-00:48",
    "chapterSummary": "The video explains Google's initiative to map the favelas, emphasizing the importance of providing addresses to residents and fostering a better understanding of these communities. It shows scenes of daily life in the favelas, including children playing soccer and people going about their daily routines."
  },
  {
    "timecode": "00:48-00:57",
    "chapterSummary": "The video concludes with text stating that over 1.4 million people in Rio live in favelas, inviting viewers to explore their world in 360° via a provided link. The Google logo and website address are displayed."
  }
]
モデル: gemini-1.5-flash-002
温度: 0.2
最大出力トークン: 8192
TopK: 40.0
TopP: 0.95