Technology

Hardware vs Software Encoder: Which One to Use for Live Streaming and in OBS

The same question has two meanings. One is whether to buy a dedicated encoder or stream from a computer; the other is which encoder to pick inside OBS. We answer both, with the trade-offs we see in real streams.

One question, two meanings

An encoder takes the video from your cameras and microphones, compresses it with a codec such as H.264 and sends it to a server, usually over RTMP or SRT. Uncompressed HD video needs around a gigabit per second; after the encoder, a few megabits are enough. How well it compresses, and how reliably it keeps doing it for hours, decides a large part of what your viewers see.

When people search for hardware vs software encoder, they mean one of two things:

  • Inside OBS or Premiere Pro: "hardware" is the dedicated video block in your graphics card or processor (NVIDIA NVENC, AMD, Intel QuickSync, Apple VideoToolbox), and "software" is x264 running on the CPU.
  • In a production: a "hardware encoder" is a standalone box (a Teradek, a LiveU, a Magewell, the encoder inside an ATEM Mini Pro), and a "software encoder" is OBS, vMix or Wirecast running on a computer.

We cover both below. If you are setting up for the very first time, our guide on how to start live streaming puts this decision in context.

Hardware or software encoder in OBS

x264 is the classic software encoder. It runs on the CPU, and its preset trades quality for processing power: veryfast is the usual choice for live, while slower presets squeeze a little more quality out of each bit and load the CPU heavily. On a computer that is also running a game or a busy scene collection, x264 competes with everything else for the same processor.

Hardware encoders use a separate chip built for the job, so the stream costs almost nothing in CPU. Older generations looked noticeably worse than x264. Recent ones (NVIDIA cards from the RTX 20 series onwards in particular, and the newer encoders from AMD, Intel and Apple) have closed most of that gap at the presets an ordinary computer can sustain live.

So the short answer to hardware or software encoder in OBS is hardware, in most cases. Use x264 when there is no hardware encoder, or when you have a powerful CPU with nothing else to do and a low bitrate where every bit counts.

Encoder in OBSRuns onWhen to use it
NVIDIA NVENC H.264NVIDIA graphics cardFirst choice on any recent NVIDIA card
AMD HW H.264AMD graphics cardGood on recent cards
QuickSync H.264Intel processor with integrated graphicsLaptops and modest computers
Apple VT H.264 HardwareMacThe default choice on a Mac
x264CPUNo hardware encoder, or spare CPU at low bitrates

Whichever you pick, send H.264 video and AAC audio if the stream goes to your own server: that is what XtreamCast and most RTMP servers expect. YouTube also accepts HEVC and AV1, which need roughly 20 to 30% less bitrate for the same quality, but that only helps when YouTube is the sole destination. If OBS shows an error when the hardware encoder starts, update the graphics driver first; it is the usual cause. Our OBS streaming settings guide has the full set of values.

Hardware vs software encoding in Premiere Pro and After Effects

The same choice shows up when you export. In Premiere Pro's export settings, the Performance option under encoding settings switches between hardware and software encoding for H.264 and HEVC. Hardware encoding uses your GPU or QuickSync and is several times faster. Software encoding uses the CPU, takes longer and can be slightly more efficient at low bitrates.

For a file you will upload to YouTube or to a video library, at a generous bitrate you will not see the difference: use hardware and keep the time. Switch to software when you need a very small file at a low bitrate, or when hardware encoding throws an error on a particular sequence. After Effects passes H.264 exports through the same Adobe encoding engine, directly or via Adobe Media Encoder, so the same advice applies. If the file is headed for your own OnDemand library, a clean H.264 export at a sensible bitrate is all it needs.

Dedicated encoder or computer: the production question

Software on a computer

OBS, vMix or Wirecast on a computer give you scenes, overlays, transitions, chroma key, NDI sources, remote guests and updates every few months, and OBS costs nothing. The price is dependence on the computer: an operating system update at the wrong moment, an antivirus scan, a browser eating memory. You also need capture cards for HDMI or SDI cameras, and the computer becomes a single point of failure.

A dedicated hardware encoder

A hardware encoder runs firmware built for one job. It boots in seconds; you plug in the camera, enter the server URL and key, and it streams. It draws a fraction of a computer's power, many models fit in a backpack and run on batteries, and some bond several connections (cellular, Wi-Fi and Ethernet) to survive where a single one would fail. The downsides: it costs more than free software, its inputs are fixed, and anything beyond basic graphics needs a switcher or a computer in front of it.

The devices fall into a few families: single-input encoders (Magewell's Ultra Encode, Teradek's VidiU line), bonded cellular units (LiveU, TVU, Teradek's bonded models), switchers with a built-in encoder (the ATEM Mini Pro and its siblings, YoloBox) and rack encoders for fixed installations. Bonded units normally send to their maker's receiver or cloud, which then delivers RTMP or SRT to your server; our LiveU setup guide shows how that looks with XtreamCast.

Check this before you buy a hardware encoder

  • H.264 and AAC output. Some units default to HEVC; make sure H.264 is available if you stream to your own server.
  • RTMP and SRT. SRT handles packet loss far better on unstable networks. For XtreamCast the encoder must let you set the SRT stream ID, because that is where the channel's token goes; the SRT guide has the format.
  • Keyframe interval and rate control. You want a 2 second keyframe interval and a constant bitrate.
  • Inputs. HDMI, SDI or both, in the formats your cameras output.
  • Network. Ethernet, Wi-Fi, cellular modems, bonding.
  • Local recording to an SD card or a drive, as a backup of what you streamed.
  • Remote management, if the unit will live somewhere you cannot easily reach.

Our comparison of SRT vs RTMP explains when the protocol matters more than the encoder.

Hardware vs software encoder, scenario by scenario

ScenarioBetter choiceWhy
Weekly church service with two cameras and lyricsOBS with a hardware switcherGraphics and lyrics at a low cost
Reporter or mobile unit on cellularBonded hardware encoderCombines connections, runs on battery
Studio with four or more cameras, replays and guestsvMixProduction features no box offers
Fixed auditorium or classroomHardware encoder or a switcher with one built inTurns on with the room, no computer
24/7 channel from a playlistNo encoder: cloud playoutNothing on site that can fail
24/7 live signal from a studioHardware encoder or a computer that does nothing elseStability over months
GamingOBS with the GPU encoderSame machine, minimal impact on the game

The playlist case surprises people: if the channel plays recorded content, you do not need an encoder running in a room at all. LiveStation plays the playlist from the server around the clock, and because it publishes into the channel's own ingest, Restream can relay it like any live signal.

Many professional setups combine both worlds: cameras into an ATEM Mini feeding OBS for graphics and encoding, or an ATEM Mini Pro ISO streaming RTMP straight to the server while it records every camera.

Plan B: what happens if the encoder fails

Hardware or software, the encoder is the one element whose failure takes the whole stream down. On XtreamCast each channel lives on a single origin and the server does not switch to a backup encoder by itself, so plan B is in your hands: keep a second encoder configured with the same server details (a laptop with OBS is enough), decide who swaps it and how, and practise the swap once. Record locally on the encoder or the computer as well, so a dropped stream does not mean a lost event.

When the weak point is the venue's connection rather than the encoder, SRT and bonding help more than any hardware upgrade. Send the stream to an SRT server and the protocol recovers lost packets instead of freezing the picture.

Whatever encoder you choose, one server receives it

RTMP or SRT from OBS, vMix, an ATEM Mini Pro or a hardware encoder, with the panel showing codecs, keyframes and bitrate every 10 seconds.