NDI Audio cutting in and out

Tpallot

Member
I am running 3 30x NDI PTZOptics cameras. I have audio going to cam 1 and cam 2 from Behringer XR32 via a line in port on the camera. (I typically only use audio from one camera throughout the broadcast.) I have the cameras set up as NDI sources in OBS. For some reason, today the audio was cutting in and out on both cameras. I tested it in NDI Studio Monitor and it does not happen, so it has to be an issue with OBS. Any suggestions as to how to fix this? Our church service was unwatchable today because of it and I am a little freaked out. Thanks for your help.

Here is a video showing what happens in OBS: https://youtu.be/4i8El0IzflQ
This is a video showing the same thing in NDI Monitor: https://youtu.be/y_tPkURSwWA
 

Tpallot

Member
Here are two logs, but the videos I posted were not even during streaming. If it were a bandwidth issue, it should be happening in the NDI Studio Monitor, right?

Thanks for your help!
 

Attachments

  • 2022-02-20 09-23-03.txt
    229.2 KB · Views: 29
  • 2022-02-20 10-29-33.txt
    67.1 KB · Views: 7

cyclemat

Active Member
yes but did you try use 3 sources at the monitors at the same time ?
OBS Opens all 3 cams at the same time

9:23:13.305: [obs-ndi] started A/V threads for source 'PTZOPTICSCAMERA (Chan1, 192.168.1.23)'
09:23:13.306: [obs-ndi] A/V thread for 'Cam 1 keep muted' started
09:23:13.384: [obs-ndi] started A/V threads for source 'PTZOPTICSCAMERA (Chan1, 192.168.1.24)'
09:23:13.384: [obs-ndi] A/V thread for 'PTZ Cam 2' started
09:23:13.721: [Media Source 'Music for Pictures']: settings:
09:23:14.161: [obs-ndi] started A/V threads for source 'PTZOPTICSCAMERA (Chan1, 192.168.1.23)'
09:23:14.162: [obs-ndi] A/V thread for 'PTZ CAM 1' started
09:23:14.209: [obs-ndi] started A/V threads for source 'PTZOPTICSCAMERA (Chan1, 192.168.1.25)'
09:23:14.209: [obs-ndi] A/V thread for 'PTZ Cam 3' started
09:23:14.450: adding 21 milliseconds of audio buffering, total audio buffering is now 21 milliseconds (source: PTZ CAM 1)

take an look in your Taskmanager how what says the ethernet device ?

when its a bandwitch problem an idea is to use a USB 3.0 network interface NDI can use more than one network interface a same time but didnt test it with the OBS plugin
 

cyclemat

Active Member
open obs an look how high the network usage goes

and little tip screenshots Press Shift + Win + S ;)

ah okay you did running this setup for months and it had worked what did you change ?

did you try update the network drivers ? from the manufacturer homepage ?


but it must an bandwitch problem
10:43:28.513: Source PTZ Cam 3 audio is lagging (over by 1033.78 ms) at max audio buffering. Restarting source audio.
10:43:28.580: Source PTZ Cam 3 audio is lagging (over by 988.63 ms) at max audio buffering. Restarting source audio.
10:43:28.638: Source PTZ Cam 3 audio is lagging (over by 1004.47 ms) at max audio buffering. Restarting source audio.
and this 1000 times have you restart the router have you change the cat cables ? anything goes wrong is a new device in the network ?
 

Tpallot

Member
The picture at the link was taken earlier today while everything was running. I have not KNOWINGLY changed anything. We have two computers that can run obs and it was happening on both of them.

I have not tried to update the network drivers recently.

I restarted the entire network today, one piece at a time (switches, cameras, etc.)
 

cyclemat

Active Member
but what i see its an USB GBit the question is its an external USb to ehernet or is it an onboard device ?
 

Tpallot

Member
It is an external device. Do you think that could be the problem? Both computers were using the same external USB 3 ethernet adapter.
 

Tpallot

Member
Here's my argument AGAINST it being the network adapter...I do not have the issue in NDI Studio Monitor. That brings me back to it is an issue with OBS.
 

cyclemat

Active Member
have you open the NDI studio monitor 3 times ? and open all 3 cams at same time ?

please send a picture of one settings of the cams in obs !
 

Tpallot

Member
I will try that tomorrow. (I'm not in the building today.) But, I did open NDI Studio Monitor while obs was running. I would call a preset in obs and nothing would happen for 4 or 5 seconds, but it was happening instantly (and the video was much smoother) on NDI Studio Monitor (while OBS was running all of the cameras).
 

Tpallot

Member
I have 3 instances of NDI Studio Monitor running, one for each camera. All cameras respond instantly and with no audio issues.
 

rockbottom

Active Member
Look at where it goes sideways. Looks like a Browser source is taking a long time to load.

10:29:45.017: adding 106 milliseconds of audio buffering, total audio buffering is now 128 milliseconds (source: Cam 1 keep muted)
10:29:45.017:
10:30:33.027: User switched to scene 'Prelude-SB - 2'
10:30:33.573: [Lua: refresh-browser-specific.lua] Source Found
10:30:40.297: [Lua: refresh-browser-specific.lua] Source Found
10:30:54.466: adding 320 milliseconds of audio buffering, total audio buffering is now 448 milliseconds (source: PTZ Cam 3)
10:30:54.466:
10:30:56.558: adding 85 milliseconds of audio buffering, total audio buffering is now 533 milliseconds (source: Cam 1 keep muted)
10:30:56.558:
10:30:57.527:
adding 320 milliseconds of audio buffering, total audio buffering is now 853 milliseconds (source: PTZ Cam 3)
10:30:57.527:
10:30:59.383: User switched to scene 'Welcome and Announcements - SB - 1'
10:31:00.460: Max audio buffering reached!
10:31:00.460: adding 106 milliseconds of audio buffering, total audio buffering is now 960 milliseconds (source: PTZ Cam 3)
10:31:00.460:
10:31:53.196: Source PTZ Cam 2 audio is lagging (over by 45.99 ms) at max audio buffering. Restarting source audio.
10:31:56.727: Source PTZ Cam 2 audio is lagging (over by 69.78 ms) at max audio buffering. Restarting source audio.
10:35:33.955: User switched to scene 'Prelude-SB - 2'
10:35:34.805: [Lua: refresh-browser-specific.lua] Source Found
10:35:51.105: User switched to scene 'Welcome and Announcements - SB - 1'
10:35:56.798: User switched to scene 'The Peace of the Lord - SB - 2'
10:36:36.513: User switched to scene 'Welcome and Announcements - SB - 1'
10:36:54.066: [obs-color-monitor] save_load_scope_docks saving=1
10:37:00.782: [obs-color-monitor] save_load_scope_docks saving=1
10:37:16.521: [obs-color-monitor] save_load_scope_docks saving=1
10:38:08.404: [obs-color-monitor] save_load_scope_docks saving=1
10:38:18.573: [obs-color-monitor] save_load_scope_docks saving=1
10:38:53.577: [obs-color-monitor] save_load_scope_docks saving=1
10:38:58.022: User switched to scene 'E Hymn When Ben Gets To Center Altar - SB - 3 2'
10:38:58.044: A sprite cannot be drawn without a width/height
10:38:58.077: A sprite cannot be drawn without a width/height
10:38:58.109: A sprite cannot be drawn without a width/height
10:38:58.144: A sprite cannot be drawn without a width/height
10:38:59.235: [Lua: refresh-browser-specific.lua] Source Found
10:39:05.357: [Lua: refresh-browser-specific.lua] Source Found
10:39:08.673: [Lua: refresh-browser-specific.lua] Source Found
10:39:18.467: User switched to scene 'Before Worship Congregation and Music - 1'
10:39:18.482: A sprite cannot be drawn without a width/height
10:39:18.508: A sprite cannot be drawn without a width/height
10:39:18.543: A sprite cannot be drawn without a width/height
10:39:18.574: A sprite cannot be drawn without a width/height
10:39:19.466: [Lua: refresh-browser-specific.lua] Source Found
10:39:25.786: [Lua: refresh-browser-specific.lua] Source Found
10:39:49.569: User switched to scene 'Prelude-SB - 2'
10:39:50.191: [Lua: refresh-browser-specific.lua] Source Found
10:39:54.484: [Lua: refresh-browser-specific.lua] Source Found
10:40:11.677: Source PTZ CAM 1 audio is lagging (over by 37.28 ms) at max audio buffering. Restarting source audio.
10:40:11.700: Source PTZ CAM 1 audio is lagging (over by 27.97 ms) at max audio buffering. Restarting source audio.
10:40:11.724: Source PTZ CAM 1 audio is lagging (over by 4.58 ms) at max audio buffering. Restarting source audio.
10:40:11.810: Source PTZ CAM 1 audio is lagging (over by 6.69 ms) at max audio buffering. Restarting source audio.
10:40:26.129: User switched to scene 'Entrance Hymn Procession Looking Back - SB -3 2'
10:40:32.162: [Lua: refresh-browser-specific.lua] Source Found
10:43:28.513: Source PTZ Cam 3 audio is lagging (over by 1033.78 ms) at max audio buffering. Restarting source audio.
10:43:28.580: Source PTZ Cam 3 audio is lagging (over by 988.63 ms) at max audio buffering. Restarting source audio.
10:43:28.638: Source PTZ Cam 3 audio is lagging (over by 1004.47 ms) at max audio buffering. Restarting source audio.
10:43:28.708: Source PTZ Cam 3 audio is lagging (over by 955.75 ms) at max audio buffering. Restarting source audio.
10:43:28.813: Source PTZ Cam 3 audio is lagging (over by 937.15 ms) at max audio buffering. Restarting source audio.
10:43:28.876: Source PTZ Cam 3 audio is lagging (over by 922.32 ms) at max audio buffering. Restarting source audio.
10:43:28.943: Source PTZ Cam 3 audio is lagging (over by 903.35 ms) at max audio buffering. Restarting source audio.
10:43:28.985: Source PTZ Cam 3 audio is lagging (over by 939.73 ms) at max audio buffering. Restarting source audio.
10:43:29.049: Source PTZ Cam 3 audio is lagging (over by 901.89 ms) at max audio buffering. Restarting source audio.
10:43:29.095: Source PTZ Cam 3 audio is lagging (over by 884.15 ms) at max audio buffering. Restarting source audio.
10:43:29.180: Source PTZ Cam 3 audio is lagging (over by 866.51 ms) at max audio buffering. Restarting source audio.
10:43:29.201: Source PTZ Cam 3 audio is lagging (over by 866.09 ms) at max audio buffering. Restarting source audio.
10:43:29.223: Source PTZ Cam 3 audio is lagging (over by 870.95 ms) at max audio buffering. Restarting source audio.
10:43:29.266: Source PTZ Cam 3 audio is lagging (over by 849.02 ms) at max audio buffering. Restarting source audio.
10:43:29.334: Source PTZ Cam 3 audio is lagging (over by 850.87 ms) at max audio buffering. Restarting source audio.
10:43:29.358: Source PTZ Cam 3 audio is lagging (over by 850.40 ms) at max audio buffering. Restarting source audio.
10:43:29.401: Source PTZ Cam 3 audio is lagging (over by 853.02 ms) at max audio buffering. Restarting source audio.
10:43:29.422: Source PTZ Cam 3 audio is lagging (over by 848.22 ms) at max audio buffering. Restarting source audio.
10:43:29.465: Source PTZ Cam 3 audio is lagging (over by 842.33 ms) at max audio buffering. Restarting source audio.
10:43:29.509: Source PTZ Cam 3 audio is lagging (over by 853.74 ms) at max audio buffering. Restarting source audio.
10:43:29.530: Source PTZ Cam 3 audio is lagging (over by 848.78 ms) at max audio buffering. Restarting source audio.
10:43:29.582: Source PTZ Cam 3 audio is lagging (over by 870.02 ms) at max audio buffering. Restarting source audio.
10:43:29.603: Source PTZ Cam 3 audio is lagging (over by 874.98 ms) at max audio buffering. Restarting source audio.
10:43:29.647: Source PTZ Cam 3 audio is lagging (over by 840.15 ms) at max audio buffering. Restarting source audio.
10:43:29.712: Source PTZ Cam 3 audio is lagging (over by 876.70 ms) at max audio buffering. Restarting source audio.
10:43:29.754: Source PTZ Cam 3 audio is lagging (over by 868.66 ms) at max audio buffering. Restarting source audio.
10:43:29.822: Source PTZ Cam 3 audio is lagging (over by 826.51 ms) at max audio buffering. Restarting source audio.
10:43:29.879: Source PTZ Cam 3 audio is lagging (over by 814.62 ms) at max audio buffering. Restarting source audio.
10:43:29.900: Source PTZ Cam 3 audio is lagging (over by 835.02 ms) at max audio buffering. Restarting source audio.
10:43:29.943: Source PTZ Cam 3 audio is lagging (over by 831.43 ms) at max audio buffering. Restarting source audio.
10:43:30.052: Source PTZ Cam 3 audio is lagging (over by 843.26 ms) at max audio buffering. Restarting source audio.
10:43:33.721: Last log entry repeated for 10 more lines
10:43:33.721: ---------------------------------
10:43:33.721: [x264 encoder: 'simple_h264_stream'] preset: veryfast
10:43:33.721: [x264 encoder: 'simple_h264_stream'] settings:
10:43:33.721: rate_control: CBR
10:43:33.721: bitrate: 4000
10:43:33.721: buffer size: 4000
10:43:33.721: crf: 23
10:43:33.721: fps_num: 30
10:43:33.721: fps_den: 1
10:43:33.721: width: 1280
10:43:33.721: height: 720
10:43:33.721: keyint: 60
10:43:33.721:
10:43:33.743: [CoreAudio AAC: 'simple_aac']: settings:
10:43:33.743: mode: AAC
10:43:33.743: bitrate: 128
10:43:33.743: sample rate: 48000
10:43:33.743: cbr: on
10:43:33.743: output buffer: 1536
10:43:33.744: [rtmp stream: 'simple_stream'] Connecting to RTMP URL rtmp://cg.castr.io/static...
10:43:33.754: [obs-color-monitor] save_load_scope_docks saving=1
10:43:33.830: [rtmp stream: 'simple_stream'] Interface: Realtek USB GbE Family Controller (ethernet, 1000 mbps)
10:43:34.521: [rtmp stream: 'simple_stream'] Connection to rtmp://cg.castr.io/static successful
10:43:34.547: ==== Streaming Start ===============================================
10:43:36.612: Source Cam 1 keep muted audio is lagging (over by 34.35 ms) at max audio buffering. Restarting source audio.
10:43:37.606: User switched to scene 'Before Worship Congregation and Music - 1'
10:43:39.220: User switched to scene 'Prelude-SB - 2'
10:43:41.929: User switched to scene 'Before Worship Congregation and Music - 1'
10:47:23.517: User switched to scene 'Before Stream'
10:47:27.430: User switched to scene 'The Peace of the Lord - SB - 2'
10:47:30.486: User switched to scene 'Before Worship Congregation and Music - 1'
10:50:22.490: User switched to scene 'Before Stream'
10:50:55.260: Source PTZ Cam 3 audio is lagging (over by 14.06 ms) at max audio buffering. Restarting source audio.
10:50:56.297: Source PTZ Cam 3 audio is lagging (over by 46.80 ms) at max audio buffering. Restarting source audio.
10:50:57.337: Source PTZ Cam 3 audio is lagging (over by 14.53 ms) at max audio buffering. Restarting source audio.
10:50:59.603: Source PTZ Cam 3 audio is lagging (over by 3.36 ms) at max audio buffering. Restarting source audio.
10:51:00.609: Source PTZ Cam 3 audio is lagging (over by 5.08 ms) at max audio buffering. Restarting source audio.
10:51:01.613: Source PTZ Cam 3 audio is lagging (over by 1.74 ms) at max audio buffering. Restarting source audio.
10:51:02.647: Source PTZ Cam 3 audio is lagging (over by 31.05 ms) at max audio buffering. Restarting source audio.
10:51:03.700: Source PTZ Cam 3 audio is lagging (over by 46.60 ms) at max audio buffering. Restarting source audio.
10:52:06.480: Source PTZ Cam 3 audio is lagging (over by 73.22 ms) at max audio buffering. Restarting source audio.
10:52:07.531: Source PTZ Cam 3 audio is lagging (over by 46.39 ms) at max audio buffering. Restarting source audio.
10:52:08.581: Source PTZ Cam 3 audio is lagging (over by 51.12 ms) at max audio buffering. Restarting source audio.
10:52:09.613: Source PTZ Cam 3 audio is lagging (over by 24.48 ms) at max audio buffering. Restarting source audio.
10:52:10.661: Source PTZ Cam 3 audio is lagging (over by 24.37 ms) at max audio buffering. Restarting source audio.
10:52:12.642: Source PTZ Cam 3 audio is lagging (over by 125.34 ms) at max audio buffering. Restarting source audio.
10:52:13.680: Source PTZ Cam 3 audio is lagging (over by 42.87 ms) at max audio buffering. Restarting source audio.
10:52:14.723: Source PTZ Cam 3 audio is lagging (over by 46.16 ms) at max audio buffering. Restarting source audio.
10:52:15.764: Source PTZ Cam 3 audio is lagging (over by 22.97 ms) at max audio buffering. Restarting source audio.
10:52:16.799: Source PTZ Cam 3 audio is lagging (over by 29.71 ms) at max audio buffering. Restarting source audio.
10:52:37.740: User switched to scene 'Prelude-SB - 2'
10:54:41.152: User switched to scene 'Welcome and Announcements - SB - 1'
10:54:58.697: User switched to scene 'Prelude-SB - 2'
10:56:29.413: User switched to scene 'Before Worship Congregation and Music - 1'
10:57:24.636: User switched to scene 'Welcome and Announcements - SB - 1'
10:57:25.391: [Lua: refresh-browser-specific.lua] Source Found
10:57:29.657: [Lua: refresh-browser-specific.lua] Source Found
10:58:35.506: Source PTZ Cam 3 audio is lagging (over by 20.78 ms) at max audio buffering. Restarting source audio.
10:58:36.606: Source PTZ Cam 3 audio is lagging (over by 80.18 ms) at max audio buffering. Restarting source audio.
10:58:37.668: Source PTZ Cam 3 audio is lagging (over by 48.36 ms) at max audio buffering. Restarting source audio.
10:58:38.701: Source PTZ Cam 3 audio is lagging (over by 43.21 ms) at max audio buffering. Restarting source audio.
10:58:41.233: Source PTZ Cam 3 audio is lagging (over by 1.06 ms) at max audio buffering. Restarting source audio.
10:58:42.289: Source PTZ Cam 3 audio is lagging (over by 46.69 ms) at max audio buffering. Restarting source audio.
10:58:43.338: Source PTZ Cam 3 audio is lagging (over by 43.82 ms) at max audio buffering. Restarting source audio.
10:58:44.377: Source PTZ Cam 3 audio is lagging (over by 43.50 ms) at max audio buffering. Restarting source audio.
10:58:45.427: Source PTZ Cam 3 audio is lagging (over by 47.37 ms) at max audio buffering. Restarting source audio.
10:59:33.152: User switched to scene 'E Hymn Looking Forward - SB - 1 2'
10:59:36.231: User switched to scene 'Welcome and Announcements - SB - 1'
10:59:38.223: [Lua: refresh-browser-specific.lua] Source Found
11:00:16.393: User switched to scene 'Prelude-SB - 2'
11:00:29.839: User switched to scene 'Entrance Hymn Procession Looking Back - SB -3 2'
11:00:45.060: Source Cam 1 keep muted audio is lagging (over by 5.90 ms) at max audio buffering. Restarting source audio.
11:00:46.104: Source Cam 1 keep muted audio is lagging (over by 52.95 ms) at max audio buffering. Restarting source audio.
11:00:47.134: Source Cam 1 keep muted audio is lagging (over by 29.48 ms) at max audio buffering. Restarting source audio.
11:00:48.195: Source Cam 1 keep muted audio is lagging (over by 46.06 ms) at max audio buffering. Restarting source audio.
11:00:49.233: Source Cam 1 keep muted audio is lagging (over by 26.57 ms) at max audio buffering. Restarting source audio.
11:00:51.182: Source Cam 1 keep muted audio is lagging (over by 6.16 ms) at max audio buffering. Restarting source audio.
11:00:51.690: Source PTZ CAM 1 audio is lagging (over by 26.74 ms) at max audio buffering. Restarting source audio.
11:00:52.221: Source Cam 1 keep muted audio is lagging (over by 46.62 ms) at max audio buffering. Restarting source audio.
11:00:53.268: Source Cam 1 keep muted audio is lagging (over by 52.37 ms) at max audio buffering. Restarting source audio.
11:00:54.301: Source Cam 1 keep muted audio is lagging (over by 25.44 ms) at max audio buffering. Restarting source audio.
11:00:55.368: Source Cam 1 keep muted audio is lagging (over by 26.10 ms) at max audio buffering. Restarting source audio.
 

Tpallot

Member
I deleted Source Cam 1 keep muted. I enabled variable bitrate. An upgrade of OBS was available today and I installed it. I just did a live broadcast that ran through all of the scenes with music and/or a podcast playing. My CPU usage stayed between 20% and 45%, it was super responsive (no lag), and it ran flawlessly. I don't know if it was deleting the source, upgrading, or enabling variable bitrate, but it seems to be working GREAT!

Here is a link to the test broadcast: https://www.facebook.com/stfrancisepiscopalchurchinmacon/videos/990073048304353

Thank you so much to everyone who helped with this problem!
 

Attachments

  • 2022-02-22 13-31-29.txt
    66.6 KB · Views: 19
Top