NVIDIA NVENC-XSPLIT GUIDE

By Gerardo Delgado Cabrera on March 26, 2019 | Featured Stories Broadcasting Guides NvEnc Streaming

ABOUT THIS GUIDE

The objective of this guide is to help you understand how to use the NVIDIA encoder, NVENC, in XSplit Broadcaster. We have simplified some of the concepts to make this accessible to a wider audience. If you think we can improve any part of this guide or find any issues or mistakes, please post below and we will be happy to update it.

BITRATE, RESOLUTION AND FRAMERATE

Encoding is all about compressing images. The smaller the size of the image, the less we must compress it and the more quality it keeps. While the same applies for framerate, a viewer can really notice a drop in FPS but not so much in resolution, so we will always try to stream at 60 FPS.

First, run a speed test to determine your upload speed (e.g.Speed Test). We want to use around 75% of your upload speed, as the game and other programs such as Discord will also fight for bandwidth.

Then, we will determine the resolution and FPS that we can use for such bitrate. Most streaming sites have recommendations (Twitch, Youtube, Facebook Gaming) on what to use. These are ours:

Upload Speed

Bitrate

Resolution

Framerate

3 Mbps

2,500

1024x576

30

4 Mbps

3,500

1280x720

30

6 Mbps

5,000

1280x720

60

8-10 Mbps

6,000

1920x1080 *

60

15+ Mbps

12,000 (Youtube)

1920x1080

60

20+ Mbps

15,000+ (Youtube)

2560x1440

60

40+ Mbps

30,000+ (Youtube)

3840x2160

60

  • Important Note for High Motion Content. If you are going to stream high motion scenes (i.e. Racing games, some Battle Royale games, etc.) we highly recommend reducing your resolution. High motion content cannot be compressed as much, and can suffer from more artifacting (encoding errors) that make your stream look “blocky”. If you reduce the resolution, you reduce the data being encoded, and the resulting viewer quality is higher. For example, for Fortnite, many streamers decide to stream at 1600x900 60 FPS.
  • Note for New and Upcoming Streamers to Twitch. Transcoding allows a viewer to view your video on a different resolution, thus requiring a lower bandwidth. Twitch only offers guaranteed transcoding to Partners; non-partners may receive transcoding, but it is not guaranteed. This is important if your viewers are on mobile phones or their internet speed is not as fast. You may want to consider streaming at a lower bitrate and resolution to lower the bandwidth required to see your channel.

RECOMMENDED SETTINGS

These are our recommended settings for XSplit Broadcaster 3.7 and up. You’ll want to test and adjust these settings using a private account where you can verify you’re happy with the results.

If you want an easy, out of the box configuration, then do the following:

BROADCAST SETTINGS

  • In the top menu, select Broadcast, then click on the Settings icon
  • Under Video Encoding, adjust the following 2 settings:
    • Codec: NVENC H.264
    • Bitrate: Enter the Bitrate appropriate for your Upload Speed, as we discussed in the previous section
  • Press OK to accept settings
img-1

RESOLUTION AND FPS

  • Select the Frame menu located on the top right corner
  • Resolution: Enter the resolution appropriate for your Upload Speed and Bitrate (as shown above)
  • Framerate: Enter the FPS appropriate for your Upload Speed and Bitrate (as shown above)
img-2

OTHER SETTINGS

There are 2 other things you want to configure to ensure a smooth stream:

  • Windows: Make sure you update to Windows 10 version 1903, and enable Game Mode. This version includes performance enhancements for streaming, as well as an updated Game Mode compatible with streaming.
  • GPU Utilization: If your GPU utilization is above 95% Windows will start prioritizing the game over everything; this can, in some cases, make your stream lag. To solve this, OBS added an option in OBS 24.0.3 to prioritize OBS Studio over the Game. Just run OBS as Admin, and your stream will be silky smooth.

If for some reason you don't want to run OBS in Admin mode, you can also limit your GPU usage to be below the 95% threshold. To do this, you can:

  • Cap FPS in-game, run the game in Borderless Windowed mode, reduce game graphics or resolution, or turn V-Sync on.
  • Run all assets at 1080p. To do that, double click on the source in OBS and under Resolution select Custom and specify a resolution equal or under 1080p.

And there you have it! We hope this helps you improve your stream quality and reach your goals. Leave us a comment if this worked for you or if you’d like us to update the guide with other info. Happy streaming!

ADVANCED SETTINGS

XSplit 3.7 added advanced settings for NVENC. If you want to mess around with more of the settings, here are our in-depth recommendations.

BROADCAST SETTINGS

In the top menu, click on Broadcast, then the Settings icon. Under Video Encoding, adjust these two settings:

  • Codec: NVENC H.264.
  • Bitrate: Enter the Bitrate appropriate for your Upload Speed, as we discussed in the previous section.

Click on the Settings wheel under “Mode: CBR” to enter the Video Encoding Setup menu:

  • Enable Look-ahead: Unchecked for most content, checked for low-motion games. This allows the encoder to dynamically select the number of B-Frames, between 0 and the number of B-Frames you specify. B-frames are great because they increase image quality, but they consume a lot of your available bitrate, so they reduce quality on high-motion content. Look-ahead enables the best of both worlds, but struggles with high-motion content as it needs to change too often. This feature is CUDA accelerated; toggle this off if your GPU utilization is high to ensure a smooth stream.
  • Use Adaptive Quantization: Checked. This enables the Rate Distortion Optimization in the encoder, which greatly optimizes the way you use bitrate, improving image quality on movement.
  • Max B-Frames: Set to 2. For low-motion content (i.e. adventure games such as Tomb Raider) you can increase this to 4. B-Frames increase image quality but consume bitrate, which decrease image quality on movement. If you see pixelation or artifacting on your stream you may want to reduce this.
  • Max Keyframe Interval: Set to 2. Streaming platforms may limit what you can select here, and most require a setting of 2.
  • Encoder Preset: Select Max Quality. This determines how much load we put on the encoder to get more quality. NVENC is incredibly efficient, so most users can select the maximum setting. If you get encoder overload issues, change this back to Quality. Max Quality and Quality differ in that Max Quality uses 2-pass encoding.
  • VBV Buffer: This buffer is used when you are using Variable Bitrate, which most sites discourage for streaming. Therefore, make this number the same as your Bitrate.
  • Video FPS: Allows you to set a different FPS for streaming and recording. Our recommendation is to use the same FPS for both, so just leave the default setting of Current Stage FPS.
  • Video Size: Allows you to set a different Resolution for streaming and recording. Our recommendation is to use the same FPS for both, so just leave the default setting of Current Stage Resolution.
img-5

RESOLUTION AND FPS

  • Click on the Frame menu in the top right corner.
  • Resolution: Enter the resolution appropriate for your Upload Speed and Bitrate, as we discussed in the previous section. Remember that you can add new resolutions in case the one that you are interested in is not shown in the list (i.e. 1600x900). TO do that, just click on Add Resolution, and select one of the additional options or select Custom Resolution to enter your own. Just remember to keep the same aspect ratio as your desktop and game resolution!
  • Framerate: Enter the FPS appropriate for your Upload Speed and Bitrate, same as above.
img-6

ABOUT NVENC

NVENC is NVIDIA’s encoder. It’s a physical section of our GPUs that is dedicated to encoding only. This means that your GPU can operate normally regardless of whether you use this region to stream or record. Other encoders, such as x264, use your CPU to encode, which takes resources away from other programs such as your game. That’s why using NVENC allows you to play games at a higher framerate and avoid stuttering, giving you and your viewers a better experience.

about-nvenc

In the last two GPU generations we have made great improvements to NVENC, helping deliver best-in-class output quality. NVENC in the GTX 10-series GPUs provides superior quality than x264 Very Fast, the most commonly used x264 preset. And in the new RTX 20 and 30-series, NVENC performs better than x264 Fast and on par with x264 Medium, a preset that requires an expensive dual PC setup.

about-nvenc-2

One thing that is great about NVENC on the GeForce RTX 20 and 30-series and GeForce GTX 1650 Super and up is that all GPUs have the same NVENC with the same performance and quality, from the RTX 2060 to the RTX 30902080 Ti. NVENC also benefits from our own NVIDIA Video Codec SDK, an advanced set of tools that help improve the encoded quality and that we constantly update to help you get the best out of your NVIDIA card.

Finally, if you are using an NVIDIA GPU you have access to GeForce Experience’s Game Filters, which allow you to further improve the image quality of your viewers via software by enhancing color, adding sharpness, or introducing cool effects.

ABOUT NVIDIA BROADCAST

NVIDIA Broadcast transforms your gamer den into a home broadcast studio, upgrading standard webcams and microphones into premium, smart devices through the power of AI. Improve the video and audio quality of your livestream through AI capabilities such as virtual background or webcam auto frame, and microphone noise removal. With dedicated AI processors called Tensor Cores on GeForce RTX GPUs, the AI networks are able to run high-quality effects in real-time.

about-broadcasting

NVIDIA Broadcast features include:

  • Noise Removal: use AI to remove background noise from your microphone feed – be it a loud mechanical keyboard or the AC. The AI network can even be used on incoming audio feeds to mute that one friend who won’t turn on push-to-talk.
  • Virtual Background: use AI to remove the background of your webcam feed and replace it with game footage, a replacement image, or even a subtle blur.
  • Auto Frame: use AI to track your head movement, zooming and automatically cropping on your head so you are always in the frame, even as you move around.

When not broadcasting, these features can also enhance your video conference calls and voice chats, making NVIDIA Broadcast a perfect AI companion for broadcasters and gamers alike.

NVIDIA Broadcast is compatible with a wide range of broadcasting, video conferencing and voice chat apps. These include OBS Studio, Streamlabs, Xsplit, Discord, Skype, Zoom, Webex, Microsoft Teams, Google Meet and more.

Comments