The Wowza Streaming Engine™ media server software Transcoder supports NVIDIA's NVENC accelerated encoding technology. This article describes how to set up the NVIDIA driver and Wowza Streaming Engine on CentOS to leverage this technology. The procedure in this article was tested against CentOS 6.4.
Notes:
- Accelerated encoding isn't available when running on a virtual hardware environment.
- Older graphics drivers for your NVIDIA hardware may limit NVENC-based video encoding to approximately 30 simultaneous encoding sessions. Update your graphics driver to the latest version to avoid this limitation.
Set up NVENC accelerated encoding
- Download and install CentOS 6.4 on a server that includes a supported NVIDIA graphics card:
- Go to CentOS Download Information and click on CentOS Public Mirror List.
- Click the HTTP link for one of the mirror sites.
- Navigate to 6.4/isos/x86_64 and download CentOS-6.4-x86_64-bin-DVD1.iso.
- Burn the downloaded ISO image onto a DVD.
- Install the operating system from the DVD.
Note: For best performance, select the Minimal install option.
- Go to CentOS Download Information and click on CentOS Public Mirror List.
- After the installation is complete and the server is rebooted, do the following to prepare the system for the NVIDIA driver installation:
- Log on to the system as root user.
- Enable the eth0 network interface
- Open the ifcfg-eth0 file.
vi /etc/sysconfig/network-scripts/ifcfg-eth0
- Change the ONBOOT value to yes, close and save the file:
ONBOOT=yes
- Restart the network:
/etc/init.d/network restart
- Open the ifcfg-eth0 file.
- Update and upgrade all components.
yum -y update yum -y upgrade
- Install Development Tools.
yum -y groupinstall "Development Tools"
- Install kernel headers.
yum -y install kernel-devel kernel-headers dkms
- Disable the Nouveau driver:
- Open the blacklist.conf file.
vi /etc/modprobe.d/blacklist.conf
- Add the following line to the bottom of the blacklist.conf file and then save and close the file.
blacklist nouveau
- Execute the following commands to have Linux rediscover hardware:
mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak dracut -v /boot/initramfs-$(uname -r).img $(uname -r)
- Open the blacklist.conf file.
- Restart the server.
shutdown -r 0
- Log on to the system as root user.
- Download and install the 64-bit Linux driver for your graphics card:
- Log on to the system as root user.
- Download the graphics driver for your hardware from NVIDIA Driver Downloads.
- Make the driver installation package executable.
chmod +x NVIDIA-Linux-*
- Run the driver installation package.
./NVIDIA-Linux-*
- Accept: License Agreement
- Yes: Install NVIDIA 32-bit compatibility OpenGL libraries
- OK: Failed to execute chcon -t textrel_shlib_t (missing operand)
- Yes: Continue anyway
- Yes: Run nvidia-xconfig utility
- OK: Configuration successfully updated
- Accept: License Agreement
- Restart the server.
shutdown -r 0
- Log on to the system as root user.
- Install Java and Wowza Streaming Engine.
You can now use the NVENC encoding implementation in your Transcoder template. For more information, see Set up and run Transcoder in Wowza Streaming Engine.