# Video Inference

{% hint style="warning" %}
当社のHosted Video Inferenceメソッドはインターネット接続が必要で、保存済みの動画ファイル上で実行されます。リアルタイムの動画ストリームに対するedge inferenceについては、当社の [Inference](https://inference.roboflow.com) ドキュメントをご参照ください。
{% endhint %}

Video Inference APIは、非同期の動画処理向けに最適化されています。任意のモデルの実行をサポートしており、 [Roboflow Inference](https://roboflow.com/inference) が実装するもの（CLIPのようなfoundation models、 [Roboflowで学習した](https://roboflow.com)カスタムのfine-tuned models、さらに [Roboflow Universe](https://universe.roboflow.com)で他のユーザーが共有した数千のモデルを含む）を使って、録画済み動画の全フレームまたは一部のフレームに対する予測を取得できます。

APIを使用して予測を取得するには、以下の手順に従ってください：

1. 動画をアップロードする
2. アップロードした動画に対して、モデルまたはモデルのリストに対するinferenceをリクエストする
3. 結果が利用可能になるまでポーリングする

GPUを効率的にバッチ処理・活用するための最適化と、より高いレイテンシ許容により、Video Inference APIは保存済み動画（リアルタイムストリーミングではない）の処理において、画像ベースの [Roboflow Serverless Hosted API](/roboflow/roboflow-jp/deploy/serverless.md).

API出力形式の仕様を確認する [こちら](https://docs.roboflow.com/deploy/hosted-api/video-inference/video-inference-json-output-format).

### モデルサポート

以下のモデルタイプでVideo Inference APIを使用できます：

| タスクタイプ                                                                                      | Hosted APIでサポート |
| ------------------------------------------------------------------------------------------- | --------------- |
| [Object Detection](https://docs.roboflow.com/deploy/video-inference/use-a-fine-tuned-model) | ✅               |
| [CLIP](https://docs.roboflow.com/deploy/video-inference/use-clip)                           | ✅               |
| [Gaze Detection](https://docs.roboflow.com/deploy/video-inference/use-gaze-detection)       | ✅               |
| Classification                                                                              | ✅               |
| Instance Segmentation                                                                       | ✅               |
| Semantic Segmentation                                                                       | ✅               |

### 使用例

Video Inference APIを使用できる例として、以下のユースケースがあります：

* 動画タグ付け
* 動画モデレーション（例：メディア内の暴力表現や露骨なシーンを検索する）、
* ブランドや製品を見つけてタグ付けする
* 動画からテキストを抽出する
* シーンの分割と分類
* オブジェクト数のカウント
* メディア検索インデックス作成
* 動画内でコンテキスト広告を配置できる領域を特定する
* など。

### **重要な注意事項**

1. 現在、video inferenceは以下の動画ファイル拡張子をサポートしています： *mp4, MP4, avi, AVI, mkv, MKV, webm, WEBM.*
2. Roboflowは、同じアップロード済み動画でvideo inferenceを再実行できるように、アップロードされた動画を1週間キャッシュします。これにより、動画全体を繰り返しアップロードする必要がなくなります。この1週間の期間を過ぎると、動画は完全に削除されます。
3. Roboflowにアップロードされた動画は、ダウンロードすることはできません。アップロード機能は、バックエンドが推論目的で動画を処理できるようにするためだけのものです。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.roboflow.com/roboflow/roboflow-jp/deploy/serverless/video-inference.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
