Suddenly getting encoding overload issues after months of being fine with current settings

heyitskryptic

New Member
Hello,

I run a dual PC multistream to Youtube and Twitch. For the longest time, I had no issues running both. But since Sunday, I get encoding overloaded message as soon as I start the stream. I have no idea what has changed since then. I tried multiple fixes to no avail. I tried running just the Youtube stream, and that works fine. As soon as I start the Twitch stream, I get the error message. I even used to run the YT stream at 1440 with no issues. Here is the latest log that shows some of the issues.


Any idea what could be causing this. The only thing running on this PC is OBS, so I am really puzzled as it should be able to handle both as it has in the past. Could it be tied to the new "Enhanced Broadcasting" feature on Twitch? I can't seem to disable it with the RTMP Mutiple Output plugin. Maybe I could run 2 seperate instances of OBS could help?

Anyway, any help would be greatly appreciated. Thank you
 

heyitskryptic

New Member
I will try and switch the outputs to streaming platforms. I will make Twitch the main OBS output and disable enhanced broadcasting, and make Youtube the secondary output through multi RTMP and see if that resolves anything
 

rockbottom

Active Member
Surprised both streams aren't lagging with those settings. Anyway, the encoding lag is on the stream to Twitch only. For both of your encodes, change the Preset to P5 & change Multipass to qres or disabled. This should reduce the load on the encoder more than enough so the lag is history. See the link below for more info on NVENC.

17:08:02.755: Output 'adv_stream': stopping
17:08:02.755: Output 'adv_stream': Total frames output: 7848
17:08:02.755: Output 'adv_stream': Total drawn frames: 8848
17:08:02.757: ==== Streaming Stop ================================================
17:08:03.005: [rtmp stream: 'multi-output'] User stopped the stream
17:08:03.005: [rtmp stream: 'multi-output'] Socket send buffer is 1048576 bytes
17:08:03.005: Output 'multi-output': stopping
17:08:03.005: Output 'multi-output': Total frames output: 7814
17:08:03.005: Output 'multi-output': Total drawn frames: 8868
17:08:03.005: [obs-multi-rtmp] Release output while it is active.
17:08:03.005: Video stopped, number of skipped frames due to encoding lag: 7217/7893 (91.4%)

17:05:35.108: [obs-nvenc: 'multi-rtmp-venc3130700721'] settings:
17:05:35.108: codec: H264
17:05:35.108: rate_control: CBR
17:05:35.108: bitrate: 7500
17:05:35.108: cqp: 20
17:05:35.108: keyint: 60
17:05:35.108: preset: p7
17:05:35.108: tuning: hq
17:05:35.108: multipass: fullres
17:05:35.108: profile: high
17:05:35.108: width: 1920
17:05:35.108: height: 1080
17:05:35.108: b-frames: 0
17:05:35.108: lookahead: true
17:05:35.108: psycho_aq: true
17:05:35.108:
17:05:35.210: ---------------------------------
17:05:35.211: [FFmpeg aac encoder: 'adv_stream_audio'] bitrate: 160, channels: 2, channel_layout: stereo
17:05:35.211:
17:05:35.214: [rtmp stream: 'multi-output'] Connecting to RTMP URL rtmp://live.twitch.tv/...
17:05:35.240: [obs-nvenc: 'advanced_video_stream'] settings:
17:05:35.240: codec: HEVC
17:05:35.240: rate_control: CBR
17:05:35.240: bitrate: 14000
17:05:35.240: cqp: 20
17:05:35.240: keyint: 60
17:05:35.240: preset: p7
17:05:35.240: tuning: hq
17:05:35.240: multipass: fullres
17:05:35.240: profile: main
17:05:35.240: width: 1920
17:05:35.240: height: 1080
17:05:35.240: b-frames: 0
17:05:35.240: lookahead: false
17:05:35.240: psycho_aq: true

 

heyitskryptic

New Member
Surprised both streams aren't lagging with those settings. Anyway, the encoding lag is on the stream to Twitch only. For both of your encodes, change the Preset to P5 & change Multipass to qres or disabled. This should reduce the load on the encoder more than enough so the lag is history. See the link below for more info on NVENC.

17:08:02.755: Output 'adv_stream': stopping
17:08:02.755: Output 'adv_stream': Total frames output: 7848
17:08:02.755: Output 'adv_stream': Total drawn frames: 8848
17:08:02.757: ==== Streaming Stop ================================================
17:08:03.005: [rtmp stream: 'multi-output'] User stopped the stream
17:08:03.005: [rtmp stream: 'multi-output'] Socket send buffer is 1048576 bytes
17:08:03.005: Output 'multi-output': stopping
17:08:03.005: Output 'multi-output': Total frames output: 7814
17:08:03.005: Output 'multi-output': Total drawn frames: 8868
17:08:03.005: [obs-multi-rtmp] Release output while it is active.
17:08:03.005: Video stopped, number of skipped frames due to encoding lag: 7217/7893 (91.4%)

17:05:35.108: [obs-nvenc: 'multi-rtmp-venc3130700721'] settings:
17:05:35.108: codec: H264
17:05:35.108: rate_control: CBR
17:05:35.108: bitrate: 7500
17:05:35.108: cqp: 20
17:05:35.108: keyint: 60
17:05:35.108: preset: p7
17:05:35.108: tuning: hq
17:05:35.108: multipass: fullres
17:05:35.108: profile: high
17:05:35.108: width: 1920
17:05:35.108: height: 1080
17:05:35.108: b-frames: 0
17:05:35.108: lookahead: true
17:05:35.108: psycho_aq: true
17:05:35.108:
17:05:35.210: ---------------------------------
17:05:35.211: [FFmpeg aac encoder: 'adv_stream_audio'] bitrate: 160, channels: 2, channel_layout: stereo
17:05:35.211:
17:05:35.214: [rtmp stream: 'multi-output'] Connecting to RTMP URL rtmp://live.twitch.tv/...
17:05:35.240: [obs-nvenc: 'advanced_video_stream'] settings:
17:05:35.240: codec: HEVC
17:05:35.240: rate_control: CBR
17:05:35.240: bitrate: 14000
17:05:35.240: cqp: 20
17:05:35.240: keyint: 60
17:05:35.240: preset: p7
17:05:35.240: tuning: hq
17:05:35.240: multipass: fullres
17:05:35.240: profile: main
17:05:35.240: width: 1920
17:05:35.240: height: 1080
17:05:35.240: b-frames: 0
17:05:35.240: lookahead: false
17:05:35.240: psycho_aq: true

thank you for the feedback. I will definitely give that a try. The weird thing to me is I have gone months with these settings without the slightest encoding issue. I think it could possibly be caused by the "enhanced broadcasting" feature being enabled by default through the multi RTMP plug-in. I will try and switch that as well to make Twitch the main OBS output, and disable that feature to see if it could possibly help improve things. It is a dedicated stream PC so I feel like it should be able to handle what I throw at it, especially since I do not record...and it has done so flawlessly for months. Will check back in once I've run more tests. Thanks
 
Top