Question / Help Everything is fine. But my preview & stream is laggy.

bifi85

New Member
My Internet: Download 40.000 kbit/s and Upload 20.000 kbit/s.
Other: Windows 10 (all updates) / GPU AMD (newest driver) / Display 120 Hz / OBS 17.0.0.0
OBS Log: https://gist.github.com/c1b3323d1343c8d77669ae5f8af1bccf

When I start streaming (twitch / youtube) everything works fine but my preview video in OBS and my stream is always lagging. The video is not smooth but the audio is fine. Everything ingame is fine.

When I use the new streaming software ReLive (AMD) everything works fine. But ReLive is more like an Alpha where I can't build scenes etc.

I am very new to streaming and OBS, please help.
 

EBrito

Active Member
Use only 1 game capture per scene collection.
Reuse first game capture when needed in a new scene.
 

EBrito

Active Member
1920x1080x60 FPS
23:35:41.996: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 3 (0.1%)

Better, 1920x1080x30FPS
OR 1280x720x60FPS
 

bifi85

New Member
I think it worked now. I used 1 scene and livestream did not lag. Does the preview-stream- always "lag"? I heard something like: Rate Control Method from CBR to VBR when you have a new AMD GPU.
 

TeleFata

New Member
Hello,

In Advanced>Video>Render, have you tried changing this to OpenGL?

Also, when you said "Download 40.000 kbit/s and Upload 20.000 kbit/s", I assume you mean 40,000 kbit/s and 20,000 kbit/s respectively. If this is true, with your hardware try the following:

1. Change your output (Scaled) resolution to 1920x1080 in video settings.
2. Change FPS to 30 in video settings.
3. Go to Advanced>Video>Render and ensure that OpenGL, NV12, 709, and partial are selected.
4. Go to Output and change "Output Mode" to Advance. Using the streaming tab, ensure that x264 and enforce streaming...box is checked. Ensure that rescale output is checked and is set to 1280x720. Rate control should be CBR with a bitrate of 1800 (due to your upload bandwidth). CPU preset should be left at veryfast; profile none or main; and tune should be none.
5. In the Audio tab, change audio bitrate for track 1 to 128.

Save your settings and trying a preview/test stream.
 
Last edited:

bifi85

New Member
Yes it is 40 MBit/s Download and 20 MBit/s Upload.

I did all you said TeleFata. Thank you for your help. But it didn't work.

Log: https://gist.github.com/anonymous/9920a08995d2586fdc8b916dd3258da5

The new changes effected my ingame gameplay (bad performance) a lot.

OBS Test-Stream on Youtube: https://www.youtube.com/watch?v=SYvJo6Ux46w

I have 0 idea from anything. But is it not better to run H264 as Encoder when you have a better GPU than CPU?

I think I have no bottleneck, the only thing is to find the right settings in OBS.
When AMDs ReLive works perfect 1:1, it can only be wrong OBS settings.
 

EBrito

Active Member
OpenGL gives worse performance

Rescaling in video settings is made by GPU
Rescaling made in output settings is made by CPU when using x264. (And, I think, in any case)

So, Direct3d 11
video settings
1920x1080 canvas and output
30 FPS
filter bilinear (not needed really)

Output: Leave rescale unchecked.
Use your GPU to encode
 

EBrito

Active Member
Preview uses CPU.
Although your log does not show problems, I think your CPU has no room enough to run properly the preview.
That´s why you are using GPU to encode. With x264 it will lag.

Try rescaling to 720p 60 FPS.
 

TeleFata

New Member
Sorry to hear/see that. You can switch back the render to Direct3D 11 and test it out. Also try disabling preview in OBS while streaming.

x264 is CPU based rendering; so if you have a better GPU than CPU, and the GPU is shown as an encoder option you can definitely try that. I don't think OBS support hardware encoding using AMD GPUs.
 

bifi85

New Member
Thx for your help TeleFata and Ebrito. But the problem stays the same. Maybe I have to wait till OBS gets HEVC h265 AMD Encoder.

I have the perfect stream (1080p @60fps) with AMD ReLive but can't do anything besides stream a window.
Or I use OBS with all the features but with a dogshit stream like a C64 with ISDN.
 

bifi85

New Member
Seems like a lot of people have the same problem with new GPUs from Nvidia and Radeon. Everything is fine, but the stream is choppy with OBS and when they try ReLive or Shadowplay everything is fine again.
 
OBS needs some spare GPU usage to render and will cause rendering lags when overloading it. On Windows 10 my guess is it's focusing the GPU more on the game you're playing leaving very little GPU room on OBS. As such reducing the GPU loads by lowering in-game settings and capping the FPS is the only solutions.
 
Top