How to set up Wowza Transcoder NVIDIA NVENC accelerated encoding on Fedora

Wowza Transcoder in Wowza media server software supports NVIDIA's NVENC accelerated H.264 encoding technology, which is available with the Kepler and Maxwell line of NVIDIA graphics cards. This technology is supported on Windows and Linux operating systems.

This article describes how to set up the NVIDIA driver and Wowza media server software on Fedora to leverage this technology.

  • Wowza Streaming Engine™ or Wowza Media Server™ 3.6 is required.
  • The procedure in this article was tested against Fedora 18.
  • Accelerated encoding isn't available when running on a virtual hardware environment such as VMware or Xen.
  • 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.

To set up NVENC accelerated encoding on Fedora

  1. Download and install Fedora 18 on a server that includes an NVIDIA Kepler-based or Maxwell-based graphics card.
    1. Go to Get Fedora: Formats and click on the Download Now! button for the 64-bit DVD.
    2. Burn the downloaded ISO image onto a DVD.
    3. Install the operating system from the DVD.
      • Select the Minimal Install environment
      • Select AddOns Development Tools and Standard
  2. After the installation is complete and the server is rebooted, do the following to prepare the system for the NVIDIA driver installation:
    1. Log on to the system as root user.
    2. Update and upgrade all components.
      yum -y update
      yum -y upgrade
    3. Install Development Tools (should already be installed)
      yum -y groupinstall "Development Tools"
    4. Install kernel headers.
      yum -y install kernel-headers
    5. Disable the Nouveau driver:
      mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img
      dracut --omit-drivers nouveau /boot/initramfs-$(uname -r).img $(uname -r)
  3. Download and install the 64-bit Linux driver for your graphics card.
    1. Log on to the system as root user.
    2. Download the graphics driver for your hardware from NVIDIA Driver Downloads.
    3. Make the driver installation package executable.
      chmod +x NVIDIA-Linux-*
    4. Run the driver installation package.
      During the installation, acknowledge the following prompts as follows:
      • OK: Skip runlevel check
      • Accept: License Agreement
      • OK: The modeprobe path is incorrect
      • 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
    5. Restart the server.
      shutdown -r 0
  4. Install Java and Wowza media server software. You can now use the NVENC encoding implementation in your transcoder template. For more information about how to configure your transcoder template, see "Template configuration" in How to set up and run Wowza Transcoder for live streaming.

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.