# Using Wowza for Closed Captions on Twitch

**URL:** <https://community.wowza.com/t/using-wowza-for-closed-captions-on-twitch/55065>\
**Category:** Wowza Streaming Engine\
**Created:** [April 28, 2020, 1:53pm UTC](https://community.wowza.com/t/using-wowza-for-closed-captions-on-twitch/55065 "2020-04-28T13:53:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![henry\_page](https://avatars.discourse-cdn.com/v4/letter/h/9fc29f/32.png) [@henry\_page](https://community.wowza.com/u/henry_page)\
**Post date:** [April 28, 2020, 1:53pm UTC](https://community.wowza.com/t/using-wowza-for-closed-captions-on-twitch/55065/1 "2020-04-28T13:53:34Z")

</div>

I am using Wowza to livestream a pre-recorded, pre-captioned local file to [Twitch.tv](http://Twitch.tv). Twitch specify that Wowza can be used to format a livestream in the correct way such that Twitch recognises a caption file and shows it as closed captions on the stream. The video file is an mp4, and I have captions as EIA-608 in a separate sidecar file (as both .scc and .srt). Twitch specify that:

### Captions may be transmitted using one of the following methods:1. CEA-708/EIA-608 embedded in the video elementary stream as described in ATSC A/72 (SEI user\_data). This format is common among television broadcast encoders.

1. CEA-708/EIA-608 transmitted via RTMP onCaptionInfo script/AMF0 tag. This format is common among Internet broadcast encoders and media servers such as Elemental Technologies and Wowza.

I have been able to use Wowza to stream to Twitch, but have been unable to get captions to show up on the stream.

I wanted to ask how I can use Wowza to either embed CEA708/EIA608 captions within a video file for streaming, or how to use Wowza to transmit CEA-708/EIA-608 via RTMP onCaptionInfo script/AMF0 tag? I have read multiple articles on using Wowza with closed captions but I have been unable to use them to do either of these tasks specifically.

Thank you so much

---

<div class="post-metadata">

**Author:** ![Mac\_Hill](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/mac_hill/32/434_2.png) [@Mac\_Hill](https://community.wowza.com/u/Mac_Hill)\
**Post date:** [July 16, 2020, 5:25pm UTC](https://community.wowza.com/t/using-wowza-for-closed-captions-on-twitch/55065/2 "2020-07-16T17:25:11Z")

</div>

Hello Henry,

To clarify, I will assume you are using the method [in this article](https://www.wowza.com/docs/how-to-publish-a-video-file-as-a-live-stream) to re-stream the vod file. So, to get the captions into the “live stream” you will need to[inject the captions](https://www.wowza.com/docs/how-to-configure-closed-captioning-for-live-streaming#ingesting-amf-ontextdata-captions).

You can use the Wowza Streaming Engine Java API to inject **onTextData** events into live streams using the **[IMediaStream.sendDirect()](https://www.wowza.com/resources/serverapi/4.5.0/com/wowza/wms/stream/IMediaStream.html)** call (see [Example module for publishing onTextData captions](https://www.wowza.com/docs/how-to-configure-closed-captioning-for-live-streaming#publishing_ontextdata) to download the PublishOnTextData package, which uses this API). This enables a publisher that passes closed-caption data in the form of timed text events or SMPTE events to use the Wowza Streaming Engine Java API to inject **onTextData** into a live stream. The **onTextData** is intercepted and injected into the stream as **CEA-608** events.

This is a bit advanced to configure, but if you need to clarify or ask questions on your workflow, please send those to the [Wowza Support team](https://www.wowza.com/support/open-ticket) to work with you directly.

Regards,

Mac
