Solution:
Root Cause: RTP/RTSP Network Jitter Buffer Compensation
Network streaming protocols (RTSP, RTMP, SRT, IP Cameras) utilize adaptive jitter buffers to prevent packet loss drops over unstable network connections. If network latency fluctuates, the OBS Media Source or VLC Source dynamically increases the video jitter buffer to preserve frame continuity, while the audio stream continues real-time playback, resulting in severe desync.
Diagnostic Verification:
Inspect the OBS Log File during an active network stream intake.Search for entries containing VLC: Network buffer expanded or ffmpeg: RTSP timestamp discontinuity.If timestamp discontinuities occur, network packet jitter is forcing buffer expansion.Step-by-Step Fix:
1Enforce SRT Protocol with Latency Locking:
Switch from RTSP/RTMP to SRT (Secure Reliable Transport) protocol for network feeds.Configure explicit latency parameters in the OBS Media Source URL: text
srt://192.168.1.100:9000?mode=caller&latency=120000
Setting an explicit latency=120000 ($120\text{ ms}$) prevents dynamic buffer expansion.2Configure Media Source Hardware Decoding:
Right-click Media Source -> Properties.Check Use hardware decoding when available.Increase Network Buffering to a fixed value (e.g., 2 MB) to smooth out packet arrival times.3Network Quality Optimization:
Connect streaming IP sources exclusively over wired Gigabit Ethernet connections, avoiding Wi-Fi bridges or powerline adapters.Prevention & Long-Term Monitoring:
Ensure network switches handling NDI/RTSP streams support Quality of Service (QoS) and keep network utilization below 80% capacity.