Skip to main content

Subtitles

LightFlow supports WebVTT subtitles for DASH, HLS and Microsoft Smooth Streaming packaged content. To include them in the generated stream, enable DASH, HLS and/or Microsoft Smooth Streaming packaging and provide as many subtitle entries as required (one per language):

  • URL of the webVTT subtitle file
  • language code
  • description label


BASH
curl -XPOST 'https://api.lightflow.media/assets' \
  -H 'authorization: Bearer API_TOKEN' \
  -H 'content-type: application/json' \
  -d '{ \
      "parameters": { \
          "input": { \
              "urlPath": "http://someserver.com/VideoSample.mp4", \
              "subtitles": [ \
                { \
                  "lang": "en", \
                  "label": "English", \
                  "input": { \
                    "urlPath": "https://example.com/en.vtt" \
                  } \
                }, {\
                  "lang": "es", \
                  "label": "EspaƱol", \
                  "input": { \
                    "urlPath": "https://example.com/es.vtt" \
                  } \
                } \
              ] \
            }, \
            "output": { \
              "packaging": { \
                "hls": true, \
                "mpegdash": true \
              } \
            }, \
            "perceptual-quality": { \
              "h264": { \
                  "maxBitrate": 8000, \
                  "minBitrate": 250, \
                  "maxResolution": 1080, \
                  "targetQuality": 100 \
                } \
            } \
      } \
    }'
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.