Skip to content

Instantly share code, notes, and snippets.

View gavanderhoorn's full-sized avatar

G.A. vd. Hoorn gavanderhoorn

View GitHub Profile
@gavanderhoorn
gavanderhoorn / ffmpeg-livestream-to-streaming-sites-vaapi-nvenc.md
Created February 20, 2021 15:15 — forked from Brainiarc7/ffmpeg-livestream-to-streaming-sites-vaapi-nvenc.md
ffmpeg livestreaming to youtube via Nvidia's NVENC and Intel's VAAPI on supported hardware

Streaming your Linux desktop to Youtube and Twitch via Nvidia's NVENC and VAAPI:

Considerations to take when live streaming:

The following best practice observations apply when using a hardware-based encoder for live streaming to any platform:

  1. Set the buffer size (-bufsize:v) equal to the target bitrate (-b:v). You want to ensure that you're encoding in CBR mode.

  2. Set up the encoders as shown: