Skip to main content

Quick start

It's easy to run Accurate.Video Subtitle using launch templates.

https://apps.accurate.video/launch/subtitle?launchTemplate=https://apps.accurate.video/assets/json/default-subtitle-template.json

You can examine the launch template that is used by adding the query parameter manual to the url.

https://apps.accurate.video/launch/subtitle?launchTemplate=https://apps.accurate.video/assets/json/default-subtitle-template.json&manual

Opening the link above will take you to the launch template editor view. The editor view displays the launch template and allows you to modify the different configurations of the launch template, like changing the media, adding markers and so on.

note

Read more about the launch template format in the reference documentation.

Configure media

Let's change the media from Sintel to Tears Of Steel, starting with the video.

{
"type": "VIDEO",
"url": "https://accurate-player-static.s3.eu-central-1.amazonaws.com/TearsOfSteel/TearsOfSteel.mp4",
"metadata": [
{
"key": "filename",
"value": "Tears Of Steel"
},
{
"key": "language",
"value": "en"
}
]
}

We just replace the url. Accurate.Video Subtitle will analyze the file and extract information such as frame rate and duration.

Next we change the discrete audio file. This file is actually not necessary since the video already has muxed audio, but we'll keep it for demonstration purposes.

{
"url": "https://accurate-player-static.s3.eu-central-1.amazonaws.com/TearsOfSteel/audio/en-US.wav",
"type": "AUDIO",
"metadata": [
{
"key": "filename",
"value": "Tears Of Steel (Stereo)"
}
],
"container": {
"audioStreams": [
{
"channels": 2
}
]
}
}

Again, we just replace the url. Audio files are not analyzed so we need to provide a channel count.

We add two subtitles providing the correct container format.

{
"type": "SUBTITLE",
"url": "https://accurate-player-static.s3.eu-central-1.amazonaws.com/TearsOfSteel/subtitles/TOS-en.imsc",
"metadata": [
{
"key": "filename",
"value": "Tears Of Steel (English)"
}
],
"container": {
"format": "imsc"
}
},
{
"type": "SUBTITLE",
"url": "https://accurate-player-static.s3.eu-central-1.amazonaws.com/TearsOfSteel/subtitles/TOS-de.imsv",
"metadata": [
{
"key": "filename",
"value": "Tears Of Steel (German)"
}
],
"container": {
"format": "imsc"
}
}
Try it out

Configure settings

Accurate.Video Subtitle allows for customization using the settings block in the launch template.

{
"data": [
...
],
"settings": {
"videoFileDisplay": "%filename",
"audioFileDisplay": "%filename (%channels channels)",
"subtitleFileDisplay": "%filename"
}
}

In the example above we configure the labels which are displayed in the Accurate.Video Subtitle interface.

Next step

You've seen how to modify a launch template to configure media, markers and settings. Next step is to learn how to launch Accurate.Video Subtitle with a custom template.