即時鏡頭轉換偵測

Video Intelligence Streaming API 支援在即時串流輸入媒體資料和即時串流輸出分析結果時即時偵測鏡頭轉換。

下列設定 JSON 物件顯示如何使用 AIStreamer 即時鏡頭轉換偵測功能來為串流影片加上註解。

{
    "video_config": {
        "feature": "STREAMING_SHOT_CHANGE_DETECTION"
    }
}

AIStreamer 會傳回類似下列範例的回應。

Reading response.
Shot: 0.0s to 4.170837s
Shot: 4.204204s to 7.107107s
Shot: 7.140473s to 11.778445s
Shot: 11.811811s to 17.28395s
Shot: 17.317317s to 20.82082s
Shot: 20.854187s to 24.591257s
Shot: 24.624624s to 30.063396s