Question / Help 2PC Stream - lagging flickering stuttering

roben_tv

New Member
Hi guys,

I am using 2PC (gaming,streaming) and more than 1month i am facing this issue and have no idea what is wrong.

Issue:
1. https://www.twitch.tv/roben_tv/clip/ShyJoyousWaterCoolCat?filter=clips&range=24hr&sort=time
2. https://www.twitch.tv/roben_tv/clip...teZarollTie?filter=clips&range=24hr&sort=time

the first video is from gaming PC to Stream via Avermedia Live xtreme gamer GC550
the second video is from PS4 to stream PC via Elgato

StreamPC - i7 4790K - GTX1060 6gb - 16GB ram
GamingPC - i7 8700K - RTX 2060 - 16GB ram

OBS settings - x264 - CBR - preset veryfast - 6500bitrate - 1600x900 (tried fullhd and 720p still same issue)
anyway when streaming OBS looks ok CPU usage is between 10-20% max!!!! fps 60 but like every 10seconds fps drop to 30 and goes back to 60.
My friends who are streamers have same or Lower streaming PC and they can stream FULL HD 8000bitrate without any issues.
I think my stream PC is strong enough but this issue is appearing also on 720P veryfast preset

What i tried and didnt help - 1. Different settings like superfast profile, start as administrator, increase process priority 2. Reinstall windows like 4 times 3. Bought better GPU 1060 (used weaker before) 4. Bought ssd disk 5. Nvidia settings - vsync off/on 6.Gamemode is off on stream PC

I am desperate, dealing with issue more than month, it cost me money, time, energy, stream is offline and i am full partner twitch.

PLEASE HELP me to fix this issue
 

Attachments

  • 2019-02-17 16-16-05.txt
    7.6 KB · Views: 26

Narcogen

Active Member
16:17:01.409: adding 23 milliseconds of audio buffering, total audio buffering is now 69 milliseconds (source: Mic/Aux)
16:17:59.890: adding 278 milliseconds of audio buffering, total audio buffering is now 348 milliseconds (source: Stream PC)


The above indicates system overload.

16:16:06.348: Available Video Adapters:
16:16:06.350: Adapter 1: NVIDIA GeForce GTX 1060 6GB
16:16:06.350: Dedicated VRAM: 2051014656
16:16:06.350: Shared VRAM: 4257212416
16:16:06.350: output 1: pos={0, 0}, size={1280, 1024}, attached=true
16:16:06.350: Adapter 2: NVIDIA GeForce GT 710
16:16:06.350: Dedicated VRAM: 2104754176
16:16:06.350: Shared VRAM: 4257212416
16:16:06.353: Loading up D3D11 on adapter NVIDIA GeForce GTX 1060 6GB (0)



How much PCI bandwidth is your 1060 getting?

16:19:48.430: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 156 (1.4%)

Some lagged frames due to rendering lag, but not a huge amount... Not enough to account for a drop from 60 to 30 every 10 seconds.
 

roben_tv

New Member
16:17:01.409: adding 23 milliseconds of audio buffering, total audio buffering is now 69 milliseconds (source: Mic/Aux)
16:17:59.890: adding 278 milliseconds of audio buffering, total audio buffering is now 348 milliseconds (source: Stream PC)


The above indicates system overload.

16:16:06.348: Available Video Adapters:
16:16:06.350: Adapter 1: NVIDIA GeForce GTX 1060 6GB
16:16:06.350: Dedicated VRAM: 2051014656
16:16:06.350: Shared VRAM: 4257212416
16:16:06.350: output 1: pos={0, 0}, size={1280, 1024}, attached=true
16:16:06.350: Adapter 2: NVIDIA GeForce GT 710
16:16:06.350: Dedicated VRAM: 2104754176
16:16:06.350: Shared VRAM: 4257212416
16:16:06.353: Loading up D3D11 on adapter NVIDIA GeForce GTX 1060 6GB (0)



How much PCI bandwidth is your 1060 getting?

16:19:48.430: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 156 (1.4%)

Some lagged frames due to rendering lag, but not a huge amount... Not enough to account for a drop from 60 to 30 every 10 seconds.
I was streaming before with GTX710 had same issue,i bought 2 days ago 1060 6GB and same issue. This problem started like 2 weeks ago... before 3 years it was ok :D
 

Narcogen

Active Member
Rendering lag is GPU overload.

Encoding lag is CPU overload.

20:37:06.169: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 862 (3.1%)
20:37:06.170: Video stopped, number of skipped frames due to encoding lag: 459/27396 (1.7%)


The above is almost certainly noticeable although I'm not sure I'd call it "massive". There are people posting logfiles with 50% or more rendering lag.

Since you're in a 2 PC setup that's why I asked how many PCI lanes your primary video card is getting.
 

roben_tv

New Member
maybe the numbers would be higher with full HD and more bitrate. I would like to reply but " PCI lanes your primary video card is getting. " dont know what exactly you mean. The HDMI to avermedia goes from RTX2060...
 

Narcogen

Active Member
Some motherboards are made to give the maximum PCI bandwidth (16 lanes) to a single PCI slot into which you install your primary video card.

Putting your primary card in another slot, or putting a 2nd card into the machine, can sometimes reduce the number of lanes available to the primary video card by splitting it with the 2nd card-- 8 lanes and 8 lanes, 8 to each card, instead of 16 to one card.
 

roben_tv

New Member
Yeah at this time in stream PC are 2 graphic cards...tomorrow i will take out 1 and will let you know if it changed something. Strange thing is that it was ok for 2 years :D and i was using GT710....and 2weeks ago i got this problem so i thought it can be GPU so bought gTX1060 6gb but stall same problem :D tomorrow i GT710 will be destroyed :D
 

roben_tv

New Member
Hi, let me correct my previous statement. OBS says "encoding overloaded" consider to change preset......... you know i have i7 4790K in my stream PC and it was working for 2years without problems. As i mentioned now there is only 1 GPU GTX 1060 6Gb. Also there was only 1 stream card avermedia. I did test but got same bad results. Please know that same issue is also on 720p resolution and 6K bitrate.
NEW Log uploaded. What could happen to CPU? and advice? Thanks
 

Attachments

  • 2019-02-18 12-40-02.txt
    14.9 KB · Views: 10

Narcogen

Active Member
You're using the test build. Sorry I didn't notice earlier. Problems with the test build should be in the test build forum:

https://obsproject.com/forum/list/test-builds.20/

12:44:14.673: adding 23 milliseconds of audio buffering, total audio buffering is now 116 milliseconds (source: Mic/Aux)
12:44:19.205: adding 23 milliseconds of audio buffering, total audio buffering is now 139 milliseconds (source: Mic/Aux)
12:44:25.131: adding 23 milliseconds of audio buffering, total audio buffering is now 162 milliseconds (source: Mic/Aux)
12:44:28.945: adding 46 milliseconds of audio buffering, total audio buffering is now 208 milliseconds (source: Mic/Aux)
12:44:38.467: [ffmpeg muxer: 'adv_file_output'] Output of file 'C:/Users/stream/Desktop/2019-02-18 12-43-46.mkv' stopped
12:44:38.467: Output 'adv_file_output': stopping
12:44:38.467: Output 'adv_file_output': Total frames output: 3068
12:44:38.467: Output 'adv_file_output': Total drawn frames: 3082 (3107 attempted)
12:44:38.467: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 25 (0.8%)
12:44:38.467: ==== Recording Stop ================================================
12:44:38.467: Video stopped, number of skipped frames due to encoding lag: 69/3103 (2.2%)


That said, the increasing amounts of audio buffering and the skipped frames due to encoding lag are indicative of CPU overload.
 

roben_tv

New Member
Yeah i just wanted to try different version of OBS if it may fix the issue but didnt (installed this version only 2days ago) but no difference. So what is your idea? what should i do to fix the problem? The CPU is strong and windows is installed fresh, the only thing installed on that PC is OBS, drivers. Nothing else. I also tried it without drivers but same problem. You think that the problem can be audio in that PC?
 

Narcogen

Active Member
12:48:10.785: [ffmpeg muxer: 'adv_file_output'] Writing file 'C:/Users/stream/Desktop/2019-02-18 12-48-10.mkv'...
12:48:19.208: adding 23 milliseconds of audio buffering, total audio buffering is now 325 milliseconds (source: Stream PC)
12:49:14.482: adding 23 milliseconds of audio buffering, total audio buffering is now 348 milliseconds (source: Mic/Aux)
12:49:37.553: adding 23 milliseconds of audio buffering, total audio buffering is now 371 milliseconds (source: Mic/Aux)
12:49:38.612: adding 46 milliseconds of audio buffering, total audio buffering is now 417 milliseconds (source: Mic/Aux)
12:49:44.060: adding 46 milliseconds of audio buffering, total audio buffering is now 464 milliseconds (source: Mic/Aux)


Audio problem is symptom, not cause. Can't say why your CPU is suddenly overloaded now and wasn't before, but it is. You need to see what else might be using CPU cycles, or else change preset / reduce resolution to get rid of the overload.
 

roben_tv

New Member
Narcogen, i just wanted to say thank you for your help and time. I can go to shop and return new graphic card since it was not problem :D
I HAVE FIXED IT!!! went to BIOS, sett bios to default = didnt help. You will not believe but i took out the battery from mainboard = hard reset bios and everything. And now 7000K bitrate, FullHD, everything is going smoothly and my stream is beautiful. Now you can advise same thing in similar cases. So today i will have drunk stream, celebrating :D

Have a nice day
 

Narcogen

Active Member
Glad you fixed your problem!

Also I would say the 20xx Nvidia cards are all new. The drivers have not settled down yet. A lot of users are expecting to immediately get a big quality and performance boost when using these cards (even though they are simultaneously starting on new games that also will probably get further optimization-- Anthem, Apex Legends) and being disappointed at having problems. I am sure these cards are great, but it will take awhile for everything to shake out.
 

roben_tv

New Member
Narcogen, anyway i have one question, maybe you can advise. I have gaming PC, Stream Pc and PS4. so when i play games on PC everything is ok, stream is ok.... PS4 and Gaming PC are connected to stream PC via capture cards... The problem is when i want to stream games from PS4, the reason is that my Scene in OBS has to have active both capture cards, also from gaming PC because my microfone is connected there and i need to transfer my voice. Although Gaming PC capture card is hidden behind PS4 so people can see image from PS4 and hear only voice from Gaming PC. But this way it is hard for stream PC to encode both capture cards at once. Do you have any idea how to transfer only voice without image from gaming PC or any other idea? Thank you
 

Narcogen

Active Member
Install the NDI tools and the OBS-NDI plugin, along with OBS, on the gaming machine.

Create a scene with ONLY your microphone as a source, and add a "Dedicated NDI Output" filter to it, set to audio only.

Add that NDI source as an input on the streaming machine. As long as the two machines are on the same network, this should be fine. There's no reason to run a video feed on a capture card input just to get microphone input.

https://obsproject.com/forum/resources/obs-ndi-newtek-ndi™-integration-into-obs-studio.528/
 

roben_tv

New Member
Hi, success i can transfer my voice :) but i would like to transfer sounds as well (i mean audio source) music and everything i can hear in my headset. I did the same steps but in stream PC i see always the same dedicated ndi output. Please how can i add audio source? Thank You
 

Narcogen

Active Member
If you want to send default windows audio the same way, without the capture hardware, just do the same steps.

On the gaming machine, add your default windows audio device as a source. Add a dedicated NDI output filter to it. (Be sure to give the filters AND sources distinct names so you can tell them apart).
 

roben_tv

New Member
yeah i did before i wrote it here but on stream PC i could see still only 1 NDI source...not 2 (yes i gave them different names)
 
Top