# Error when encrypting MPEG-DASH VOD stream

**URL:** <https://community.wowza.com/t/error-when-encrypting-mpeg-dash-vod-stream/46434>\
**Category:** Wowza Streaming Engine\
**Created:** [February 10, 2016, 8:06am UTC](https://community.wowza.com/t/error-when-encrypting-mpeg-dash-vod-stream/46434 "2016-02-10T08:06:02Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roger\_Slaaen](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@Roger\_Slaaen](https://community.wowza.com/u/Roger_Slaaen)\
**Post date:** [February 10, 2016, 8:06am UTC](https://community.wowza.com/t/error-when-encrypting-mpeg-dash-vod-stream/46434/1 "2016-02-10T08:06:02Z")

</div>

Hi

We are doing On-the-fly CENC-Multi-DRM encryption using server-side API for both VOD and LIVE ([https://www.wowza.com/docs/how-to-secure-mpeg-dash-streaming-using-common-encryption-cenc](https://www.wowza.com/docs/how-to-secure-mpeg-dash-streaming-using-common-encryption-cenc)). This was working with Wowza Streaming Engine 4.3 for both PlayReady and Widevine. With Wowza Streaming Engine 4.4 we are seeing the following exception when encrypting the VOD content:

```auto
2016-02-10	07:30:52	CET	comment	server	ERROR	500	-	MP4FragmentWriter.writeAtomTENC : java.lang.IndexOutOfBoundsException: Index: 0, Size: 0|at java.util.ArrayList.rangeCheck(ArrayList.java:653)|at java.util.ArrayList.get(ArrayList.java:429)|at com.wowza.wms.media.mp4.fragment.MP4FragmentWriter.a(MP4FragmentWriter.java:2905)|at com.wowza.wms.media.mp4.fragment.MP4FragmentWriter.writeAtomSTSD(MP4FragmentWriter.java:2845)|at com.wowza.wms.httpstreamer.mpegdashstreaming.file.MediaReaderH264MPEGDash.fillChunk(MediaReaderH264MPEGDash.java:1328)|	-	-	-	1.628	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-

```

Log for the stream:

```auto
2016-02-10	07:30:51	CET	connect	mpegdash	INFO	200	1281577953	-	_defaultVHost_	CX-DRM	_definst_	0.792	10.0.1.79	1935	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	10.0.1.79	http (mpegdash)	http://localhost:8074/	Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36	1281577953	0	0	-	0	-	-	ODC-100014_bitrate.mp4	-	-	-	-	-	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	-	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	-
2016-02-10	07:30:51	CET	connect	mpegdash	INFO	200	729326923	-	_defaultVHost_	CX-DRM	_definst_	0.792	10.0.1.79	1935	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	10.0.1.79	http (mpegdash)	http://localhost:8074/	Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36	729326923	0	0	-	0	-	-	ODC-100014_bitrate.mp4	-	-	-	-	-	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	-	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	-
2016-02-10	07:30:51	CET	create	stream	INFO	200	ODC-100014_bitrate.mp4	-	_defaultVHost_	CX-DRM	_definst_	0.001	10.0.1.79	1935	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	10.0.1.79	http (mpegdash)	http://localhost:8074/	Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36	1281577953	0	0	2	0	0	0	ODC-100014_bitrate.mp4	-	-	-	-	-	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	-	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	-
2016-02-10	07:30:51	CET	create	stream	INFO	200	ODC-100014_bitrate.mp4	-	_defaultVHost_	CX-DRM	_definst_	0.003	10.0.1.79	1935	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	10.0.1.79	http (mpegdash)	http://localhost:8074/	Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36	729326923	0	0	1	0	0	0	ODC-100014_bitrate.mp4	-	-	-	-	-	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	-	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	-
2016-02-10	07:30:52	CET	comment	server	INFO	200	-	MediaReaderH264MPEGDash.indexFile[CX-DRM/_definst_/ODC-100014_bitrate.mp4][mp4a.40.2]: AAC Audio info: {MediaCodecInfoAudio: codec:AAC, channels:2, frequency:48000, samplesPerFrame:1024, objectType:LC}	-	-	-	0.879	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2016-02-10	07:30:52	CET	comment	server	INFO	200	-	MediaReaderH264MPEGDash.indexFile[CX-DRM/_definst_/ODC-100014_bitrate.mp4][mp4a.40.2]: AAC Audio info: {MediaCodecInfoAudio: codec:AAC, channels:2, frequency:48000, samplesPerFrame:1024, objectType:LC}	-	-	-	0.879	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2016-02-10	07:30:52	CET	comment	server	INFO	200	-	MediaReaderH264MPEGDash.indexFile[CX-DRM/_definst_/ODC-100014_bitrate.mp4][avc1.66.21]: H.264 Video info: {MediaCodecInfoVideo: codec:H264, profile:Baseline, level:2.1, frameSize:512x288, displaySize:512x288, frameRate:30,000000}	-	-	-	0.881	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2016-02-10	07:30:52	CET	comment	server	INFO	200	-	MediaReaderH264MPEGDash.indexFile[CX-DRM/_definst_/ODC-100014_bitrate.mp4][avc1.66.21]: H.264 Video info: {MediaCodecInfoVideo: codec:H264, profile:Baseline, level:2.1, frameSize:512x288, displaySize:512x288, frameRate:30,000000}	-	-	-	0.881	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2016-02-10	07:30:52	CET	comment	server	INFO	200	-	HTTPStreamerMPEGDashIndexItem.indexFile[CX-DRM/_definst_/ODC-100014_bitrate.mp4]: Encrypt MPEGDash: key-id:EA2A1D7E-2532-4652-943A-FF8B7575EC70	-	-	-	1.063	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2016-02-10	07:30:52	CET	comment	server	INFO	200	-	HTTPStreamerMPEGDashIndexItem.indexFile[CX-DRM/_definst_/ODC-100014_bitrate.mp4]: Encrypt MPEGDash: key-id:EA2A1D7E-2532-4652-943A-FF8B7575EC70	-	-	-	1.063	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2016-02-10	07:30:52	CET	comment	server	INFO	200	-	HTTPStreamerMPEGDashIndex.createM4SDiscreteManifest[CX-DRM/_definst_/mp4:ODC-100014_bitrate.mp4]: AdpSetId:0 RepId:p0a0r0 mimeType:video/mp4 codecs:avc1.42c015 bandwidth:640000 height:288 width:512 duration:634633	-	-	-	1.064	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2016-02-10	07:30:52	CET	comment	server	INFO	200	-	HTTPStreamerMPEGDashIndex.createM4SDiscreteManifest[CX-DRM/_definst_/mp4:ODC-100014_bitrate.mp4]: AdpSetId:0 RepId:p0a0r0 mimeType:video/mp4 codecs:avc1.42c015 bandwidth:640000 height:288 width:512 duration:634633	-	-	-	1.064	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2016-02-10	07:30:52	CET	comment	server	INFO	200	-	HTTPStreamerMPEGDashIndex.createM4SDiscreteManifest[CX-DRM/_definst_/mp4:ODC-100014_bitrate.mp4]: AdpSetId:1 RepId:p0a1r0 mimeType:audio/mp4 codecs:mp4a.40.2 bandwidth:96000 audioSamplingRate="48000" -	-	-	1.065	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2016-02-10	07:30:52	CET	comment	server	INFO	200	-	HTTPStreamerMPEGDashIndex.createM4SDiscreteManifest[CX-DRM/_definst_/mp4:ODC-100014_bitrate.mp4]: AdpSetId:1 RepId:p0a1r0 mimeType:audio/mp4 codecs:mp4a.40.2 bandwidth:96000 audioSamplingRate="48000" -	-	-	1.065	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2016-02-10	07:30:52	CET	comment	server	WARN	200	-	false	-	-	-	1.122	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2016-02-10	07:30:52	CET	comment	server	WARN	200	-	false	-	-	-	1.123	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2016-02-10	07:30:52	CET	play	stream	INFO	200	ODC-100014_bitrate.mp4	-	_defaultVHost_	CX-DRM	_definst_	0.802	10.0.1.79	1935	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	10.0.1.79	http (mpegdash)	http://localhost:8074/	Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36	729326923	0	7741	1	10000	0	0	ODC-100014_bitrate.mp4	-	mp4:ODC-100014_bitrate.mp4	mp4	58958409	634.633	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	-	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	-
2016-02-10	07:30:52	CET	comment	server	WARN	200	-	false	-	-	-	1.625	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2016-02-10	07:30:52	CET	comment	server	WARN	200	-	false	-	-	-	1.625	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2016-02-10	07:30:52	CET	comment	server	ERROR	500	-	MP4FragmentWriter.writeAtomTENC : java.lang.IndexOutOfBoundsException: Index: 0, Size: 0|at java.util.ArrayList.rangeCheck(ArrayList.java:653)|at java.util.ArrayList.get(ArrayList.java:429)|at com.wowza.wms.media.mp4.fragment.MP4FragmentWriter.a(MP4FragmentWriter.java:2905)|at com.wowza.wms.media.mp4.fragment.MP4FragmentWriter.writeAtomSTSD(MP4FragmentWriter.java:2845)|at com.wowza.wms.httpstreamer.mpegdashstreaming.file.MediaReaderH264MPEGDash.fillChunk(MediaReaderH264MPEGDash.java:1328)|	-	-	-	1.628	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
2016-02-10	07:30:52	CET	comment	server	ERROR	500	-	MP4FragmentWriter.writeAtomTENC : java.lang.IndexOutOfBoundsException: Index: 0, Size: 0|at java.util.ArrayList.rangeCheck(ArrayList.java:653)|at java.util.ArrayList.get(ArrayList.java:429)|at com.wowza.wms.media.mp4.fragment.MP4FragmentWriter.a(MP4FragmentWriter.java:2905)|at com.wowza.wms.media.mp4.fragment.MP4FragmentWriter.writeAtomSTSD(MP4FragmentWriter.java:2845)|at com.wowza.wms.httpstreamer.mpegdashstreaming.file.MediaReaderH264MPEGDash.fillChunk(MediaReaderH264MPEGDash.java:1328)|	-	-	-	1.629	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-

```

The same encryption is working fine for LIVE content. Have there been any changes from 4.3 to 4.4 that we need to account for?

---

<div class="post-metadata">

**Author:** ![Sebastian\_Fichera](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@Sebastian\_Fichera](https://community.wowza.com/u/Sebastian_Fichera)\
**Post date:** [February 16, 2016, 12:06am UTC](https://community.wowza.com/t/error-when-encrypting-mpeg-dash-vod-stream/46434/2 "2016-02-16T00:06:57Z")

</div>

> Hi
> 
> We are doing On-the-fly CENC-Multi-DRM encryption using server-side API for both VOD and LIVE ([Use CENC with MPEG-DASH streams](https://www.wowza.com/docs/how-to-secure-mpeg-dash-streaming-using-common-encryption-cenc)). This was working with Wowza Streaming Engine 4.3 for both PlayReady and Widevine. With Wowza Streaming Engine 4.4 we are seeing the following exception when encrypting the VOD content:
> 
> ```auto
> 2016-02-10	07:30:52	CET	comment	server	ERROR	500	-	MP4FragmentWriter.writeAtomTENC : java.lang.IndexOutOfBoundsException: Index: 0, Size: 0|at java.util.ArrayList.rangeCheck(ArrayList.java:653)|at java.util.ArrayList.get(ArrayList.java:429)|at com.wowza.wms.media.mp4.fragment.MP4FragmentWriter.a(MP4FragmentWriter.java:2905)|at com.wowza.wms.media.mp4.fragment.MP4FragmentWriter.writeAtomSTSD(MP4FragmentWriter.java:2845)|at com.wowza.wms.httpstreamer.mpegdashstreaming.file.MediaReaderH264MPEGDash.fillChunk(MediaReaderH264MPEGDash.java:1328)|	-	-	-	1.628	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
> 
> ```
> 
> Log for the stream:
> 
> ```auto
> 2016-02-10	07:30:51	CET	connect	mpegdash	INFO	200	1281577953	-	_defaultVHost_	CX-DRM	_definst_	0.792	10.0.1.79	1935	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	10.0.1.79	http (mpegdash)	http://localhost:8074/	Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36	1281577953	0	0	-	0	-	-	ODC-100014_bitrate.mp4	-	-	-	-	-	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	-	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	-
> 2016-02-10	07:30:51	CET	connect	mpegdash	INFO	200	729326923	-	_defaultVHost_	CX-DRM	_definst_	0.792	10.0.1.79	1935	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	10.0.1.79	http (mpegdash)	http://localhost:8074/	Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36	729326923	0	0	-	0	-	-	ODC-100014_bitrate.mp4	-	-	-	-	-	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	-	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	-
> 2016-02-10	07:30:51	CET	create	stream	INFO	200	ODC-100014_bitrate.mp4	-	_defaultVHost_	CX-DRM	_definst_	0.001	10.0.1.79	1935	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	10.0.1.79	http (mpegdash)	http://localhost:8074/	Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36	1281577953	0	0	2	0	0	0	ODC-100014_bitrate.mp4	-	-	-	-	-	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	-	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	-
> 2016-02-10	07:30:51	CET	create	stream	INFO	200	ODC-100014_bitrate.mp4	-	_defaultVHost_	CX-DRM	_definst_	0.003	10.0.1.79	1935	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	10.0.1.79	http (mpegdash)	http://localhost:8074/	Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36	729326923	0	0	1	0	0	0	ODC-100014_bitrate.mp4	-	-	-	-	-	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	-	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	-
> 2016-02-10	07:30:52	CET	comment	server	INFO	200	-	MediaReaderH264MPEGDash.indexFile[CX-DRM/_definst_/ODC-100014_bitrate.mp4][mp4a.40.2]: AAC Audio info: {MediaCodecInfoAudio: codec:AAC, channels:2, frequency:48000, samplesPerFrame:1024, objectType:LC}	-	-	-	0.879	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
> 2016-02-10	07:30:52	CET	comment	server	INFO	200	-	MediaReaderH264MPEGDash.indexFile[CX-DRM/_definst_/ODC-100014_bitrate.mp4][mp4a.40.2]: AAC Audio info: {MediaCodecInfoAudio: codec:AAC, channels:2, frequency:48000, samplesPerFrame:1024, objectType:LC}	-	-	-	0.879	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
> 2016-02-10	07:30:52	CET	comment	server	INFO	200	-	MediaReaderH264MPEGDash.indexFile[CX-DRM/_definst_/ODC-100014_bitrate.mp4][avc1.66.21]: H.264 Video info: {MediaCodecInfoVideo: codec:H264, profile:Baseline, level:2.1, frameSize:512x288, displaySize:512x288, frameRate:30,000000}	-	-	-	0.881	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
> 2016-02-10	07:30:52	CET	comment	server	INFO	200	-	MediaReaderH264MPEGDash.indexFile[CX-DRM/_definst_/ODC-100014_bitrate.mp4][avc1.66.21]: H.264 Video info: {MediaCodecInfoVideo: codec:H264, profile:Baseline, level:2.1, frameSize:512x288, displaySize:512x288, frameRate:30,000000}	-	-	-	0.881	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
> 2016-02-10	07:30:52	CET	comment	server	INFO	200	-	HTTPStreamerMPEGDashIndexItem.indexFile[CX-DRM/_definst_/ODC-100014_bitrate.mp4]: Encrypt MPEGDash: key-id:EA2A1D7E-2532-4652-943A-FF8B7575EC70	-	-	-	1.063	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
> 2016-02-10	07:30:52	CET	comment	server	INFO	200	-	HTTPStreamerMPEGDashIndexItem.indexFile[CX-DRM/_definst_/ODC-100014_bitrate.mp4]: Encrypt MPEGDash: key-id:EA2A1D7E-2532-4652-943A-FF8B7575EC70	-	-	-	1.063	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
> 2016-02-10	07:30:52	CET	comment	server	INFO	200	-	HTTPStreamerMPEGDashIndex.createM4SDiscreteManifest[CX-DRM/_definst_/mp4:ODC-100014_bitrate.mp4]: AdpSetId:0 RepId:p0a0r0 mimeType:video/mp4 codecs:avc1.42c015 bandwidth:640000 height:288 width:512 duration:634633	-	-	-	1.064	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
> 2016-02-10	07:30:52	CET	comment	server	INFO	200	-	HTTPStreamerMPEGDashIndex.createM4SDiscreteManifest[CX-DRM/_definst_/mp4:ODC-100014_bitrate.mp4]: AdpSetId:0 RepId:p0a0r0 mimeType:video/mp4 codecs:avc1.42c015 bandwidth:640000 height:288 width:512 duration:634633	-	-	-	1.064	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
> 2016-02-10	07:30:52	CET	comment	server	INFO	200	-	HTTPStreamerMPEGDashIndex.createM4SDiscreteManifest[CX-DRM/_definst_/mp4:ODC-100014_bitrate.mp4]: AdpSetId:1 RepId:p0a1r0 mimeType:audio/mp4 codecs:mp4a.40.2 bandwidth:96000 audioSamplingRate="48000" -	-	-	1.065	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
> 2016-02-10	07:30:52	CET	comment	server	INFO	200	-	HTTPStreamerMPEGDashIndex.createM4SDiscreteManifest[CX-DRM/_definst_/mp4:ODC-100014_bitrate.mp4]: AdpSetId:1 RepId:p0a1r0 mimeType:audio/mp4 codecs:mp4a.40.2 bandwidth:96000 audioSamplingRate="48000" -	-	-	1.065	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
> 2016-02-10	07:30:52	CET	comment	server	WARN	200	-	false	-	-	-	1.122	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
> 2016-02-10	07:30:52	CET	comment	server	WARN	200	-	false	-	-	-	1.123	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
> 2016-02-10	07:30:52	CET	play	stream	INFO	200	ODC-100014_bitrate.mp4	-	_defaultVHost_	CX-DRM	_definst_	0.802	10.0.1.79	1935	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	10.0.1.79	http (mpegdash)	http://localhost:8074/	Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36	729326923	0	7741	1	10000	0	0	ODC-100014_bitrate.mp4	-	mp4:ODC-100014_bitrate.mp4	mp4	58958409	634.633	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	-	http://10.0.1.79:1935/CX-DRM/mp4:ODC-100014_bitrate.mp4/manifest.mpd	-
> 2016-02-10	07:30:52	CET	comment	server	WARN	200	-	false	-	-	-	1.625	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
> 2016-02-10	07:30:52	CET	comment	server	WARN	200	-	false	-	-	-	1.625	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
> 2016-02-10	07:30:52	CET	comment	server	ERROR	500	-	MP4FragmentWriter.writeAtomTENC : java.lang.IndexOutOfBoundsException: Index: 0, Size: 0|at java.util.ArrayList.rangeCheck(ArrayList.java:653)|at java.util.ArrayList.get(ArrayList.java:429)|at com.wowza.wms.media.mp4.fragment.MP4FragmentWriter.a(MP4FragmentWriter.java:2905)|at com.wowza.wms.media.mp4.fragment.MP4FragmentWriter.writeAtomSTSD(MP4FragmentWriter.java:2845)|at com.wowza.wms.httpstreamer.mpegdashstreaming.file.MediaReaderH264MPEGDash.fillChunk(MediaReaderH264MPEGDash.java:1328)|	-	-	-	1.628	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
> 2016-02-10	07:30:52	CET	comment	server	ERROR	500	-	MP4FragmentWriter.writeAtomTENC : java.lang.IndexOutOfBoundsException: Index: 0, Size: 0|at java.util.ArrayList.rangeCheck(ArrayList.java:653)|at java.util.ArrayList.get(ArrayList.java:429)|at com.wowza.wms.media.mp4.fragment.MP4FragmentWriter.a(MP4FragmentWriter.java:2905)|at com.wowza.wms.media.mp4.fragment.MP4FragmentWriter.writeAtomSTSD(MP4FragmentWriter.java:2845)|at com.wowza.wms.httpstreamer.mpegdashstreaming.file.MediaReaderH264MPEGDash.fillChunk(MediaReaderH264MPEGDash.java:1328)|	-	-	-	1.629	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
> 
> ```
> 
> The same encryption is working fine for LIVE content. Have there been any changes from 4.3 to 4.4 that we need to account for?

Hi Roger, How are you?

Have you received an answer? I’m facing exactly the same error you are describing… ☹

Thanks & Regards!

Sebastián

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [March 3, 2016, 7:20am UTC](https://community.wowza.com/t/error-when-encrypting-mpeg-dash-vod-stream/46434/3 "2016-03-03T07:20:01Z")

</div>

Thank you for providing this update from the support team.

Salvadore

---

<div class="post-metadata">

**Author:** ![Paul\_Shields](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/paul_shields/32/390_2.png) [@Paul\_Shields](https://community.wowza.com/u/Paul_Shields)\
**Post date:** [September 9, 2016, 3:36pm UTC](https://community.wowza.com/t/error-when-encrypting-mpeg-dash-vod-stream/46434/4 "2016-09-09T15:36:36Z")

</div>

Hi Alexey,

The issue originally raised was resolved in that earlier release. It could be that you are experiencing a similar but unresolved problem. In order for us to determine that can I ask you to open a [support ticket](https://www.wowza.com/support/open-ticket) including the files as mentioned by Jason\_T as well as any other material that will help us to reproduce it (keyfiles etc) and we can investigate this further for you.

Regards,

Paul

---

<div class="post-metadata">

**Author:** ![David\_Martinez](https://avatars.discourse-cdn.com/v4/letter/d/77aa72/32.png) [@David\_Martinez](https://community.wowza.com/u/David_Martinez)\
**Post date:** [February 16, 2016, 5:23pm UTC](https://community.wowza.com/t/error-when-encrypting-mpeg-dash-vod-stream/46434/5 "2016-02-16T17:23:17Z")

</div>

Same error here.

---

<div class="post-metadata">

**Author:** ![Roger\_Slaaen](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@Roger\_Slaaen](https://community.wowza.com/u/Roger_Slaaen)\
**Post date:** [February 16, 2016, 8:32am UTC](https://community.wowza.com/t/error-when-encrypting-mpeg-dash-vod-stream/46434/6 "2016-02-16T08:32:16Z")

</div>

I have not received any answer. I have also created a support ticked and will update this thread when I get any feedback.

---

<div class="post-metadata">

**Author:** ![Roger\_Slaaen](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@Roger\_Slaaen](https://community.wowza.com/u/Roger_Slaaen)\
**Post date:** [February 29, 2016, 8:51am UTC](https://community.wowza.com/t/error-when-encrypting-mpeg-dash-vod-stream/46434/7 "2016-02-29T08:51:23Z")

</div>

Hi,

I have received confirmation from Wowza that this is a bug in 4.4.0.

> A fix for this issue is being developed and will be included in the next release (4.4.1). I do not have a definite timeframe as to the release date, but please do keep an eye on the Software Updates page.
> 
> [Software updates](https://www.wowza.com/docs/software-updates)

---

<div class="post-metadata">

**Author:** ![Jason\_Tuchler](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_tuchler/32/462_2.png) [@Jason\_Tuchler](https://community.wowza.com/u/Jason_Tuchler)\
**Post date:** [May 30, 2016, 11:23am UTC](https://community.wowza.com/t/error-when-encrypting-mpeg-dash-vod-stream/46434/8 "2016-05-30T11:23:47Z")

</div>

Hello,

Update Wowza Streaming Engine 4.4.1.02 might be able to fix this. Please open a [support case](https://www.wowza.com/support/open-ticket) with the below logs and details of your issue. An Engineer will be able to forward the update onto you.

[install-dir]/conf

[install-dir]/logs

[install-dir]/transcoder

[install-dir]/manager/logs

If you are not sure how to get this information please see the following tutorial.

[https://www.wowza.com/docs/how-to-create-a-compressed-zip-file-in-windows-os-x-and-linux](https://www.wowza.com/docs/how-to-create-a-compressed-zip-file-in-windows-os-x-and-linux)

Best,

JasonT

---

<div class="post-metadata">

**Author:** ![Edwin\_Sahakian](https://avatars.discourse-cdn.com/v4/letter/e/e480ec/32.png) [@Edwin\_Sahakian](https://community.wowza.com/u/Edwin_Sahakian)\
**Post date:** [May 24, 2016, 6:21am UTC](https://community.wowza.com/t/error-when-encrypting-mpeg-dash-vod-stream/46434/9 "2016-05-24T06:21:06Z")

</div>

> Hi,
> 
> I have received confirmation from Wowza that this is a bug in 4.4.0.

I have recent version of 4.4.1 and I still get this bug… Anyone else get this on the latest version of Wowza?

---

<div class="post-metadata">

**Author:** ![Edwin\_Sahakian](https://avatars.discourse-cdn.com/v4/letter/e/e480ec/32.png) [@Edwin\_Sahakian](https://community.wowza.com/u/Edwin_Sahakian)\
**Post date:** [May 24, 2016, 9:35am UTC](https://community.wowza.com/t/error-when-encrypting-mpeg-dash-vod-stream/46434/10 "2016-05-24T09:35:29Z")

</div>

> I have recent version of 4.4.1 and I still get this bug… Anyone else get this on the latest version of Wowza?

OK, it looks like there is a patch to Wowza (4.4.1.01) that can fix this… It did for me…

---

<div class="post-metadata">

**Author:** ![Alexey\_Yashin](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@Alexey\_Yashin](https://community.wowza.com/u/Alexey_Yashin)\
**Post date:** [August 15, 2016, 10:21pm UTC](https://community.wowza.com/t/error-when-encrypting-mpeg-dash-vod-stream/46434/11 "2016-08-15T22:21:57Z")

</div>

Hi there,

I’m still facing same issue in 4.5.0 - is there update/patch for this for 4.5.0?

Thanks,

Alexey

> Hello,
> 
> Update Wowza Streaming Engine 4.4.1.02 might be able to fix this. Please open a [support case](https://www.wowza.com/support/open-ticket) with the below logs and details of your issue. An Engineer will be able to forward the update onto you.
> 
> [install-dir]/conf
> 
> [install-dir]/logs
> 
> [install-dir]/transcoder
> 
> [install-dir]/manager/logs
> 
> If you are not sure how to get this information please see the following tutorial.
> 
> [Prepare files for Wowza Support](https://www.wowza.com/docs/how-to-create-a-compressed-zip-file-in-windows-os-x-and-linux)
> 
> Best,
> 
> JasonT
