How to set up Wowza Transcoder NVIDIA NVENC

Wowza Transcoder AddOn in Wowza Media Server 3.6 supports NVIDIA's NVENC accelerated H.264 encoding technology, which is available with the Kepler 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 on CentOS to leverage this technology.

Notes:
  • Wowza Media Server® 3.6.0 or later is required.
  • The procedure in this article was tested against CentOS 6.4.
  • Accelerated encoding isn't available when running on a virtual hardware environment such as VMware or Xen.
  • Currently, NVENC-based video encoding is limited to approximately 30 simultaneous encoding sessions. NVIDIA is working to address this limitation in a future driver update.

To set up NVENC accelerated encoding on CentOS


  1. Download and install CentOS 6.4 on a server that includes an NVIDIA Kepler-based graphics card.

    1. Go to CentOS Download Information and click on CentOS Public Mirror List.

    2. Click the HTTP link for one of the mirror sites.

    3. Navigate to 6.4/isos/x86_64 and download CentOS-6.4-x86_64-bin-DVD1.iso.

    4. Burn the downloaded ISO image onto a DVD.

    5. Install the operating system from the DVD.

      Note: For best performance, select the  Minimal install option.

  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. Enable the eth0 network interface

      1. Open the ifcfg-eth0 file.
        Code:
        vi /etc/sysconfig/network-scripts/ifcfg-eth0
      2. Change the ONBOOT value to yes, close and save the file: 
        Code:
        ONBOOT=yes
      3. Restart the network:
        Code:
        /etc/init.d/network restart

    3. Update and upgrade all components.
      Code:
      yum -y update
      yum -y upgrade
    4. Install Development Tools.
      Code:
      yum -y groupinstall "Development Tools"
    5. Install kernel headers.
      Code:
      yum -y install kernel-devel kernel-headers dkms
    6. Disable the Nouveau driver:

      1. Open the blacklist.conf file.
        Code:
        vi /etc/modprobe.d/blacklist.conf
      2. Add the following line to the bottom of the blacklist.conf file and then save and close the file.
        Code:
        blacklist nouveau
      3. Execute the following commands to have Linux rediscover hardware:
        Code:
        mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak
        dracut -v /boot/initramfs-$(uname -r).img $(uname -r)

    7. Restart the server.
      Code:
      shutdown -r 0

  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.
      Code:
      chmod +x NVIDIA-Linux-*
    4. Run the driver installation package.
      Code:
      ./NVIDIA-Linux-*
      During the installation, acknowledge the following prompts as follows:

      • 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

    5. Restart the server.
      Code:
      shutdown -r 0

  4. Install Java and Wowza Media Server 3.6. 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 AddOn for live streaming.

你可能感兴趣的:(How to set up Wowza Transcoder NVIDIA NVENC)