Question / Help Audio / Webcam Desync [2016]

dping

Active Member
Yes, it's been on a Aero Enabled Theme, Yes, I unchecked the "disable Aero" setting under videos. Here's my log.

https://gist.github.com/aebf577236d49a65d346

Can we please move on and address how/why my Web cam and Mic always desync gradually as my streams progress?
Sure thing. Aero helps. I thoroughly looked over your new log and there is a few issues we need to address.

Code:
Total frames encoded: 686454, total frames duplicated: 64464 (9.39%)

This is really high. I was hoping that having aero disabled was doing this but it is the same but I will say it would be best to keep it enabled.

Code:
23:30:46: PERFORMANCE WARNING: Scene change took 540 ms, maybe some sources
should be global sources?
This happens after you change to a scene with just your webcam. I do not see /global after the webcam. if it is, fine but I'm not seeing it there. global source can keep things in sync which are commonly in scenes like webcams, overlay pictures, scrolling text, and capture cards. Pretty much everything but game, window, and monitor captures should be a global sources.

Second, since you are streaming, make sure you are not watching your own stream on your streaming PC. This will cause extra load on your CPU and when this happens, could be desyncing your webcam/mic during your scene changes. just use a popout chat and OBS preview window.

I would highly recommend monitoring CPU temps are FX series chips do not run well over 60-65C. This will cause throttling and low performance which could aid in the decync during scene changes.

Make sure all audio devices (mic, headsets, etc) are using 48000Hz audio format. you can check this in windows playback and recording devices by the clock by right clicking on your speaker the doubling clicking your audio device. if they are 44100Hz, change them to an audio format to that is the same as OBS and your elgato.

Last but definitely not least, chipset drivers. these will need to be up to date from the drivers on your motherboard manufacturer's website. Those ARE the best drivers and usually contain the least bugs for USB 3.0 chip-sets.

Not having the proper drivers (even newer ones from windows update) can cause DPC latency issues which will stutter your USB devices from time to time which will again, cause audio desync.

hope this helps.
 
"Code | Analyze
23:30:46: PERFORMANCE WARNING: Scene change took 540 ms, maybe some sources
should be global sources?

This happens after you change to a scene with just your webcam. I do not see /global after the webcam. if it is, fine but I'm not seeing it there. global source can keep things in sync which are commonly in scenes like webcams, overlay pictures, scrolling text, and capture cards. Pretty much everything but game, window, and monitor captures should be a global sources."

That last post has a lot of new and fresh info to work on. But let me ask on this part in particular. When I change scenes They involve Webcam & Gamecapture (Both which I thought was from Global sources).But when I make changes to the Webcam under sources, not under global sources does this effects things negatively?? Because I admit I fidget with the settings Live sometimes. Also, Is changing things while in "Preview Stream" mode making any impact?

Lastly you mentioned the Viewing the Twitch Preview via the dashboard. Would having the Dashboard up, and preview paused help? Or should I just pop out Chat and exit the dashboard completely??

Sorry for the annoying questions but I wanna learn the software not be told what to do (if you know what I mean).

We'll be testing this on tomorrow (tonights) stream. *crosses fingers*
 

dping

Active Member
"Code | Analyze
23:30:46: PERFORMANCE WARNING: Scene change took 540 ms, maybe some sources
should be global sources?

This happens after you change to a scene with just your webcam. I do not see /global after the webcam. if it is, fine but I'm not seeing it there. global source can keep things in sync which are commonly in scenes like webcams, overlay pictures, scrolling text, and capture cards. Pretty much everything but game, window, and monitor captures should be a global sources."

That last post has a lot of new and fresh info to work on. But let me ask on this part in particular. When I change scenes They involve Webcam & Gamecapture (Both which I thought was from Global sources).But when I make changes to the Webcam under sources, not under global sources does this effects things negatively?? Because I admit I fidget with the settings Live sometimes. Also, Is changing things while in "Preview Stream" mode making any impact?

Lastly you mentioned the Viewing the Twitch Preview via the dashboard. Would having the Dashboard up, and preview paused help? Or should I just pop out Chat and exit the dashboard completely??

Sorry for the annoying questions but I wanna learn the software not be told what to do (if you know what I mean).

We'll be testing this on tomorrow (tonights) stream. *crosses fingers*
In order to build a global source, the course cannot be used anywhere else. then when you add the source, you add it from global sources. changes can be made but in the properties of one of the global sources you made.

no need for game capture to be a global source but in all honestly it doesn't really hurt. the only thing that could hurt performance would be having a monitor capture as a global source. This would be bad for all scenes and even when that monitor capture scene was not selected, would significantly hurt performance.

Speaking of that, do not use a direct monitor capture. instead, in a separate scene, use a game capture pointed to DWM.exe. Might need to start OBS as admin for this to work.

hide the preview in the dashboard or better yet use a popout chat that way you don't forget to hide it. pause doesn't change preview.
 
Without the Preview from the Twitch Dashboard I am blind to determine if there is a increasing desync (on the spot) like before. I'm going down your checklist of troubleshooting. The Mic audio format tip was a good call. Was not using the right setting, and fixed that right away. Still working at it. Did a recording at beginning and end of the stream and I'm still getting that desync. Log as follows from latest stream.

https://gist.github.com/b82987d9eb0d5f528f93

I got confused with all the Global Source talk and so I have removed all Sources EXCEPT webcam and Elgato Game Capture. (Found out I was using a PC capture for God knows how long). This was remedied after tonights stream. If the problem persists I am gonna try to figure out what Graphics Card and Processor I have, Maybe the PC parts I have a not strong enough *shrugs*
 

dping

Active Member
Without the Preview from the Twitch Dashboard I am blind to determine if there is a increasing desync (on the spot) like before. I'm going down your checklist of troubleshooting. The Mic audio format tip was a good call. Was not using the right setting, and fixed that right away. Still working at it. Did a recording at beginning and end of the stream and I'm still getting that desync. Log as follows from latest stream.

https://gist.github.com/b82987d9eb0d5f528f93

I got confused with all the Global Source talk and so I have removed all Sources EXCEPT webcam and Elgato Game Capture. (Found out I was using a PC capture for God knows how long). This was remedied after tonights stream. If the problem persists I am gonna try to figure out what Graphics Card and Processor I have, Maybe the PC parts I have a not strong enough *shrugs*
Reenable aero and run the test again.

Also, do you have your webcam as 1300ms buffer or 130ms?

you are still having duplicate frames around 8% which is bad, so please close your browser and look at past broadcasts. I know its a pain but your FX6xxx series CPU isn't strong enough to encode, process the elgato, and watch a stream.

Or use internet explorer for twitch as said I before
 
OK, so then the remainder of the things I mentioned?

All past broadcasts available on Twitch shows the same thing that I'm seeing with the recordings. Sync'd at the beginning, desync'd after about 2.5~3hrs and it progressively gets worse for there.

We made a lot o changes last night after Stream. We'll see in tonights Log if it made progress. If me CPU isn't strong enough though where should pour $$$ into to make my CPU perform better for this kind of scenario? Processor? Graphics Card? Software? Capture Card?
 

dping

Active Member
All past broadcasts available on Twitch shows the same thing that I'm seeing with the recordings. Sync'd at the beginning, desync'd after about 2.5~3hrs and it progressively gets worse for there.

We made a lot o changes last night after Stream. We'll see in tonights Log if it made progress. If me CPU isn't strong enough though where should pour $$$ into to make my CPU perform better for this kind of scenario? Processor? Graphics Card? Software? Capture Card?
The cheapest recommendation would be an FX 8370 with the wraith cooler. thermals above 65C on FX series will kill performance on them. the 8370 will do 720@30 with newer games decently. newer games will use more threads so this would be the absolute minimum I could recommend that would be worth the investment.

if you are talking high end (anything over 720@60 and dropped preset) you're looking at a new mobo and CPU all together with an i7 since an i5 would not be worth it for the price of a new mobo and CPU would be needed and the performance of the 8370 is about the same as an i5. This is more of a money question that I'm going to throw back at you.

Also note to be sure that your motherboard will need to be able to run an 8300 series FX CPU.
 
Stream is done. A friend shared a Temperature monitoring software with me and I'm running between 29'~30' C Which he thinks is a normal temp. Here's the Log.

https://gist.github.com/e7822fdc8011dc526121

I'll be talking to my builder for the computer to see what exactly I am running. But I think it's just a matter of tweaking these settings to calm the duplicated frames.
 

dping

Active Member
Stream is done. A friend shared a Temperature monitoring software with me and I'm running between 29'~30' C Which he thinks is a normal temp. Here's the Log.

https://gist.github.com/e7822fdc8011dc526121

I'll be talking to my builder for the computer to see what exactly I am running. But I think it's just a matter of tweaking these settings to calm the duplicated frames.
Enable aero asap

If temps are 29-30 while encoding and gaming, you are looking at the wrong temps.

I use HWinfo64 stream and play your game under load for 10 minutes then take a screenshot of the results.
 
Last edited:
Log from tonights Stream. Aero re-enabled edition

https://gist.github.com/612786430be0b81c87ff

Unable to grab Temp. But answer me this... I've given you various Logs from various streams with different settings adjusted everytime. Are the changes I'm performing in settings, windows, hard, software, etc making any impact? We've been at this for days/weeks. Is the issue my Computer is telling OBS to make too many frames? Is it Lost frames? Help me better understand this because plenty of people have had this same issue on youtube and they seem to remedy this easier than I have.
 

dping

Active Member
Log from tonights Stream. Aero re-enabled edition

https://gist.github.com/612786430be0b81c87ff

Unable to grab Temp. But answer me this... I've given you various Logs from various streams with different settings adjusted everytime. Are the changes I'm performing in settings, windows, hard, software, etc making any impact? We've been at this for days/weeks. Is the issue my Computer is telling OBS to make too many frames? Is it Lost frames? Help me better understand this because plenty of people have had this same issue on youtube and they seem to remedy this easier than I have.
We are tweaking your OBS. and if you would have left aero enabled, we could be done by now :P but yes, some of it is "change this" see how it reacts" then "change that to see if it fixes this".

In the end, all I've basically said is

optimize your elgato settings - Done
set audio offsets - Done
enable aero - Done
use global sources for elgato and webcam - I believe you did this?
monitor your temps and post resulte - not done


the remainder of advise I have is:

Don't watch your stream from your streaming PC - this will create extra load. sorry I forgot to mention this but it will help a lot. Instead, use a popout chat (not the twitch dashboard since it has a preview). even paused it will still create issues.

before you start your stream hit preview and go through all of your scenes then start the stream. This will activate all global sources you have.

If you are still having +6% duplicate frames after this, you might need to drop your downscale to 616p or 540p. our target is now less than 1% duplicate frames.
 
Don't watch your stream from your streaming PC - this will create extra load. sorry I forgot to mention this but it will help a lot. Instead, use a popout chat (not the twitch dashboard since it has a preview). even paused it will still create issues.

Would having the Dashboard up and "Hide" preview help? That's what I been doing the past three nights. Tonight I will just try utilizing a 3rd party based chat called hex chat. Seems to work more efficiantly than Twitch at times.
 

dping

Active Member
Would having the Dashboard up and "Hide" preview help? That's what I been doing the past three nights. Tonight I will just try utilizing a 3rd party based chat called hex chat. Seems to work more efficiantly than Twitch at times.
hide works but then there is no difference between that and a popout chat. also if you refresh the page, it will unhide the preview window.
 
Posting another Log File from a +6 hour Stream.

https://gist.github.com/0ee25d552c450d58197b

Temp ran at about 35~37 celcius. Processors were peaked at about 65% ~ 70% at given moments. (Didn't have a screen shot at the time. But I am noticing with Processor overload things got out of Sync rather quickly. I'll let you guys go through the data.
 
Top