# Article: How to configure NVIDIA NVENC accelerated encoding on Amazon EC2 (G2, NVENC)

**URL:** <https://community.wowza.com/t/article-how-to-configure-nvidia-nvenc-accelerated-encoding-on-amazon-ec2-g2-nvenc/103>\
**Category:** Wowza Streaming Engine\
**Created:** [February 20, 2014, 7:58am UTC](https://community.wowza.com/t/article-how-to-configure-nvidia-nvenc-accelerated-encoding-on-amazon-ec2-g2-nvenc/103 "2014-02-20T07:58:09Z")\
**Posts on this page:** 5\
**Page:** 1

<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:** [February 20, 2014, 7:58am UTC](https://community.wowza.com/t/article-how-to-configure-nvidia-nvenc-accelerated-encoding-on-amazon-ec2-g2-nvenc/103/1 "2014-02-20T07:58:09Z")

</div>

You can view the page at [How to configure NVIDIA NVENC accelerated encoding on Amazon EC2 (G2, NVENC)](https://www.wowza.com/docs/how-to-configure-nvidia-nvenc-accelerated-encoding-on-amazon-ec2-g2-nvenc%28G2-NVENC%29)

---

<div class="post-metadata">

**Author:** ![Johan\_Niemi](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@Johan\_Niemi](https://community.wowza.com/u/Johan_Niemi)\
**Post date:** [November 3, 2014, 7:49pm UTC](https://community.wowza.com/t/article-how-to-configure-nvidia-nvenc-accelerated-encoding-on-amazon-ec2-g2-nvenc/103/2 "2014-11-03T19:49:50Z")

</div>

I had the opportunity to test NVENC acceleration out yesterday. I was using the g2.2xlarge and the Amazon Linux AMI 2014.09.1 (HVM) ami. The results were impressive:

Without enabling NVENC in transrate.xml, transrating to five resolutions (from 1080p to 284p) used 77 % of CPU. With NVENC enabled, CPU-load decreased to 20 %:

With regards to this article, I have a few comments:

> 1. Check the driver version using the nvidia-smi command. If it’s version 340 or later, then nothing more needs to be done.

You cannot run nvidia-smi on a vanilla Amazon Linux AMI 2014.09.1 (HVM) ami. It seems nVidia drivers are not present by default.

> Install the driver using sh ./NVIDIA-Linux-x86\_64-340.24.run. Adjust the command to match the file name. During the installation, answer the following prompts as follows:

The installation will fail if you do not first install gcc:

```auto
yum install gcc kernel-devel

```

After installing gcc you can install the driver and run nvidia-smi.

> After logging back in, check the driver version again using the nvidia-smi command. If it’s version 340 or later, then nothing more needs to be done. If the version is earlier than 340, download the latest driver from the NVIDIA website. You must accept the agreement so it can’t be downloaded directly to the EC2 instance. Upload the driver to the EC2 instance.

This is newest driver:

[http://www.nvidia.com/download/driverResults.aspx/78469/en-us](http://www.nvidia.com/download/driverResults.aspx/78469/en-us)

---

<div class="post-metadata">

**Author:** ![chris\_mirador](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/chris_mirador/32/671_2.png) [@chris\_mirador](https://community.wowza.com/u/chris_mirador)\
**Post date:** [February 15, 2021, 12:56am UTC](https://community.wowza.com/t/article-how-to-configure-nvidia-nvenc-accelerated-encoding-on-amazon-ec2-g2-nvenc/103/3 "2021-02-15T00:56:50Z")

</div>

will this work on amazon ec2 g2.xlarge instance with centos 7?

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [February 15, 2021, 3:33pm UTC](https://community.wowza.com/t/article-how-to-configure-nvidia-nvenc-accelerated-encoding-on-amazon-ec2-g2-nvenc/103/4 "2021-02-15T15:33:01Z")

</div>

Let me ask about the x-large on centos 7 and get back to you with more info on that specific question. In the meantime, here are our latest docs on it showing a support chart if that helps while you’re waiting:

[https://www.wowza.com/docs/how-to-configure-nvidia-nvenc-accelerated-encoding-on-amazon-ec2](https://www.wowza.com/docs/how-to-configure-nvidia-nvenc-accelerated-encoding-on-amazon-ec2)

and also

[https://www.wowza.com/docs/server-specifications-for-nvidia-nvenc-and-nvidia-cuda-acceleration-with-wowza-transcoder](https://www.wowza.com/docs/server-specifications-for-nvidia-nvenc-and-nvidia-cuda-acceleration-with-wowza-transcoder)

---

<div class="post-metadata">

**Author:** ![chris\_mirador](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/chris_mirador/32/671_2.png) [@chris\_mirador](https://community.wowza.com/u/chris_mirador)\
**Post date:** [February 23, 2021, 4:52am UTC](https://community.wowza.com/t/article-how-to-configure-nvidia-nvenc-accelerated-encoding-on-amazon-ec2-g2-nvenc/103/5 "2021-02-23T04:52:15Z")

</div>

thank you for the support!
