# Encode Error on wowzas

**URL:** <https://community.wowza.com/t/encode-error-on-wowzas/46970>\
**Category:** Wowza Streaming Engine\
**Created:** [April 27, 2016, 7:45pm UTC](https://community.wowza.com/t/encode-error-on-wowzas/46970 "2016-04-27T19:45:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tanmay\_Binaykiya](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@Tanmay\_Binaykiya](https://community.wowza.com/u/Tanmay_Binaykiya)\
**Post date:** [April 27, 2016, 7:45pm UTC](https://community.wowza.com/t/encode-error-on-wowzas/46970/1 "2016-04-27T19:45:57Z")

</div>

I am seeing the following encode Error on Wowzas on Amazon EC2 G2.2xLarge Instances [GPU : NVIDIA GRID K520][Wowza-Streaming-Engine-4.3.0]

```auto
"message": "JNI:TranscoderSession.videoEncoderAdd[_defaultVHost_:live/_definst_/a2m_32272_64505_media:720p]: Create video encoder: H.264: NVENC"
"message": "JNI:VideoEncoderH264NVENC.initialize[_defaultVHost_:live/_definst_/a2m_32272_64505_media:720p]: OpenEncodeSession failed: gpuid:0 result:-1"
"message": "JNI:VideoDecoderH264.updateDecodeInfo[_defaultVHost_:live/_definst_/a2m_32272_64505_media]: aspect:16x9 frame:1280x720 display:1280x720 frameRate:29.97 deinterlace:0"
"message": "TranscoderWorkerVideoDecoder.handlePacket[_defaultVHost_:live/_definst_/a2m_32272_64505_media: decodeIterations:0]: First video frame: size:7612 timecode:1461762059139 frameType:1"
"message": "JNI:VideoDecoderH264.updateDecodeInfo[_defaultVHost_:live/_definst_/a2m_32272_64505_media]: aspect:16x9 frame:1280x720 display:1280x720 frameRate:30 deinterlace:0"
"message": "JNI:TranscoderSession.videoDecoderDecode[_defaultVHost_:live/_definst_/a2m_32272_64505_media]: Decoder frame size: frame:1280x720 display:1280x720 bufferSize:1382400"

```

```auto
JNI:TranscoderSession.isCUDAAvailable[_defaultVHost_:live/_definst_/a2m_31894_63749_content]:NVidia hardware acceleration is available: NVENC, NVCUVID, CUDA[decode]

```

```auto
nvidia-smi
+------------------------------------------------------+
| NVIDIA-SMI 331.113 Driver Version: 331.113 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GRID K520 Off | 0000:00:03.0 N/A | N/A |
| N/A 43C N/A N/A / N/A | 122MiB / 4095MiB | N/A Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Compute processes: GPU Memory |
| GPU PID Process name Usage |
|=============================================================================|
| 0 Not Supported |
+-----------------------------------------------------------------------------+

```

```auto
File: nvenc/src/CNVEncoder.cpp, Line: 1790, nvEncOpenEncodeSessionEx() returned with error 21
Note: GUID key may be invalid or incorrect. Recommend to upgrade your drivers and obtain a new key
NVENC error at nvenc/src/CNVEncoder.cpp:1792 code=21(NVENC Feature not available for current license key type) "nvStatus"
2016-04-27 15:15:01,942 _Server_ [[]] [{}]- JNI:VideoEncoderH264NVENC.initialize[_defaultVHost_:live/_definst_/a2m_50000_64505_media:240p]: OpenEncodeSession failed: gpuid:0 result:-1

```

---

<div class="post-metadata">

**Author:** ![Andrew\_Ramberg](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@Andrew\_Ramberg](https://community.wowza.com/u/Andrew_Ramberg)\
**Post date:** [May 6, 2016, 12:37pm UTC](https://community.wowza.com/t/encode-error-on-wowzas/46970/2 "2016-05-06T12:37:04Z")

</div>

Hello,

I suggest upgrading your [NVIDIA driver](http://www.nvidia.com/download/driverResults.aspx/74642/en-us) on this G2 instance to the latest version as suggested by the NVENC error.

Best regards,

Andrew
