mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
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.
1.4 KiB
1.4 KiB
description, i18n_source_hash, i18n_provenance, i18n_output_hash
| description | i18n_source_hash | i18n_provenance | i18n_output_hash |
|---|---|---|---|
| 將多個影片片段合併為一個檔案。 | 90463dfbb580 | human | d27fda098d78 |
Merge Videos
將多個影片片段合併為單一 MP4 檔案。所有輸入都會正規化為第一段影片的解析度和 30 fps。
API Endpoint
POST /api/v1/tools/video/merge-videos
接受包含兩個或以上影片檔案的 multipart form data。這是一個非同步端點,它會立即回傳 202 Accepted,進度則透過 SSE 於 GET /api/v1/jobs/{jobId}/progress 串流傳送。
Parameters
此工具沒有設定參數。以多個 file 部分上傳 2-10 個影片檔案。
Example Request
curl -X POST http://localhost:1349/api/v1/tools/video/merge-videos \
-H "Authorization: Bearer si_your-api-key" \
-F "file=@intro.mp4" \
-F "file=@main.mp4" \
-F "file=@outro.mp4"
Example Response
{
"jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"async": true
}
Notes
- 片段會依上傳順序串接。
- 所有片段都會重新編碼,以符合第一段片段的解析度、影格率(30 fps)和編解碼器(H.264)。不一致的輸入會自動正規化。
- 每次請求接受 2-10 個影片檔案。
- 在工作完成之前,可透過 SSE 於
GET /api/v1/jobs/{jobId}/progress取得進度更新。