Configure NVIDIA NVENC accelerated encoding on Amazon EC2 (G2, NVENC) for Wowza Streaming Engine

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

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

Configuring the software

  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 an SSH session to the instance.
  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 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