# SMIL for VOD with caption

**URL:** https://community.wowza.com/t/smil-for-vod-with-caption/49947
**Category:** Wowza Streaming Engine
**Created:** [October 17, 2017, 7:00am UTC](https://community.wowza.com/t/smil-for-vod-with-caption/49947 "2017-10-17T07:00:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![yashar\_vasegh](https://avatars.discourse-cdn.com/v4/letter/y/aca169/32.png) [@yashar\_vasegh](https://community.wowza.com/u/yashar_vasegh)
#### Post date: [October 17, 2017, 7:00am UTC](https://community.wowza.com/t/smil-for-vod-with-caption/49947/1 "2017-10-17T07:00:11Z")

</div>

this is my simple smil file:

```auto
<?xml version="1.0" encoding="UTF-8"?>
<smil title="vod-slim">
   <body>
    <switch>

        <video src="7/assets/products/Movie/1508076480_MXzoGWG94b_160p.mp4" system-bitrate="357200"></video>

        <video src="7/assets/products/Movie/1508076480_MXzoGWG94b_360p.mp4" system-bitrate="662000"></video>

        <textstream src="sub_titles/1508076480_6M53grmeGY.vtt" system-language="ger">
             <param name="isWowzaCaptionStream" value="true" />
        </textstream>

        <textstream src="sub_titles/1508055070_bkqMuEnUxR.vtt" system-language="eng">
             <param name="isWowzaCaptionStream" value="true" />
        </textstream>

    </switch>
   </body>
</smil>

```

i use HLS.

my problem is:

1- i could not get language title in any player, it just show unknown subtitle in cc buttons

2- it only serves the first subtitle, i don’t get two subtitles

3- it only serves vtt and ttml files, if i add srt files if wont work (srt is enabled in setup)

also i have a question related to subtitle:

4- i embed subtitles to video by ffmpeg. but i cant show subtitles in players streamed by wowza, is this possible by wowza to serve subtitles embed in files?

regards.

---

<div class="post-metadata">

### Author: ![yashar\_vasegh](https://avatars.discourse-cdn.com/v4/letter/y/aca169/32.png) [@yashar\_vasegh](https://community.wowza.com/u/yashar_vasegh)
#### Post date: [October 22, 2017, 6:13am UTC](https://community.wowza.com/t/smil-for-vod-with-caption/49947/2 "2017-10-22T06:13:26Z")

</div>

there is no answer for this question? anybody?!

---

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)
#### Post date: [October 22, 2017, 6:03pm UTC](https://community.wowza.com/t/smil-for-vod-with-caption/49947/3 "2017-10-22T18:03:37Z")

</div>

SMIL files are unique to each protocol. Note that subtitles are not supported with MPEG-DASH.

Please take a look at the following article for how to deliver multiple sidecar subtitle files via HTML5.

[https://www.wowza.com/docs/how-to-to-serve-caption-files-for-video-on-demand-streaming](https://www.wowza.com/docs/how-to-to-serve-caption-files-for-video-on-demand-streaming)

SMIL files support only one textstream value. Your SMIL file is using two.

[https://www.wowza.com/docs/how-to-stream-webvtt-subtitles-to-ios-for-closed-captioning](https://www.wowza.com/docs/how-to-stream-webvtt-subtitles-to-ios-for-closed-captioning)

From the article.

#### _To play using a SMIL file_

_To play adaptive bitrate (ABR) streams using a SMIL file, the caption info must be added to the SMIL file using a single **textstream** tag (SMIL files don’t support multiple **textstream** tags)._

If you use a SMIL file for ABR content delivery and provide more than one subtitle language track then you must use a multi-language caption file. This would be a TTML file that combines all necessary languages into one file.

We have an article on how to switch between different subtitles. I have hot linked to the format of the TTML file.

[https://www.wowza.com/docs/How-to-configure-closed-captioning-language-selection-for-video-on-demand-streaming#multiLanguage](https://www.wowza.com/docs/How-to-configure-closed-captioning-language-selection-for-video-on-demand-streaming#multiLanguage)
