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:
-
Set the buffer size (-bufsize:v) equal to the target bitrate (b:v). You want to ensure that you're encoding in CBR mode.
-
Set up the encoders as shown: