How to use OBS and NDI with ZOOM. Fix Audio Sync Issues!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
if you use obs studio virtual camera for online meetings and you have noticed a lag between your audio and your video then this video is for you obs studio is a great tool for creating engaging content for your online meetings you can create complex scenes that combine camera and other sources like this and project them in zoom or other platforms such as microsoft teams google mate etc this is achieved by using the virtual camera feature of obs studio however there can be a problem with this approach if you create a complex scene with many sources you may observe a lag between the audio and the video to demonstrate an example of lag here is a short clip of a recent training i conducted using obs and zoom tools and buffer has already done something similar right wafa has used a kind of a simulation of a flip chart as you may have noticed there was a significant lag between my lips moving and the actual audio to understand why this happens we need to look at how zoom and obs work together as you can see from this illustration we have a microphone that is connected directly to zoom the video on the other hand goes through a slightly converted process the image is first captured by obs which you can see here and we can add other elements such as video images to create a scene in obs this scene is then projected as virtual camera and zoom uses this virtual camera to project it to the audience all this processing takes time and the time taken will depend upon two factors first the complexity of the scene that means the more elements you put in your scene the longer it takes obs to assemble it and second the speed of your computer if you have a very fast computer then the delay may be insignificant at the end of the day there will be a delay this means your audio reaches the audience before the video and this is what we call the lag can we solve this problem let's find out what should ideally happen is both the microphone as well as the camera should go via obs this gives us the added advantage of applying audio filters such as compression noise gates equalizers to really enhance our audio similar to how we enhance the video with synths if there is any mismatch between these two signals the audio and the video obs allows us to correct it using what is called the audio sync offset this is accessible through the advanced audio properties once both the signals are synchronized then we can create a virtual camera and a virtual microphone and use that in zoom so that the audience gets to hear both the signals at the same time and everyone is happy unfortunately zoom currently doesn't support virtual microphones perhaps in a future release they will add the support and it will be amazing for now we have to look for other alternatives the alternative available as of now is to add another software layer called ndi short for network device interface ndi is a technology developed by new tech and it allows computers to exchange low latency video over high speed network connections in our case we are not going to use multiple computers but run it on the same computer and the way it works is as follows we capture both the microphone and camera in obs process both the video and the audio apply any sync offset and then send the signals to ndi the ndi software picks up both the signals from obs and creates a virtual camera and a virtual microphone that can be used by zoom or any other software you may have to fine tune the audio signal by adding a gain to the signal before sending it to zoom i will show you how and now everyone is happy before you jump and install ndi tools on your computer i want to highlight few important points number one choose this route only if you feel comfortable tinkering with software with so many layers of software involved there are multiple points of failure when something goes wrong you will struggle to pinpoint the source of the problem this is not for the weak of heart your computer should have decent processing power and i mean decent with so much processing happening you can imagine your computer stretching to its limits this can result in crashes and you don't want a crash in the middle of an important presentation now that we have the theory out of the way let's see how we can add ndi to our obs studio step number one download and install the ndi plugins which is available for free to install the ndi add-on for obs search for obs ndi and it should take you to this page i have added the link in the video description go to download depending on whether you have windows or mac or linux click on the appropriate link download the program and install it on your pc once you have installed the ndi add-on for obs you can open obs and go to tools you will find a new setting called ndi output settings click on it make sure the main output is enabled and give a name to your output in my case i have simply called it obs ndi and click ok and that's all there is to it obs is now broadcasting both the audio as well as the video over ndi and when we are using ndi we don't have to worry about starting the virtual camera because the output is automatically getting transmitted over ndi but we are not done yet because zoom doesn't understand ndi we need another layer of software between obs and zoom that can convert the signals into virtual camera and virtual microphone to install the next bit of software we head over to the new tech website i did tell you this is not for the week of heart didn't i on the website you will find the option ndi and ndi tools click on this and this will take you to a separate page called ndi tools to download the tools you will have to scroll all the way down till you find the option called ndi tools for windows or for mac and depending upon your system you can download the appropriate package the download process is not very straightforward when you click on the download button you will be asked to give your details your name your country and more importantly your email and when you click on the submit button an email will be sent to you with the link to download so make sure you go to your email inbox and check the email from new tech and click on the link and download the software and install it on your laptop or pc once you have downloaded the ndi tools you will find them in your download folder double click on it click on i accept the agreement and choose a folder the ndi tools has many features but the one that we are interested in is the webcam input that's the one that will grab the ndi output created by obs click next and install the program that's all there is to it once you complete the installation you can go to programs and scroll down till you find ndi click on webcam input at this point it looks like nothing is happening but if you go to the system tree you will find that it has installed the ndi virtual input right click on it and you will notice that ndi tools is now detecting that there is an output coming over ndi this is the name of my computer and it has detected the name obs ndi that i gave in obs click on it and the ndi tools is now capturing both the audio and video and creating virtual camera and virtual microphone now let's see how we can use that in zoom this is my zoom window if i click on settings let's first go to audio and in the microphone let me choose new tech ndi audio testing testing one two three test test as you can see the audio levels are moving which means the audio coming from the microphone to obs through ndi into zoom is working isn't that amazing if i go to video also i will find a virtual camera called new tech ndi video let's click on it and see what happens and it works the scene that is there in obs is now being captured as a camera in zoom and now we have the ideal scenario of the microphone and the camera coming through obs all the way through ndi into zoom there are two points i would like you to consider the first is related to the audio if you click on the system tray and select ndi and right click on it and click audio for some reason the audio when it goes through ndi seems to be lower in volume compared to obs and you can correct it by adding either 6 db 10 db or 20 db db means decibels of volume to the audio levels and you can experiment and test and see what works well for you but do check it and ensure that your audio levels are correct the final and the most important part and the reason why we made this entire video is the lag or the sync between the audio and video even with the new process that we have implemented of taking both the camera and the microphone into obs and then into ndi into zoom there is still a possibility of a sync offset or a lag between the audio and video and the way we fix that is very simple we do it in obs if you look at the microphone right click on the settings and select advanced audio properties i can see three active audio inputs but the one i'm interested in is the microphone and if you look here we have something called a sync offset and a sync offset is a way of telling obs that you want the audio to be ahead or behind by set number of milliseconds so in my case i have set it to 100 milliseconds it can be a positive or negative value depending on whether the audio is going ahead or behind the video you need to experiment with this and a simple experiment that we can do is once everything is set up use the clapping method and if you can see the clap and hear the clap at the same time that means they are in sync you can always connect to a friend over zoom and ask them to check the sink and once you have dialed in the right sync offset you are good to go so there we have it the microphone and the camera going into obs apply the sync offset in case there is any delay between the audio and video output it to ndi using the ndi plugin capture the ndi output using the ndi tools and create a virtual camera and virtual microphone using ndi and use both in zoom i hope you found this video useful and i wish you all the best
Info
Channel: Tech for Toastmasters
Views: 8,292
Rating: undefined out of 5
Keywords: How-To, Toastmasters, Online, Meetings, Club, Leadership, Communication, Skill, Develop, Development, Public, Speaking, ZOOM, CANVA, PowerPoint, OBS, NDI, Audio, Sync, Offset, Virtual, Camera, Virtual Camera, Virtual Microphone
Id: Spqh9tz86ME
Channel Id: undefined
Length: 13min 18sec (798 seconds)
Published: Tue Jan 05 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.