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.
2.2 KiB
2.2 KiB
description, i18n_source_hash, i18n_provenance, i18n_output_hash
| description | i18n_source_hash | i18n_provenance | i18n_output_hash |
|---|---|---|---|
| Extrahera bildrutor från en video som en ZIP med bilder. | b06f038dafb3 | human | c9993f561039 |
Video till bildrutor
Extrahera enskilda bildrutor från en video och ladda ner dem som ett ZIP-arkiv med PNG- eller JPG-bilder.
API-slutpunkt
POST /api/v1/tools/video/video-to-frames
Tar emot multipart-formulärdata med en videofil och ett JSON-fält settings.
Parametrar
| Parameter | Typ | Obligatorisk | Standard | Beskrivning |
|---|---|---|---|---|
| mode | string | Nej | "all" |
Extraheringsläge: all, nth, timestamps |
| n | integer | Nej | 10 |
Extrahera var N:e bildruta (2-1000). Används endast när mode är "nth" |
| timestamps | string | Nej | "" |
Kommaseparerade tidsstämplar i sekunder. Obligatorisk när mode är "timestamps" |
| format | string | Nej | "png" |
Bildformat för extraherade bildrutor: png, jpg |
Exempelbegäran
Extrahera var 30:e bildruta som JPG:
curl -X POST http://localhost:1349/api/v1/tools/video/video-to-frames \
-H "Authorization: Bearer si_your-api-key" \
-F "file=@clip.mp4" \
-F 'settings={"mode": "nth", "n": 30, "format": "jpg"}'
Extrahera bildrutor vid specifika tidsstämplar:
curl -X POST http://localhost:1349/api/v1/tools/video/video-to-frames \
-H "Authorization: Bearer si_your-api-key" \
-F "file=@clip.mp4" \
-F 'settings={"mode": "timestamps", "timestamps": "1.5,5,12.3"}'
Exempelsvar
{
"jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"downloadUrl": "/api/v1/download/a1b2c3d4-e5f6-7890-abcd-ef1234567890/clip-frames.zip",
"originalSize": 12500000,
"processedSize": 45000000
}
Anteckningar
- Läget
allextraherar varje bildruta och kan producera mycket stora ZIP-filer för långa videor. Använd lägetnthellertimestampsför selektiv extrahering. - PNG bevarar full kvalitet men producerar större filer. JPG är mindre men förstörande.
- Svaret laddas ner som ett ZIP-arkiv som innehåller sekventiellt numrerade bildfiler.