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

Learn how to configure and run NVIDIA NVENC accelerated encoding on Amazon EC2 using a g2.2xlarge instance type. We currently don't provide a pre-built Amazon Machine Image (AMI) that works on this instance type. However, you can install Wowza Streaming Engine™ software on this instance type to get NVENC accelerated encoding.

Note: Wowza Streaming Engine software version 4.2.0 doesn't work properly on Amazon G2 AMIs. To fix this issue, install the latest Wowza Streaming Engine software updates.

Configuring the software

Do the following:
  1. Select an HVM (G2) EBS-Backed 64-bit AMI ID from the list of Amazon Linux AMI IDs to launch a G2 instance.
  2. When the instance is running, open a Secure Shell (SSH) session to the instance. For details, see Manage the instance through SSH in the Wowza Streaming Engine for Amazon EC2 User's Guide.
  3. When the login as: prompt appears in the terminal window, enter the user name ec2-user to login to your Amazon EC2 instance. When working with Wowza Streaming Engine, we recommend logging in as the root user. Execute the following command to become the root user:
    sudo su -
  4. Use the following command to make sure the instance is up-to-date:
    yum -y update
  5. Reboot the instance:
  6. Login to the instance again using steps 2 - 3 above.
  7. Download the latest Linux x64 (AMD64/EM64T) Display Driver from NVIDIA to update the G2 EC2 instance. The latest NVIDIA driver often provides a performance improvement over the default driver installed on the G2 EC2 instance.
  8. Change the current directory to the location of the driver package and install the driver by running the following command as root:
    sh ./
    Note: One of the last installation steps will offer to update your X configuration file. Decline this update for the G2 EC2 instance.
  9. Download the Linux installer for the Wowza Streaming Engine software and install the software as you would on any Linux-based computer.
    Note: For Wowza Streaming Engine 4.2.0 and later, a single installer is used for all Linux versions.
  10. Update to the latest Wowza Streaming Engine software.
Wowza Streaming Engine is now configured to take advantage of NVENC accelerated encoding. Be sure to adjust the <Video>/<Implementation> property for each encoding preset in your transcoder template to use the NVENC encoding implementation.

More resources

NVIDIA Video Encode and Decode GPU Support Matrix

If you're having problems or want to discuss this article, post in our forum.