Question / Help Audio sync

pastorshawn

New Member
I'm just trying to figure out what variables are at play with the audio. The lips are off on our live stream. I have worked tirelessly to adjust the offset. I get it set perfectly and the next time we go live, it is off again. In other words, it's variable. Would our internet connect affect this? What other variables are at play here that would cause it to be inconsistent? Is there a setting that we have off? This is all new to me, so please bear with my ignorance.

Thank you

Shawn

https://hastebin.com/wocutuzejo
 

Narcogen

Active Member
Hard to tell what you're capturing here:

07:58:23.814: Loaded scenes:
07:58:23.814: - scene 'Scene':
07:58:23.814: - source: 'Window Capture 2' (window_capture)
07:58:23.814: - source: 'Audio Input Capture 2' (wasapi_input_capture)
07:58:23.814: - monitoring: monitor and output
07:58:23.814: - scene 'Scene 2':
07:58:23.814: - source: 'Audio Input Capture' (wasapi_input_capture)
07:58:23.814: - source: 'Window Capture' (window_capture)


You've got two scenes, each of which has one audio input and one window capture.

What is the content, and what method are you using for keeping audio and video in sync?

For instance, when capturing from a webcam, it sends both audio and video at the same time-- it should be in sync unless something breaks it.
 

pastorshawn

New Member
Hard to tell what you're capturing here:

07:58:23.814: Loaded scenes:
07:58:23.814: - scene 'Scene':
07:58:23.814: - source: 'Window Capture 2' (window_capture)
07:58:23.814: - source: 'Audio Input Capture 2' (wasapi_input_capture)
07:58:23.814: - monitoring: monitor and output
07:58:23.814: - scene 'Scene 2':
07:58:23.814: - source: 'Audio Input Capture' (wasapi_input_capture)
07:58:23.814: - source: 'Window Capture' (window_capture)


You've got two scenes, each of which has one audio input and one window capture.

What is the content, and what method are you using for keeping audio and video in sync?

For instance, when capturing from a webcam, it sends both audio and video at the same time-- it should be in sync unless something breaks it.

Are the scenes competing some how? They are both basically the exact same thing. One could easily be deleted, if so. We have Computer controlled HD cameras with the switcher and all of that jazz with audio running from our sound board through independent mics, all recording live sermons. Our recordings are perfectly synced, just not our live stuff. I couldn't figure out how to get OBS to receive a signal direct from the camera software, but I could get it to detect "windows", of which one was our recording window. So, OBS is actually showing the image from my recording software as opposed to receiving it direct. I hope that's not too confusing. Perhaps getting the camera feed to go directly into obs would solve the variable sync issue? If so, no idea how to do that, as I already spend tons of time trying to figure it out to no avail.
 

Narcogen

Active Member
No, I'm just saying I can't figure out your use case just from the scene construction because it's just a window and audio.

When you say it's out of sync-- what is out of sync with what? You say that lip sync is off, but I don't see any cameras in your setup, so I'm wondering what the content is and where it's coming from.
 

pastorshawn

New Member
Yes, the audio and video are out of sync. When someone is speaking, the lips are moving, but the audio is massively delayed. I attempted to explain our set up in the previous reply. I don't know how else to say it, so if you are asking something other than what I have just explained, please elaborate. But just to be as clear as possible, this is basically the set up we have. https://www.kingdom.com/complete-hd-computer-controlled-video-camera-system.html This sends a feed to the recording window of our media computer, which is where the OBS software is loaded, and from there it's live streamed to facebook. The OBS software is loading our recording window, as opposed to receiving a direct feed. I couldn't figure out how to get it to operate any other way. So, if there is a way to get obs to recognize a direct feed from out cameras, perhaps that's the place to start in figuring out why the audio and video aren't synced.
 

Narcogen

Active Member
I'm assuming the cameras are connected to the switcher via HDMI, from the product description. Capturing that directly would require multiple HDMI capture cards.

I presume that you're getting video out of the switcher and into your computer through its USB port, or the USB port of an included capture device?

But if OBS doesn't see that as a video device it may be that this is being done in a nonstandard way, or that Roland does not provide a standard USB class video driver for it.

Unfortunately given what you're trying to do, if there is a delay and it is variable, there is no way to correct it in OBS. The system you've purchased just isn't designed to be used in this way at all.

I think the best way to try and achieve what you want is to buy an HDMI capture device different from the one included in your bundle, connect it to the Roland's HDMI out, and see if OBS can add that directly as a video device instead of capturing separate audio and a window capture-- there is no way of maintaining sync in this case. Any synchronization you see in that scenario is purely coincidental.

UPDATE: The capture device in the bundle you describe is a Magewell... that should absolutely work with OBS. Not sure why it doesn't.
 

pastorshawn

New Member
I'm assuming the cameras are connected to the switcher via HDMI, from the product description. Capturing that directly would require multiple HDMI capture cards.

I presume that you're getting video out of the switcher and into your computer through its USB port, or the USB port of an included capture device?

But if OBS doesn't see that as a video device it may be that this is being done in a nonstandard way, or that Roland does not provide a standard USB class video driver for it.

Unfortunately given what you're trying to do, if there is a delay and it is variable, there is no way to correct it in OBS. The system you've purchased just isn't designed to be used in this way at all.

I think the best way to try and achieve what you want is to buy an HDMI capture device different from the one included in your bundle, connect it to the Roland's HDMI out, and see if OBS can add that directly as a video device instead of capturing separate audio and a window capture-- there is no way of maintaining sync in this case. Any synchronization you see in that scenario is purely coincidental.

UPDATE: The capture device in the bundle you describe is a Magewell... that should absolutely work with OBS. Not sure why it doesn't.

Yes, a magewell USB capture device as pictured. I took a bunch of photos of it on screen so you can see better what I'm talking about. Thank you for your investment and assistance.
 

pastorshawn

New Member
So when I select "video capture device" it gives me the option to "create new" or "add existing". It doesn't list any options in that dialog box. If I create new, it sends me to "xi100dusb-sdivideo". I'm assuming that's my usb capture card, but when selected, it doesn't bring up an image.
 

Narcogen

Active Member
"Create new" means add a device that you have not yet added to any scene in the current scene collection. This is what you want to do.

"Add existing" means to add to the current scene a device you've already added to another scene.

"xi100dusb-sdivideo" is your magewell. You should select that as your device, and then there should be options to configure the frame size and frame rate. If you choose options that your capture device does not support, you may not see a picture.

If you are currently running other software that accesses the device (like the Roland software, I expect) you may not see a picture.
 

pastorshawn

New Member
I thought that was the device, but when a picture wouldn't come up, I assumed it wasn't connecting properly. As it turns out, it simply wanted me to input the resolution. When I did this, the image came up. This is exciting! I ran some tests today and it looks like this may have also fixed the sync issue, but time will tell. Thank you so much for your help. What looked like a big thing ended up being something super simple. One last quick question. My magewell goes from usb to coax to the switcher. Would my image ultimately be better if I upgraded to the hdmi to usb magewell capture device? It seems to be that this would result in a sharper image, but I thought that I would ask. Blessings!
 

Narcogen

Active Member
LOL.. that's the swicher I use at work.

Okay, in that case you're capturing SDI over BNC connectors. I don't necessarily think you'd get better quality by switching to HDMI-- there's no difference in quality just based on the actual physical connectors, and changing to HDMI isn't going to change the nature or quality of the signal you're getting from the switcher.

If you were buying new, you'd probably be looking either at HDMI or NDI over ethernet for cameras and switchers and you might not need SDI, but since you have everything already, there's no particular reason to change.
 

pastorshawn

New Member
Thanks again for your help and time. I appreciate the knowledge and feedback. Our next live opportunity will be Sunday, so I'll report back how things go. Now I just have to get a dedicated Ethernet line for this set up and we will be set. Wifi is miserable!
 

pastorshawn

New Member
Ok, so here's the latest. At last we talked, I had updated the resolution (instead of just selecting device default) and the video came on. I did some test recordings and all looked good. Then on Sunday when we pulled up the program I had no video again. I did't change anything....simply shut down the terminal...and when we restarted...nothing. So frustrating! Interestingly, I have SDI audio when I select the scene that shows my desktop, and that scene seems to be working great. When I switch to my video scene, I don't have audio or video at all. It's just dead. I deleted the SDI video and re-enabled it to no avail. I even created an entirely new scene. Nothing. Just dead. Any advice appreciated!
 

Narcogen

Active Member
12:13:23.755: [DShow Device: 'Video Capture Device'] settings updated:
12:13:23.755: video device: XI100DUSB-SDI Video
12:13:23.755: video path: \\?\usb#vid_2935&pid_0002&mi_00#6&c98f3a3&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global
12:13:23.755: resolution: 1920x1080
12:13:23.755: fps: 48.00 (interval: 208333)
12:13:23.755: format: YUY2
12:13:23.764: adding 42 milliseconds of audio buffering, total audio buffering is now 42 milliseconds
12:13:23.780: using video device audio: no
12:13:23.780: audio device: Digital Audio Interface (XI100DUSB-SDI Audio)
12:13:23.780: sample rate: 44100
12:13:23.780: channels: 2
12:13:23.780: audio type: Capture
12:13:23.792: DShow: Run failed (0x800705AA): Insufficient system resources exist to complete the requested service.

Are you choosing 48 fps for this device when adding it as a source?
 

pastorshawn

New Member
It's set to "Match output FPS" Here's the weird thing. I had it all up this morning and it was blank as before. I had a lot of other stuff I was working on, so I just left it and went to other stuff. When I came back (after a good bit of time) it was up and running with audio and video perfectly. Interestingly though, my magewell capture device has a windows background lock image on it now instead of the video recording. This makes me think that they are somehow fighting in the chain of command/communication, but I wouldn't have the first clue how to get it to work better.
 

pastorshawn

New Member
yes, it definitely looks like it's competing. So I guess we should not pull up the magewell recorder at the same time that we run obs. I kind of liked having the backup recording, but I suppose that's not the end of the world.

Edit: What I liked about recording separately is that I always knew that I had a perfect recording. As it is now, if the sync is off at all, that will be the recording and these videos get captures and youtubed, etc. So, we want them to be as sharp and accurate as possible. Im not sure what the solution is there. The sync that we currently have on lips vs. audio is pretty decent, but not perfect, which again concerns me for our actual hard recording.

https://hastebin.com/ezukexeruj
 
Last edited:
Top