Files
SnapOtter/apps/docs/ja/tools/video/convert-video.md
T
SnapOtterandGitHub 4963ab3bbd feat(docs-i18n): translate all documentation into 20 languages
All 181 docs markdown files translated into 20 languages (apps/docs/<locale>/**). Companion to the i18n code PR; admin-merged because the file count exceeds GitHub's per-PR CI trigger limit. Validated by pnpm i18n:check (all surfaces, 0 stale/missing) and a clean all-locale docs build.
2026-07-11 13:52:47 +08:00

1.9 KiB

description, i18n_source_hash, i18n_provenance, i18n_output_hash
description i18n_source_hash i18n_provenance i18n_output_hash
動画を MP4、MOV、WebM、AVI、MKV 間で変換します。 8f9e6418b1c6 human dcac29f235f7

Convert Video

設定可能な品質プリセットで、動画を MP4、MOV、WebM、AVI、MKV フォーマット間で変換します。

API Endpoint

POST /api/v1/tools/video/convert-video

動画ファイルと JSON の settings フィールドを含む multipart フォームデータを受け付けます。これは非同期エンドポイントで、即座に 202 Accepted を返し、進捗は GET /api/v1/jobs/{jobId}/progress の SSE でストリーミングされます。

Parameters

Parameter Type Required Default Description
format string No "mp4" 出力フォーマット: mp4movwebmavimkv
quality string No "balanced" 品質プリセット: highbalancedsmall

Example Request

curl -X POST http://localhost:1349/api/v1/tools/video/convert-video \
  -H "Authorization: Bearer si_your-api-key" \
  -F "file=@clip.mp4" \
  -F 'settings={"format": "webm", "quality": "balanced"}'

Example Response

{
  "jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "async": true
}

Notes

  • high 品質プリセットは最良の視覚的忠実度を生み出しますが、ファイルは大きくなります。small プリセットは最小のファイルサイズを目指して積極的に圧縮します。
  • WebM 出力は VP9 エンコードを使用します。MP4 と MOV は H.264 を使用します。AVI と MKV はレガシーまたはアーカイブ用途向けに利用できます。
  • ジョブが完了するまで、進捗の更新は GET /api/v1/jobs/{jobId}/progress の SSE で確認できます。