Files
SnapOtter/apps/docs/hi/tools/video/embed-subtitles.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

2.6 KiB

description, i18n_source_hash, i18n_provenance, i18n_output_hash
description i18n_source_hash i18n_provenance i18n_output_hash
किसी सबटाइटल ट्रैक को वीडियो कंटेनर में mux करें। be272730fff5 human 0ce7554cd7f8

Embed Subtitles

एक सबटाइटल फ़ाइल को वीडियो कंटेनर में एक सॉफ़्ट सबटाइटल ट्रैक के रूप में mux करें, जिसे दर्शक चालू या बंद कर सकते हैं।

API Endpoint

POST /api/v1/tools/video/embed-subtitles

एक वीडियो फ़ाइल और एक सबटाइटल फ़ाइल के साथ, तथा एक JSON settings फ़ील्ड के साथ multipart form data स्वीकार करता है।

Parameters

Parameter Type Required Default Description
language string No "eng" ISO 639-2/B भाषा कोड (3 छोटे अक्षर, जैसे "eng", "fra", "deu")

Example Request

curl -X POST http://localhost:1349/api/v1/tools/video/embed-subtitles \
  -H "Authorization: Bearer si_your-api-key" \
  -F "file=@clip.mp4" \
  -F "file=@subtitles.srt" \
  -F 'settings={"language": "fra"}'

Example Response

{
  "jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "downloadUrl": "/api/v1/download/a1b2c3d4-e5f6-7890-abcd-ef1234567890/clip.mp4",
  "originalSize": 12500000,
  "processedSize": 12520000
}

Notes

  • दो फ़ाइलें अपलोड करें: पहली एक वीडियो होनी चाहिए, दूसरी एक सबटाइटल फ़ाइल (.srt, .vtt, या .ass) होनी चाहिए।
  • एम्बेडेड (सॉफ़्ट) सबटाइटल को दर्शक अपने मीडिया प्लेयर में टॉगल कर सकते हैं। स्थायी रूप से दिखने वाले सबटाइटल के लिए, इसके बजाय Burn Subtitles टूल का उपयोग करें।
  • भाषा कोड कंटेनर में मेटाडेटा के रूप में संग्रहीत होता है और मीडिया प्लेयर को सबटाइटल ट्रैक लेबल करने में मदद करता है।