> For the complete documentation index, see [llms.txt](https://docs.roboflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboflow.com/roboflow/roboflow-jp/deploy/serverless/video-inference.md).

# Video Inference

{% hint style="warning" %}
当社のHosted Video Inference方式はインターネット接続が必要で、保存済みの動画ファイル上で実行されます。リアルタイムの動画ストリームに対するエッジ推論については、当社の [Inference](https://inference.roboflow.com) documentation。
{% endhint %}

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

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

1. 動画をアップロードする
2. アップロードした動画に対して、モデルまたはモデルのリストで推論をリクエストする
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でサポート |
| ------------------------------------------------------------------------------- | --------------- |
| [物体検出](https://docs.roboflow.com/deploy/video-inference/use-a-fine-tuned-model) | ✅               |
| [CLIP](https://docs.roboflow.com/deploy/video-inference/use-clip)               | ✅               |
| [視線検出](https://docs.roboflow.com/deploy/video-inference/use-gaze-detection)     | ✅               |
| Classification                                                                  | ✅               |
| インスタンスセグメンテーション                                                                 | ✅               |
| セマンティックセグメンテーション                                                                | ✅               |

### 使用例

Video Inference APIを使用できるいくつかの使用例を以下に示します：

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

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

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
