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

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

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

自由形式のプロンプト

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

レスポンス


[
  {
    "timecode": "00:00-00:16",
    "chapterSummary": "The video opens with breathtaking aerial views of Rio de Janeiro, showcasing iconic landmarks such as Sugarloaf Mountain and the Christ the Redeemer statue. It then transitions to scenes of the vibrant beach culture and the bustling city life."
  },
  {
    "timecode": "00:16-00:36",
    "chapterSummary": "The video shifts its focus to the favelas, highlighting the stark contrast between the affluent areas of Rio and these underserved communities. It emphasizes the negative stereotypes associated with favelas, often portrayed through news reports as hubs of crime, poverty, and violence."
  },
  {
    "timecode": "00:36-00:57",
    "chapterSummary": "The video introduces Google's initiative to collaborate with favela residents in mapping their communities. It underscores the importance of providing favelas with a sense of identity and recognition by giving them addresses and making them visible on maps. The chapter emphasizes that favelas are not just places but communities with rich cultures and resilient people."
  }
]
モデル: gemini-1.5-pro-preview-0409
Temperature: 1
最大出力トークン: 8192
TopK: 40
トップ P 0.95