Question / Help Why does it work only 30 seconds exactly ?

Alain Moreau

New Member
Hello, I am using OBS to broadcast two IP cameras (inside a nest box) to YouTube Live Stream. I am using RTSP stream (rtsp://admin:password@192.168.0.xxx/ format) as my sources.
I created playlists (.m3u or .m3u8 file) with the rtsp address in order to add "VLC Video sources". This works fine for a while but the stream usually freezes after a couple of hours or sometimes minutes.
Then, I tried "Media source" where the input is directly "rtsp://ad......", this will only works for exactly 30 seconds, then the stream will freeze everytime !!!
In both cases, whether I am streaming (to the internet) or just displaying locally doesn't make any difference.
Double-clicking on the frozen source will be enough to restart live stream.

My PC is strong enough for the job:
22:01:43.903: CPU Name: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
22:01:43.903: CPU Speed: 3292MHz
22:01:43.903: Physical Cores: 4, Logical Cores: 4
22:01:43.903: Physical Memory: 4064MB Total, 1954MB Free
22:01:43.903: Windows Version: 6.1 Build 7601 (revision: 23572; 64-bit)
22:01:43.903: Running as administrator: true

Thanks for your helping to find a reliable solution !!!

PS: the log file show nothing (no record when the image freezes)
 

Alain Moreau

New Member
Does playing the cameras back in VLC directly have the same issue?
Thank for your interest. No, I can play the cameras with VLC forever without any issue. I do play the cameras sometimes with iSpy using the same rtsp stream, again no problem.
 

Suslik V

Active Member
Please, add any working local cam (virtual as well) to the current scene collection and then use 'Media Source' with your IP cam connected, after "freeze" wait for 10-15 sec and upload current log file.
 

Alain Moreau

New Member
Hello Suslik V. Here is my log file :

18:54:18.571: CPU Name: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
18:54:18.571: CPU Speed: 3292MHz
18:54:18.571: Physical Cores: 4, Logical Cores: 4
18:54:18.571: Physical Memory: 4064MB Total, 2220MB Free
18:54:18.571: Windows Version: 6.1 Build 7601 (revision: 23572; 64-bit)
18:54:18.571: Running as administrator: true
18:54:18.571: Aero is Enabled
18:54:18.571: Portable mode: false
18:54:18.584: OBS 17.0.2 (64bit, windows)
18:54:18.584: ---------------------------------
18:54:18.585: ---------------------------------
18:54:18.585: audio settings reset:
18:54:18.585: samples per sec: 44100
18:54:18.585: speakers: 1
18:54:18.586: ---------------------------------
18:54:18.586: Initializing D3D11..
18:54:18.586: Available Video Adapters:
18:54:18.590: Adapter 1: NVIDIA GeForce GTX 560 Ti
18:54:18.590: Dedicated VRAM: 1025966080
18:54:18.590: Shared VRAM: 1862338560
18:54:18.590: output 1: pos={0, 0}, size={1920, 1080}, attached=true
18:54:18.594: Loading up D3D11 on adapter NVIDIA GeForce GTX 560 Ti (0)
18:54:18.605: D3D11 loaded sucessfully, feature level used: 45056
18:54:19.569: ---------------------------------
18:54:19.569: video settings reset:
18:54:19.569: base resolution: 1280x720
18:54:19.569: output resolution: 1280x720
18:54:19.569: downscale filter: Bicubic
18:54:19.569: fps: 30/1
18:54:19.569: format: NV12
18:54:19.570: ---------------------------------
18:54:19.572: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
18:54:19.573: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
18:54:19.574: [AMF Encoder] Unable to load 'amfrt64.dll', error code 126.
18:54:19.588: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
18:54:19.589: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libEGL.dll' not found, loading of module failed
18:54:19.589: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
18:54:19.590: Failed to load 'en-US' text for module: 'obs-browser.dll'
18:54:19.590: [browser_source: 'Version: 1.28.0']
18:54:19.592: LoadLibrary failed for 'nvEncodeAPI64.dll': (null) (126)
18:54:19.657: VLC found, VLC video source enabled
18:54:19.666: No blackmagic support
18:54:19.670: [Media Foundation encoder]: plugin is disabled for performance reasons on Windows versions prior to 8
18:54:19.672: ---------------------------------
18:54:19.672: Loaded Modules:
18:54:19.672: win-wasapi.dll
18:54:19.672: win-mf.dll
18:54:19.672: win-dshow.dll
18:54:19.672: win-decklink.dll
18:54:19.672: win-capture.dll
18:54:19.672: vlc-video.dll
18:54:19.672: text-freetype2.dll
18:54:19.672: rtmp-services.dll
18:54:19.672: obs-x264.dll
18:54:19.672: obs-transitions.dll
18:54:19.672: obs-text.dll
18:54:19.672: obs-qsv11.dll
18:54:19.672: obs-outputs.dll
18:54:19.672: obs-filters.dll
18:54:19.672: obs-ffmpeg.dll
18:54:19.672: obs-browser.dll
18:54:19.672: image-source.dll
18:54:19.672: frontend-tools.dll
18:54:19.672: enc-amf.dll
18:54:19.672: coreaudio-encoder.dll
18:54:19.672: ==== Startup complete ===============================================
18:54:19.674: All scene data cleared
18:54:19.674: ------------------------------------------------
18:54:19.681: Switched to scene 'Main'
18:54:19.681: ------------------------------------------------
18:54:19.682: Loaded scenes:
18:54:19.682: - scene 'Main':
18:54:19.682: ------------------------------------------------
18:54:20.071: Update check: last known remote version is 17.0.2
18:54:28.303: [Media Source 'Media Source']: settings:
18:54:28.303: input:
18:54:28.303: input_format: (null)
18:54:28.303: is_looping: no
18:54:28.303: is_forcing_scale: yes
18:54:28.303: is_hw_decoding: yes
18:54:28.303: is_clear_on_media_end: yes
18:54:28.303: restart_on_activate: yes
18:54:28.305: User added source 'Media Source' (ffmpeg_source) to scene 'Main'
18:54:37.437: [Media Source 'Media Source']: settings:
18:54:37.437: input: rtsp://*****:*****@192.168.0.224/live0.264
18:54:37.437: input_format:
18:54:37.437: is_looping: no
18:54:37.437: is_forcing_scale: yes
18:54:37.437: is_hw_decoding: yes
18:54:37.437: is_clear_on_media_end: yes
18:54:37.437: restart_on_activate: yes
18:54:39.311: adding 23 milliseconds of audio buffering, total audio buffering is now 23 milliseconds
18:54:39.443: adding 23 milliseconds of audio buffering, total audio buffering is now 46 milliseconds
18:54:39.509: adding 23 milliseconds of audio buffering, total audio buffering is now 69 milliseconds
18:54:41.380: adding 23 milliseconds of audio buffering, total audio buffering is now 92 milliseconds
18:54:41.446: adding 23 milliseconds of audio buffering, total audio buffering is now 116 milliseconds
18:54:42.348: adding 23 milliseconds of audio buffering, total audio buffering is now 139 milliseconds
18:54:42.414: adding 23 milliseconds of audio buffering, total audio buffering is now 162 milliseconds
19:05:47.855: adding 23 milliseconds of audio buffering, total audio buffering is now 185 milliseconds
19:09:31.643: adding 46 milliseconds of audio buffering, total audio buffering is now 232 milliseconds



Comments :
19:11:58 the source froze (this time it tooks 4 minutes....)
19:28:58 I checked the log file

I did not touch the log file apart from admin and password of my IP camera
 

Alain Moreau

New Member
Hello, maybe I was not clear enough.
The IP camera did connect to OBS without problem and for 4 minutes or so, everything worked well. I just replaced my actual password on this message with **** for safety reason only.

I gave up using 'Media source' and switched back to 'VLC Media source/Add Files' with a playlist file. OBS is by far much more stable this way for me. I also switched from Constant Bit Rate to Variable bit Rate. This seems to relief my CPU a lot.
 

Suslik V

Active Member
No matter what issue you have had, you unable to see it until add working 'Video Capture Device' to the scene collection. Then the log (with 'Media Source' connected to the IP cam) could show the error.
 
Top