Question / Help 2 cameras at high quality cause stream to drop a lot of frames?

jackeryz

New Member
Hiya, I stream as more of an entertainment piece and like to do skits in the middle of my games, at the moment I have 2 cameras and switch, zoom in, etc as a funny thing for my viewers. I've realized that if I up them to the quality they can go (1080p), the stream will often lag and skip a bunch of frames and it's easily and painfully noticeable. When I drop both cameras quality down to 360p, the lag is nearly completely gone.

Is there any reason why my cameras' quality causes plenty of lag and is there any way to fix it? I'm able to stream happily with the bad quality but I really want to figure out how to fix this issue so I can have them at the highest quality.
 

carlmmii

Active Member
What cameras are you using, and what compression scheme do you have set for them? (YUY2, MJPEG, etc)

This is either an issue with your bandwidth for actually capturing the camera source, or encoding lag from overloading your CPU. Can you post a log file?
 

jackeryz

New Member
i'm using 2 logitech HD 1080p C920s and they're both using MJPEG, if it's encoding lag, should i invest in a better CPU?

the log is from a stream i did a few days ago, the camera quality is lower than usual, if u need the log with higher camera quality i can provide :)
 

Attachments

  • 2018-12-28 20-44-15.txt
    673.7 KB · Views: 75

carlmmii

Active Member
Holy....

To be 100% honest, your issue with the webcams is probably a side effect of slamming your poor i5 ryzen with WAY too much other stuff. You have so many media sources that aren't set to close when not active. You also have several browser sources which are causing some significant usage as well.

As far as any indication of the problem though, the logs you posted didn't really show any issue with either rendering or encoding (note: since you're using NVENC for encoding, any CPU overload issues would show up as rendering lag), but this appears to be with both webcams set for lower resolutions. For reference, MJPEG will require CPU cycles to perform the decompression from the camera, so that will add to your overall load. Using something like YUY2 is much less of a tax on the CPU, although it does require more USB bandwidth (not a problem as long as they're connected to separate usb controllers).

Definitely try using 1920x1080 with YUY2 and monitor your CPU usage as you change. If you don't see any significant difference, then you should be fine.

One final note, somewhat unrelated but still might help randomly... turn off Game DVR.
20:44:15.733: Windows 10 Gaming Features:
20:44:15.733: Game DVR: On
 

carlmmii

Active Member
sancT:
Definitely try using 1920x1080 with YUY2 and monitor your CPU usage as you change. If you don't see any significant difference, then you should be fine.

If you're having any specific issue past that, I would recommend starting a new thread and posting a log file where you're running into your issue.
 

jackeryz

New Member
Holy....

To be 100% honest, your issue with the webcams is probably a side effect of slamming your poor i5 ryzen with WAY too much other stuff. You have so many media sources that aren't set to close when not active. You also have several browser sources which are causing some significant usage as well.

As far as any indication of the problem though, the logs you posted didn't really show any issue with either rendering or encoding (note: since you're using NVENC for encoding, any CPU overload issues would show up as rendering lag), but this appears to be with both webcams set for lower resolutions. For reference, MJPEG will require CPU cycles to perform the decompression from the camera, so that will add to your overall load. Using something like YUY2 is much less of a tax on the CPU, although it does require more USB bandwidth (not a problem as long as they're connected to separate usb controllers).

Definitely try using 1920x1080 with YUY2 and monitor your CPU usage as you change. If you don't see any significant difference, then you should be fine.

One final note, somewhat unrelated but still might help randomly... turn off Game DVR.

OK sorry for the super delayed response, if I were to set all the media sources to close file when inactive would that assist a large amount or just a little?

I tried to use the YUY2 encoder and the cameras were just incredibly laggy, max they would run at is 20 fps.

Also planning on upgrading my CPU to a 2nd gen Ryzen, would that help in a major way?
 
Top