rtsp keeps disconnecting

RemusK

New Member
I have two rtsp streams and one of them keeps disconnecting and cannot reconnect.
After I click on the stream and the window is poping up, the rtsp is connecting again successfully. But after 4-5 minutes it disappear again.
From the log file it seems some issues with the audio. Any ideeas on how to fix?

The log file:

"15:01:10.321: CPU Name: Intel(R) Core(TM) i3-3217U CPU @ 1.80GHz
15:01:10.322: CPU Speed: 1796MHz
15:01:10.322: Physical Cores: 2, Logical Cores: 4
15:01:10.322: Physical Memory: 8077MB Total, 3013MB Free
15:01:10.322: Windows Version: 10.0 Build 19045 (release: 22H2; revision: 4046; 64-bit)
15:01:10.322: Running as administrator: false
15:01:10.323: Windows 10/11 Gaming Features:
15:01:10.323: Game DVR: On
15:01:10.323: Game Mode: Probably On (no reg key set)
15:01:10.381: Sec. Software Status:
15:01:10.384: Microsoft Defender Antivirus: disabled (AV)
15:01:10.385: Avira Security: enabled (AV)
15:01:10.386: Windows-brandväggen: enabled (FW)
15:01:10.387: Current Date/Time: 2024-03-18, 15:01:10
15:01:10.387: Browser Hardware Acceleration: true
15:01:10.387: Hide OBS windows from screen capture: false
15:01:10.387: Qt Version: 6.5.3 (runtime), 6.5.3 (compiled)
15:01:10.387: Portable mode: false
15:01:13.825: OBS 30.0.2 (64-bit, windows)
15:01:13.825: ---------------------------------
15:01:13.827: ---------------------------------
15:01:13.827: audio settings reset:
15:01:13.827: samples per sec: 48000
15:01:13.827: speakers: 2
15:01:13.827: max buffering: 960 milliseconds
15:01:13.827: buffering type: dynamically increasing
15:01:13.864: ---------------------------------
15:01:13.864: Initializing D3D11...
15:01:13.864: Available Video Adapters:
15:01:13.880: Adapter 0: Intel(R) HD Graphics 4000
15:01:13.880: Dedicated VRAM: 33554432 (0.0 GiB)
15:01:13.880: Shared VRAM: 1845493760 (1.7 GiB)
15:01:13.880: PCI ID: 8086:0166
15:01:13.880: HAGS Status: Disabled (Default: No, Driver status: Unsupported)
15:01:13.905: Driver Version: 10.18.10.4358
15:01:13.906: output 0:
15:01:13.906: name=
15:01:13.906: pos={0, 0}
15:01:13.906: size={1366, 768}
15:01:13.906: attached=true
15:01:13.906: refresh=60
15:01:13.906: bits_per_color=8
15:01:13.906: space=RGB_FULL_G22_NONE_P709
15:01:13.906: sdr_white_nits=80
15:01:13.906: nit_range=[min=0.500000, max=270.000000, max_full_frame=270.000000]
15:01:13.906: dpi=96 (100%)
15:01:13.906: id=\\?\DISPLAY#CMO15A7#4&1ace8bee&0&UID67568640#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7}
15:01:13.906: alt_id=\\.\DISPLAY1
15:01:13.928: Loading up D3D11 on adapter Intel(R) HD Graphics 4000 (0)
15:01:13.958: D3D11 loaded successfully, feature level used: b000
15:01:13.958: DXGI increase maximum frame latency success
15:01:15.604: ---------------------------------
15:01:15.604: video settings reset:
15:01:15.604: base resolution: 1920x1080
15:01:15.604: output resolution: 1280x720
15:01:15.604: downscale filter: Bicubic
15:01:15.604: fps: 30/1
15:01:15.604: format: NV12
15:01:15.604: YUV mode: Rec. 709/Partial
15:01:15.605: NV12 texture support enabled
15:01:15.605: P010 texture support not available
15:01:15.607: Audio monitoring device:
15:01:15.607: name: Standard
15:01:15.607: id: default
15:01:15.607: ---------------------------------

....................................................................
15:01:48.202: ==== Streaming Start ===============================================
16:22:14.927: [Media Source 'rtsp2']: settings:
16:22:14.927: input: rtsp://xxx.xxx.xxx.xxx/channel=1&stream=0.sdp?real_stream
16:22:14.927: input_format:
16:22:14.927: speed: 100
16:22:14.927: is_looping: no
16:22:14.927: is_linear_alpha: no
16:22:14.927: is_hw_decoding: no
16:22:14.927: is_clear_on_media_end: yes
16:22:14.927: restart_on_activate: yes
16:22:14.927: close_when_inactive: no
16:22:14.927: full_decode: no
16:22:14.927: ffmpeg_options:
16:22:14.928: MP: Failed to open media: 'rtsp://xxx.xxx.xxx.xxx/channel=1&stream=0.sdp?real_stream'
16:22:14.929: [Media Source 'rtsp2']: Disconnected. Reconnecting...
16:24:55.604: [Media Source 'rtsp2']: settings:
16:24:55.604: input: rtsp://xxx.xxx.xxx.xxx/channel=1&stream=0.sdp?real_stream
16:24:55.604: input_format:
16:24:55.604: speed: 100
16:24:55.604: is_looping: no
16:24:55.604: is_linear_alpha: no
16:24:55.604: is_hw_decoding: no
16:24:55.604: is_clear_on_media_end: yes
16:24:55.604: restart_on_activate: yes
16:24:55.604: close_when_inactive: no
16:24:55.604: full_decode: no
16:24:55.604: ffmpeg_options:
16:24:55.606: MP: Failed to open media: 'rtsp://xxx.xxx.xxx.xxx/channel=1&stream=0.sdp?real_stream'
16:24:55.607: [Media Source 'rtsp2']: Disconnected. Reconnecting...
16:25:08.922: [Media Source 'rtsp2']: Reconnected.
16:25:19.943: [Media Source 'rtsp2']: settings:
16:25:19.943: input: rtsp://xxx.xxx.xxx.xxx/channel=1&stream=0.sdp?real_stream
16:25:19.943: input_format:
16:25:19.943: speed: 100
16:25:19.943: is_looping: no
16:25:19.943: is_linear_alpha: no
16:25:19.943: is_hw_decoding: no
16:25:19.943: is_clear_on_media_end: yes
16:25:19.943: restart_on_activate: yes
16:25:19.943: close_when_inactive: no
16:25:19.943: full_decode: no
16:25:19.943: ffmpeg_options:
16:25:41.151: adding 874 milliseconds of audio buffering, total audio buffering is now 874 milliseconds (source: rtsp2)
16:25:41.151:
16:26:31.755: Max audio buffering reached!
16:26:31.755: adding 85 milliseconds of audio buffering, total audio buffering is now 960 milliseconds (source: rtsp2)
16:26:31.755:
16:26:31.776: Source rtsp2 audio is lagging (over by 723.56 ms) at max audio buffering. Restarting source audio.
16:26:40.159: Source rtsp2 audio is lagging (over by 4659.22 ms) at max audio buffering. Restarting source audio.
16:28:14.176: Source rtsp2 audio is lagging (over by 860.15 ms) at max audio buffering. Restarting source audio.
16:28:14.304: Source rtsp2 audio is lagging (over by 959.82 ms) at max audio buffering. Restarting source audio.
16:28:14.433: Source rtsp2 audio is lagging (over by 1059.49 ms) at max audio buffering. Restarting source audio.
16:33:06.789: Source rtsp2 audio is lagging (over by 113.66 ms) at max audio buffering. Restarting source audio.
16:39:53.555: Source rtsp2 audio is lagging (over by 100.41 ms) at max audio buffering. Restarting source audio.
16:46:34.561: Source rtsp2 audio is lagging (over by 88.76 ms) at max audio buffering. Restarting source audio.
16:56:23.689: Source rtsp2 audio is lagging (over by 64.43 ms) at max audio buffering. Restarting source audio.
16:59:06.036: Source rtsp2 audio is lagging (over by 113.82 ms) at max audio buffering. Restarting source audio.
16:59:35.668: Source rtsp2 audio is lagging (over by 46.82 ms) at max audio buffering. Restarting source audio.
17:01:37.373: [Media Source 'rtsp2']: Disconnected. Reconnecting..."
 
Top