Skipped Frames Due To Encoding Lag 5900X with 3080

VasG1

New Member
I am just wondering why my build (listed below) is having a problem encoding which in turn is making my stream look terrible - and if my setup cant run maxed out for 1080p or even 720p at 60. What setup would? :(

Any help would be very much appreciated.

Run as Admin >

Log File:

17:52:13.530: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://live-mia.twitch.tv/app...
17:52:13.543: [rtmp stream: 'adv_stream'] Interface: Realtek PCIe GbE Family Controller (ethernet, 1000 mbps)
17:52:14.410: [rtmp stream: 'adv_stream'] Connection to rtmp://live-mia.twitch.tv/app successful
17:52:14.413: ==== Streaming Start ===============================================
17:52:47.990: [rtmp stream: 'adv_stream'] User stopped the stream
17:52:47.991: Output 'adv_stream': stopping
17:52:47.991: Output 'adv_stream': Total frames output: 2003
17:52:47.991: Output 'adv_stream': Total drawn frames: 2066 (2067 attempted)
17:52:47.991: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 1 (0.0%)
17:52:47.991: Video stopped, number of skipped frames due to encoding lag: 164/2012 (8.2%)
17:52:47.994: ==== Streaming Stop ================================================
17:53:29.825: [game-capture: 'Ubisoft'] capture window no longer exists, terminating capture
17:53:29.825: [game-capture: 'Ubisoft'] capture stopped


Single PC Stream Build.

Processor (CPU) : AMD Ryzen 9 5900X 12-Core
Motherboard : MSI B550M PRO-VDH WIFI
Memory (RAM) : Kingston DDR4 2400 CAS 17 (4 x 8 GBytes) total 32
Graphics Card (GPU) : EVGA RTX 3080 XC3 BLACK

Speedtest : (Cable Internet) Ping 10ms – Download 482.48 Mbps – Upload 23.39 Mbs

Twitch Bandwidth Test :
US East Miami, FL – Bandwidth 10000 kbs – RTT 23 ms – Quality 100
US East Atlanta, GA – Bandwidth 10000 kbs – RTT 31 ms – Quality 100
US East Ashburn, VA – Bandwidth 10000 kbs – RTT 41 ms – Quality 100

OBS Settings

Video >

Base Canvas 1920x1080 ( I have also tried 1600x900 and 1280x720 )
Output (Scaled) 1920x1080 ( I have also tried 1600x900 and 1280x720 )
Downscale Filer (Lanczos)
Common FPS 60 ( I have also tried 30)

Output > Advanced

Encoder NVENC X.264 (new)
Enforce streaming service encoder settings: yes
Rate control: CBR
Bitrate: 6000 (( I have also tried 5000, 4000, 3500)
Keyframe Interval: 2
Preset: Max Quality
Profile: high
Look-ahead: no
Physcho Visual Tuning: yes
GPU: 0
Max B-Frames: 2

Advanced >

Process Priority – Above Normal
Color Format – NB 12
Color Space – 709
Color Range - Full
 

VasG1

New Member
So not sure if this is a resolution to my issue however I found something interesting that might be helpful for others experiencing similar problems.

I changed the refresh rate from my monitor from 144hz to 120hz. I also changed the resolution in the game I was trying to stream from 1440p to 1080p in the game settings and set it to windowed borderless.

This seems to have drastically dropped the number of frames skipped. What this makes me think is that maybe on my setup, since its a single PC. OBS is somehow having an issue with capture signal being 1440p and the Canvas being 1080p.

I was under the impression that I could use any resolution in my game (especially since I am playing in windowed borderless mode). My monitor is still at 1440p all I changed was the refresh rate.

I have no idea, just testing stuff out but so far max settings on Twitch and Facebook do no show any skipped frames. Lag is a different story but that's to be expected.

This still make no sense to me as I should be able to play the game at 4K and stream at 720p 60 with no issues... but maybe its a step closer to finding out the issue. Will see.. hopefully someone way smarter than me on this stuff on here might have more insight, thank you.
 

DarthNox

Member
I am just wondering why my build (listed below) is having a problem encoding which in turn is making my stream look terrible - and if my setup cant run maxed out for 1080p or even 720p at 60. What setup would? :(

Any help would be very much appreciated.

Run as Admin >

Log File:

17:52:13.530: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://live-mia.twitch.tv/app...
17:52:13.543: [rtmp stream: 'adv_stream'] Interface: Realtek PCIe GbE Family Controller (ethernet, 1000 mbps)
17:52:14.410: [rtmp stream: 'adv_stream'] Connection to rtmp://live-mia.twitch.tv/app successful
17:52:14.413: ==== Streaming Start ===============================================
17:52:47.990: [rtmp stream: 'adv_stream'] User stopped the stream
17:52:47.991: Output 'adv_stream': stopping
17:52:47.991: Output 'adv_stream': Total frames output: 2003
17:52:47.991: Output 'adv_stream': Total drawn frames: 2066 (2067 attempted)
17:52:47.991: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 1 (0.0%)
17:52:47.991: Video stopped, number of skipped frames due to encoding lag: 164/2012 (8.2%)
17:52:47.994: ==== Streaming Stop ================================================
17:53:29.825: [game-capture: 'Ubisoft'] capture window no longer exists, terminating capture
17:53:29.825: [game-capture: 'Ubisoft'] capture stopped


Single PC Stream Build.

Processor (CPU) : AMD Ryzen 9 5900X 12-Core
Motherboard : MSI B550M PRO-VDH WIFI
Memory (RAM) : Kingston DDR4 2400 CAS 17 (4 x 8 GBytes) total 32
Graphics Card (GPU) : EVGA RTX 3080 XC3 BLACK

Speedtest : (Cable Internet) Ping 10ms – Download 482.48 Mbps – Upload 23.39 Mbs

Twitch Bandwidth Test :
US East Miami, FL – Bandwidth 10000 kbs – RTT 23 ms – Quality 100
US East Atlanta, GA – Bandwidth 10000 kbs – RTT 31 ms – Quality 100
US East Ashburn, VA – Bandwidth 10000 kbs – RTT 41 ms – Quality 100

OBS Settings

Video >

Base Canvas 1920x1080 ( I have also tried 1600x900 and 1280x720 )
Output (Scaled) 1920x1080 ( I have also tried 1600x900 and 1280x720 )
Downscale Filer (Lanczos)
Common FPS 60 ( I have also tried 30)

Output > Advanced

Encoder NVENC X.264 (new)
Enforce streaming service encoder settings: yes
Rate control: CBR
Bitrate: 6000 (( I have also tried 5000, 4000, 3500)
Keyframe Interval: 2
Preset: Max Quality
Profile: high
Look-ahead: no
Physcho Visual Tuning: yes
GPU: 0
Max B-Frames: 2

Advanced >

Process Priority – Above Normal
Color Format – NB 12
Color Space – 709
Color Range - Full
try running obs as administrator
set Preset to Max Performance (there is no visual quality difference)
if you do not have any stream things you need to mess with disable your preview screen in obs
set your downscale filter to bilinear if you are not downscaling
 

VasG1

New Member
Thank you... Those settings were helpful. I will test my monitor settings a little more as well and see what that brings.
 

deFrisselle

Member
Try caping your game FPS to 60 or 120 Whichever your game can maintain May have to change game settings That way it's less work for the encoder

Also, please post a full log of a streaming session
 

VasG1

New Member
Thanks, everyone for the helpful advice.

Everything seems to be better now, had a friend check my stream and said it was as good as it can be.

Here is what I ended up going with for settings.

OBS Settings

Video >

Base Canvas 1920x1080
Output (Scaled) 1920x1080
Downscale Fitter (Lanczos)
Common FPS 60

Output > Advanced

Encoder NVENC X.264 (new)
Rate control: CBR
Bitrate: 6000 (( I have also tried 5000, 4000, 3500)
Keyframe Interval: 2
Preset: Max Quality
Profile: high
Look-ahead: yes
Physcho Visual Tuning: yes
GPU: 0
Max B-Frames: 2

Advanced >

Process Priority – Above Normal
Color Format – NB 12
Color Space – 709
Color Range - Full

In games, I set max FPS to 120. and usually play windowed.
 
Top